Skip to content

SystemSIPDiversionReasonGetRequest

Bases: OCIRequest

Request to get the list of SIP Diversion Cause values. The response is either a SystemSIPDiversionReasonGetResponse or ErrorResponse.

Attributes:

Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemSIPDiversionReasonGetRequest(OCIRequest):
    """Request to get the list of SIP Diversion Cause values.
        The response is either a SystemSIPDiversionReasonGetResponse or ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemSIPDiversionReasonGetRequest. Contains a table containing a list of diversion reasons and associated cause values. The column headings are: "Diversion Reaon", "Cause Value".

Attributes:

diversion_reason_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemSIPDiversionReasonGetResponse(OCIDataResponse):
    """Response to SystemSIPDiversionReasonGetRequest.
        Contains a table containing a list of diversion reasons and associated cause values.
        The column headings are: \"Diversion Reaon\", \"Cause Value\".

    Attributes:

        diversion_reason_table (OCITable):

    """

    diversion_reason_table: OCITable = field(metadata={"alias": "diversionReasonTable"})

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 SystemSIPDiversionReasonGetRequest

client = Client()

command = SystemSIPDiversionReasonGetRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemSIPDiversionReasonGetRequest")

print(response)