Skip to content

ResellerCallPoliciesGetRequest22

Bases: OCIRequest

Request the reseller level data associated with Call Policies. The response is either a ResellerCallPoliciesGetResponse22 or an ErrorResponse.

Attributes:

reseller_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ResellerCallPoliciesGetRequest22(OCIRequest):
    """Request the reseller level data associated with Call Policies.
        The response is either a ResellerCallPoliciesGetResponse22
        or an ErrorResponse.

    Attributes:

        reseller_id (str):

    """

    reseller_id: str = field(metadata={"alias": "resellerId"})

Responses

Bases: OCIDataResponse

Response to ResellerCallPoliciesGetRequest22.

Attributes:

force_redirecting_user_identity_for_redirected_calls (bool):

apply_redirecting_user_identity_to_network_locations (bool):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class ResellerCallPoliciesGetResponse22(OCIDataResponse):
    """Response to ResellerCallPoliciesGetRequest22.

    Attributes:

        force_redirecting_user_identity_for_redirected_calls (bool):

        apply_redirecting_user_identity_to_network_locations (bool):

    """

    force_redirecting_user_identity_for_redirected_calls: bool = field(
        metadata={"alias": "forceRedirectingUserIdentityForRedirectedCalls"}
    )

    apply_redirecting_user_identity_to_network_locations: bool = field(
        metadata={"alias": "applyRedirectingUserIdentityToNetworkLocations"}
    )

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 ResellerCallPoliciesGetRequest22

client = Client()

command = ResellerCallPoliciesGetRequest22(
    reseller_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("ResellerCallPoliciesGetRequest22",
    reseller_id=...,
)

print(response)