Skip to content

ResellerResourcePriorityGetRequest

Bases: OCIRequest

Get the Resource Priority service attributes for the reseller. The response is either ResellerResourcePriorityGetResponse or ErrorResponse.

Attributes:

reseller_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ResellerResourcePriorityGetRequest(OCIRequest):
    """Get the Resource Priority service attributes for the reseller.
        The response is either ResellerResourcePriorityGetResponse or ErrorResponse.

    Attributes:

        reseller_id (str):

    """

    reseller_id: str = field(metadata={"alias": "resellerId"})

Responses

Bases: OCIDataResponse

Response to the ResellerResourcePriorityGetRequest. The response contains the reseller Resource Priority service attributes. If useSystemSettings is true, the parameters sendResourcePriorityToNetwork and resourcePriority will not be returned in the response.

Attributes:

use_system_settings (bool):

send_resource_priority_to_network (bool):

resource_priority (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ResellerResourcePriorityGetResponse(OCIDataResponse):
    """Response to the ResellerResourcePriorityGetRequest.
        The response contains the reseller Resource Priority service attributes.
        If useSystemSettings is true, the parameters sendResourcePriorityToNetwork and
        resourcePriority will not be returned in the response.

    Attributes:

        use_system_settings (bool):

        send_resource_priority_to_network (bool):

        resource_priority (str):

    """

    use_system_settings: bool = field(metadata={"alias": "useSystemSettings"})

    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 ResellerResourcePriorityGetRequest

client = Client()

command = ResellerResourcePriorityGetRequest(
    reseller_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("ResellerResourcePriorityGetRequest",
    reseller_id=...,
)

print(response)