Skip to content

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/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: OCIResponse

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

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 UserPersonalAssistantReorderCriteriaRequest

client = Client()

command = UserPersonalAssistantReorderCriteriaRequest(
    user_id=...,
    ordered_criteria_list=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("UserPersonalAssistantReorderCriteriaRequest",
    user_id=...,
    ordered_criteria_list=...,
)

print(response)