Skip to content

ResellerAdminAlternateIdGetListRequest

Bases: OCIRequest

Request to get the admin id and the list of alternate admin ids of an admin. The response is either ResellerAdminAlternateIdGetListResponse or ErrorResponse. The "userId" can be either the admin user Id or an alternate admin user Id.

Attributes:

user_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ResellerAdminAlternateIdGetListRequest(OCIRequest):
    """Request to get the admin id and the list of alternate admin ids of an admin.
        The response is either ResellerAdminAlternateIdGetListResponse or ErrorResponse.
        The \"userId\" can be either the admin user Id or an alternate admin user Id.

    Attributes:

        user_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to ResellerAdminAlternateIdGetListRequest. Contains a table of the main admin user id and the alternate admin user ids, the column headings are: "User Id", "Description", "Alternate". The possible values for "Alternate" are "true" and "false". The "Description" is only present for alternate admin user Ids.

Attributes:

admin_user_id_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ResellerAdminAlternateIdGetListResponse(OCIDataResponse):
    """Response to ResellerAdminAlternateIdGetListRequest.
        Contains a table of the main admin user id and the alternate admin user ids, the column headings are: \"User Id\", \"Description\", \"Alternate\".
        The possible values for \"Alternate\" are \"true\" and \"false\".
        The \"Description\" is only present for alternate admin user Ids.

    Attributes:

        admin_user_id_table (OCITable):

    """

    admin_user_id_table: OCITable = field(metadata={"alias": "adminUserIdTable"})

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 ResellerAdminAlternateIdGetListRequest

client = Client()

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

print(response)