UserScheduleModifyEventRequest
Bases: OCIRequest
Modify an event of a user schedule. The response is either a SuccessResponse or an ErrorResponse. The startDate element is adjusted to the first occurrence of the recurrent schedule that comes at or after the startDate. The endDate element is set to the sum of the adjusted starDate element value and the event duration.
Attributes:
user_id (str):
schedule_key (ScheduleKey):
event_name (str):
new_event_name (Optional[str]):
start_date (Optional[int]):
all_day_event (Optional[bool]):
start_time (Optional[HourMinute]):
end_time (Optional[HourMinute]):
end_date (Optional[int]):
recurrence (Optional[Nillable[Recurrence]]):
Source code in src/mercury_ocip/commands/commands.py
114129 114130 114131 114132 114133 114134 114135 114136 114137 114138 114139 114140 114141 114142 114143 114144 114145 114146 114147 114148 114149 114150 114151 114152 114153 114154 114155 114156 114157 114158 114159 114160 114161 114162 114163 114164 114165 114166 114167 114168 114169 114170 114171 114172 114173 114174 114175 114176 114177 114178 114179 114180 114181 114182 114183 114184 114185 114186 114187 114188 114189 114190 114191 114192 114193 | |
Responses
Example Usage
from mercury_ocip.client import Client
from mercury_ocip.commands import UserScheduleModifyEventRequest
client = Client()
command = UserScheduleModifyEventRequest(
user_id=...,
schedule_key=...,
event_name=...,
new_event_name=...,
start_date=...,
all_day_event=...,
start_time=...,
end_time=...,
end_date=...,
recurrence=...,
)
response = client.command(command)
print(response)
Example 2 with Raw Command
from mercury_ocip.client import Client
client = Client()
response = client.raw_command("UserScheduleModifyEventRequest",
user_id=...,
schedule_key=...,
event_name=...,
new_event_name=...,
start_date=...,
all_day_event=...,
start_time=...,
end_time=...,
end_date=...,
recurrence=...,
)
print(response)