Skip to content

TrunkGroupDeviceEndpointModify

Bases: OCIType

Trunk group device endpoint used in the context of modify.

Attributes:

name (str):

line_port (str):

contact (Optional[Nillable[str]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class TrunkGroupDeviceEndpointModify(OCIType):
    """Trunk group device endpoint used in the context of modify.

    Attributes:

        name (str):

        line_port (str):

        contact (Optional[Nillable[str]]):

    """

    name: str = field(metadata={"alias": "name"})

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

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

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