Skip to content

ServiceProviderTrunkGroupGetRequest23

Bases: OCIRequest

Get the maximum and bursting maximum permissible active Trunk Group calls for the service provider. The response is either a ServiceProviderTrunkGroupGetResponse23 or an ErrorResponse.

Attributes:

service_provider_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderTrunkGroupGetRequest23(OCIRequest):
    """Get the maximum and bursting maximum permissible active Trunk Group calls for the service provider.
        The response is either a ServiceProviderTrunkGroupGetResponse23 or an ErrorResponse.

    Attributes:

        service_provider_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to the ServiceProviderTrunkGroupGetRequest23. The response contains the maximum and bursting maximum permissible active trunk group calls for the service provider.

Attributes:

max_active_calls (UnboundedNonNegativeInt):

bursting_max_active_calls (UnboundedNonNegativeInt):

number_of_bursting_btl_us (UnboundedNonNegativeInt):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderTrunkGroupGetResponse23(OCIDataResponse):
    """Response to the ServiceProviderTrunkGroupGetRequest23.
        The response contains the maximum and bursting maximum permissible active trunk group calls for the service provider.

    Attributes:

        max_active_calls (UnboundedNonNegativeInt):

        bursting_max_active_calls (UnboundedNonNegativeInt):

        number_of_bursting_btl_us (UnboundedNonNegativeInt):

    """

    max_active_calls: UnboundedNonNegativeInt = field(
        metadata={"alias": "maxActiveCalls"}
    )

    bursting_max_active_calls: UnboundedNonNegativeInt = field(
        metadata={"alias": "burstingMaxActiveCalls"}
    )

    number_of_bursting_btl_us: UnboundedNonNegativeInt = field(
        metadata={"alias": "numberOfBurstingBTLUs"}
    )

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 ServiceProviderTrunkGroupGetRequest23

client = Client()

command = ServiceProviderTrunkGroupGetRequest23(
    service_provider_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ServiceProviderTrunkGroupGetRequest23",
    service_provider_id=...,
)

print(response)