Skip to content

SystemPhysicalLocationGetRequest

Bases: OCIRequest

Request to get the list of Physical Location system parameters. The response is either SystemPhysicalLocationGetResponse or ErrorResponse.

Attributes:

Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemPhysicalLocationGetRequest(OCIRequest):
    """Request to get the list of Physical Location system parameters.
        The response is either SystemPhysicalLocationGetResponse or ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemPhysicalLocationGetRequest. Contains a list of system Physical Location parameters.

Attributes:

always_allow_emergency_calls (bool):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemPhysicalLocationGetResponse(OCIDataResponse):
    """Response to SystemPhysicalLocationGetRequest.
        Contains a list of system Physical Location parameters.

    Attributes:

        always_allow_emergency_calls (bool):

    """

    always_allow_emergency_calls: bool = field(
        metadata={"alias": "alwaysAllowEmergencyCalls"}
    )

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 SystemPhysicalLocationGetRequest

client = Client()

command = SystemPhysicalLocationGetRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemPhysicalLocationGetRequest")

print(response)