GroupTrunkGroupGetInstanceListRequest14sp4
Bases: OCIRequest
Get a list of Trunk Groups for the group or enterprise. It is possible to restrict the results to a particular department, or expand the list to the entire enterprise. The response is either a GroupTrunkGroupGetInstanceListResponse14sp4 or an ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
group_department_name (Optional[str]):
include_enterprise_trunk_groups (Optional[bool]):
only_trunk_groups_with_device (Optional[bool]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class GroupTrunkGroupGetInstanceListRequest14sp4(OCIRequest):
"""Get a list of Trunk Groups for the group or enterprise.
It is possible to restrict the results to a particular department, or expand the list to the entire enterprise.
The response is either a GroupTrunkGroupGetInstanceListResponse14sp4 or an ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
group_department_name (Optional[str]):
include_enterprise_trunk_groups (Optional[bool]):
only_trunk_groups_with_device (Optional[bool]):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
group_id: str = field(metadata={"alias": "groupId"})
group_department_name: Optional[str] = field(
default=None, metadata={"alias": "groupDepartmentName"}
)
include_enterprise_trunk_groups: Optional[bool] = field(
default=None, metadata={"alias": "includeEnterpriseTrunkGroups"}
)
only_trunk_groups_with_device: Optional[bool] = field(
default=None, metadata={"alias": "onlyTrunkGroupsWithDevice"}
)
|
Responses
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 GroupTrunkGroupGetInstanceListRequest14sp4
client = Client()
command = GroupTrunkGroupGetInstanceListRequest14sp4(
service_provider_id=...,
group_id=...,
group_department_name=...,
include_enterprise_trunk_groups=...,
only_trunk_groups_with_device=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("GroupTrunkGroupGetInstanceListRequest14sp4",
service_provider_id=...,
group_id=...,
group_department_name=...,
include_enterprise_trunk_groups=...,
only_trunk_groups_with_device=...,
)
print(response)