ServiceProviderScheduleGetEventDetailListRequest
Bases: OCIRequest
Get the list of events of a service provider schedule. The response is either a ServiceProviderScheduleGetEventDetailListResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
schedule_key (ScheduleKey):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderScheduleGetEventDetailListRequest(OCIRequest):
"""Get the list of events of a service provider schedule.
The response is either a ServiceProviderScheduleGetEventDetailListResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
schedule_key (ScheduleKey):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
schedule_key: ScheduleKey = field(metadata={"alias": "scheduleKey"})
|
Responses
Bases: OCIDataResponse
Response to ServiceProviderScheduleGetEventDetailListRequest. The response contains a list of ScheduleEvents. If the scheduleKey doesn't refer to an existing schedule on the AS, then the response will be empty.
Attributes:
schedule_events_list (Optional[List[ScheduleEvents]]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class ServiceProviderScheduleGetEventDetailListResponse(OCIDataResponse):
"""Response to ServiceProviderScheduleGetEventDetailListRequest.
The response contains a list of ScheduleEvents.
If the scheduleKey doesn't refer to an existing schedule on the AS, then the response will be empty.
Attributes:
schedule_events_list (Optional[List[ScheduleEvents]]):
"""
schedule_events_list: Optional[List[ScheduleEvents]] = field(
default=None, metadata={"alias": "scheduleEventsList"}
)
|
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 ServiceProviderScheduleGetEventDetailListRequest
client = Client()
command = ServiceProviderScheduleGetEventDetailListRequest(
service_provider_id=...,
schedule_key=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("ServiceProviderScheduleGetEventDetailListRequest",
service_provider_id=...,
schedule_key=...,
)
print(response)