Skip to content

ServiceProviderAdminGetRequest22V3

Bases: OCIRequest

Get a service provider administrators profile. The response is either a ServiceProviderAdminGetResponse22V3 or an ErrorResponse.

Attributes:

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

    Attributes:

        user_id (str):

    """

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

Responses

Bases: OCIDataResponse

Response to the ServiceProviderAdminGetRequest22V3. The response contains the service provider administrators profile information.

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

Attributes:

service_provider_id (str):

first_name (Optional[str]):

last_name (Optional[str]):

language (str):

administrator_type (str):

locale (str):

encoding (str):

account_disabled (bool):

last_authenticated_date (str):

has_password (bool):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class ServiceProviderAdminGetResponse22V3(OCIDataResponse):
    """Response to the ServiceProviderAdminGetRequest22V3.
        The response contains the service provider administrators profile information.

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

    Attributes:

        service_provider_id (str):

        first_name (Optional[str]):

        last_name (Optional[str]):

        language (str):

        administrator_type (str):

        locale (str):

        encoding (str):

        account_disabled (bool):

        last_authenticated_date (str):

        has_password (bool):

    """

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

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

    administrator_type: str = field(metadata={"alias": "administratorType"})

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

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

    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_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 ServiceProviderAdminGetRequest22V3

client = Client()

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

print(response)