ServiceProviderRouteListEnterpriseTrunkNumberPrefixActivateListRequest
Bases: OCIRequest
Activate number prefixes in a service provider. It is not an error to activate an already activated number prefix. The command fails if executed when system level enterprise trunk number prefix activation is disabled. The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
number_prefix (List[str]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderRouteListEnterpriseTrunkNumberPrefixActivateListRequest(
OCIRequest
):
"""Activate number prefixes in a service provider.
It is not an error to activate an already activated number prefix.
The command fails if executed when system level enterprise trunk number prefix activation is disabled.
The response is either SuccessResponse or ErrorResponse.
Attributes:
service_provider_id (str):
number_prefix (List[str]):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
number_prefix: List[str] = field(metadata={"alias": "numberPrefix"})
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource 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 ServiceProviderRouteListEnterpriseTrunkNumberPrefixActivateListRequest
client = Client()
command = ServiceProviderRouteListEnterpriseTrunkNumberPrefixActivateListRequest(
service_provider_id=...,
number_prefix=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("ServiceProviderRouteListEnterpriseTrunkNumberPrefixActivateListRequest",
service_provider_id=...,
number_prefix=...,
)
print(response)