UserCallCenterModifyCallCenterListRequest
Bases: OCIRequest
Request to modify the call center list for an agent. The response is either SuccessResponse or ErrorResponse.
Attributes:
agent_user_id (str):
service_user_id_list (Optional[Nillable[ReplacementUserIdList]]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class UserCallCenterModifyCallCenterListRequest(OCIRequest):
"""Request to modify the call center list for an agent.
The response is either SuccessResponse or ErrorResponse.
Attributes:
agent_user_id (str):
service_user_id_list (Optional[Nillable[ReplacementUserIdList]]):
"""
agent_user_id: str = field(metadata={"alias": "agentUserId"})
service_user_id_list: Optional[Nillable[ReplacementUserIdList]] = field(
default=None, metadata={"alias": "serviceUserIdList"}
)
def __post_init__(self):
nillable_fields = ["service_user_id_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 UserCallCenterModifyCallCenterListRequest
client = Client()
command = UserCallCenterModifyCallCenterListRequest(
agent_user_id=...,
service_user_id_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("UserCallCenterModifyCallCenterListRequest",
agent_user_id=...,
service_user_id_list=...,
)
print(response)