GroupDirectoryNumberHuntingModifyRequest
Bases: OCIRequest
Replaces a list of users as agents for a directory number hunting group. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
service_user_id (str):
agent_user_id_list (Optional[Nillable[ReplacementUserIdList]]):
use_terminate_call_to_agent_first (Optional[bool]):
use_original_agent_services_for_busy_and_no_answer_calls (Optional[bool]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class GroupDirectoryNumberHuntingModifyRequest(OCIRequest):
"""Replaces a list of users as agents for a directory number hunting group.
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
service_user_id (str):
agent_user_id_list (Optional[Nillable[ReplacementUserIdList]]):
use_terminate_call_to_agent_first (Optional[bool]):
use_original_agent_services_for_busy_and_no_answer_calls (Optional[bool]):
"""
service_user_id: str = field(metadata={"alias": "serviceUserId"})
agent_user_id_list: Optional[Nillable[ReplacementUserIdList]] = field(
default=None, metadata={"alias": "agentUserIdList"}
)
use_terminate_call_to_agent_first: Optional[bool] = field(
default=None, metadata={"alias": "useTerminateCallToAgentFirst"}
)
use_original_agent_services_for_busy_and_no_answer_calls: Optional[bool] = field(
default=None,
metadata={"alias": "useOriginalAgentServicesForBusyAndNoAnswerCalls"},
)
def __post_init__(self):
nillable_fields = ["agent_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/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource code in src/mercury_ocip/commands/base_command.py
| class ErrorResponse(OCIResponse):
errorCode: Optional[int] = None
summary: str
summaryEnglish: str
detail: Optional[str] = None
|
Example Usage
from mercury_ocip.client import Client
from mercury_ocip.commands import GroupDirectoryNumberHuntingModifyRequest
client = Client()
command = GroupDirectoryNumberHuntingModifyRequest(
service_user_id=...,
agent_user_id_list=...,
use_terminate_call_to_agent_first=...,
use_original_agent_services_for_busy_and_no_answer_calls=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("GroupDirectoryNumberHuntingModifyRequest",
service_user_id=...,
agent_user_id_list=...,
use_terminate_call_to_agent_first=...,
use_original_agent_services_for_busy_and_no_answer_calls=...,
)
print(response)