Skip to content

SystemResourcePriorityGetRequest

Bases: OCIRequest

Get the system Resource Priority service attributes. The response is either SystemResourcePriorityGetResponse or ErrorResponse.

Attributes:

Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemResourcePriorityGetRequest(OCIRequest):
    """Get the system Resource Priority service attributes.
        The response is either SystemResourcePriorityGetResponse or ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to the SystemResourcePriorityGetRequest. The response contains the system Resource Priority service attributes.

Attributes:

send_resource_priority_to_network (bool):

resource_priority (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class SystemResourcePriorityGetResponse(OCIDataResponse):
    """Response to the SystemResourcePriorityGetRequest.
        The response contains the system Resource Priority service attributes.

    Attributes:

        send_resource_priority_to_network (bool):

        resource_priority (str):

    """

    send_resource_priority_to_network: bool = field(
        metadata={"alias": "sendResourcePriorityToNetwork"}
    )

    resource_priority: str = field(metadata={"alias": "resourcePriority"})

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 SystemResourcePriorityGetRequest

client = Client()

command = SystemResourcePriorityGetRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("SystemResourcePriorityGetRequest")

print(response)