UserVoiceMessagingUserModifyDistributionListRequest
Bases: OCIRequest
Modify a voice mail distribution list for a users voice message. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
user_id (str):
list_id (int):
description (Optional[Nillable[str]]):
phone_number_list (Optional[Nillable[ReplacementOutgoingDNorSIPURIList]]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class UserVoiceMessagingUserModifyDistributionListRequest(OCIRequest):
"""Modify a voice mail distribution list for a users voice message.
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
user_id (str):
list_id (int):
description (Optional[Nillable[str]]):
phone_number_list (Optional[Nillable[ReplacementOutgoingDNorSIPURIList]]):
"""
user_id: str = field(metadata={"alias": "userId"})
list_id: int = field(metadata={"alias": "listId"})
description: Optional[Nillable[str]] = field(
default=None, metadata={"alias": "description"}
)
phone_number_list: Optional[Nillable[ReplacementOutgoingDNorSIPURIList]] = field(
default=None, metadata={"alias": "phoneNumberList"}
)
def __post_init__(self):
nillable_fields = ["description", "phone_number_list"]
for field_name in nillable_fields:
value = getattr(self, field_name)
if value == "" or value == "None":
object.__setattr__(self, field_name, OCINil)
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class ErrorResponse(OCIResponse):
errorCode: Optional[int] = None
summary: str
summaryEnglish: str
detail: Optional[str] = None
|
Example Usage
from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import UserVoiceMessagingUserModifyDistributionListRequest
client = Client()
command = UserVoiceMessagingUserModifyDistributionListRequest(
user_id=...,
list_id=...,
description=...,
phone_number_list=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("UserVoiceMessagingUserModifyDistributionListRequest",
user_id=...,
list_id=...,
description=...,
phone_number_list=...,
)
print(response)