Skip to content

SystemOfficeZoneGetZoneUsageListRequest

Bases: 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):
Source code in src/mercury_ocip_fast/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_fast/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: 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 SystemOfficeZoneGetZoneUsageListRequest

client = Client()

command = SystemOfficeZoneGetZoneUsageListRequest(
    zone_name=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemOfficeZoneGetZoneUsageListRequest",
    zone_name=...,
)

print(response)