Skip to content

ResellerAdminGetRequest22V2

Bases: OCIRequest

Get a reseller administrators profile. The response is either a ResellerAdminGetResponse22V2 or an ErrorResponse.

Attributes:

user_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ResellerAdminGetRequest22V2(OCIRequest):
    """Get a reseller administrators profile.
        The response is either a ResellerAdminGetResponse22V2 or an ErrorResponse.

    Attributes:

        user_id (str):

    """

    user_id: str = field(metadata={"alias": "userId"})

Responses

Bases: OCIDataResponse

Response to the ResellerAdminGetRequest22V2. The response contains the reseller administrators profile information.

Attributes:

reseller_id (str):

first_name (Optional[str]):

last_name (Optional[str]):

language (str):

account_disabled (bool):

last_authenticated_date (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ResellerAdminGetResponse22V2(OCIDataResponse):
    """Response to the ResellerAdminGetRequest22V2.
        The response contains the reseller administrators profile information.

    Attributes:

        reseller_id (str):

        first_name (Optional[str]):

        last_name (Optional[str]):

        language (str):

        account_disabled (bool):

        last_authenticated_date (str):

    """

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

    first_name: Optional[str] = field(default=None, metadata={"alias": "firstName"})

    last_name: Optional[str] = field(default=None, metadata={"alias": "lastName"})

    language: str = field(metadata={"alias": "language"})

    account_disabled: bool = field(metadata={"alias": "accountDisabled"})

    last_authenticated_date: str = field(metadata={"alias": "lastAuthenticatedDate"})

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 ResellerAdminGetRequest22V2

client = Client()

command = ResellerAdminGetRequest22V2(
    user_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("ResellerAdminGetRequest22V2",
    user_id=...,
)

print(response)