UserScheduleGetListRequest17sp1
Bases: OCIRequest
Get the list of schedules viewable by a User. The list can be filtered by schedule type. The response is either a UserScheduleGetListResponse17sp1 or an ErrorResponse. This command is authorized to user who is Executive-Assistant of the Executive.
Attributes:
user_id (str):
schedule_type (Optional[str]):
Source code in src/mercury_ocip/commands/commands.py
| @dataclass(kw_only=True)
class UserScheduleGetListRequest17sp1(OCIRequest):
"""Get the list of schedules viewable by a User. The list can be filtered by schedule type.
The response is either a UserScheduleGetListResponse17sp1 or an ErrorResponse.
This command is authorized to user who is Executive-Assistant of the Executive.
Attributes:
user_id (str):
schedule_type (Optional[str]):
"""
user_id: str = field(metadata={"alias": "userId"})
schedule_type: Optional[str] = field(
default=None, metadata={"alias": "scheduleType"}
)
|
Responses
Bases: OCIResponseSource 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 UserScheduleGetListRequest17sp1
client = Client()
command = UserScheduleGetListRequest17sp1(
user_id=...,
schedule_type=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("UserScheduleGetListRequest17sp1",
user_id=...,
schedule_type=...,
)
print(response)