Skip to content

UserVideoAddOnGetRequest22

Bases: OCIRequest

Get the user's Video Add-On service setting. The response is either a UserVideoAddOnGetResponse22 or an ErrorResponse.

Attributes:

user_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserVideoAddOnGetRequest22(OCIRequest):
    """Get the user's Video Add-On service setting.
        The response is either a UserVideoAddOnGetResponse22 or an ErrorResponse.

    Attributes:

        user_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to the UserVideoAddOnGetRequest22.

Attributes:

is_active (bool):

max_originating_call_delay_seconds (int):

access_device_endpoint (Optional[AccessDeviceEndpointWithPortNumberRead22]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserVideoAddOnGetResponse22(OCIDataResponse):
    """Response to the UserVideoAddOnGetRequest22.

    Attributes:

        is_active (bool):

        max_originating_call_delay_seconds (int):

        access_device_endpoint (Optional[AccessDeviceEndpointWithPortNumberRead22]):

    """

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

    max_originating_call_delay_seconds: int = field(
        metadata={"alias": "maxOriginatingCallDelaySeconds"}
    )

    access_device_endpoint: Optional[AccessDeviceEndpointWithPortNumberRead22] = field(
        default=None, metadata={"alias": "accessDeviceEndpoint"}
    )

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 UserVideoAddOnGetRequest22

client = Client()

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

print(response)