Skip to content

SystemZoneCallingZonePhysicalLocationGetRequest

Bases: OCIRequest

Returns a zone calling physical location for a given zone. Response is SystemZoneCallingZonePhysicalLocationGetResponse or an ErrorResponse.

Attributes:

zone_name (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemZoneCallingZonePhysicalLocationGetRequest(OCIRequest):
    """Returns a zone calling physical location for a given zone.
             Response is SystemZoneCallingZonePhysicalLocationGetResponse or an ErrorResponse.

    Attributes:

        zone_name (str):

    """

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

Responses

Bases: OCIDataResponse

Response to SystemZoneCallingZonePhysicalLocationGetRequest.

Attributes:

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

    Attributes:

        physical_location (Optional[str]):

    """

    physical_location: Optional[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 SystemZoneCallingZonePhysicalLocationGetRequest

client = Client()

command = SystemZoneCallingZonePhysicalLocationGetRequest(
    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("SystemZoneCallingZonePhysicalLocationGetRequest",
    zone_name=...,
)

print(response)