Skip to content

SystemAnonymousCallRejectionGetRequest

Bases: OCIRequest

Get Anonymous Call Rejection system parameters. The response is either a SystemAnonymousCallRejectionGetResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemAnonymousCallRejectionGetRequest(OCIRequest):
    """Get Anonymous Call Rejection system parameters.
        The response is either a SystemAnonymousCallRejectionGetResponse or
        an ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to the SystemAnonymousCallRejectionGetRequest. The response contains the anonymous call rejection system.".

Attributes:

pai_required (bool):

screen_only_local_calls (bool):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemAnonymousCallRejectionGetResponse(OCIDataResponse):
    """Response to the SystemAnonymousCallRejectionGetRequest.
        The response contains the anonymous call rejection system.\".

    Attributes:

        pai_required (bool):

        screen_only_local_calls (bool):

    """

    pai_required: bool = field(metadata={"alias": "paiRequired"})

    screen_only_local_calls: bool = field(metadata={"alias": "screenOnlyLocalCalls"})

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 SystemAnonymousCallRejectionGetRequest

client = Client()

command = SystemAnonymousCallRejectionGetRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemAnonymousCallRejectionGetRequest")

print(response)