Skip to content

AccessDeviceMultipleIdentityAndContactEndpointModify22

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 capable 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 The following elements are only used in AS data mode and ignored in XS data mode: useHotline hotlineContact

Attributes:

access_device (Optional[AccessDevice]):

line_port (Optional[str]):

private_identity (Optional[Nillable[str]]):

contact_list (Optional[Nillable[ReplacementContactList22]]):

port_number (Optional[int]):

use_hotline (Optional[bool]):

hotline_contact (Optional[Nillable[str]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class AccessDeviceMultipleIdentityAndContactEndpointModify22(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 capable 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
        The following elements are only used in AS data mode and ignored in XS data mode:
          useHotline
          hotlineContact

    Attributes:

        access_device (Optional[AccessDevice]):

        line_port (Optional[str]):

        private_identity (Optional[Nillable[str]]):

        contact_list (Optional[Nillable[ReplacementContactList22]]):

        port_number (Optional[int]):

        use_hotline (Optional[bool]):

        hotline_contact (Optional[Nillable[str]]):

    """

    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[ReplacementContactList22]] = field(
        default=None, metadata={"alias": "contactList"}
    )

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

    use_hotline: Optional[bool] = field(default=None, metadata={"alias": "useHotline"})

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

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