Skip to content

SystemZoneLocationBasedPhysicalLocationGetListRequest

Bases: OCIRequest

Gets a list of physical locations assigned to a zone. Response is SystemZoneLocationBasedPhysicalLocationGetListResponse or an ErrorResponse.

Attributes:

zone_name (str):

response_size_limit (Optional[int]):

search_criteria_physical_location (Optional[List[SearchCriteriaPhysicalLocation]]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemZoneLocationBasedPhysicalLocationGetListRequest(OCIRequest):
    """Gets a list of physical locations assigned to a zone.
        Response is SystemZoneLocationBasedPhysicalLocationGetListResponse or an ErrorResponse.

    Attributes:

        zone_name (str):

        response_size_limit (Optional[int]):

        search_criteria_physical_location (Optional[List[SearchCriteriaPhysicalLocation]]):

    """

    zone_name: str = field(metadata={"alias": "zoneName"})

    response_size_limit: Optional[int] = field(
        default=None, metadata={"alias": "responseSizeLimit"}
    )

    search_criteria_physical_location: Optional[
        List[SearchCriteriaPhysicalLocation]
    ] = field(default=None, metadata={"alias": "searchCriteriaPhysicalLocation"})

Responses

Bases: OCIDataResponse

Response to SystemZoneLocationBasedPhysicalLocationGetListRequest.

Attributes:

physical_location (Optional[List[str]]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemZoneLocationBasedPhysicalLocationGetListResponse(OCIDataResponse):
    """Response to SystemZoneLocationBasedPhysicalLocationGetListRequest.

    Attributes:

        physical_location (Optional[List[str]]):

    """

    physical_location: Optional[List[str]] = field(
        default=None, metadata={"alias": "physicalLocation"}
    )

Bases: OCIResponse

Source 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 SystemZoneLocationBasedPhysicalLocationGetListRequest

client = Client()

command = SystemZoneLocationBasedPhysicalLocationGetListRequest(
    zone_name=...,
    response_size_limit=...,
    search_criteria_physical_location=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemZoneLocationBasedPhysicalLocationGetListRequest",
    zone_name=...,
    response_size_limit=...,
    search_criteria_physical_location=...,
)

print(response)