Skip to content

ServiceProviderTrunkGroupModifyRequest

Bases: OCIRequest

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

Attributes:

service_provider_id (str):

max_active_calls (Optional[UnboundedNonNegativeInt]):

bursting_max_active_calls (Optional[UnboundedNonNegativeInt]):

number_of_bursting_btl_us (Optional[UnboundedNonNegativeInt]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderTrunkGroupModifyRequest(OCIRequest):
    """Modify the maximum and bursting maximum permissible active Trunk Group calls for the service provider.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        max_active_calls (Optional[UnboundedNonNegativeInt]):

        bursting_max_active_calls (Optional[UnboundedNonNegativeInt]):

        number_of_bursting_btl_us (Optional[UnboundedNonNegativeInt]):

    """

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

    max_active_calls: Optional[UnboundedNonNegativeInt] = field(
        default=None, metadata={"alias": "maxActiveCalls"}
    )

    bursting_max_active_calls: Optional[UnboundedNonNegativeInt] = field(
        default=None, metadata={"alias": "burstingMaxActiveCalls"}
    )

    number_of_bursting_btl_us: Optional[UnboundedNonNegativeInt] = field(
        default=None, metadata={"alias": "numberOfBurstingBTLUs"}
    )

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 ServiceProviderTrunkGroupModifyRequest

client = Client()

command = ServiceProviderTrunkGroupModifyRequest(
    service_provider_id=...,
    max_active_calls=...,
    bursting_max_active_calls=...,
    number_of_bursting_btl_us=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ServiceProviderTrunkGroupModifyRequest",
    service_provider_id=...,
    max_active_calls=...,
    bursting_max_active_calls=...,
    number_of_bursting_btl_us=...,
)

print(response)