Skip to content

GroupAdminAlternateIdGetListRequest

Bases: OCIRequest

Request to get the admin id and the list of alternate admin ids of an admin. The response is either GroupAdminAlternateIdGetListResponse 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/commands/commands.py
@dataclass(kw_only=True)
class GroupAdminAlternateIdGetListRequest(OCIRequest):
    """Request to get the admin id and the list of alternate admin ids of an admin.
        The response is either GroupAdminAlternateIdGetListResponse 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 GroupAdminAlternateIdGetListRequest. 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/commands/commands.py
@dataclass(kw_only=True)
class GroupAdminAlternateIdGetListResponse(OCIDataResponse):
    """Response to GroupAdminAlternateIdGetListRequest.
        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/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 GroupAdminAlternateIdGetListRequest

client = Client()

command = GroupAdminAlternateIdGetListRequest(
    user_id=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("GroupAdminAlternateIdGetListRequest",
    user_id=...,
)

print(response)