Skip to content

SystemCommunicationBarringCriteriaAddRequest17

Bases: OCIRequest

Add a new Communication Barring Criteria. The following elements are only used in AS data mode: matchNumberPortabilityStatus

The response is either a SuccessResponse or an ErrorResponse.

Attributes:

name (str):

description (Optional[str]):

match_call_type (Optional[List[str]]):

match_alternate_call_indicator (Optional[List[str]]):

match_virtual_on_net_call_type (Optional[List[str]]):

match_public_network (bool):

match_private_network (bool):

match_local_category (bool):

match_national_category (bool):

match_interlata_category (bool):

match_intralata_category (bool):

match_international_category (bool):

match_private_category (bool):

match_emergency_category (bool):

match_other_category (bool):

match_inter_network (bool):

match_inter_hosting_ne (bool):

match_inter_as (bool):

match_intra_as (bool):

match_charge_calls (bool):

match_no_charge_calls (bool):

match_group_calls (bool):

match_enterprise_calls (bool):

match_network_calls (bool):

match_network_url_calls (bool):

match_repair_calls (bool):

match_emergency_calls (bool):

match_internal_calls (bool):

match_location (str):

match_roaming (str):

time_schedule (Optional[str]):

holiday_schedule (Optional[str]):

match_number_portability_status (Optional[List[str]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemCommunicationBarringCriteriaAddRequest17(OCIRequest):
    """Add a new Communication Barring Criteria.
        The following elements are only used in AS data mode:
          matchNumberPortabilityStatus

        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        name (str):

        description (Optional[str]):

        match_call_type (Optional[List[str]]):

        match_alternate_call_indicator (Optional[List[str]]):

        match_virtual_on_net_call_type (Optional[List[str]]):

        match_public_network (bool):

        match_private_network (bool):

        match_local_category (bool):

        match_national_category (bool):

        match_interlata_category (bool):

        match_intralata_category (bool):

        match_international_category (bool):

        match_private_category (bool):

        match_emergency_category (bool):

        match_other_category (bool):

        match_inter_network (bool):

        match_inter_hosting_ne (bool):

        match_inter_as (bool):

        match_intra_as (bool):

        match_charge_calls (bool):

        match_no_charge_calls (bool):

        match_group_calls (bool):

        match_enterprise_calls (bool):

        match_network_calls (bool):

        match_network_url_calls (bool):

        match_repair_calls (bool):

        match_emergency_calls (bool):

        match_internal_calls (bool):

        match_location (str):

        match_roaming (str):

        time_schedule (Optional[str]):

        holiday_schedule (Optional[str]):

        match_number_portability_status (Optional[List[str]]):

    """

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

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

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

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

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

    match_public_network: bool = field(metadata={"alias": "matchPublicNetwork"})

    match_private_network: bool = field(metadata={"alias": "matchPrivateNetwork"})

    match_local_category: bool = field(metadata={"alias": "matchLocalCategory"})

    match_national_category: bool = field(metadata={"alias": "matchNationalCategory"})

    match_interlata_category: bool = field(metadata={"alias": "matchInterlataCategory"})

    match_intralata_category: bool = field(metadata={"alias": "matchIntralataCategory"})

    match_international_category: bool = field(
        metadata={"alias": "matchInternationalCategory"}
    )

    match_private_category: bool = field(metadata={"alias": "matchPrivateCategory"})

    match_emergency_category: bool = field(metadata={"alias": "matchEmergencyCategory"})

    match_other_category: bool = field(metadata={"alias": "matchOtherCategory"})

    match_inter_network: bool = field(metadata={"alias": "matchInterNetwork"})

    match_inter_hosting_ne: bool = field(metadata={"alias": "matchInterHostingNE"})

    match_inter_as: bool = field(metadata={"alias": "matchInterAS"})

    match_intra_as: bool = field(metadata={"alias": "matchIntraAS"})

    match_charge_calls: bool = field(metadata={"alias": "matchChargeCalls"})

    match_no_charge_calls: bool = field(metadata={"alias": "matchNoChargeCalls"})

    match_group_calls: bool = field(metadata={"alias": "matchGroupCalls"})

    match_enterprise_calls: bool = field(metadata={"alias": "matchEnterpriseCalls"})

    match_network_calls: bool = field(metadata={"alias": "matchNetworkCalls"})

    match_network_url_calls: bool = field(metadata={"alias": "matchNetworkURLCalls"})

    match_repair_calls: bool = field(metadata={"alias": "matchRepairCalls"})

    match_emergency_calls: bool = field(metadata={"alias": "matchEmergencyCalls"})

    match_internal_calls: bool = field(metadata={"alias": "matchInternalCalls"})

    match_location: str = field(metadata={"alias": "matchLocation"})

    match_roaming: str = field(metadata={"alias": "matchRoaming"})

    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"}
    )

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 SystemCommunicationBarringCriteriaAddRequest17

client = Client()

command = SystemCommunicationBarringCriteriaAddRequest17(
    name=...,
    description=...,
    match_call_type=...,
    match_alternate_call_indicator=...,
    match_virtual_on_net_call_type=...,
    match_public_network=...,
    match_private_network=...,
    match_local_category=...,
    match_national_category=...,
    match_interlata_category=...,
    match_intralata_category=...,
    match_international_category=...,
    match_private_category=...,
    match_emergency_category=...,
    match_other_category=...,
    match_inter_network=...,
    match_inter_hosting_ne=...,
    match_inter_as=...,
    match_intra_as=...,
    match_charge_calls=...,
    match_no_charge_calls=...,
    match_group_calls=...,
    match_enterprise_calls=...,
    match_network_calls=...,
    match_network_url_calls=...,
    match_repair_calls=...,
    match_emergency_calls=...,
    match_internal_calls=...,
    match_location=...,
    match_roaming=...,
    time_schedule=...,
    holiday_schedule=...,
    match_number_portability_status=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemCommunicationBarringCriteriaAddRequest17",
    name=...,
    description=...,
    match_call_type=...,
    match_alternate_call_indicator=...,
    match_virtual_on_net_call_type=...,
    match_public_network=...,
    match_private_network=...,
    match_local_category=...,
    match_national_category=...,
    match_interlata_category=...,
    match_intralata_category=...,
    match_international_category=...,
    match_private_category=...,
    match_emergency_category=...,
    match_other_category=...,
    match_inter_network=...,
    match_inter_hosting_ne=...,
    match_inter_as=...,
    match_intra_as=...,
    match_charge_calls=...,
    match_no_charge_calls=...,
    match_group_calls=...,
    match_enterprise_calls=...,
    match_network_calls=...,
    match_network_url_calls=...,
    match_repair_calls=...,
    match_emergency_calls=...,
    match_internal_calls=...,
    match_location=...,
    match_roaming=...,
    time_schedule=...,
    holiday_schedule=...,
    match_number_portability_status=...,
)

print(response)