Skip to content

AccessDeviceMultipleIdentityAndContactEndpointModify

Bases: OCIType

Access device end point used in the context of modify that can have more than one contact defined. The endpoint is identified by its linePort (public Identity) and possibly a private Identity. Only Static Registration capabable devices may have more than one contact defined. Port numbers are only used by devices with static line ordering. The following elements are only used in XS data mode and ignored in AS data mode: privateIdentity

Attributes:

access_device (Optional[AccessDevice]):

line_port (Optional[str]):

private_identity (Optional[Nillable[str]]):

contact_list (Optional[Nillable[ReplacementContactList]]):

port_number (Optional[int]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class AccessDeviceMultipleIdentityAndContactEndpointModify(OCIType):
    """Access device end point used in the context of modify that can have more than one contact defined.
        The endpoint is identified by its linePort (public Identity) and possibly a private Identity.
        Only Static Registration capabable devices may have more than one contact defined.
        Port numbers are only used by devices with static line ordering.
        The following elements are only used in XS data mode and ignored in AS data mode:
          privateIdentity

    Attributes:

        access_device (Optional[AccessDevice]):

        line_port (Optional[str]):

        private_identity (Optional[Nillable[str]]):

        contact_list (Optional[Nillable[ReplacementContactList]]):

        port_number (Optional[int]):

    """

    access_device: Optional[AccessDevice] = field(
        default=None, metadata={"alias": "accessDevice"}
    )

    line_port: Optional[str] = field(default=None, metadata={"alias": "linePort"})

    private_identity: Optional[Nillable[str]] = field(
        default=None, metadata={"alias": "privateIdentity"}
    )

    contact_list: Optional[Nillable[ReplacementContactList]] = field(
        default=None, metadata={"alias": "contactList"}
    )

    port_number: Optional[int] = field(default=None, metadata={"alias": "portNumber"})

    def __post_init__(self):
        nillable_fields = ["private_identity", "contact_list"]
        for field_name in nillable_fields:
            value = getattr(self, field_name)
            if value == "" or value == "None":
                object.__setattr__(self, field_name, OCINil)