GroupScheduleGetEventRequest
Bases: OCIRequest
Get an event from a group schedule. The response is either a GroupScheduleGetEventResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
schedule_key (ScheduleKey):
event_name (str):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class GroupScheduleGetEventRequest(OCIRequest):
"""Get an event from a group schedule.
The response is either a GroupScheduleGetEventResponse or an ErrorResponse.
Attributes:
service_provider_id (str):
group_id (str):
schedule_key (ScheduleKey):
event_name (str):
"""
service_provider_id: str = field(metadata={"alias": "serviceProviderId"})
group_id: str = field(metadata={"alias": "groupId"})
schedule_key: ScheduleKey = field(metadata={"alias": "scheduleKey"})
event_name: str = field(metadata={"alias": "eventName"})
|
Responses
Bases: OCIDataResponse
Response to GroupScheduleGetEventRequest. The response contains the event of the group schedule.
Attributes:
start_date (int):
all_day_event (Optional[bool]):
start_time (Optional[HourMinute]):
end_time (Optional[HourMinute]):
end_date (int):
recurrence (Optional[Recurrence]):
Source code in src/mercury_ocip_fast/commands/commands.py
| @dataclass(kw_only=True)
class GroupScheduleGetEventResponse(OCIDataResponse):
"""Response to GroupScheduleGetEventRequest.
The response contains the event of the group schedule.
Attributes:
start_date (int):
all_day_event (Optional[bool]):
start_time (Optional[HourMinute]):
end_time (Optional[HourMinute]):
end_date (int):
recurrence (Optional[Recurrence]):
"""
start_date: int = field(metadata={"alias": "startDate"})
all_day_event: Optional[bool] = field(
default=None, metadata={"alias": "allDayEvent"}
)
start_time: Optional[HourMinute] = field(
default=None, metadata={"alias": "startTime"}
)
end_time: Optional[HourMinute] = field(default=None, metadata={"alias": "endTime"})
end_date: int = field(metadata={"alias": "endDate"})
recurrence: Optional[Recurrence] = field(
default=None, metadata={"alias": "recurrence"}
)
|
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 GroupScheduleGetEventRequest
client = Client()
command = GroupScheduleGetEventRequest(
service_provider_id=...,
group_id=...,
schedule_key=...,
event_name=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip_fast.client import Client
client = Client()
response = client.raw_command("GroupScheduleGetEventRequest",
service_provider_id=...,
group_id=...,
schedule_key=...,
event_name=...,
)
print(response)