Skip to content

UserAuthenticationModifyRequest

Bases: OCIRequest

Modify the user's authentication service information. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

user_id (str):

user_name (Optional[str]):

new_password (Optional[str]):

password (Optional[object]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class UserAuthenticationModifyRequest(OCIRequest):
    """Modify the user's authentication service information.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        user_id (str):

        user_name (Optional[str]):

        new_password (Optional[str]):

        password (Optional[object]):

    """

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

    user_name: Optional[str] = field(default=None, metadata={"alias": "userName"})

    new_password: Optional[str] = field(default=None, metadata={"alias": "newPassword"})

    password: Optional[object] = field(default=None, metadata={"alias": "password"})

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

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 UserAuthenticationModifyRequest

client = Client()

command = UserAuthenticationModifyRequest(
    user_id=...,
    user_name=...,
    new_password=...,
    password=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("UserAuthenticationModifyRequest",
    user_id=...,
    user_name=...,
    new_password=...,
    password=...,
)

print(response)