Skip to content

AccessDeviceMultipleContactEndpointModify22

Bases: OCIType

Access device end point used in the context of modify that can have more than one contact defined. Only Static Registration capable devices may have more than one contact defined. Port numbers are only used by devices with static line ordering.

Attributes:

access_device (Optional[AccessDevice]):

line_port (Optional[str]):

contact_list (Optional[Nillable[ReplacementContactList22]]):

port_number (Optional[int]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class AccessDeviceMultipleContactEndpointModify22(OCIType):
    """Access device end point used in the context of modify that can have more than one contact defined.
        Only Static Registration capable devices may have more than one contact defined.
        Port numbers are only used by devices with static line ordering.

    Attributes:

        access_device (Optional[AccessDevice]):

        line_port (Optional[str]):

        contact_list (Optional[Nillable[ReplacementContactList22]]):

        port_number (Optional[int]):

    """

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

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

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

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

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