UserPersonalAssistantReorderCriteriaRequest
Bases: OCIRequest
Reorders only the Schedule Selective Criteria entries. Criteria entries received in the orderedCriteriaList element are set at the top of the ordered criteria list. Existing criteria not received in orderedCriteriaList are moved down to a lower priority. The response is either SuccessResponse or ErrorResponse.
Attributes:
user_id (str):
ordered_criteria_list (OrderedCriteriaList):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class UserPersonalAssistantReorderCriteriaRequest(OCIRequest):
"""Reorders only the Schedule Selective Criteria entries.
Criteria entries received in the orderedCriteriaList element are set at the top of the ordered criteria list.
Existing criteria not received in orderedCriteriaList are moved down to a lower priority.
The response is either SuccessResponse or ErrorResponse.
Attributes:
user_id (str):
ordered_criteria_list (OrderedCriteriaList):
"""
user_id: str = field(metadata={"alias": "userId"})
ordered_criteria_list: OrderedCriteriaList = field(
metadata={"alias": "orderedCriteriaList"}
)
|
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 UserPersonalAssistantReorderCriteriaRequest
client = Client()
command = UserPersonalAssistantReorderCriteriaRequest(
user_id=...,
ordered_criteria_list=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("UserPersonalAssistantReorderCriteriaRequest",
user_id=...,
ordered_criteria_list=...,
)
print(response)