Skip to content

SystemCallTypeGetMappingListRequest

Bases: OCIRequest

Get a list of system call type mappings. The response is either SystemCallTypeGetMappingListResponse or ErrorResponse.

Attributes:

country_code (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemCallTypeGetMappingListRequest(OCIRequest):
    """Get a list of system call type mappings.
        The response is either SystemCallTypeGetMappingListResponse or ErrorResponse.

    Attributes:

        country_code (Optional[str]):

    """

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

Responses

Bases: OCIDataResponse

Response to SystemCallTypeGetMappingListRequest. The table columns are: "Country Code", "Digit Map", "Call Type" and "Ignore AS Emergency Route". The following column is returned only in AS Mode: "Ignore AS Emergency Route"

Attributes:

call_type_mapping (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemCallTypeGetMappingListResponse(OCIDataResponse):
    """Response to SystemCallTypeGetMappingListRequest. The table columns are:
        \"Country Code\", \"Digit Map\", \"Call Type\" and \"Ignore AS Emergency Route\".
        The following column is returned only in AS Mode:
        \"Ignore AS Emergency Route\"

    Attributes:

        call_type_mapping (OCITable):

    """

    call_type_mapping: OCITable = field(metadata={"alias": "callTypeMapping"})

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 SystemCallTypeGetMappingListRequest

client = Client()

command = SystemCallTypeGetMappingListRequest(
    country_code=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemCallTypeGetMappingListRequest",
    country_code=...,
)

print(response)