GroupOutgoingCallingPlanDepartmentAuthorizationCodeGetListRequest
Bases: OCIRequest
Request the list of authorization codes for a group default or a department. When department is not specified, it is for the group default. The response is either a GroupOutgoingCallingPlanDepartmentAuthorizationCodeGetListResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
department_key (Optional[DepartmentKey]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class GroupOutgoingCallingPlanDepartmentAuthorizationCodeGetListRequest(OCIRequest):
"""Request the list of authorization codes for a group default or a department. When department is not
specified, it is for the group default.
The response is either a GroupOutgoingCallingPlanDepartmentAuthorizationCodeGetListResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
department_key (Optional[DepartmentKey]):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
group_id: str = field(metadata={"alias": "groupId"})
department_key: Optional[DepartmentKey] = field(
default=None, metadata={"alias": "departmentKey"}
)
|
Responses
Bases: OCIDataResponse
Response to GroupOutgoingCallingPlanDepartmentAuthorizationCodeGetListRequest.
Attributes:
code_entry (Optional[List[OutgoingCallingPlanAuthorizationCodeEntry]]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class GroupOutgoingCallingPlanDepartmentAuthorizationCodeGetListResponse(
OCIDataResponse
):
"""Response to GroupOutgoingCallingPlanDepartmentAuthorizationCodeGetListRequest.
Attributes:
code_entry (Optional[List[OutgoingCallingPlanAuthorizationCodeEntry]]):
"""
code_entry: Optional[List[OutgoingCallingPlanAuthorizationCodeEntry]] = field(
default=None, metadata={"alias": "codeEntry"}
)
|
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 GroupOutgoingCallingPlanDepartmentAuthorizationCodeGetListRequest
client = Client()
command = GroupOutgoingCallingPlanDepartmentAuthorizationCodeGetListRequest(
service_provider_id=...,
group_id=...,
department_key=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("GroupOutgoingCallingPlanDepartmentAuthorizationCodeGetListRequest",
service_provider_id=...,
group_id=...,
department_key=...,
)
print(response)