UserVideoAddOnModifyRequest14
Bases: OCIRequest
Modify the user's Video Add-On service setting. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
user_id (str):
is_active (Optional[bool]):
max_originating_call_delay_seconds (Optional[int]):
access_device_endpoint (Optional[Nillable[AccessDeviceEndpointModify]]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class UserVideoAddOnModifyRequest14(OCIRequest):
"""Modify the user's Video Add-On service setting.
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
user_id (str):
is_active (Optional[bool]):
max_originating_call_delay_seconds (Optional[int]):
access_device_endpoint (Optional[Nillable[AccessDeviceEndpointModify]]):
"""
user_id: str = field(metadata={"alias": "userId"})
is_active: Optional[bool] = field(default=None, metadata={"alias": "isActive"})
max_originating_call_delay_seconds: Optional[int] = field(
default=None, metadata={"alias": "maxOriginatingCallDelaySeconds"}
)
access_device_endpoint: Optional[Nillable[AccessDeviceEndpointModify]] = field(
default=None, metadata={"alias": "accessDeviceEndpoint"}
)
def __post_init__(self):
nillable_fields = ["access_device_endpoint"]
for field_name in nillable_fields:
value = getattr(self, field_name)
if value == "" or value == "None":
object.__setattr__(self, field_name, OCINil)
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource 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 UserVideoAddOnModifyRequest14
client = Client()
command = UserVideoAddOnModifyRequest14(
user_id=...,
is_active=...,
max_originating_call_delay_seconds=...,
access_device_endpoint=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("UserVideoAddOnModifyRequest14",
user_id=...,
is_active=...,
max_originating_call_delay_seconds=...,
access_device_endpoint=...,
)
print(response)