SystemBroadWorksMobilityGeographicalPoolPrefixGetListRequest
Bases: OCIRequest
Gets a list of geographical prefixes belonging to a geographical pool. The response is either SystemBroadWorksMobilityGeographicalPoolPrefixGetListResponse or ErrorResponse.
Attributes:
geographical_pool_name (str):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class SystemBroadWorksMobilityGeographicalPoolPrefixGetListRequest(OCIRequest):
"""Gets a list of geographical prefixes belonging to a geographical pool.
The response is either SystemBroadWorksMobilityGeographicalPoolPrefixGetListResponse or ErrorResponse.
Attributes:
geographical_pool_name (str):
"""
geographical_pool_name: str = field(metadata={"alias": "geographicalPoolName"})
|
Responses
Bases: OCIDataResponse
Response to the SystemBroadWorksMobilityGetGeographicalPoolPrefixListRequest.
Attributes:
country_code (str):
prefix (Optional[List[str]]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class SystemBroadWorksMobilityGeographicalPoolPrefixGetListResponse(OCIDataResponse):
"""Response to the SystemBroadWorksMobilityGetGeographicalPoolPrefixListRequest.
Attributes:
country_code (str):
prefix (Optional[List[str]]):
"""
country_code: str = field(metadata={"alias": "countryCode"})
prefix: Optional[List[str]] = field(default=None, metadata={"alias": "prefix"})
|
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 SystemBroadWorksMobilityGeographicalPoolPrefixGetListRequest
client = Client()
command = SystemBroadWorksMobilityGeographicalPoolPrefixGetListRequest(
geographical_pool_name=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("SystemBroadWorksMobilityGeographicalPoolPrefixGetListRequest",
geographical_pool_name=...,
)
print(response)