Skip to content

UserCallParkGetRequest

Bases: OCIRequest

Identifies which Call Park group the user belongs to if any and the list of users in the group. The response is either UserCallParkGetResponse or ErrorResponse.

Attributes:

user_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserCallParkGetRequest(OCIRequest):
    """Identifies which Call Park group the user belongs to if any and the list of users in the group.
        The response is either UserCallParkGetResponse or ErrorResponse.

    Attributes:

        user_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to the UserCallParkGetRequest. Identifies which Call Park group the user belongs to and the list of users in the group. Contains a table with column headings: "User Id", "Last Name", "First Name", "Hiragana Last Name", "Hiragana First Name", "User External Id", and "User Place Type". The following columns are supported in AS data mode only: "User External Id", "User Place Type" The possible values for "User Place Type" are: User, Place. The users are in the table in the order they will try to be parked on.

Attributes:

name (Optional[str]):

user_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserCallParkGetResponse(OCIDataResponse):
    """Response to the UserCallParkGetRequest.
        Identifies which Call Park group the user belongs to and the list of users in the group.
        Contains a table with column headings: \"User Id\", \"Last Name\", \"First Name\", \"Hiragana Last Name\",
        \"Hiragana First Name\", \"User External Id\", and \"User Place Type\".
        The following columns are supported in AS data mode only:
          \"User External Id\", \"User Place Type\"
        The possible values for \"User Place Type\" are: User, Place.
        The users are in the table in the order they will try to be parked on.

    Attributes:

        name (Optional[str]):

        user_table (OCITable):

    """

    name: Optional[str] = field(default=None, metadata={"alias": "name"})

    user_table: OCITable = field(metadata={"alias": "userTable"})

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 UserCallParkGetRequest

client = Client()

command = UserCallParkGetRequest(
    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("UserCallParkGetRequest",
    user_id=...,
)

print(response)