Skip to content

AccessDeviceEndpointAndHotlineModify

Bases: OCIType

Access device end point used in the context of modify. Port numbers are only used by devices with static line ordering. The following element is only used in AS data mode and ignored in XS data mode: pathHeader useHotline hotlineContact

Attributes:

access_device (AccessDevice):

line_port (str):

contact (Optional[Nillable[str]]):

path_header (Optional[str]):

port_number (Optional[int]):

use_hotline (Optional[bool]):

hotline_contact (Optional[Nillable[str]]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class AccessDeviceEndpointAndHotlineModify(OCIType):
    """Access device end point used in the context of modify.
        Port numbers are only used by devices with static line ordering.
        The following element is only used in AS data mode and ignored in XS data mode:
          pathHeader
          useHotline
          hotlineContact

    Attributes:

        access_device (AccessDevice):

        line_port (str):

        contact (Optional[Nillable[str]]):

        path_header (Optional[str]):

        port_number (Optional[int]):

        use_hotline (Optional[bool]):

        hotline_contact (Optional[Nillable[str]]):

    """

    access_device: AccessDevice = field(metadata={"alias": "accessDevice"})

    line_port: str = field(metadata={"alias": "linePort"})

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

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

    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 = ["contact", "hotline_contact"]
        for field_name in nillable_fields:
            value = getattr(self, field_name)
            if value == "" or value == "None":
                object.__setattr__(self, field_name, OCINil)