GroupVirtualOnNetEnterpriseExtensionsGetUserRequest
Bases: OCIRequest
Get an existing Virtual On-Net user from a Group. The response is either a GroupVirtualOnNetEnterpriseExtensionsGetUserResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
phone_number (str):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class GroupVirtualOnNetEnterpriseExtensionsGetUserRequest(OCIRequest):
"""Get an existing Virtual On-Net user from a Group.
The response is either a
GroupVirtualOnNetEnterpriseExtensionsGetUserResponse
or an ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
phone_number (str):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
group_id: str = field(metadata={"alias": "groupId"})
phone_number: str = field(metadata={"alias": "phoneNumber"})
|
Responses
Bases: OCIDataResponse
Response to GroupVirtualOnNetEnterpriseExtensionsGetUserRequest.
Attributes:
extension (str):
first_name (str):
last_name (str):
calling_line_id_first_name (str):
calling_line_id_last_name (str):
virtual_on_net_call_type_name (str):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class GroupVirtualOnNetEnterpriseExtensionsGetUserResponse(OCIDataResponse):
"""Response to GroupVirtualOnNetEnterpriseExtensionsGetUserRequest.
Attributes:
extension (str):
first_name (str):
last_name (str):
calling_line_id_first_name (str):
calling_line_id_last_name (str):
virtual_on_net_call_type_name (str):
"""
extension: str = field(metadata={"alias": "extension"})
first_name: str = field(metadata={"alias": "firstName"})
last_name: str = field(metadata={"alias": "lastName"})
calling_line_id_first_name: str = field(
metadata={"alias": "callingLineIdFirstName"}
)
calling_line_id_last_name: str = field(metadata={"alias": "callingLineIdLastName"})
virtual_on_net_call_type_name: str = field(
metadata={"alias": "virtualOnNetCallTypeName"}
)
|
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 GroupVirtualOnNetEnterpriseExtensionsGetUserRequest
client = Client()
command = GroupVirtualOnNetEnterpriseExtensionsGetUserRequest(
service_provider_id=...,
group_id=...,
phone_number=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("GroupVirtualOnNetEnterpriseExtensionsGetUserRequest",
service_provider_id=...,
group_id=...,
phone_number=...,
)
print(response)