Skip to content

UserPolycomPhoneServicesGetPrimaryEndpointListRequest

Bases: OCIRequest

Request the user's list of device profiles on which the user is the primary user. The response is either a UserPolycomPhoneServicesGetPrimaryEndpointListResponse or an ErrorResponse.

Attributes:

user_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserPolycomPhoneServicesGetPrimaryEndpointListRequest(OCIRequest):
    """Request the user's list of device profiles on which the user is the primary user.
        The response is either a UserPolycomPhoneServicesGetPrimaryEndpointListResponse or an ErrorResponse.

    Attributes:

        user_id (str):

    """

    user_id: str = field(metadata={"alias": "userId"})

Responses

Bases: OCIDataResponse

Response to UserPolycomPhoneServicesGetPrimaryEndpointListRequest. The column headings for the deviceUserTable are: "Device Level", "Device Name", "Line/Port".

Attributes:

device_user_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserPolycomPhoneServicesGetPrimaryEndpointListResponse(OCIDataResponse):
    """Response to UserPolycomPhoneServicesGetPrimaryEndpointListRequest.
        The column headings for the deviceUserTable are: \"Device Level\", \"Device Name\", \"Line/Port\".

    Attributes:

        device_user_table (OCITable):

    """

    device_user_table: OCITable = field(metadata={"alias": "deviceUserTable"})

Bases: OCIResponse

Source 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 UserPolycomPhoneServicesGetPrimaryEndpointListRequest

client = Client()

command = UserPolycomPhoneServicesGetPrimaryEndpointListRequest(
    user_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("UserPolycomPhoneServicesGetPrimaryEndpointListRequest",
    user_id=...,
)

print(response)