Skip to content

SystemCallTypeModifyMappingRequest

Bases: OCIRequest

Modify the ignoreASEmergencyRoute entry of the specified country code, digitMap. The response is either SuccessResponse or an ErrorResponse.

Attributes:

country_code (str):

digit_map (str):

ignore_as_emergency_route (Optional[bool]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemCallTypeModifyMappingRequest(OCIRequest):
    """Modify the ignoreASEmergencyRoute entry of the specified country code, digitMap.
        The response is either SuccessResponse or an ErrorResponse.

    Attributes:

        country_code (str):

        digit_map (str):

        ignore_as_emergency_route (Optional[bool]):

    """

    country_code: str = field(metadata={"alias": "countryCode"})

    digit_map: str = field(metadata={"alias": "digitMap"})

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

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 SystemCallTypeModifyMappingRequest

client = Client()

command = SystemCallTypeModifyMappingRequest(
    country_code=...,
    digit_map=...,
    ignore_as_emergency_route=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemCallTypeModifyMappingRequest",
    country_code=...,
    digit_map=...,
    ignore_as_emergency_route=...,
)

print(response)