Skip to content

SystemTimeZoneGetListRequest20

Bases: OCIRequest

Requests the configured time zone of the server processing the request and the list of time zone names. The response is either SystemTimeZoneGetListResponse20 or ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemTimeZoneGetListRequest20(OCIRequest):
    """Requests the configured time zone of the server processing the request and the list of time zone names.
        The response is either SystemTimeZoneGetListResponse20 or ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemTimeZoneGetListRequest20. Contains the configured time zone of the server processing the request and contains a 2 column table with column headings 'Key' and 'Display Name' and a row for each time zone.

Attributes:

server_time_zone (str):

time_zone_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemTimeZoneGetListResponse20(OCIDataResponse):
    """Response to SystemTimeZoneGetListRequest20.
        Contains the configured time zone of the server processing the request and
        contains a 2 column table with column headings 'Key' and 'Display Name' and a row
        for each time zone.

    Attributes:

        server_time_zone (str):

        time_zone_table (OCITable):

    """

    server_time_zone: str = field(metadata={"alias": "serverTimeZone"})

    time_zone_table: OCITable = field(metadata={"alias": "timeZoneTable"})

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 SystemTimeZoneGetListRequest20

client = Client()

command = SystemTimeZoneGetListRequest20()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemTimeZoneGetListRequest20")

print(response)