SystemOfficeZoneGetZoneUsageListRequest
Bases: OCIRequest
Get the list of Office Zones that contain a specific Zone. The response is either a SystemOfficeZoneGetZoneUsageListResponse or an ErrorResponse.
Attributes:
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class SystemOfficeZoneGetZoneUsageListRequest(OCIRequest):
"""Get the list of Office Zones that contain a specific
Zone.
The response is either a SystemOfficeZoneGetZoneUsageListResponse
or an ErrorResponse.
Attributes:
zone_name (str):
"""
zone_name: str = field(metadata={"alias": "zoneName"})
|
Responses
Bases: OCIDataResponse
Response to the SystemOfficeZoneGetZoneUsageListRequest. The response contains a table of all Office Zones that contain the specific Zone. The column headings are "Name" and "Description"
Attributes:
office_zone_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class SystemOfficeZoneGetZoneUsageListResponse(OCIDataResponse):
"""Response to the SystemOfficeZoneGetZoneUsageListRequest.
The response contains a table of all Office Zones that
contain the specific Zone. The column headings
are \"Name\" and \"Description\"
Attributes:
office_zone_table (OCITable):
"""
office_zone_table: OCITable = field(metadata={"alias": "officeZoneTable"})
|
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 SystemOfficeZoneGetZoneUsageListRequest
client = Client()
command = SystemOfficeZoneGetZoneUsageListRequest(
zone_name=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("SystemOfficeZoneGetZoneUsageListRequest",
zone_name=...,
)
print(response)