Skip to content

GroupDepartmentAdminGetRequest22V2

Bases: OCIRequest

Get a group department administrators profile. The response is either a GroupDepartmentAdminGetResponse22V2 or an ErrorResponse.

Attributes:

user_id (str):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupDepartmentAdminGetRequest22V2(OCIRequest):
    """Get a group department administrators profile.
        The response is either a GroupDepartmentAdminGetResponse22V2 or an ErrorResponse.

    Attributes:

        user_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to the GroupDepartmentAdminGetRequest22V2. The response contains the group department administrators profile information.

The following elements are only used in AS data mode and ignored in XS data mode.
accountDisabled
lastAuthenticatedDate
hasPassword

Attributes:

department_key (GroupDepartmentKey):

department_full_path (str):

first_name (Optional[str]):

last_name (Optional[str]):

language (str):

account_disabled (bool):

last_authenticated_date (str):

has_password (bool):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupDepartmentAdminGetResponse22V2(OCIDataResponse):
    """Response to the GroupDepartmentAdminGetRequest22V2.
        The response contains the group department administrators profile information.

        The following elements are only used in AS data mode and ignored in XS data mode.
        accountDisabled
        lastAuthenticatedDate
        hasPassword

    Attributes:

        department_key (GroupDepartmentKey):

        department_full_path (str):

        first_name (Optional[str]):

        last_name (Optional[str]):

        language (str):

        account_disabled (bool):

        last_authenticated_date (str):

        has_password (bool):

    """

    department_key: GroupDepartmentKey = field(metadata={"alias": "departmentKey"})

    department_full_path: str = field(metadata={"alias": "departmentFullPath"})

    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"})

    has_password: bool = field(metadata={"alias": "hasPassword"})

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 GroupDepartmentAdminGetRequest22V2

client = Client()

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

print(response)