Skip to content

GroupAdminGetListRequest

Bases: OCIRequest

Get a list of group and department administrators within the group. The response is either a GroupAdminGetListResponse or an ErrorResponse.

Attributes:

service_provider_id (str):

group_id (str):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupAdminGetListRequest(OCIRequest):
    """Get a list of group and department administrators within the group.
        The response is either a GroupAdminGetListResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        group_id (str):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

    group_id: str = field(metadata={"alias": "groupId"})

Responses

Bases: OCIDataResponse

Response to GroupAdminGetListRequest. Contains a 7 column table with column headings "Administrator ID", "Last Name", "First Name", "Department", "Language", "Locale" and "Encoding".

The following columns are only returned in AS data mode:
  "Locale" and "Encoding"

Attributes:

group_admin_table (OCITable):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupAdminGetListResponse(OCIDataResponse):
    """Response to GroupAdminGetListRequest.
        Contains a 7 column table with column headings \"Administrator ID\",
        \"Last Name\", \"First Name\", \"Department\", \"Language\", \"Locale\" and \"Encoding\".

        The following columns are only returned in AS data mode:
          \"Locale\" and \"Encoding\"

    Attributes:

        group_admin_table (OCITable):

    """

    group_admin_table: OCITable = field(metadata={"alias": "groupAdminTable"})

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 GroupAdminGetListRequest

client = Client()

command = GroupAdminGetListRequest(
    service_provider_id=...,
    group_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("GroupAdminGetListRequest",
    service_provider_id=...,
    group_id=...,
)

print(response)