Skip to content

UserCallWaitingModifyRequest

Bases: OCIRequest

Modify the user level data associated with Call Waiting. The response is either a SuccessResponse or an ErrorResponse.

The following elements are only used in AS data mode:
  disableCallingLineIdDelivery

Attributes:

user_id (str):

is_active (Optional[bool]):

disable_calling_line_id_delivery (Optional[bool]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserCallWaitingModifyRequest(OCIRequest):
    """Modify the user level data associated with Call Waiting.
        The response is either a SuccessResponse or an ErrorResponse.

        The following elements are only used in AS data mode:
          disableCallingLineIdDelivery

    Attributes:

        user_id (str):

        is_active (Optional[bool]):

        disable_calling_line_id_delivery (Optional[bool]):

    """

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

    is_active: Optional[bool] = field(default=None, metadata={"alias": "isActive"})

    disable_calling_line_id_delivery: Optional[bool] = field(
        default=None, metadata={"alias": "disableCallingLineIdDelivery"}
    )

Responses

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 UserCallWaitingModifyRequest

client = Client()

command = UserCallWaitingModifyRequest(
    user_id=...,
    is_active=...,
    disable_calling_line_id_delivery=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("UserCallWaitingModifyRequest",
    user_id=...,
    is_active=...,
    disable_calling_line_id_delivery=...,
)

print(response)