Skip to content

SystemCommunicationBarringIncomingCriteriaAddRequest22

Bases: OCIRequest

Add a new Communication Barring Incoming Criteria. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

name (str):

description (Optional[str]):

time_schedule (Optional[str]):

holiday_schedule (Optional[str]):

match_number_portability_status (Optional[List[str]]):

call_tagged_as_spam (bool):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemCommunicationBarringIncomingCriteriaAddRequest22(OCIRequest):
    """Add a new Communication Barring Incoming Criteria.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        name (str):

        description (Optional[str]):

        time_schedule (Optional[str]):

        holiday_schedule (Optional[str]):

        match_number_portability_status (Optional[List[str]]):

        call_tagged_as_spam (bool):

    """

    name: str = field(metadata={"alias": "name"})

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

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

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

    match_number_portability_status: Optional[List[str]] = field(
        default=None, metadata={"alias": "matchNumberPortabilityStatus"}
    )

    call_tagged_as_spam: bool = field(metadata={"alias": "callTaggedAsSpam"})

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 SystemCommunicationBarringIncomingCriteriaAddRequest22

client = Client()

command = SystemCommunicationBarringIncomingCriteriaAddRequest22(
    name=...,
    description=...,
    time_schedule=...,
    holiday_schedule=...,
    match_number_portability_status=...,
    call_tagged_as_spam=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemCommunicationBarringIncomingCriteriaAddRequest22",
    name=...,
    description=...,
    time_schedule=...,
    holiday_schedule=...,
    match_number_portability_status=...,
    call_tagged_as_spam=...,
)

print(response)