Skip to content

GroupCommunicationBarringAuthorizationCodeGetRequest

Bases: OCIRequest

Request the group Communication Barring Authorization Code setting. The response is either a GroupCommunicationBarringAuthorizationCodeGetResponse or an ErrorResponse.

Attributes:

service_provider_id (str):

group_id (str):

code (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupCommunicationBarringAuthorizationCodeGetRequest(OCIRequest):
    """Request the group Communication Barring Authorization Code setting.
        The response is either a GroupCommunicationBarringAuthorizationCodeGetResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        group_id (str):

        code (str):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

    group_id: str = field(metadata={"alias": "groupId"})

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

Responses

Bases: OCIDataResponse

Response to GroupCommunicationBarringAuthorizationCodeGetRequest.

Attributes:

description (Optional[str]):

network_class_of_service (Optional[str]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupCommunicationBarringAuthorizationCodeGetResponse(OCIDataResponse):
    """Response to GroupCommunicationBarringAuthorizationCodeGetRequest.

    Attributes:

        description (Optional[str]):

        network_class_of_service (Optional[str]):

    """

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

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

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 GroupCommunicationBarringAuthorizationCodeGetRequest

client = Client()

command = GroupCommunicationBarringAuthorizationCodeGetRequest(
    service_provider_id=...,
    group_id=...,
    code=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("GroupCommunicationBarringAuthorizationCodeGetRequest",
    service_provider_id=...,
    group_id=...,
    code=...,
)

print(response)