UserXsiPolicyProfileModifyRequest
Bases: OCIRequest
Modifies the default Xsi policy profile for a group. The response is either a SuccessResponse or an ErrorResponse.
Attributes:
user_id (str):
xsi_policy_profile (Optional[XsiPolicyProfileKey]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class UserXsiPolicyProfileModifyRequest(OCIRequest):
"""Modifies the default Xsi policy profile for a group.
The response is either a SuccessResponse or an ErrorResponse.
Attributes:
user_id (str):
xsi_policy_profile (Optional[XsiPolicyProfileKey]):
"""
user_id: str = field(metadata={"alias": "userId"})
xsi_policy_profile: Optional[XsiPolicyProfileKey] = field(
default=None, metadata={"alias": "xsiPolicyProfile"}
)
|
Responses
Bases: OCIResponseSource code in src/mercury_ocip_fast/commands/base_command.py
| class SuccessResponse(OCIResponse):
pass
|
Bases: OCIResponseSource 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 UserXsiPolicyProfileModifyRequest
client = Client()
command = UserXsiPolicyProfileModifyRequest(
user_id=...,
xsi_policy_profile=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("UserXsiPolicyProfileModifyRequest",
user_id=...,
xsi_policy_profile=...,
)
print(response)