Bases: OCIType
User can either use it's group's preferred carrier or use it's own. You can use the group's preferred carrier without clearing the user carrier name -- in this case, the user carrier name is retained.
Attributes:
use_group_preferred_carrier (bool):
carrier (Optional[Nillable[str]]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class UserPreferredCarrierNameModify(OCIType):
"""User can either use it's group's preferred carrier or use it's own.
You can use the group's preferred carrier without clearing the user carrier name --
in this case, the user carrier name is retained.
Attributes:
use_group_preferred_carrier (bool):
carrier (Optional[Nillable[str]]):
"""
use_group_preferred_carrier: bool = field(
metadata={"alias": "useGroupPreferredCarrier"}
)
carrier: Optional[Nillable[str]] = field(
default=None, metadata={"alias": "carrier"}
)
def __post_init__(self):
nillable_fields = ["carrier"]
for field_name in nillable_fields:
value = getattr(self, field_name)
if value == "" or value == "None":
object.__setattr__(self, field_name, OCINil)
|