Skip to content

UserCallForwardingAlwaysSecondaryModifyRequest

Bases: OCIRequest

Modify the user level data associated with Call Forwarding Always Secondary service. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

user_id (str):

is_active (Optional[bool]):

forward_to_phone_number (Optional[Nillable[str]]):

is_ring_splash_active (Optional[bool]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserCallForwardingAlwaysSecondaryModifyRequest(OCIRequest):
    """Modify the user level data associated with Call Forwarding Always Secondary service.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        user_id (str):

        is_active (Optional[bool]):

        forward_to_phone_number (Optional[Nillable[str]]):

        is_ring_splash_active (Optional[bool]):

    """

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

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

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

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

    def __post_init__(self):
        nillable_fields = ["forward_to_phone_number"]
        for field_name in nillable_fields:
            value = getattr(self, field_name)
            if value == "" or value == "None":
                object.__setattr__(self, field_name, OCINil)

Responses

Bases: OCIResponse

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

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 UserCallForwardingAlwaysSecondaryModifyRequest

client = Client()

command = UserCallForwardingAlwaysSecondaryModifyRequest(
    user_id=...,
    is_active=...,
    forward_to_phone_number=...,
    is_ring_splash_active=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("UserCallForwardingAlwaysSecondaryModifyRequest",
    user_id=...,
    is_active=...,
    forward_to_phone_number=...,
    is_ring_splash_active=...,
)

print(response)