Skip to content

SystemClientSessionParametersGetRequest

Bases: OCIRequest

Request to get the list of Client Session (web and CLI) system parameters. The response is either SystemClientSessionParametersGetResponse or ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemClientSessionParametersGetRequest(OCIRequest):
    """Request to get the list of Client Session (web and CLI) system parameters.
        The response is either SystemClientSessionParametersGetResponse or ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemClientSessionParametersGetRequest. Contains a list of system Client Session (web and CLI) parameters.

Attributes:

enable_inactivity_timeout (bool):

inactivity_timeout_minutes (int):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemClientSessionParametersGetResponse(OCIDataResponse):
    """Response to SystemClientSessionParametersGetRequest.
        Contains a list of system Client Session (web and CLI) parameters.

    Attributes:

        enable_inactivity_timeout (bool):

        inactivity_timeout_minutes (int):

    """

    enable_inactivity_timeout: bool = field(
        metadata={"alias": "enableInactivityTimeout"}
    )

    inactivity_timeout_minutes: int = field(
        metadata={"alias": "inactivityTimeoutMinutes"}
    )

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 SystemClientSessionParametersGetRequest

client = Client()

command = SystemClientSessionParametersGetRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemClientSessionParametersGetRequest")

print(response)