Skip to content

AutoAttendantKeyModifyConfiguration

Bases: OCIType

The modify configuration of a key for Auto Attendant.

Attributes:

key (str):

entry (Nillable[AutoAttendantKeyConfigurationModifyEntry]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class AutoAttendantKeyModifyConfiguration(OCIType):
    """The modify configuration of a key for Auto
        Attendant.

    Attributes:

        key (str):

        entry (Nillable[AutoAttendantKeyConfigurationModifyEntry]):

    """

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

    entry: Nillable[AutoAttendantKeyConfigurationModifyEntry] = field(
        metadata={"alias": "entry"}
    )

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