Skip to content

SystemCrInterfaceGetRequest22

Bases: OCIRequest

Gets the system level attributes of the Cr Interface. The response is either a SystemCrInterfaceGetResponse or an ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemCrInterfaceGetRequest22(OCIRequest):
    """Gets the system level attributes of the Cr Interface.
        The response is either a SystemCrInterfaceGetResponse or an ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to the SystemCrInterfaceGetRequest22.

Attributes:

cr_audit_enabled (bool):

cr_audit_interval_milliseconds (int):

cr_audit_timeout_milliseconds (int):

cr_connection_enabled (bool):

cr_connection_timeout_milliseconds (int):

cr_tcp_connection_timeout_seconds (int):

cr_number_of_reconnection_attempts (int):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemCrInterfaceGetResponse22(OCIDataResponse):
    """Response to the SystemCrInterfaceGetRequest22.

    Attributes:

        cr_audit_enabled (bool):

        cr_audit_interval_milliseconds (int):

        cr_audit_timeout_milliseconds (int):

        cr_connection_enabled (bool):

        cr_connection_timeout_milliseconds (int):

        cr_tcp_connection_timeout_seconds (int):

        cr_number_of_reconnection_attempts (int):

    """

    cr_audit_enabled: bool = field(metadata={"alias": "crAuditEnabled"})

    cr_audit_interval_milliseconds: int = field(
        metadata={"alias": "crAuditIntervalMilliseconds"}
    )

    cr_audit_timeout_milliseconds: int = field(
        metadata={"alias": "crAuditTimeoutMilliseconds"}
    )

    cr_connection_enabled: bool = field(metadata={"alias": "crConnectionEnabled"})

    cr_connection_timeout_milliseconds: int = field(
        metadata={"alias": "crConnectionTimeoutMilliseconds"}
    )

    cr_tcp_connection_timeout_seconds: int = field(
        metadata={"alias": "crTcpConnectionTimeoutSeconds"}
    )

    cr_number_of_reconnection_attempts: int = field(
        metadata={"alias": "crNumberOfReconnectionAttempts"}
    )

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 SystemCrInterfaceGetRequest22

client = Client()

command = SystemCrInterfaceGetRequest22()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemCrInterfaceGetRequest22")

print(response)