Skip to content

UserCallForwardingAlwaysSecondaryGetRequest

Bases: OCIRequest

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

Attributes:

user_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserCallForwardingAlwaysSecondaryGetRequest(OCIRequest):
    """Request the user level data associated with Call Forwarding Always Secondary service.
        The response is either a UserCallForwardingAlwaysSecondaryGetResponse or an
        ErrorResponse.

    Attributes:

        user_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to UserCallForwardingAlwaysSecondaryGetRequest.

Attributes:

is_active (bool):

forward_to_phone_number (Optional[str]):

is_ring_splash_active (bool):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class UserCallForwardingAlwaysSecondaryGetResponse(OCIDataResponse):
    """Response to UserCallForwardingAlwaysSecondaryGetRequest.

    Attributes:

        is_active (bool):

        forward_to_phone_number (Optional[str]):

        is_ring_splash_active (bool):

    """

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

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

    is_ring_splash_active: bool = field(metadata={"alias": "isRingSplashActive"})

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 UserCallForwardingAlwaysSecondaryGetRequest

client = Client()

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

print(response)