Skip to content

UserRemoteOfficeGetRequest

Bases: OCIRequest

Request the user level data associated with Remote Office. The response is either a UserRemoteOfficeGetResponse or an ErrorResponse.

Attributes:

user_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserRemoteOfficeGetRequest(OCIRequest):
    """Request the user level data associated with Remote Office.
        The response is either a UserRemoteOfficeGetResponse or an ErrorResponse.

    Attributes:

        user_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to UserRemoteOfficeGetRequest.

Attributes:

is_active (bool):

remote_office_phone_number (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserRemoteOfficeGetResponse(OCIDataResponse):
    """Response to UserRemoteOfficeGetRequest.

    Attributes:

        is_active (bool):

        remote_office_phone_number (Optional[str]):

    """

    is_active: bool = field(metadata={"alias": "isActive"})

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

Bases: OCIResponse

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

client = Client()

command = UserRemoteOfficeGetRequest(
    user_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

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

print(response)