Skip to content

SystemCommunicationBarringAlternateCallIndicatorAddRequest

Bases: OCIRequest

Add a Communication Barring Alternate Call Indicator. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

alternate_call_indicator (str):

network_server_alternate_call_indicator (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemCommunicationBarringAlternateCallIndicatorAddRequest(OCIRequest):
    """Add a Communication Barring Alternate Call Indicator.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        alternate_call_indicator (str):

        network_server_alternate_call_indicator (str):

    """

    alternate_call_indicator: str = field(metadata={"alias": "alternateCallIndicator"})

    network_server_alternate_call_indicator: str = field(
        metadata={"alias": "networkServerAlternateCallIndicator"}
    )

Responses

Bases: OCIResponse

Source code in src/mercury_ocip/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 SystemCommunicationBarringAlternateCallIndicatorAddRequest

client = Client()

command = SystemCommunicationBarringAlternateCallIndicatorAddRequest(
    alternate_call_indicator=...,
    network_server_alternate_call_indicator=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemCommunicationBarringAlternateCallIndicatorAddRequest",
    alternate_call_indicator=...,
    network_server_alternate_call_indicator=...,
)

print(response)