incident_io_api 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1241) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +7 -0
  3. data/README.md +177 -0
  4. data/lib/incident_io/api/actions_v1_api.rb +157 -0
  5. data/lib/incident_io/api/actions_v2_api.rb +368 -0
  6. data/lib/incident_io/api/actions_v3_api.rb +373 -0
  7. data/lib/incident_io/api/alert_attributes_v2_api.rb +347 -0
  8. data/lib/incident_io/api/alert_events_v2_api.rb +105 -0
  9. data/lib/incident_io/api/alert_notes_v1_api.rb +367 -0
  10. data/lib/incident_io/api/alert_routes_v2_api.rb +365 -0
  11. data/lib/incident_io/api/alert_routes_v3_api.rb +361 -0
  12. data/lib/incident_io/api/alert_sources_v2_api.rb +415 -0
  13. data/lib/incident_io/api/alerts_v2_api.rb +772 -0
  14. data/lib/incident_io/api/announcement_rules_v2_api.rb +361 -0
  15. data/lib/incident_io/api/announcement_templates_v2_api.rb +347 -0
  16. data/lib/incident_io/api/api_keys_v1_api.rb +435 -0
  17. data/lib/incident_io/api/call_routes_v2_api.rb +940 -0
  18. data/lib/incident_io/api/call_sessions_v2_api.rb +100 -0
  19. data/lib/incident_io/api/call_transcript_entries_v2_api.rb +100 -0
  20. data/lib/incident_io/api/catalog_v2_api.rb +860 -0
  21. data/lib/incident_io/api/catalog_v3_api.rb +902 -0
  22. data/lib/incident_io/api/custom_field_options_v1_api.rb +368 -0
  23. data/lib/incident_io/api/custom_fields_v1_api.rb +362 -0
  24. data/lib/incident_io/api/custom_fields_v2_api.rb +347 -0
  25. data/lib/incident_io/api/escalation_path_templates_v2_api.rb +369 -0
  26. data/lib/incident_io/api/escalations_v2_api.rb +869 -0
  27. data/lib/incident_io/api/follow_ups_v2_api.rb +448 -0
  28. data/lib/incident_io/api/follow_ups_v3_api.rb +518 -0
  29. data/lib/incident_io/api/heartbeat_v2_api.rb +160 -0
  30. data/lib/incident_io/api/incident_activity_log_entries_v2_api.rb +107 -0
  31. data/lib/incident_io/api/incident_attachments_v1_api.rb +219 -0
  32. data/lib/incident_io/api/incident_memberships_v1_api.rb +158 -0
  33. data/lib/incident_io/api/incident_participant_workloads_v2_api.rb +86 -0
  34. data/lib/incident_io/api/incident_participants_v2_api.rb +86 -0
  35. data/lib/incident_io/api/incident_relationships_v1_api.rb +100 -0
  36. data/lib/incident_io/api/incident_roles_v1_api.rb +362 -0
  37. data/lib/incident_io/api/incident_roles_v2_api.rb +347 -0
  38. data/lib/incident_io/api/incident_statuses_v1_api.rb +347 -0
  39. data/lib/incident_io/api/incident_templates_v1_api.rb +429 -0
  40. data/lib/incident_io/api/incident_timeline_items_v2_api.rb +242 -0
  41. data/lib/incident_io/api/incident_timestamps_v2_api.rb +142 -0
  42. data/lib/incident_io/api/incident_types_v1_api.rb +142 -0
  43. data/lib/incident_io/api/incident_updates_v2_api.rb +164 -0
  44. data/lib/incident_io/api/incidents_v1_api.rb +236 -0
  45. data/lib/incident_io/api/incidents_v2_api.rb +405 -0
  46. data/lib/incident_io/api/ip_allowlists_v1_api.rb +147 -0
  47. data/lib/incident_io/api/maintenance_windows_v1_api.rb +367 -0
  48. data/lib/incident_io/api/pay_configs_v2_api.rb +1071 -0
  49. data/lib/incident_io/api/pay_reports_v2_api.rb +498 -0
  50. data/lib/incident_io/api/policies_v2_api.rb +364 -0
  51. data/lib/incident_io/api/policy_findings_v2_api.rb +296 -0
  52. data/lib/incident_io/api/postmortem_documents_v1_api.rb +367 -0
  53. data/lib/incident_io/api/schedule_sync_targets_v2_api.rb +361 -0
  54. data/lib/incident_io/api/schedules_v2_api.rb +1501 -0
  55. data/lib/incident_io/api/secrets_v2_api.rb +438 -0
  56. data/lib/incident_io/api/severities_v1_api.rb +347 -0
  57. data/lib/incident_io/api/status_pages_v1_api.rb +91 -0
  58. data/lib/incident_io/api/status_pages_v2_api.rb +1102 -0
  59. data/lib/incident_io/api/teams_v3_api.rb +156 -0
  60. data/lib/incident_io/api/telemetry_v2_api.rb +96 -0
  61. data/lib/incident_io/api/users_v2_api.rb +428 -0
  62. data/lib/incident_io/api/utilities_v1_api.rb +193 -0
  63. data/lib/incident_io/api/workflow_runs_v2_api.rb +165 -0
  64. data/lib/incident_io/api/workflows_v2_api.rb +350 -0
  65. data/lib/incident_io/api_client.rb +441 -0
  66. data/lib/incident_io/api_error.rb +58 -0
  67. data/lib/incident_io/api_model_base.rb +88 -0
  68. data/lib/incident_io/configuration.rb +392 -0
  69. data/lib/incident_io/deprecation.rb +31 -0
  70. data/lib/incident_io/errors.rb +101 -0
  71. data/lib/incident_io/models/action_v1.rb +338 -0
  72. data/lib/incident_io/models/action_v2.rb +345 -0
  73. data/lib/incident_io/models/action_v3.rb +345 -0
  74. data/lib/incident_io/models/actions_create_payload_v2.rb +202 -0
  75. data/lib/incident_io/models/actions_create_payload_v3.rb +202 -0
  76. data/lib/incident_io/models/actions_create_result_v2.rb +164 -0
  77. data/lib/incident_io/models/actions_create_result_v3.rb +164 -0
  78. data/lib/incident_io/models/actions_list_result_v1.rb +166 -0
  79. data/lib/incident_io/models/actions_list_result_v2.rb +166 -0
  80. data/lib/incident_io/models/actions_list_result_v3.rb +192 -0
  81. data/lib/incident_io/models/actions_show_result_v1.rb +164 -0
  82. data/lib/incident_io/models/actions_show_result_v2.rb +164 -0
  83. data/lib/incident_io/models/actions_show_result_v3.rb +164 -0
  84. data/lib/incident_io/models/actions_update_payload_v2.rb +202 -0
  85. data/lib/incident_io/models/actions_update_payload_v3.rb +202 -0
  86. data/lib/incident_io/models/actions_update_result_v2.rb +164 -0
  87. data/lib/incident_io/models/actions_update_result_v3.rb +164 -0
  88. data/lib/incident_io/models/activity_action_ref_v2.rb +174 -0
  89. data/lib/incident_io/models/activity_action_updated_v2.rb +212 -0
  90. data/lib/incident_io/models/activity_alert_ref_v2.rb +174 -0
  91. data/lib/incident_io/models/activity_custom_field_value_update_v2.rb +200 -0
  92. data/lib/incident_io/models/activity_escalation_acknowledged_v2.rb +174 -0
  93. data/lib/incident_io/models/activity_escalation_created_v2.rb +196 -0
  94. data/lib/incident_io/models/activity_follow_up_ref_v2.rb +174 -0
  95. data/lib/incident_io/models/activity_follow_up_updated_v2.rb +232 -0
  96. data/lib/incident_io/models/activity_incident_merged_v2.rb +166 -0
  97. data/lib/incident_io/models/activity_incident_rename_v2.rb +201 -0
  98. data/lib/incident_io/models/activity_incident_timestamp_set_v2.rb +210 -0
  99. data/lib/incident_io/models/activity_incident_type_changed_v2.rb +165 -0
  100. data/lib/incident_io/models/activity_incident_update_v2.rb +230 -0
  101. data/lib/incident_io/models/activity_incident_visibility_changed_v2.rb +201 -0
  102. data/lib/incident_io/models/activity_role_update_v2.rb +174 -0
  103. data/lib/incident_io/models/activity_status_change_v2.rb +165 -0
  104. data/lib/incident_io/models/activity_summary_update_v2.rb +167 -0
  105. data/lib/incident_io/models/activity_workflow_ran_v2.rb +184 -0
  106. data/lib/incident_io/models/actor_v1.rb +156 -0
  107. data/lib/incident_io/models/actor_v2.rb +174 -0
  108. data/lib/incident_io/models/after_pagination_meta_result_v2.rb +192 -0
  109. data/lib/incident_io/models/alert_actor_v2.rb +192 -0
  110. data/lib/incident_io/models/alert_attribute_catalog_entry_v2.rb +219 -0
  111. data/lib/incident_io/models/alert_attribute_entry_v2.rb +185 -0
  112. data/lib/incident_io/models/alert_attribute_v2.rb +283 -0
  113. data/lib/incident_io/models/alert_attribute_value_v2.rb +167 -0
  114. data/lib/incident_io/models/alert_attributes_create_payload_v2.rb +239 -0
  115. data/lib/incident_io/models/alert_attributes_create_result_v2.rb +164 -0
  116. data/lib/incident_io/models/alert_attributes_list_result_v2.rb +166 -0
  117. data/lib/incident_io/models/alert_attributes_show_result_v2.rb +164 -0
  118. data/lib/incident_io/models/alert_attributes_update_payload_v2.rb +239 -0
  119. data/lib/incident_io/models/alert_attributes_update_result_v2.rb +164 -0
  120. data/lib/incident_io/models/alert_events_create_http_payload_v2.rb +234 -0
  121. data/lib/incident_io/models/alert_events_create_http_result_v2.rb +219 -0
  122. data/lib/incident_io/models/alert_grouping_config_v3.rb +164 -0
  123. data/lib/incident_io/models/alert_message_config_payload_v3.rb +176 -0
  124. data/lib/incident_io/models/alert_message_config_v3.rb +176 -0
  125. data/lib/incident_io/models/alert_message_destination_payload_v3.rb +185 -0
  126. data/lib/incident_io/models/alert_message_destination_v3.rb +185 -0
  127. data/lib/incident_io/models/alert_note_v1.rb +331 -0
  128. data/lib/incident_io/models/alert_notes_create_payload_v1.rb +185 -0
  129. data/lib/incident_io/models/alert_notes_create_result_v1.rb +164 -0
  130. data/lib/incident_io/models/alert_notes_list_result_v1.rb +192 -0
  131. data/lib/incident_io/models/alert_notes_show_result_v1.rb +164 -0
  132. data/lib/incident_io/models/alert_notes_update_payload_v1.rb +165 -0
  133. data/lib/incident_io/models/alert_notes_update_result_v1.rb +164 -0
  134. data/lib/incident_io/models/alert_route_alert_source_payload_v2.rb +194 -0
  135. data/lib/incident_io/models/alert_route_alert_source_payload_v3.rb +194 -0
  136. data/lib/incident_io/models/alert_route_alert_source_v2.rb +194 -0
  137. data/lib/incident_io/models/alert_route_alert_source_v3.rb +194 -0
  138. data/lib/incident_io/models/alert_route_auto_generated_template_binding_payload_v2.rb +157 -0
  139. data/lib/incident_io/models/alert_route_auto_generated_template_binding_payload_v3.rb +157 -0
  140. data/lib/incident_io/models/alert_route_auto_generated_template_binding_v2.rb +174 -0
  141. data/lib/incident_io/models/alert_route_auto_generated_template_binding_v3.rb +174 -0
  142. data/lib/incident_io/models/alert_route_channel_config_payload_v2.rb +185 -0
  143. data/lib/incident_io/models/alert_route_channel_config_v2.rb +185 -0
  144. data/lib/incident_io/models/alert_route_channel_target_payload_v2.rb +191 -0
  145. data/lib/incident_io/models/alert_route_channel_target_payload_v3.rb +201 -0
  146. data/lib/incident_io/models/alert_route_channel_target_v2.rb +191 -0
  147. data/lib/incident_io/models/alert_route_channel_target_v3.rb +201 -0
  148. data/lib/incident_io/models/alert_route_custom_field_binding_payload_v2.rb +218 -0
  149. data/lib/incident_io/models/alert_route_custom_field_binding_payload_v3.rb +218 -0
  150. data/lib/incident_io/models/alert_route_custom_field_binding_v2.rb +218 -0
  151. data/lib/incident_io/models/alert_route_custom_field_binding_v3.rb +218 -0
  152. data/lib/incident_io/models/alert_route_escalation_config_payload_v2.rb +194 -0
  153. data/lib/incident_io/models/alert_route_escalation_config_payload_v3.rb +203 -0
  154. data/lib/incident_io/models/alert_route_escalation_config_v2.rb +194 -0
  155. data/lib/incident_io/models/alert_route_escalation_config_v3.rb +203 -0
  156. data/lib/incident_io/models/alert_route_escalation_target_payload_v2.rb +156 -0
  157. data/lib/incident_io/models/alert_route_escalation_target_payload_v3.rb +156 -0
  158. data/lib/incident_io/models/alert_route_escalation_target_v2.rb +156 -0
  159. data/lib/incident_io/models/alert_route_escalation_target_v3.rb +156 -0
  160. data/lib/incident_io/models/alert_route_incident_config_payload_v2.rb +314 -0
  161. data/lib/incident_io/models/alert_route_incident_config_payload_v3.rb +214 -0
  162. data/lib/incident_io/models/alert_route_incident_config_v2.rb +331 -0
  163. data/lib/incident_io/models/alert_route_incident_config_v3.rb +214 -0
  164. data/lib/incident_io/models/alert_route_incident_template_payload_v2.rb +239 -0
  165. data/lib/incident_io/models/alert_route_incident_template_payload_v3.rb +231 -0
  166. data/lib/incident_io/models/alert_route_incident_template_v2.rb +239 -0
  167. data/lib/incident_io/models/alert_route_incident_template_v3.rb +231 -0
  168. data/lib/incident_io/models/alert_route_severity_binding_payload_v2.rb +174 -0
  169. data/lib/incident_io/models/alert_route_severity_binding_payload_v3.rb +174 -0
  170. data/lib/incident_io/models/alert_route_severity_binding_v2.rb +174 -0
  171. data/lib/incident_io/models/alert_route_severity_binding_v3.rb +174 -0
  172. data/lib/incident_io/models/alert_route_slim_v2.rb +219 -0
  173. data/lib/incident_io/models/alert_route_slim_v3.rb +219 -0
  174. data/lib/incident_io/models/alert_route_template_binding_payload_v2.rb +147 -0
  175. data/lib/incident_io/models/alert_route_template_binding_payload_v3.rb +147 -0
  176. data/lib/incident_io/models/alert_route_template_binding_v2.rb +147 -0
  177. data/lib/incident_io/models/alert_route_template_binding_v3.rb +147 -0
  178. data/lib/incident_io/models/alert_route_v2.rb +508 -0
  179. data/lib/incident_io/models/alert_route_v3.rb +496 -0
  180. data/lib/incident_io/models/alert_route_when_alert_joins_group_payload_v3.rb +203 -0
  181. data/lib/incident_io/models/alert_route_when_alert_joins_group_v3.rb +175 -0
  182. data/lib/incident_io/models/alert_routes_create_payload_v2.rb +454 -0
  183. data/lib/incident_io/models/alert_routes_create_payload_v3.rb +422 -0
  184. data/lib/incident_io/models/alert_routes_create_result_v2.rb +164 -0
  185. data/lib/incident_io/models/alert_routes_create_result_v3.rb +164 -0
  186. data/lib/incident_io/models/alert_routes_list_result_v2.rb +192 -0
  187. data/lib/incident_io/models/alert_routes_list_result_v3.rb +192 -0
  188. data/lib/incident_io/models/alert_routes_show_result_v2.rb +164 -0
  189. data/lib/incident_io/models/alert_routes_show_result_v3.rb +164 -0
  190. data/lib/incident_io/models/alert_routes_update_payload_v2.rb +481 -0
  191. data/lib/incident_io/models/alert_routes_update_payload_v3.rb +449 -0
  192. data/lib/incident_io/models/alert_routes_update_result_v2.rb +164 -0
  193. data/lib/incident_io/models/alert_routes_update_result_v3.rb +164 -0
  194. data/lib/incident_io/models/alert_slim_v2.rb +369 -0
  195. data/lib/incident_io/models/alert_source_azure_devops_options_v2.rb +167 -0
  196. data/lib/incident_io/models/alert_source_email_options_payload_v2.rb +177 -0
  197. data/lib/incident_io/models/alert_source_email_options_v2.rb +204 -0
  198. data/lib/incident_io/models/alert_source_heartbeat_options_payload_v2.rb +189 -0
  199. data/lib/incident_io/models/alert_source_heartbeat_options_v2.rb +246 -0
  200. data/lib/incident_io/models/alert_source_http_custom_options_v2.rb +192 -0
  201. data/lib/incident_io/models/alert_source_jira_options_v2.rb +167 -0
  202. data/lib/incident_io/models/alert_source_rate_limit_sharding_v2.rb +166 -0
  203. data/lib/incident_io/models/alert_source_v2.rb +373 -0
  204. data/lib/incident_io/models/alert_sources_create_payload_v2.rb +326 -0
  205. data/lib/incident_io/models/alert_sources_create_result_v2.rb +164 -0
  206. data/lib/incident_io/models/alert_sources_list_result_v2.rb +166 -0
  207. data/lib/incident_io/models/alert_sources_show_result_v2.rb +164 -0
  208. data/lib/incident_io/models/alert_sources_update_payload_v2.rb +309 -0
  209. data/lib/incident_io/models/alert_sources_update_result_v2.rb +164 -0
  210. data/lib/incident_io/models/alert_sources_validate_payload_v2.rb +203 -0
  211. data/lib/incident_io/models/alert_tag_v2.rb +192 -0
  212. data/lib/incident_io/models/alert_template_attribute_binding_payload_v2.rb +169 -0
  213. data/lib/incident_io/models/alert_template_attribute_binding_v2.rb +169 -0
  214. data/lib/incident_io/models/alert_template_attribute_payload_v2.rb +191 -0
  215. data/lib/incident_io/models/alert_template_attribute_v2.rb +191 -0
  216. data/lib/incident_io/models/alert_template_payload_v2.rb +267 -0
  217. data/lib/incident_io/models/alert_template_v2.rb +284 -0
  218. data/lib/incident_io/models/alert_v2.rb +410 -0
  219. data/lib/incident_io/models/alerts_add_tags_payload_v2.rb +176 -0
  220. data/lib/incident_io/models/alerts_add_tags_result_v2.rb +164 -0
  221. data/lib/incident_io/models/alerts_create_incident_alert_payload_v2.rb +204 -0
  222. data/lib/incident_io/models/alerts_create_incident_alert_result_v2.rb +164 -0
  223. data/lib/incident_io/models/alerts_list_alert_tags_result_v2.rb +192 -0
  224. data/lib/incident_io/models/alerts_list_incident_alerts_result_v2.rb +192 -0
  225. data/lib/incident_io/models/alerts_list_result_v2.rb +192 -0
  226. data/lib/incident_io/models/alerts_remove_tags_payload_v2.rb +176 -0
  227. data/lib/incident_io/models/alerts_remove_tags_result_v2.rb +164 -0
  228. data/lib/incident_io/models/alerts_resolve_result_v2.rb +164 -0
  229. data/lib/incident_io/models/alerts_set_tags_payload_v2.rb +176 -0
  230. data/lib/incident_io/models/alerts_set_tags_result_v2.rb +164 -0
  231. data/lib/incident_io/models/alerts_show_result_v2.rb +164 -0
  232. data/lib/incident_io/models/alerts_transition_incident_alert_payload_v2.rb +165 -0
  233. data/lib/incident_io/models/alerts_transition_incident_alert_result_v2.rb +164 -0
  234. data/lib/incident_io/models/announcement_rule_v2.rb +464 -0
  235. data/lib/incident_io/models/announcement_rules_create_payload_v2.rb +314 -0
  236. data/lib/incident_io/models/announcement_rules_create_result_v2.rb +164 -0
  237. data/lib/incident_io/models/announcement_rules_list_result_v2.rb +192 -0
  238. data/lib/incident_io/models/announcement_rules_show_result_v2.rb +164 -0
  239. data/lib/incident_io/models/announcement_rules_update_payload_v2.rb +314 -0
  240. data/lib/incident_io/models/announcement_rules_update_result_v2.rb +164 -0
  241. data/lib/incident_io/models/announcement_template_action_payload_v2.rb +202 -0
  242. data/lib/incident_io/models/announcement_template_action_v2.rb +229 -0
  243. data/lib/incident_io/models/announcement_template_field_payload_v2.rb +241 -0
  244. data/lib/incident_io/models/announcement_template_field_v2.rb +268 -0
  245. data/lib/incident_io/models/announcement_template_rich_text_v2.rb +193 -0
  246. data/lib/incident_io/models/announcement_template_v2.rb +307 -0
  247. data/lib/incident_io/models/announcement_templates_create_payload_v2.rb +201 -0
  248. data/lib/incident_io/models/announcement_templates_create_result_v2.rb +164 -0
  249. data/lib/incident_io/models/announcement_templates_list_result_v2.rb +166 -0
  250. data/lib/incident_io/models/announcement_templates_show_result_v2.rb +164 -0
  251. data/lib/incident_io/models/announcement_templates_update_payload_v2.rb +235 -0
  252. data/lib/incident_io/models/announcement_templates_update_result_v2.rb +164 -0
  253. data/lib/incident_io/models/api_key_actor_v1.rb +192 -0
  254. data/lib/incident_io/models/api_key_actor_v2.rb +192 -0
  255. data/lib/incident_io/models/api_key_role_v1.rb +192 -0
  256. data/lib/incident_io/models/api_key_team_role_v1.rb +192 -0
  257. data/lib/incident_io/models/api_key_v1.rb +409 -0
  258. data/lib/incident_io/models/api_keys_create_payload_v1.rb +310 -0
  259. data/lib/incident_io/models/api_keys_create_result_v1.rb +191 -0
  260. data/lib/incident_io/models/api_keys_list_result_v1.rb +192 -0
  261. data/lib/incident_io/models/api_keys_rotate_payload_v1.rb +183 -0
  262. data/lib/incident_io/models/api_keys_rotate_result_v1.rb +191 -0
  263. data/lib/incident_io/models/api_keys_show_result_v1.rb +164 -0
  264. data/lib/incident_io/models/api_keys_update_payload_v1.rb +310 -0
  265. data/lib/incident_io/models/api_keys_update_result_v1.rb +164 -0
  266. data/lib/incident_io/models/audit_log_actor_metadata_v2.rb +198 -0
  267. data/lib/incident_io/models/audit_log_actor_v2.rb +211 -0
  268. data/lib/incident_io/models/audit_log_announcement_post_template_owning_teams_metadata_v2.rb +192 -0
  269. data/lib/incident_io/models/audit_log_announcement_rule_metadata_v2.rb +246 -0
  270. data/lib/incident_io/models/audit_log_catalog_attribute_updated_metadata_v2.rb +196 -0
  271. data/lib/incident_io/models/audit_log_catalog_attribute_updated_metadata_v2_v2.rb +192 -0
  272. data/lib/incident_io/models/audit_log_email_otp_login_setting_updated_metadata_v2.rb +148 -0
  273. data/lib/incident_io/models/audit_log_entry_context_v2.rb +175 -0
  274. data/lib/incident_io/models/audit_log_extension_connector_called_metadata_v2.rb +256 -0
  275. data/lib/incident_io/models/audit_log_extension_connector_called_metadata_v2_v2.rb +266 -0
  276. data/lib/incident_io/models/audit_log_extension_connector_called_metadata_v3_v2.rb +296 -0
  277. data/lib/incident_io/models/audit_log_hris_time_off_policy_updated_metadata_v2.rb +178 -0
  278. data/lib/incident_io/models/audit_log_incident_type_default_teams_metadata_v2.rb +192 -0
  279. data/lib/incident_io/models/audit_log_ip_allowlist_updated_metadata_v2.rb +198 -0
  280. data/lib/incident_io/models/audit_log_microsoft_entra_tenant_linked_metadata_v2.rb +158 -0
  281. data/lib/incident_io/models/audit_log_mobile_intune_enabled_setting_updated_metadata_v2.rb +148 -0
  282. data/lib/incident_io/models/audit_log_on_call_notification_method_metadata_v2.rb +148 -0
  283. data/lib/incident_io/models/audit_log_on_call_notification_pause_metadata_v2.rb +249 -0
  284. data/lib/incident_io/models/audit_log_on_call_upsell_requested_metadata_v2.rb +246 -0
  285. data/lib/incident_io/models/audit_log_organisation_settings_updated_metadata_v2.rb +168 -0
  286. data/lib/incident_io/models/audit_log_policy_metadata_v2.rb +148 -0
  287. data/lib/incident_io/models/audit_log_private_alert_access_attempted_metadata_v2.rb +148 -0
  288. data/lib/incident_io/models/audit_log_private_escalation_access_attempted_metadata_v2.rb +148 -0
  289. data/lib/incident_io/models/audit_log_private_incident_access_attempted_metadata_v2.rb +148 -0
  290. data/lib/incident_io/models/audit_log_private_incident_access_attempted_metadata_v2_v2.rb +219 -0
  291. data/lib/incident_io/models/audit_log_private_insights_exported_metadata_v2.rb +158 -0
  292. data/lib/incident_io/models/audit_log_private_insights_measure_queried_metadata_v2.rb +158 -0
  293. data/lib/incident_io/models/audit_log_private_insights_underlying_data_queried_metadata_v2.rb +158 -0
  294. data/lib/incident_io/models/audit_log_qr_code_mobile_login_setting_updated_metadata_v2.rb +148 -0
  295. data/lib/incident_io/models/audit_log_schedule_override_metadata_v2.rb +300 -0
  296. data/lib/incident_io/models/audit_log_scim_group_seat_mapping_changed_metadata_v2.rb +192 -0
  297. data/lib/incident_io/models/audit_log_target_v2.rb +202 -0
  298. data/lib/incident_io/models/audit_log_telemetry_data_source_access_mode_changed_metadata_v2.rb +192 -0
  299. data/lib/incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2.rb +229 -0
  300. data/lib/incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2.rb +229 -0
  301. data/lib/incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2_v2.rb +239 -0
  302. data/lib/incident_io/models/audit_log_telemetry_data_source_requested_metadata_v2.rb +249 -0
  303. data/lib/incident_io/models/audit_log_telemetry_data_source_tool_access_changed_metadata_v2.rb +300 -0
  304. data/lib/incident_io/models/audit_log_telemetry_data_source_tool_overrides_changed_metadata_v2.rb +246 -0
  305. data/lib/incident_io/models/audit_log_telemetry_data_source_write_access_metadata_v2.rb +165 -0
  306. data/lib/incident_io/models/audit_log_twilio_connection_metadata_v2.rb +165 -0
  307. data/lib/incident_io/models/audit_log_user_logged_in_metadata_v2.rb +165 -0
  308. data/lib/incident_io/models/audit_log_user_role_membership_changed_metadata_v2.rb +246 -0
  309. data/lib/incident_io/models/audit_log_user_scim_group_mapping_changed_metadata_v2.rb +178 -0
  310. data/lib/incident_io/models/audit_logs_activity_log_scrubbed_v1.rb +300 -0
  311. data/lib/incident_io/models/audit_logs_alert_chat_message_template_created_v1.rb +300 -0
  312. data/lib/incident_io/models/audit_logs_alert_chat_message_template_deleted_v1.rb +300 -0
  313. data/lib/incident_io/models/audit_logs_alert_chat_message_template_updated_v1.rb +300 -0
  314. data/lib/incident_io/models/audit_logs_alert_priority_created_v1.rb +300 -0
  315. data/lib/incident_io/models/audit_logs_alert_priority_deleted_v1.rb +300 -0
  316. data/lib/incident_io/models/audit_logs_alert_priority_set_as_default_v1.rb +300 -0
  317. data/lib/incident_io/models/audit_logs_alert_priority_updated_v1.rb +300 -0
  318. data/lib/incident_io/models/audit_logs_alert_route_created_v1.rb +300 -0
  319. data/lib/incident_io/models/audit_logs_alert_route_deleted_v1.rb +300 -0
  320. data/lib/incident_io/models/audit_logs_alert_route_updated_v1.rb +300 -0
  321. data/lib/incident_io/models/audit_logs_alert_schema_updated_v1.rb +300 -0
  322. data/lib/incident_io/models/audit_logs_alert_scrubbed_v1.rb +300 -0
  323. data/lib/incident_io/models/audit_logs_alert_source_config_created_v1.rb +300 -0
  324. data/lib/incident_io/models/audit_logs_alert_source_config_deleted_v1.rb +300 -0
  325. data/lib/incident_io/models/audit_logs_alert_source_config_updated_v1.rb +300 -0
  326. data/lib/incident_io/models/audit_logs_announcement_post_template_created_v1.rb +300 -0
  327. data/lib/incident_io/models/audit_logs_announcement_post_template_created_v2.rb +326 -0
  328. data/lib/incident_io/models/audit_logs_announcement_post_template_deleted_v1.rb +300 -0
  329. data/lib/incident_io/models/audit_logs_announcement_post_template_set_as_default_v1.rb +300 -0
  330. data/lib/incident_io/models/audit_logs_announcement_post_template_updated_v1.rb +300 -0
  331. data/lib/incident_io/models/audit_logs_announcement_post_template_updated_v2.rb +326 -0
  332. data/lib/incident_io/models/audit_logs_announcement_rule_created_v1.rb +300 -0
  333. data/lib/incident_io/models/audit_logs_announcement_rule_created_v2.rb +326 -0
  334. data/lib/incident_io/models/audit_logs_announcement_rule_deleted_v1.rb +300 -0
  335. data/lib/incident_io/models/audit_logs_announcement_rule_updated_v1.rb +300 -0
  336. data/lib/incident_io/models/audit_logs_announcement_rule_updated_v2.rb +326 -0
  337. data/lib/incident_io/models/audit_logs_api_key_created_v1.rb +300 -0
  338. data/lib/incident_io/models/audit_logs_api_key_deleted_v1.rb +300 -0
  339. data/lib/incident_io/models/audit_logs_api_key_rotated_v1.rb +300 -0
  340. data/lib/incident_io/models/audit_logs_api_key_updated_v1.rb +300 -0
  341. data/lib/incident_io/models/audit_logs_catalog_entry_attribute_updated_v1.rb +326 -0
  342. data/lib/incident_io/models/audit_logs_catalog_entry_attribute_updated_v2.rb +326 -0
  343. data/lib/incident_io/models/audit_logs_catalog_type_created_v1.rb +300 -0
  344. data/lib/incident_io/models/audit_logs_catalog_type_deleted_v1.rb +300 -0
  345. data/lib/incident_io/models/audit_logs_catalog_type_updated_v1.rb +300 -0
  346. data/lib/incident_io/models/audit_logs_connector_config_created_v1.rb +300 -0
  347. data/lib/incident_io/models/audit_logs_connector_config_token_generated_v1.rb +300 -0
  348. data/lib/incident_io/models/audit_logs_connector_config_updated_v1.rb +300 -0
  349. data/lib/incident_io/models/audit_logs_custom_field_created_v1.rb +300 -0
  350. data/lib/incident_io/models/audit_logs_custom_field_deleted_v1.rb +300 -0
  351. data/lib/incident_io/models/audit_logs_custom_field_updated_v1.rb +300 -0
  352. data/lib/incident_io/models/audit_logs_debrief_invite_rule_created_v1.rb +300 -0
  353. data/lib/incident_io/models/audit_logs_debrief_invite_rule_deleted_v1.rb +300 -0
  354. data/lib/incident_io/models/audit_logs_debrief_invite_rule_updated_v1.rb +300 -0
  355. data/lib/incident_io/models/audit_logs_email_otp_login_setting_updated_v1.rb +326 -0
  356. data/lib/incident_io/models/audit_logs_escalation_path_created_v1.rb +300 -0
  357. data/lib/incident_io/models/audit_logs_escalation_path_deleted_v1.rb +300 -0
  358. data/lib/incident_io/models/audit_logs_escalation_path_template_created_v1.rb +300 -0
  359. data/lib/incident_io/models/audit_logs_escalation_path_template_deleted_v1.rb +300 -0
  360. data/lib/incident_io/models/audit_logs_escalation_path_template_updated_v1.rb +300 -0
  361. data/lib/incident_io/models/audit_logs_escalation_path_updated_v1.rb +300 -0
  362. data/lib/incident_io/models/audit_logs_escalation_scrubbed_v1.rb +300 -0
  363. data/lib/incident_io/models/audit_logs_extension_connector_called_v1.rb +326 -0
  364. data/lib/incident_io/models/audit_logs_extension_connector_called_v2.rb +326 -0
  365. data/lib/incident_io/models/audit_logs_extension_connector_called_v3.rb +326 -0
  366. data/lib/incident_io/models/audit_logs_follow_up_category_created_v1.rb +300 -0
  367. data/lib/incident_io/models/audit_logs_follow_up_category_deleted_v1.rb +300 -0
  368. data/lib/incident_io/models/audit_logs_follow_up_category_updated_v1.rb +300 -0
  369. data/lib/incident_io/models/audit_logs_follow_up_priority_created_v1.rb +300 -0
  370. data/lib/incident_io/models/audit_logs_follow_up_priority_deleted_v1.rb +300 -0
  371. data/lib/incident_io/models/audit_logs_follow_up_priority_updated_v1.rb +300 -0
  372. data/lib/incident_io/models/audit_logs_holiday_user_feed_created_v1.rb +300 -0
  373. data/lib/incident_io/models/audit_logs_holiday_user_feed_deleted_v1.rb +300 -0
  374. data/lib/incident_io/models/audit_logs_holiday_user_feed_updated_v1.rb +300 -0
  375. data/lib/incident_io/models/audit_logs_hris_time_off_policy_updated_v1.rb +326 -0
  376. data/lib/incident_io/models/audit_logs_incident_call_setting_updated_v1.rb +300 -0
  377. data/lib/incident_io/models/audit_logs_incident_call_transcription_session_deleted_v1.rb +300 -0
  378. data/lib/incident_io/models/audit_logs_incident_duration_metric_created_v1.rb +300 -0
  379. data/lib/incident_io/models/audit_logs_incident_duration_metric_deleted_v1.rb +300 -0
  380. data/lib/incident_io/models/audit_logs_incident_duration_metric_updated_v1.rb +300 -0
  381. data/lib/incident_io/models/audit_logs_incident_role_created_v1.rb +300 -0
  382. data/lib/incident_io/models/audit_logs_incident_role_deleted_v1.rb +300 -0
  383. data/lib/incident_io/models/audit_logs_incident_role_updated_v1.rb +300 -0
  384. data/lib/incident_io/models/audit_logs_incident_status_created_v1.rb +300 -0
  385. data/lib/incident_io/models/audit_logs_incident_status_deleted_v1.rb +300 -0
  386. data/lib/incident_io/models/audit_logs_incident_status_updated_v1.rb +300 -0
  387. data/lib/incident_io/models/audit_logs_incident_template_created_v1.rb +300 -0
  388. data/lib/incident_io/models/audit_logs_incident_template_deleted_v1.rb +300 -0
  389. data/lib/incident_io/models/audit_logs_incident_template_set_as_default_v1.rb +300 -0
  390. data/lib/incident_io/models/audit_logs_incident_template_updated_v1.rb +300 -0
  391. data/lib/incident_io/models/audit_logs_incident_timestamp_created_v1.rb +300 -0
  392. data/lib/incident_io/models/audit_logs_incident_timestamp_deleted_v1.rb +300 -0
  393. data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_created_v1.rb +300 -0
  394. data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_deleted_v1.rb +300 -0
  395. data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_updated_v1.rb +300 -0
  396. data/lib/incident_io/models/audit_logs_incident_timestamp_updated_v1.rb +300 -0
  397. data/lib/incident_io/models/audit_logs_incident_type_created_v1.rb +300 -0
  398. data/lib/incident_io/models/audit_logs_incident_type_created_v2.rb +326 -0
  399. data/lib/incident_io/models/audit_logs_incident_type_deleted_v1.rb +300 -0
  400. data/lib/incident_io/models/audit_logs_incident_type_updated_v1.rb +300 -0
  401. data/lib/incident_io/models/audit_logs_incident_type_updated_v2.rb +326 -0
  402. data/lib/incident_io/models/audit_logs_integration_installed_v1.rb +300 -0
  403. data/lib/incident_io/models/audit_logs_integration_uninstalled_v1.rb +300 -0
  404. data/lib/incident_io/models/audit_logs_internal_status_page_created_v1.rb +300 -0
  405. data/lib/incident_io/models/audit_logs_internal_status_page_deleted_v1.rb +300 -0
  406. data/lib/incident_io/models/audit_logs_internal_status_page_updated_v1.rb +300 -0
  407. data/lib/incident_io/models/audit_logs_ip_allowlist_updated_v1.rb +326 -0
  408. data/lib/incident_io/models/audit_logs_maintenance_window_created_v1.rb +300 -0
  409. data/lib/incident_io/models/audit_logs_maintenance_window_deleted_v1.rb +300 -0
  410. data/lib/incident_io/models/audit_logs_maintenance_window_updated_v1.rb +300 -0
  411. data/lib/incident_io/models/audit_logs_microsoft_entra_tenant_linked_v1.rb +326 -0
  412. data/lib/incident_io/models/audit_logs_mobile_intune_enabled_setting_updated_v1.rb +326 -0
  413. data/lib/incident_io/models/audit_logs_nudge_created_v1.rb +300 -0
  414. data/lib/incident_io/models/audit_logs_nudge_deleted_v1.rb +300 -0
  415. data/lib/incident_io/models/audit_logs_nudge_updated_v1.rb +300 -0
  416. data/lib/incident_io/models/audit_logs_on_call_notification_method_created_v1.rb +300 -0
  417. data/lib/incident_io/models/audit_logs_on_call_notification_method_created_v2.rb +326 -0
  418. data/lib/incident_io/models/audit_logs_on_call_notification_method_destroyed_v1.rb +300 -0
  419. data/lib/incident_io/models/audit_logs_on_call_notification_method_destroyed_v2.rb +326 -0
  420. data/lib/incident_io/models/audit_logs_on_call_notification_pause_created_v1.rb +300 -0
  421. data/lib/incident_io/models/audit_logs_on_call_notification_pause_created_v2.rb +326 -0
  422. data/lib/incident_io/models/audit_logs_on_call_notification_pause_deleted_v1.rb +300 -0
  423. data/lib/incident_io/models/audit_logs_on_call_notification_pause_deleted_v2.rb +326 -0
  424. data/lib/incident_io/models/audit_logs_on_call_notification_pause_updated_v1.rb +300 -0
  425. data/lib/incident_io/models/audit_logs_on_call_notification_pause_updated_v2.rb +326 -0
  426. data/lib/incident_io/models/audit_logs_on_call_upsell_requested_v1.rb +326 -0
  427. data/lib/incident_io/models/audit_logs_organisation_settings_updated_v1.rb +326 -0
  428. data/lib/incident_io/models/audit_logs_policy_created_v1.rb +300 -0
  429. data/lib/incident_io/models/audit_logs_policy_created_v2.rb +326 -0
  430. data/lib/incident_io/models/audit_logs_policy_deleted_v1.rb +300 -0
  431. data/lib/incident_io/models/audit_logs_policy_report_schedule_created_v1.rb +300 -0
  432. data/lib/incident_io/models/audit_logs_policy_report_schedule_deleted_v1.rb +300 -0
  433. data/lib/incident_io/models/audit_logs_policy_report_schedule_updated_v1.rb +300 -0
  434. data/lib/incident_io/models/audit_logs_policy_updated_v1.rb +300 -0
  435. data/lib/incident_io/models/audit_logs_policy_updated_v2.rb +326 -0
  436. data/lib/incident_io/models/audit_logs_post_incident_task_created_v1.rb +300 -0
  437. data/lib/incident_io/models/audit_logs_post_incident_task_deleted_v1.rb +300 -0
  438. data/lib/incident_io/models/audit_logs_post_incident_task_updated_v1.rb +300 -0
  439. data/lib/incident_io/models/audit_logs_postmortem_section_created_v1.rb +300 -0
  440. data/lib/incident_io/models/audit_logs_postmortem_section_created_v2.rb +300 -0
  441. data/lib/incident_io/models/audit_logs_postmortem_section_deleted_v1.rb +300 -0
  442. data/lib/incident_io/models/audit_logs_postmortem_section_deleted_v2.rb +300 -0
  443. data/lib/incident_io/models/audit_logs_postmortem_section_updated_v1.rb +300 -0
  444. data/lib/incident_io/models/audit_logs_postmortem_section_updated_v2.rb +300 -0
  445. data/lib/incident_io/models/audit_logs_postmortem_template_created_v1.rb +300 -0
  446. data/lib/incident_io/models/audit_logs_postmortem_template_created_v2.rb +300 -0
  447. data/lib/incident_io/models/audit_logs_postmortem_template_deleted_v1.rb +300 -0
  448. data/lib/incident_io/models/audit_logs_postmortem_template_deleted_v2.rb +300 -0
  449. data/lib/incident_io/models/audit_logs_postmortem_template_updated_v1.rb +300 -0
  450. data/lib/incident_io/models/audit_logs_postmortem_template_updated_v2.rb +300 -0
  451. data/lib/incident_io/models/audit_logs_private_alert_access_attempted_v1.rb +326 -0
  452. data/lib/incident_io/models/audit_logs_private_escalation_access_attempted_v1.rb +326 -0
  453. data/lib/incident_io/models/audit_logs_private_incident_access_attempted_v1.rb +326 -0
  454. data/lib/incident_io/models/audit_logs_private_incident_access_attempted_v2.rb +326 -0
  455. data/lib/incident_io/models/audit_logs_private_incident_access_requested_v1.rb +300 -0
  456. data/lib/incident_io/models/audit_logs_private_incident_accessed_via_bot_v1.rb +300 -0
  457. data/lib/incident_io/models/audit_logs_private_incident_membership_granted_v1.rb +300 -0
  458. data/lib/incident_io/models/audit_logs_private_incident_membership_revoked_v1.rb +300 -0
  459. data/lib/incident_io/models/audit_logs_private_incident_membership_upgraded_to_direct_v1.rb +300 -0
  460. data/lib/incident_io/models/audit_logs_private_incident_team_membership_granted_v1.rb +300 -0
  461. data/lib/incident_io/models/audit_logs_private_incident_team_membership_revoked_v1.rb +300 -0
  462. data/lib/incident_io/models/audit_logs_private_insights_exported_v1.rb +326 -0
  463. data/lib/incident_io/models/audit_logs_private_insights_measure_queried_v1.rb +326 -0
  464. data/lib/incident_io/models/audit_logs_private_insights_underlying_data_queried_v1.rb +326 -0
  465. data/lib/incident_io/models/audit_logs_qr_code_mobile_login_setting_updated_v1.rb +326 -0
  466. data/lib/incident_io/models/audit_logs_rbac_role_created_v1.rb +300 -0
  467. data/lib/incident_io/models/audit_logs_rbac_role_deleted_v1.rb +300 -0
  468. data/lib/incident_io/models/audit_logs_rbac_role_updated_v1.rb +300 -0
  469. data/lib/incident_io/models/audit_logs_schedule_created_v1.rb +300 -0
  470. data/lib/incident_io/models/audit_logs_schedule_deleted_v1.rb +300 -0
  471. data/lib/incident_io/models/audit_logs_schedule_override_created_v1.rb +300 -0
  472. data/lib/incident_io/models/audit_logs_schedule_override_created_v2.rb +326 -0
  473. data/lib/incident_io/models/audit_logs_schedule_override_deleted_v1.rb +300 -0
  474. data/lib/incident_io/models/audit_logs_schedule_override_deleted_v2.rb +326 -0
  475. data/lib/incident_io/models/audit_logs_schedule_override_updated_v1.rb +300 -0
  476. data/lib/incident_io/models/audit_logs_schedule_override_updated_v2.rb +326 -0
  477. data/lib/incident_io/models/audit_logs_schedule_sync_rule_created_v1.rb +300 -0
  478. data/lib/incident_io/models/audit_logs_schedule_sync_rule_deleted_v1.rb +300 -0
  479. data/lib/incident_io/models/audit_logs_schedule_sync_rule_updated_v1.rb +300 -0
  480. data/lib/incident_io/models/audit_logs_schedule_sync_target_created_v1.rb +300 -0
  481. data/lib/incident_io/models/audit_logs_schedule_sync_target_deleted_v1.rb +300 -0
  482. data/lib/incident_io/models/audit_logs_schedule_sync_target_updated_v1.rb +300 -0
  483. data/lib/incident_io/models/audit_logs_schedule_updated_v1.rb +300 -0
  484. data/lib/incident_io/models/audit_logs_scim_group_role_mappings_updated_v1.rb +326 -0
  485. data/lib/incident_io/models/audit_logs_scim_group_seat_mappings_updated_v1.rb +326 -0
  486. data/lib/incident_io/models/audit_logs_secret_created_v1.rb +300 -0
  487. data/lib/incident_io/models/audit_logs_secret_deleted_v1.rb +300 -0
  488. data/lib/incident_io/models/audit_logs_secret_reference_added_v1.rb +300 -0
  489. data/lib/incident_io/models/audit_logs_secret_reference_removed_v1.rb +300 -0
  490. data/lib/incident_io/models/audit_logs_secret_rotated_v1.rb +300 -0
  491. data/lib/incident_io/models/audit_logs_secret_updated_v1.rb +300 -0
  492. data/lib/incident_io/models/audit_logs_severity_created_v1.rb +300 -0
  493. data/lib/incident_io/models/audit_logs_severity_deleted_v1.rb +300 -0
  494. data/lib/incident_io/models/audit_logs_severity_updated_v1.rb +300 -0
  495. data/lib/incident_io/models/audit_logs_status_page_created_v1.rb +300 -0
  496. data/lib/incident_io/models/audit_logs_status_page_deleted_v1.rb +300 -0
  497. data/lib/incident_io/models/audit_logs_status_page_sub_page_created_v1.rb +300 -0
  498. data/lib/incident_io/models/audit_logs_status_page_sub_page_deleted_v1.rb +300 -0
  499. data/lib/incident_io/models/audit_logs_status_page_sub_page_updated_v1.rb +300 -0
  500. data/lib/incident_io/models/audit_logs_status_page_template_created_v1.rb +300 -0
  501. data/lib/incident_io/models/audit_logs_status_page_template_deleted_v1.rb +300 -0
  502. data/lib/incident_io/models/audit_logs_status_page_template_updated_v1.rb +300 -0
  503. data/lib/incident_io/models/audit_logs_status_page_updated_v1.rb +300 -0
  504. data/lib/incident_io/models/audit_logs_team_role_created_v1.rb +300 -0
  505. data/lib/incident_io/models/audit_logs_team_role_deleted_v1.rb +300 -0
  506. data/lib/incident_io/models/audit_logs_team_role_updated_v1.rb +300 -0
  507. data/lib/incident_io/models/audit_logs_team_settings_updated_v1.rb +300 -0
  508. data/lib/incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v1.rb +326 -0
  509. data/lib/incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v1.rb +326 -0
  510. data/lib/incident_io/models/audit_logs_telemetry_data_source_installed_v1.rb +300 -0
  511. data/lib/incident_io/models/audit_logs_telemetry_data_source_queried_v1.rb +326 -0
  512. data/lib/incident_io/models/audit_logs_telemetry_data_source_queried_v2.rb +326 -0
  513. data/lib/incident_io/models/audit_logs_telemetry_data_source_requested_v1.rb +326 -0
  514. data/lib/incident_io/models/audit_logs_telemetry_data_source_tool_access_changed_v1.rb +326 -0
  515. data/lib/incident_io/models/audit_logs_telemetry_data_source_tool_overrides_changed_v1.rb +326 -0
  516. data/lib/incident_io/models/audit_logs_telemetry_data_source_uninstalled_v1.rb +300 -0
  517. data/lib/incident_io/models/audit_logs_telemetry_data_source_write_access_granted_v1.rb +326 -0
  518. data/lib/incident_io/models/audit_logs_telemetry_data_source_write_access_revoked_v1.rb +326 -0
  519. data/lib/incident_io/models/audit_logs_timeline_item_deleted_v1.rb +300 -0
  520. data/lib/incident_io/models/audit_logs_twilio_connection_created_v1.rb +326 -0
  521. data/lib/incident_io/models/audit_logs_twilio_connection_deleted_v1.rb +326 -0
  522. data/lib/incident_io/models/audit_logs_twilio_connection_updated_v1.rb +326 -0
  523. data/lib/incident_io/models/audit_logs_user_created_v1.rb +300 -0
  524. data/lib/incident_io/models/audit_logs_user_deactivated_v1.rb +300 -0
  525. data/lib/incident_io/models/audit_logs_user_logged_in_v1.rb +326 -0
  526. data/lib/incident_io/models/audit_logs_user_reinstated_v1.rb +300 -0
  527. data/lib/incident_io/models/audit_logs_user_role_memberships_updated_v1.rb +326 -0
  528. data/lib/incident_io/models/audit_logs_user_updated_v1.rb +300 -0
  529. data/lib/incident_io/models/audit_logs_workflow_created_v1.rb +300 -0
  530. data/lib/incident_io/models/audit_logs_workflow_deleted_v1.rb +300 -0
  531. data/lib/incident_io/models/audit_logs_workflow_updated_v1.rb +300 -0
  532. data/lib/incident_io/models/call_route_allowed_caller_v2.rb +203 -0
  533. data/lib/incident_io/models/call_route_option_v2.rb +258 -0
  534. data/lib/incident_io/models/call_route_path_node_level_v2.rb +168 -0
  535. data/lib/incident_io/models/call_route_path_node_payload_v2.rb +193 -0
  536. data/lib/incident_io/models/call_route_path_node_v2.rb +211 -0
  537. data/lib/incident_io/models/call_route_path_node_voicemail_v2.rb +175 -0
  538. data/lib/incident_io/models/call_route_target_v2.rb +240 -0
  539. data/lib/incident_io/models/call_route_v2.rb +470 -0
  540. data/lib/incident_io/models/call_routes_create_allowed_caller_payload_v2.rb +175 -0
  541. data/lib/incident_io/models/call_routes_create_allowed_caller_result_v2.rb +164 -0
  542. data/lib/incident_io/models/call_routes_create_option_payload_v2.rb +230 -0
  543. data/lib/incident_io/models/call_routes_create_option_result_v2.rb +164 -0
  544. data/lib/incident_io/models/call_routes_list_allowed_callers_result_v2.rb +166 -0
  545. data/lib/incident_io/models/call_routes_list_options_result_v2.rb +166 -0
  546. data/lib/incident_io/models/call_routes_list_result_v2.rb +175 -0
  547. data/lib/incident_io/models/call_routes_show_allowed_caller_result_v2.rb +164 -0
  548. data/lib/incident_io/models/call_routes_show_option_result_v2.rb +164 -0
  549. data/lib/incident_io/models/call_routes_show_result_v2.rb +164 -0
  550. data/lib/incident_io/models/call_routes_update_allowed_caller_payload_v2.rb +175 -0
  551. data/lib/incident_io/models/call_routes_update_allowed_caller_result_v2.rb +164 -0
  552. data/lib/incident_io/models/call_routes_update_option_payload_v2.rb +230 -0
  553. data/lib/incident_io/models/call_routes_update_option_result_v2.rb +164 -0
  554. data/lib/incident_io/models/call_routes_update_payload_v2.rb +275 -0
  555. data/lib/incident_io/models/call_routes_update_result_v2.rb +164 -0
  556. data/lib/incident_io/models/call_session_v2.rb +230 -0
  557. data/lib/incident_io/models/call_sessions_list_result_v2.rb +175 -0
  558. data/lib/incident_io/models/call_transcript_entries_list_result_v2.rb +175 -0
  559. data/lib/incident_io/models/call_transcript_entry_v2.rb +274 -0
  560. data/lib/incident_io/models/catalog_bulk_update_entries_payload_v3.rb +224 -0
  561. data/lib/incident_io/models/catalog_create_entry_payload_v2.rb +253 -0
  562. data/lib/incident_io/models/catalog_create_entry_payload_v3.rb +253 -0
  563. data/lib/incident_io/models/catalog_create_entry_result_v2.rb +164 -0
  564. data/lib/incident_io/models/catalog_create_entry_result_v3.rb +164 -0
  565. data/lib/incident_io/models/catalog_create_type_payload_v2.rb +266 -0
  566. data/lib/incident_io/models/catalog_create_type_payload_v3.rb +288 -0
  567. data/lib/incident_io/models/catalog_create_type_result_v2.rb +164 -0
  568. data/lib/incident_io/models/catalog_create_type_result_v3.rb +164 -0
  569. data/lib/incident_io/models/catalog_engine_param_binding_payload_v3.rb +159 -0
  570. data/lib/incident_io/models/catalog_engine_param_binding_value_payload_v3.rb +148 -0
  571. data/lib/incident_io/models/catalog_entry_engine_param_binding_v2.rb +159 -0
  572. data/lib/incident_io/models/catalog_entry_engine_param_binding_v3.rb +159 -0
  573. data/lib/incident_io/models/catalog_entry_engine_param_binding_value_v2.rb +271 -0
  574. data/lib/incident_io/models/catalog_entry_engine_param_binding_value_v3.rb +175 -0
  575. data/lib/incident_io/models/catalog_entry_reference_v2.rb +229 -0
  576. data/lib/incident_io/models/catalog_entry_slim_v3_v3.rb +202 -0
  577. data/lib/incident_io/models/catalog_entry_v2.rb +378 -0
  578. data/lib/incident_io/models/catalog_entry_v3.rb +378 -0
  579. data/lib/incident_io/models/catalog_list_entries_result_v2.rb +218 -0
  580. data/lib/incident_io/models/catalog_list_entries_result_v3.rb +218 -0
  581. data/lib/incident_io/models/catalog_list_resources_result_v2.rb +166 -0
  582. data/lib/incident_io/models/catalog_list_resources_result_v3.rb +166 -0
  583. data/lib/incident_io/models/catalog_list_types_result_v2.rb +166 -0
  584. data/lib/incident_io/models/catalog_list_types_result_v3.rb +166 -0
  585. data/lib/incident_io/models/catalog_resource_v2.rb +273 -0
  586. data/lib/incident_io/models/catalog_resource_v3.rb +300 -0
  587. data/lib/incident_io/models/catalog_show_entry_result_v2.rb +190 -0
  588. data/lib/incident_io/models/catalog_show_entry_result_v3.rb +190 -0
  589. data/lib/incident_io/models/catalog_show_type_result_v2.rb +164 -0
  590. data/lib/incident_io/models/catalog_show_type_result_v3.rb +164 -0
  591. data/lib/incident_io/models/catalog_type_attribute_path_item_payload_v2.rb +165 -0
  592. data/lib/incident_io/models/catalog_type_attribute_path_item_payload_v3.rb +165 -0
  593. data/lib/incident_io/models/catalog_type_attribute_path_item_v2.rb +192 -0
  594. data/lib/incident_io/models/catalog_type_attribute_path_item_v3.rb +192 -0
  595. data/lib/incident_io/models/catalog_type_attribute_payload_v2.rb +261 -0
  596. data/lib/incident_io/models/catalog_type_attribute_payload_v3.rb +261 -0
  597. data/lib/incident_io/models/catalog_type_attribute_v2.rb +295 -0
  598. data/lib/incident_io/models/catalog_type_attribute_v3.rb +295 -0
  599. data/lib/incident_io/models/catalog_type_schema_v2.rb +194 -0
  600. data/lib/incident_io/models/catalog_type_schema_v3.rb +194 -0
  601. data/lib/incident_io/models/catalog_type_v2.rb +581 -0
  602. data/lib/incident_io/models/catalog_type_v3.rb +630 -0
  603. data/lib/incident_io/models/catalog_update_entry_payload_v2.rb +226 -0
  604. data/lib/incident_io/models/catalog_update_entry_payload_v3.rb +238 -0
  605. data/lib/incident_io/models/catalog_update_entry_result_v2.rb +190 -0
  606. data/lib/incident_io/models/catalog_update_entry_result_v3.rb +190 -0
  607. data/lib/incident_io/models/catalog_update_type_payload_v2.rb +256 -0
  608. data/lib/incident_io/models/catalog_update_type_payload_v3.rb +278 -0
  609. data/lib/incident_io/models/catalog_update_type_result_v2.rb +164 -0
  610. data/lib/incident_io/models/catalog_update_type_result_v3.rb +164 -0
  611. data/lib/incident_io/models/catalog_update_type_schema_payload_v2.rb +192 -0
  612. data/lib/incident_io/models/catalog_update_type_schema_payload_v3.rb +192 -0
  613. data/lib/incident_io/models/catalog_update_type_schema_result_v2.rb +164 -0
  614. data/lib/incident_io/models/catalog_update_type_schema_result_v3.rb +164 -0
  615. data/lib/incident_io/models/chat_channel_slim_v2.rb +178 -0
  616. data/lib/incident_io/models/condition_group_payload_v2.rb +167 -0
  617. data/lib/incident_io/models/condition_group_payload_v3.rb +167 -0
  618. data/lib/incident_io/models/condition_group_v2.rb +167 -0
  619. data/lib/incident_io/models/condition_group_v3.rb +167 -0
  620. data/lib/incident_io/models/condition_operation_v2.rb +192 -0
  621. data/lib/incident_io/models/condition_operation_v3.rb +192 -0
  622. data/lib/incident_io/models/condition_payload_v2.rb +221 -0
  623. data/lib/incident_io/models/condition_payload_v3.rb +221 -0
  624. data/lib/incident_io/models/condition_subject_v2.rb +192 -0
  625. data/lib/incident_io/models/condition_subject_v3.rb +192 -0
  626. data/lib/incident_io/models/condition_v2.rb +219 -0
  627. data/lib/incident_io/models/condition_v3.rb +219 -0
  628. data/lib/incident_io/models/custom_field_entry_payload_v1.rb +194 -0
  629. data/lib/incident_io/models/custom_field_entry_payload_v2.rb +194 -0
  630. data/lib/incident_io/models/custom_field_entry_v1.rb +193 -0
  631. data/lib/incident_io/models/custom_field_entry_v2.rb +193 -0
  632. data/lib/incident_io/models/custom_field_filter_by_options_v2.rb +192 -0
  633. data/lib/incident_io/models/custom_field_fixed_filter_options_v2.rb +194 -0
  634. data/lib/incident_io/models/custom_field_option_v1.rb +246 -0
  635. data/lib/incident_io/models/custom_field_option_v2.rb +246 -0
  636. data/lib/incident_io/models/custom_field_options_create_payload_v1.rb +204 -0
  637. data/lib/incident_io/models/custom_field_options_create_result_v1.rb +164 -0
  638. data/lib/incident_io/models/custom_field_options_list_result_v1.rb +192 -0
  639. data/lib/incident_io/models/custom_field_options_show_result_v1.rb +164 -0
  640. data/lib/incident_io/models/custom_field_options_update_payload_v1.rb +192 -0
  641. data/lib/incident_io/models/custom_field_options_update_result_v1.rb +164 -0
  642. data/lib/incident_io/models/custom_field_type_info_v1.rb +284 -0
  643. data/lib/incident_io/models/custom_field_type_info_v2.rb +284 -0
  644. data/lib/incident_io/models/custom_field_v1.rb +459 -0
  645. data/lib/incident_io/models/custom_field_v2.rb +357 -0
  646. data/lib/incident_io/models/custom_field_value_payload_v1.rb +208 -0
  647. data/lib/incident_io/models/custom_field_value_payload_v2.rb +208 -0
  648. data/lib/incident_io/models/custom_field_value_v1.rb +186 -0
  649. data/lib/incident_io/models/custom_field_value_v2.rb +186 -0
  650. data/lib/incident_io/models/custom_fields_create_payload_v1.rb +339 -0
  651. data/lib/incident_io/models/custom_fields_create_payload_v2.rb +276 -0
  652. data/lib/incident_io/models/custom_fields_create_result_v1.rb +164 -0
  653. data/lib/incident_io/models/custom_fields_create_result_v2.rb +164 -0
  654. data/lib/incident_io/models/custom_fields_list_result_v1.rb +166 -0
  655. data/lib/incident_io/models/custom_fields_list_result_v2.rb +166 -0
  656. data/lib/incident_io/models/custom_fields_show_result_v1.rb +164 -0
  657. data/lib/incident_io/models/custom_fields_show_result_v2.rb +164 -0
  658. data/lib/incident_io/models/custom_fields_update_payload_v1.rb +312 -0
  659. data/lib/incident_io/models/custom_fields_update_payload_v2.rb +239 -0
  660. data/lib/incident_io/models/custom_fields_update_result_v1.rb +164 -0
  661. data/lib/incident_io/models/custom_fields_update_result_v2.rb +164 -0
  662. data/lib/incident_io/models/embedded_catalog_entry_v1.rb +214 -0
  663. data/lib/incident_io/models/embedded_catalog_entry_v2.rb +214 -0
  664. data/lib/incident_io/models/embedded_incident_role_v2.rb +382 -0
  665. data/lib/incident_io/models/engine_param_binding_payload_v2.rb +159 -0
  666. data/lib/incident_io/models/engine_param_binding_payload_v3.rb +159 -0
  667. data/lib/incident_io/models/engine_param_binding_v2.rb +159 -0
  668. data/lib/incident_io/models/engine_param_binding_v3.rb +159 -0
  669. data/lib/incident_io/models/engine_param_binding_value_payload_v2.rb +158 -0
  670. data/lib/incident_io/models/engine_param_binding_value_payload_v3.rb +158 -0
  671. data/lib/incident_io/models/engine_param_binding_value_v2.rb +185 -0
  672. data/lib/incident_io/models/engine_param_binding_value_v3.rb +158 -0
  673. data/lib/incident_io/models/engine_param_v2.rb +321 -0
  674. data/lib/incident_io/models/engine_reference_v2.rb +246 -0
  675. data/lib/incident_io/models/error_debug.rb +194 -0
  676. data/lib/incident_io/models/error_rate_limit.rb +246 -0
  677. data/lib/incident_io/models/error_response.rb +266 -0
  678. data/lib/incident_io/models/error_single.rb +213 -0
  679. data/lib/incident_io/models/error_source.rb +192 -0
  680. data/lib/incident_io/models/escalation_creator_v2.rb +166 -0
  681. data/lib/incident_io/models/escalation_event_v2.rb +253 -0
  682. data/lib/incident_io/models/escalation_path_node_delay_v2.rb +168 -0
  683. data/lib/incident_io/models/escalation_path_node_escalation_path_v2.rb +165 -0
  684. data/lib/incident_io/models/escalation_path_node_if_else_payload_v2.rb +208 -0
  685. data/lib/incident_io/models/escalation_path_node_if_else_v2.rb +225 -0
  686. data/lib/incident_io/models/escalation_path_node_level_v2.rb +225 -0
  687. data/lib/incident_io/models/escalation_path_node_level_with_binding_payload_v2.rb +225 -0
  688. data/lib/incident_io/models/escalation_path_node_level_with_binding_v2.rb +225 -0
  689. data/lib/incident_io/models/escalation_path_node_notify_channel_v2.rb +197 -0
  690. data/lib/incident_io/models/escalation_path_node_notify_channel_with_binding_payload_v2.rb +197 -0
  691. data/lib/incident_io/models/escalation_path_node_notify_channel_with_binding_v2.rb +197 -0
  692. data/lib/incident_io/models/escalation_path_node_payload_v2.rb +246 -0
  693. data/lib/incident_io/models/escalation_path_node_repeat_v2.rb +192 -0
  694. data/lib/incident_io/models/escalation_path_node_v2.rb +246 -0
  695. data/lib/incident_io/models/escalation_path_repeat_config_v2.rb +210 -0
  696. data/lib/incident_io/models/escalation_path_retry_config_v2.rb +210 -0
  697. data/lib/incident_io/models/escalation_path_round_robin_config_v2.rb +175 -0
  698. data/lib/incident_io/models/escalation_path_target_v2.rb +239 -0
  699. data/lib/incident_io/models/escalation_path_target_with_binding_payload_v2.rb +231 -0
  700. data/lib/incident_io/models/escalation_path_target_with_binding_v2.rb +231 -0
  701. data/lib/incident_io/models/escalation_path_template_node_if_else_payload_v2.rb +208 -0
  702. data/lib/incident_io/models/escalation_path_template_node_if_else_v2.rb +225 -0
  703. data/lib/incident_io/models/escalation_path_template_node_payload_v2.rb +246 -0
  704. data/lib/incident_io/models/escalation_path_template_node_v2.rb +246 -0
  705. data/lib/incident_io/models/escalation_path_template_v2.rb +337 -0
  706. data/lib/incident_io/models/escalation_path_templates_create_payload_v2.rb +249 -0
  707. data/lib/incident_io/models/escalation_path_templates_create_result_v2.rb +164 -0
  708. data/lib/incident_io/models/escalation_path_templates_list_result_v2.rb +192 -0
  709. data/lib/incident_io/models/escalation_path_templates_show_result_v2.rb +164 -0
  710. data/lib/incident_io/models/escalation_path_templates_update_payload_v2.rb +249 -0
  711. data/lib/incident_io/models/escalation_path_templates_update_result_v2.rb +164 -0
  712. data/lib/incident_io/models/escalation_path_v2.rb +332 -0
  713. data/lib/incident_io/models/escalation_priority_v2.rb +166 -0
  714. data/lib/incident_io/models/escalation_respond_snooze_details_payload_v2.rb +175 -0
  715. data/lib/incident_io/models/escalation_user_response_options_v2.rb +194 -0
  716. data/lib/incident_io/models/escalation_v2.rb +449 -0
  717. data/lib/incident_io/models/escalation_with_status_change_v2.rb +210 -0
  718. data/lib/incident_io/models/escalations_check_escalation_permissions_payload_v2.rb +167 -0
  719. data/lib/incident_io/models/escalations_check_escalation_permissions_result_v2.rb +167 -0
  720. data/lib/incident_io/models/escalations_create_path_payload_v2.rb +259 -0
  721. data/lib/incident_io/models/escalations_create_path_result_v2.rb +164 -0
  722. data/lib/incident_io/models/escalations_create_payload_v2.rb +234 -0
  723. data/lib/incident_io/models/escalations_create_result_v2.rb +164 -0
  724. data/lib/incident_io/models/escalations_list_paths_result_v2.rb +192 -0
  725. data/lib/incident_io/models/escalations_list_result_v2.rb +192 -0
  726. data/lib/incident_io/models/escalations_reassign_escalation_payload_v2.rb +192 -0
  727. data/lib/incident_io/models/escalations_reassign_escalation_result_v2.rb +164 -0
  728. data/lib/incident_io/models/escalations_respond_escalation_payload_v2.rb +174 -0
  729. data/lib/incident_io/models/escalations_show_path_result_v2.rb +164 -0
  730. data/lib/incident_io/models/escalations_show_result_v2.rb +164 -0
  731. data/lib/incident_io/models/escalations_update_path_payload_v2.rb +259 -0
  732. data/lib/incident_io/models/escalations_update_path_result_v2.rb +164 -0
  733. data/lib/incident_io/models/expression_branch_payload_v2.rb +193 -0
  734. data/lib/incident_io/models/expression_branch_payload_v3.rb +193 -0
  735. data/lib/incident_io/models/expression_branch_v2.rb +193 -0
  736. data/lib/incident_io/models/expression_branch_v3.rb +193 -0
  737. data/lib/incident_io/models/expression_branches_opts_payload_v2.rb +193 -0
  738. data/lib/incident_io/models/expression_branches_opts_payload_v3.rb +193 -0
  739. data/lib/incident_io/models/expression_branches_opts_v2.rb +193 -0
  740. data/lib/incident_io/models/expression_branches_opts_v3.rb +193 -0
  741. data/lib/incident_io/models/expression_cast_opts_payload_v2.rb +164 -0
  742. data/lib/incident_io/models/expression_cast_opts_payload_v3.rb +164 -0
  743. data/lib/incident_io/models/expression_cast_opts_v2.rb +164 -0
  744. data/lib/incident_io/models/expression_cast_opts_v3.rb +164 -0
  745. data/lib/incident_io/models/expression_concatenate_opts_payload_v2.rb +165 -0
  746. data/lib/incident_io/models/expression_concatenate_opts_payload_v3.rb +165 -0
  747. data/lib/incident_io/models/expression_concatenate_opts_v2.rb +192 -0
  748. data/lib/incident_io/models/expression_concatenate_opts_v3.rb +192 -0
  749. data/lib/incident_io/models/expression_else_branch_payload_v2.rb +164 -0
  750. data/lib/incident_io/models/expression_else_branch_payload_v3.rb +164 -0
  751. data/lib/incident_io/models/expression_else_branch_v2.rb +164 -0
  752. data/lib/incident_io/models/expression_else_branch_v3.rb +164 -0
  753. data/lib/incident_io/models/expression_filter_opts_payload_v2.rb +167 -0
  754. data/lib/incident_io/models/expression_filter_opts_payload_v3.rb +167 -0
  755. data/lib/incident_io/models/expression_filter_opts_v2.rb +167 -0
  756. data/lib/incident_io/models/expression_filter_opts_v3.rb +167 -0
  757. data/lib/incident_io/models/expression_navigate_opts_payload_v2.rb +165 -0
  758. data/lib/incident_io/models/expression_navigate_opts_payload_v3.rb +165 -0
  759. data/lib/incident_io/models/expression_navigate_opts_v2.rb +192 -0
  760. data/lib/incident_io/models/expression_navigate_opts_v3.rb +192 -0
  761. data/lib/incident_io/models/expression_operation_payload_v2.rb +219 -0
  762. data/lib/incident_io/models/expression_operation_payload_v3.rb +219 -0
  763. data/lib/incident_io/models/expression_operation_v2.rb +245 -0
  764. data/lib/incident_io/models/expression_operation_v3.rb +245 -0
  765. data/lib/incident_io/models/expression_parse_opts_payload_v2.rb +191 -0
  766. data/lib/incident_io/models/expression_parse_opts_payload_v3.rb +191 -0
  767. data/lib/incident_io/models/expression_parse_opts_v2.rb +191 -0
  768. data/lib/incident_io/models/expression_parse_opts_v3.rb +191 -0
  769. data/lib/incident_io/models/expression_payload_v2.rb +256 -0
  770. data/lib/incident_io/models/expression_payload_v3.rb +256 -0
  771. data/lib/incident_io/models/expression_v2.rb +282 -0
  772. data/lib/incident_io/models/expression_v3.rb +282 -0
  773. data/lib/incident_io/models/external_issue_reference_v1.rb +168 -0
  774. data/lib/incident_io/models/external_issue_reference_v2.rb +219 -0
  775. data/lib/incident_io/models/external_resource_v1.rb +246 -0
  776. data/lib/incident_io/models/follow_up_category_v3.rb +229 -0
  777. data/lib/incident_io/models/follow_up_priority_v2.rb +229 -0
  778. data/lib/incident_io/models/follow_up_v2.rb +411 -0
  779. data/lib/incident_io/models/follow_up_v3.rb +420 -0
  780. data/lib/incident_io/models/follow_ups_connect_external_issue_payload_v2.rb +192 -0
  781. data/lib/incident_io/models/follow_ups_connect_external_issue_payload_v3.rb +192 -0
  782. data/lib/incident_io/models/follow_ups_connect_external_issue_result_v2.rb +164 -0
  783. data/lib/incident_io/models/follow_ups_connect_external_issue_result_v3.rb +164 -0
  784. data/lib/incident_io/models/follow_ups_create_from_link_payload_v3.rb +192 -0
  785. data/lib/incident_io/models/follow_ups_create_from_link_result_v3.rb +164 -0
  786. data/lib/incident_io/models/follow_ups_create_payload_v2.rb +264 -0
  787. data/lib/incident_io/models/follow_ups_create_payload_v3.rb +264 -0
  788. data/lib/incident_io/models/follow_ups_create_result_v2.rb +164 -0
  789. data/lib/incident_io/models/follow_ups_create_result_v3.rb +164 -0
  790. data/lib/incident_io/models/follow_ups_list_result_v2.rb +166 -0
  791. data/lib/incident_io/models/follow_ups_list_result_v3.rb +192 -0
  792. data/lib/incident_io/models/follow_ups_show_result_v2.rb +164 -0
  793. data/lib/incident_io/models/follow_ups_show_result_v3.rb +164 -0
  794. data/lib/incident_io/models/follow_ups_update_payload_v2.rb +254 -0
  795. data/lib/incident_io/models/follow_ups_update_payload_v3.rb +254 -0
  796. data/lib/incident_io/models/follow_ups_update_result_v2.rb +164 -0
  797. data/lib/incident_io/models/follow_ups_update_result_v3.rb +164 -0
  798. data/lib/incident_io/models/grouping_key_v2.rb +165 -0
  799. data/lib/incident_io/models/grouping_key_v3.rb +165 -0
  800. data/lib/incident_io/models/grouping_settings_v3.rb +225 -0
  801. data/lib/incident_io/models/identity_team_v1.rb +192 -0
  802. data/lib/incident_io/models/identity_v1.rb +279 -0
  803. data/lib/incident_io/models/image_v1.rb +192 -0
  804. data/lib/incident_io/models/incident_activity_log_content_v2.rb +301 -0
  805. data/lib/incident_io/models/incident_activity_log_entries_list_result_v2.rb +175 -0
  806. data/lib/incident_io/models/incident_activity_log_entry_v2.rb +310 -0
  807. data/lib/incident_io/models/incident_alert_v2.rb +227 -0
  808. data/lib/incident_io/models/incident_attachment_v1.rb +218 -0
  809. data/lib/incident_io/models/incident_attachments_create_payload_v1.rb +191 -0
  810. data/lib/incident_io/models/incident_attachments_create_payload_v1_resource.rb +205 -0
  811. data/lib/incident_io/models/incident_attachments_create_result_v1.rb +164 -0
  812. data/lib/incident_io/models/incident_attachments_list_result_v1.rb +166 -0
  813. data/lib/incident_io/models/incident_duration_metric_v2.rb +192 -0
  814. data/lib/incident_io/models/incident_duration_metric_with_value_v2.rb +201 -0
  815. data/lib/incident_io/models/incident_edit_payload_v2.rb +234 -0
  816. data/lib/incident_io/models/incident_membership_v1.rb +272 -0
  817. data/lib/incident_io/models/incident_memberships_create_payload_v1.rb +191 -0
  818. data/lib/incident_io/models/incident_memberships_create_result_v1.rb +164 -0
  819. data/lib/incident_io/models/incident_memberships_revoke_payload_v1.rb +191 -0
  820. data/lib/incident_io/models/incident_participant_v2.rb +191 -0
  821. data/lib/incident_io/models/incident_participant_workload_v2.rb +210 -0
  822. data/lib/incident_io/models/incident_participant_workloads_list_result_v2.rb +192 -0
  823. data/lib/incident_io/models/incident_participants_list_result_v2.rb +164 -0
  824. data/lib/incident_io/models/incident_participants_v2.rb +196 -0
  825. data/lib/incident_io/models/incident_relationship_details_v1.rb +219 -0
  826. data/lib/incident_io/models/incident_relationship_v1.rb +191 -0
  827. data/lib/incident_io/models/incident_relationships_list_result_v1.rb +175 -0
  828. data/lib/incident_io/models/incident_role_assignment_payload_v1.rb +191 -0
  829. data/lib/incident_io/models/incident_role_assignment_payload_v2.rb +174 -0
  830. data/lib/incident_io/models/incident_role_assignment_v1.rb +173 -0
  831. data/lib/incident_io/models/incident_role_assignment_v2.rb +173 -0
  832. data/lib/incident_io/models/incident_role_v1.rb +382 -0
  833. data/lib/incident_io/models/incident_role_v2.rb +372 -0
  834. data/lib/incident_io/models/incident_roles_create_payload_v1.rb +291 -0
  835. data/lib/incident_io/models/incident_roles_create_payload_v2.rb +264 -0
  836. data/lib/incident_io/models/incident_roles_create_result_v1.rb +164 -0
  837. data/lib/incident_io/models/incident_roles_create_result_v2.rb +164 -0
  838. data/lib/incident_io/models/incident_roles_list_result_v1.rb +166 -0
  839. data/lib/incident_io/models/incident_roles_list_result_v2.rb +166 -0
  840. data/lib/incident_io/models/incident_roles_show_result_v1.rb +164 -0
  841. data/lib/incident_io/models/incident_roles_show_result_v2.rb +164 -0
  842. data/lib/incident_io/models/incident_roles_update_payload_v1.rb +274 -0
  843. data/lib/incident_io/models/incident_roles_update_payload_v2.rb +264 -0
  844. data/lib/incident_io/models/incident_roles_update_result_v1.rb +164 -0
  845. data/lib/incident_io/models/incident_roles_update_result_v2.rb +164 -0
  846. data/lib/incident_io/models/incident_slim_v2.rb +311 -0
  847. data/lib/incident_io/models/incident_status_v1.rb +325 -0
  848. data/lib/incident_io/models/incident_status_v2.rb +325 -0
  849. data/lib/incident_io/models/incident_statuses_create_payload_v1.rb +229 -0
  850. data/lib/incident_io/models/incident_statuses_create_result_v1.rb +164 -0
  851. data/lib/incident_io/models/incident_statuses_list_result_v1.rb +166 -0
  852. data/lib/incident_io/models/incident_statuses_show_result_v1.rb +164 -0
  853. data/lib/incident_io/models/incident_statuses_update_payload_v1.rb +202 -0
  854. data/lib/incident_io/models/incident_statuses_update_result_v1.rb +164 -0
  855. data/lib/incident_io/models/incident_template_auto_generated_binding_payload_v1.rb +157 -0
  856. data/lib/incident_io/models/incident_template_auto_generated_binding_v1.rb +174 -0
  857. data/lib/incident_io/models/incident_template_binding_payload_v1.rb +147 -0
  858. data/lib/incident_io/models/incident_template_binding_v1.rb +147 -0
  859. data/lib/incident_io/models/incident_template_config_payload_v1.rb +231 -0
  860. data/lib/incident_io/models/incident_template_config_v1.rb +231 -0
  861. data/lib/incident_io/models/incident_template_custom_field_binding_payload_v1.rb +218 -0
  862. data/lib/incident_io/models/incident_template_custom_field_binding_v1.rb +218 -0
  863. data/lib/incident_io/models/incident_template_severity_binding_payload_v1.rb +174 -0
  864. data/lib/incident_io/models/incident_template_severity_binding_v1.rb +174 -0
  865. data/lib/incident_io/models/incident_template_v1.rb +285 -0
  866. data/lib/incident_io/models/incident_template_validate_warning_v1.rb +193 -0
  867. data/lib/incident_io/models/incident_templates_create_payload_v1.rb +203 -0
  868. data/lib/incident_io/models/incident_templates_create_result_v1.rb +164 -0
  869. data/lib/incident_io/models/incident_templates_list_result_v1.rb +175 -0
  870. data/lib/incident_io/models/incident_templates_show_result_v1.rb +164 -0
  871. data/lib/incident_io/models/incident_templates_update_payload_v1.rb +203 -0
  872. data/lib/incident_io/models/incident_templates_update_result_v1.rb +164 -0
  873. data/lib/incident_io/models/incident_templates_validate_payload_v1.rb +203 -0
  874. data/lib/incident_io/models/incident_templates_validate_result_v1.rb +167 -0
  875. data/lib/incident_io/models/incident_timeline_item_v2.rb +347 -0
  876. data/lib/incident_io/models/incident_timeline_items_create_payload_v2.rb +274 -0
  877. data/lib/incident_io/models/incident_timeline_items_create_result_v2.rb +164 -0
  878. data/lib/incident_io/models/incident_timeline_items_list_result_v2.rb +175 -0
  879. data/lib/incident_io/models/incident_timeline_items_update_payload_v2.rb +187 -0
  880. data/lib/incident_io/models/incident_timeline_items_update_result_v2.rb +164 -0
  881. data/lib/incident_io/models/incident_timestamp_v2.rb +219 -0
  882. data/lib/incident_io/models/incident_timestamp_value_payload_v2.rb +175 -0
  883. data/lib/incident_io/models/incident_timestamp_value_v1.rb +175 -0
  884. data/lib/incident_io/models/incident_timestamp_value_v2.rb +148 -0
  885. data/lib/incident_io/models/incident_timestamp_with_value_v2.rb +173 -0
  886. data/lib/incident_io/models/incident_timestamps_list_result_v2.rb +166 -0
  887. data/lib/incident_io/models/incident_timestamps_show_result_v2.rb +164 -0
  888. data/lib/incident_io/models/incident_type_v1.rb +366 -0
  889. data/lib/incident_io/models/incident_type_v2.rb +354 -0
  890. data/lib/incident_io/models/incident_types_list_result_v1.rb +166 -0
  891. data/lib/incident_io/models/incident_types_show_result_v1.rb +164 -0
  892. data/lib/incident_io/models/incident_update_v2.rb +300 -0
  893. data/lib/incident_io/models/incident_updates_create_payload_v2.rb +222 -0
  894. data/lib/incident_io/models/incident_updates_create_result_v2.rb +164 -0
  895. data/lib/incident_io/models/incident_updates_list_result_v2.rb +175 -0
  896. data/lib/incident_io/models/incident_v1.rb +572 -0
  897. data/lib/incident_io/models/incident_v2.rb +730 -0
  898. data/lib/incident_io/models/incident_with_status_change_v2.rb +226 -0
  899. data/lib/incident_io/models/incidents_create_payload_v1.rb +306 -0
  900. data/lib/incident_io/models/incidents_create_payload_v2.rb +317 -0
  901. data/lib/incident_io/models/incidents_create_result_v1.rb +164 -0
  902. data/lib/incident_io/models/incidents_create_result_v2.rb +164 -0
  903. data/lib/incident_io/models/incidents_edit_payload_v2.rb +191 -0
  904. data/lib/incident_io/models/incidents_edit_result_v2.rb +164 -0
  905. data/lib/incident_io/models/incidents_import_postmortem_document_payload_v2.rb +192 -0
  906. data/lib/incident_io/models/incidents_import_postmortem_document_result_v2.rb +164 -0
  907. data/lib/incident_io/models/incidents_list_result_v1.rb +175 -0
  908. data/lib/incident_io/models/incidents_list_result_v2.rb +175 -0
  909. data/lib/incident_io/models/incidents_show_result_v1.rb +164 -0
  910. data/lib/incident_io/models/incidents_show_result_v2.rb +164 -0
  911. data/lib/incident_io/models/ip_allowlist_item_v1.rb +175 -0
  912. data/lib/incident_io/models/ip_allowlist_v1.rb +231 -0
  913. data/lib/incident_io/models/ip_allowlists_show_ip_allowlist_result_v1.rb +164 -0
  914. data/lib/incident_io/models/ip_allowlists_update_ip_allowlist_payload_v1.rb +221 -0
  915. data/lib/incident_io/models/ip_allowlists_update_ip_allowlist_result_v1.rb +164 -0
  916. data/lib/incident_io/models/ip_range_v1.rb +193 -0
  917. data/lib/incident_io/models/linked_schedule_v2.rb +221 -0
  918. data/lib/incident_io/models/maintenance_window_escalation_target_payload_v1.rb +156 -0
  919. data/lib/incident_io/models/maintenance_window_escalation_target_v1.rb +156 -0
  920. data/lib/incident_io/models/maintenance_window_notify_channel_payload_v1.rb +203 -0
  921. data/lib/incident_io/models/maintenance_window_notify_channel_v1.rb +213 -0
  922. data/lib/incident_io/models/maintenance_window_v1.rb +522 -0
  923. data/lib/incident_io/models/maintenance_windows_create_payload_v1.rb +397 -0
  924. data/lib/incident_io/models/maintenance_windows_create_result_v1.rb +164 -0
  925. data/lib/incident_io/models/maintenance_windows_list_result_v1.rb +192 -0
  926. data/lib/incident_io/models/maintenance_windows_show_result_v1.rb +164 -0
  927. data/lib/incident_io/models/maintenance_windows_update_payload_v1.rb +397 -0
  928. data/lib/incident_io/models/maintenance_windows_update_result_v1.rb +164 -0
  929. data/lib/incident_io/models/management_meta_v2.rb +204 -0
  930. data/lib/incident_io/models/new_slack_user_group_payload_v2.rb +229 -0
  931. data/lib/incident_io/models/on_call_notification_method_phone_details_public_v2.rb +192 -0
  932. data/lib/incident_io/models/on_call_notification_method_public_v2.rb +255 -0
  933. data/lib/incident_io/models/on_call_notification_rule_app_details_public_v2.rb +165 -0
  934. data/lib/incident_io/models/on_call_notification_rule_method_target_public_v2.rb +183 -0
  935. data/lib/incident_io/models/on_call_notification_rule_method_target_specific_public_v2.rb +165 -0
  936. data/lib/incident_io/models/on_call_notification_rule_phone_details_public_v2.rb +165 -0
  937. data/lib/incident_io/models/on_call_notification_rule_public_v2.rb +301 -0
  938. data/lib/incident_io/models/pagination_meta_result_v1.rb +184 -0
  939. data/lib/incident_io/models/pagination_meta_result_v2.rb +184 -0
  940. data/lib/incident_io/models/pagination_meta_result_v3.rb +184 -0
  941. data/lib/incident_io/models/pagination_meta_result_with_total_v1.rb +194 -0
  942. data/lib/incident_io/models/pagination_meta_result_with_total_v2.rb +194 -0
  943. data/lib/incident_io/models/pagination_meta_result_with_total_v3.rb +194 -0
  944. data/lib/incident_io/models/partial_entry_payload_v3.rb +237 -0
  945. data/lib/incident_io/models/pay_config_one_off_rule_payload_v2.rb +257 -0
  946. data/lib/incident_io/models/pay_config_one_off_rule_v2.rb +274 -0
  947. data/lib/incident_io/models/pay_config_v2.rb +421 -0
  948. data/lib/incident_io/models/pay_config_weekly_rule_payload_v2.rb +259 -0
  949. data/lib/incident_io/models/pay_config_weekly_rule_v2.rb +276 -0
  950. data/lib/incident_io/models/pay_configs_create_one_off_rule_payload_v2.rb +246 -0
  951. data/lib/incident_io/models/pay_configs_create_one_off_rule_result_v2.rb +164 -0
  952. data/lib/incident_io/models/pay_configs_create_payload_v2.rb +297 -0
  953. data/lib/incident_io/models/pay_configs_create_result_v2.rb +164 -0
  954. data/lib/incident_io/models/pay_configs_create_weekly_rule_payload_v2.rb +248 -0
  955. data/lib/incident_io/models/pay_configs_create_weekly_rule_result_v2.rb +164 -0
  956. data/lib/incident_io/models/pay_configs_list_one_off_rules_result_v2.rb +166 -0
  957. data/lib/incident_io/models/pay_configs_list_result_v2.rb +192 -0
  958. data/lib/incident_io/models/pay_configs_list_weekly_rules_result_v2.rb +166 -0
  959. data/lib/incident_io/models/pay_configs_show_one_off_rule_result_v2.rb +164 -0
  960. data/lib/incident_io/models/pay_configs_show_result_v2.rb +164 -0
  961. data/lib/incident_io/models/pay_configs_show_weekly_rule_result_v2.rb +164 -0
  962. data/lib/incident_io/models/pay_configs_update_one_off_rule_payload_v2.rb +246 -0
  963. data/lib/incident_io/models/pay_configs_update_one_off_rule_result_v2.rb +164 -0
  964. data/lib/incident_io/models/pay_configs_update_payload_v2.rb +273 -0
  965. data/lib/incident_io/models/pay_configs_update_result_v2.rb +164 -0
  966. data/lib/incident_io/models/pay_configs_update_weekly_rule_payload_v2.rb +248 -0
  967. data/lib/incident_io/models/pay_configs_update_weekly_rule_result_v2.rb +164 -0
  968. data/lib/incident_io/models/pay_report_rotation_filter_v2.rb +204 -0
  969. data/lib/incident_io/models/pay_report_v2.rb +472 -0
  970. data/lib/incident_io/models/pay_reports_create_payload_v2.rb +318 -0
  971. data/lib/incident_io/models/pay_reports_create_result_v2.rb +164 -0
  972. data/lib/incident_io/models/pay_reports_list_result_v2.rb +192 -0
  973. data/lib/incident_io/models/pay_reports_publish_payload_v2.rb +194 -0
  974. data/lib/incident_io/models/pay_reports_publish_result_v2.rb +164 -0
  975. data/lib/incident_io/models/pay_reports_show_result_v2.rb +164 -0
  976. data/lib/incident_io/models/pay_reports_unpublish_payload_v2.rb +174 -0
  977. data/lib/incident_io/models/pay_reports_unpublish_result_v2.rb +164 -0
  978. data/lib/incident_io/models/policies_create_payload_v2.rb +324 -0
  979. data/lib/incident_io/models/policies_create_result_v2.rb +164 -0
  980. data/lib/incident_io/models/policies_list_result_v2.rb +192 -0
  981. data/lib/incident_io/models/policies_show_result_v2.rb +164 -0
  982. data/lib/incident_io/models/policies_update_payload_v2.rb +324 -0
  983. data/lib/incident_io/models/policies_update_result_v2.rb +164 -0
  984. data/lib/incident_io/models/policy_assignment_rules_payload_v2.rb +226 -0
  985. data/lib/incident_io/models/policy_assignment_rules_v2.rb +226 -0
  986. data/lib/incident_io/models/policy_debrief_payload_v2.rb +187 -0
  987. data/lib/incident_io/models/policy_debrief_v2.rb +187 -0
  988. data/lib/incident_io/models/policy_due_date_config_payload_v2.rb +238 -0
  989. data/lib/incident_io/models/policy_due_date_config_v2.rb +238 -0
  990. data/lib/incident_io/models/policy_finding_debrief_v2.rb +166 -0
  991. data/lib/incident_io/models/policy_finding_dismissal_v2.rb +217 -0
  992. data/lib/incident_io/models/policy_finding_follow_up_v2.rb +193 -0
  993. data/lib/incident_io/models/policy_finding_on_call_readiness_v2.rb +224 -0
  994. data/lib/incident_io/models/policy_finding_post_mortem_v2.rb +166 -0
  995. data/lib/incident_io/models/policy_finding_readiness_rule_v2.rb +203 -0
  996. data/lib/incident_io/models/policy_finding_schedule_impacted_user_v2.rb +217 -0
  997. data/lib/incident_io/models/policy_finding_schedule_v2.rb +262 -0
  998. data/lib/incident_io/models/policy_finding_v2.rb +437 -0
  999. data/lib/incident_io/models/policy_finding_vacation_conflict_v2.rb +267 -0
  1000. data/lib/incident_io/models/policy_findings_dismiss_payload_v2.rb +174 -0
  1001. data/lib/incident_io/models/policy_findings_dismiss_result_v2.rb +164 -0
  1002. data/lib/incident_io/models/policy_findings_list_result_v2.rb +192 -0
  1003. data/lib/incident_io/models/policy_findings_restore_result_v2.rb +164 -0
  1004. data/lib/incident_io/models/policy_findings_show_result_v2.rb +164 -0
  1005. data/lib/incident_io/models/policy_follow_up_payload_v2.rb +187 -0
  1006. data/lib/incident_io/models/policy_follow_up_v2.rb +187 -0
  1007. data/lib/incident_io/models/policy_on_call_readiness_v2.rb +171 -0
  1008. data/lib/incident_io/models/policy_post_mortem_payload_v2.rb +187 -0
  1009. data/lib/incident_io/models/policy_post_mortem_v2.rb +187 -0
  1010. data/lib/incident_io/models/policy_readiness_rule_v2.rb +176 -0
  1011. data/lib/incident_io/models/policy_reminder_cadence_v2.rb +166 -0
  1012. data/lib/incident_io/models/policy_schedule_v2.rb +176 -0
  1013. data/lib/incident_io/models/policy_v2.rb +403 -0
  1014. data/lib/incident_io/models/postmortem_document_v1.rb +412 -0
  1015. data/lib/incident_io/models/postmortem_document_with_status_change_v1.rb +218 -0
  1016. data/lib/incident_io/models/postmortem_documents_attach_payload_v1.rb +202 -0
  1017. data/lib/incident_io/models/postmortem_documents_attach_result_v1.rb +164 -0
  1018. data/lib/incident_io/models/postmortem_documents_list_result_v1.rb +192 -0
  1019. data/lib/incident_io/models/postmortem_documents_show_content_result_v1.rb +165 -0
  1020. data/lib/incident_io/models/postmortem_documents_show_result_v1.rb +164 -0
  1021. data/lib/incident_io/models/postmortem_documents_update_status_payload_v1.rb +165 -0
  1022. data/lib/incident_io/models/postmortem_documents_update_status_result_v1.rb +164 -0
  1023. data/lib/incident_io/models/rbac_role_v2.rb +229 -0
  1024. data/lib/incident_io/models/retrospective_incident_options_v2.rb +168 -0
  1025. data/lib/incident_io/models/returns_meta_v2.rb +192 -0
  1026. data/lib/incident_io/models/returns_meta_v3.rb +192 -0
  1027. data/lib/incident_io/models/schedule_config_create_payload_v2.rb +149 -0
  1028. data/lib/incident_io/models/schedule_config_update_payload_v2.rb +149 -0
  1029. data/lib/incident_io/models/schedule_config_v2.rb +167 -0
  1030. data/lib/incident_io/models/schedule_create_payload_v2.rb +200 -0
  1031. data/lib/incident_io/models/schedule_entries_list_payload_v2.rb +226 -0
  1032. data/lib/incident_io/models/schedule_entry_v2.rb +240 -0
  1033. data/lib/incident_io/models/schedule_holidays_public_config_payload_v2.rb +167 -0
  1034. data/lib/incident_io/models/schedule_holidays_public_config_v2.rb +167 -0
  1035. data/lib/incident_io/models/schedule_layer_create_payload_v2.rb +175 -0
  1036. data/lib/incident_io/models/schedule_layer_update_payload_v2.rb +158 -0
  1037. data/lib/incident_io/models/schedule_layer_v2.rb +158 -0
  1038. data/lib/incident_io/models/schedule_override_v2.rb +361 -0
  1039. data/lib/incident_io/models/schedule_replica_create_payload_v2.rb +286 -0
  1040. data/lib/incident_io/models/schedule_replica_source_v2.rb +192 -0
  1041. data/lib/incident_io/models/schedule_replica_user_status_v2.rb +175 -0
  1042. data/lib/incident_io/models/schedule_replica_v2.rb +443 -0
  1043. data/lib/incident_io/models/schedule_rotation_create_payload_v2.rb +263 -0
  1044. data/lib/incident_io/models/schedule_rotation_handover_v2.rb +191 -0
  1045. data/lib/incident_io/models/schedule_rotation_update_payload_v2.rb +246 -0
  1046. data/lib/incident_io/models/schedule_rotation_v2.rb +367 -0
  1047. data/lib/incident_io/models/schedule_rotation_working_interval_create_payload_v2.rb +219 -0
  1048. data/lib/incident_io/models/schedule_rotation_working_interval_v2.rb +219 -0
  1049. data/lib/incident_io/models/schedule_shift_change_v2.rb +222 -0
  1050. data/lib/incident_io/models/schedule_slim_v2.rb +283 -0
  1051. data/lib/incident_io/models/schedule_sync_rule_create_payload_v2.rb +226 -0
  1052. data/lib/incident_io/models/schedule_sync_rule_v2.rb +364 -0
  1053. data/lib/incident_io/models/schedule_sync_target_create_payload_v2.rb +196 -0
  1054. data/lib/incident_io/models/schedule_sync_target_resource_v2.rb +328 -0
  1055. data/lib/incident_io/models/schedule_sync_targets_create_payload_v2.rb +164 -0
  1056. data/lib/incident_io/models/schedule_sync_targets_create_result_v2.rb +164 -0
  1057. data/lib/incident_io/models/schedule_sync_targets_list_result_v2.rb +175 -0
  1058. data/lib/incident_io/models/schedule_sync_targets_show_result_v2.rb +164 -0
  1059. data/lib/incident_io/models/schedule_sync_targets_update_payload_v2.rb +177 -0
  1060. data/lib/incident_io/models/schedule_sync_targets_update_result_v2.rb +164 -0
  1061. data/lib/incident_io/models/schedule_update_payload_v2.rb +200 -0
  1062. data/lib/incident_io/models/schedule_v2.rb +398 -0
  1063. data/lib/incident_io/models/schedules_create_override_payload_v2.rb +299 -0
  1064. data/lib/incident_io/models/schedules_create_override_result_v2.rb +164 -0
  1065. data/lib/incident_io/models/schedules_create_payload_v2.rb +164 -0
  1066. data/lib/incident_io/models/schedules_create_result_v2.rb +164 -0
  1067. data/lib/incident_io/models/schedules_create_schedule_replica_payload_v2.rb +164 -0
  1068. data/lib/incident_io/models/schedules_create_schedule_replica_result_v2.rb +164 -0
  1069. data/lib/incident_io/models/schedules_create_schedule_sync_rule_payload_v2.rb +164 -0
  1070. data/lib/incident_io/models/schedules_create_schedule_sync_rule_result_v2.rb +164 -0
  1071. data/lib/incident_io/models/schedules_list_overrides_result_v2.rb +175 -0
  1072. data/lib/incident_io/models/schedules_list_result_v2.rb +175 -0
  1073. data/lib/incident_io/models/schedules_list_schedule_entries_result_v2.rb +173 -0
  1074. data/lib/incident_io/models/schedules_list_schedule_replicas_result_v2.rb +166 -0
  1075. data/lib/incident_io/models/schedules_list_schedule_sync_rules_result_v2.rb +175 -0
  1076. data/lib/incident_io/models/schedules_preview_schedule_entries_payload_v2.rb +184 -0
  1077. data/lib/incident_io/models/schedules_preview_schedule_entries_result_v2.rb +164 -0
  1078. data/lib/incident_io/models/schedules_show_override_result_v2.rb +164 -0
  1079. data/lib/incident_io/models/schedules_show_result_v2.rb +164 -0
  1080. data/lib/incident_io/models/schedules_show_schedule_replica_result_v2.rb +164 -0
  1081. data/lib/incident_io/models/schedules_show_schedule_sync_rule_result_v2.rb +164 -0
  1082. data/lib/incident_io/models/schedules_update_override_payload_v2.rb +272 -0
  1083. data/lib/incident_io/models/schedules_update_override_result_v2.rb +164 -0
  1084. data/lib/incident_io/models/schedules_update_payload_v2.rb +164 -0
  1085. data/lib/incident_io/models/schedules_update_result_v2.rb +164 -0
  1086. data/lib/incident_io/models/schedules_update_schedule_sync_rule_payload_v2.rb +189 -0
  1087. data/lib/incident_io/models/schedules_update_schedule_sync_rule_result_v2.rb +164 -0
  1088. data/lib/incident_io/models/secret_v2.rb +321 -0
  1089. data/lib/incident_io/models/secret_version_v2.rb +211 -0
  1090. data/lib/incident_io/models/secrets_create_payload_v2.rb +214 -0
  1091. data/lib/incident_io/models/secrets_create_result_v2.rb +164 -0
  1092. data/lib/incident_io/models/secrets_list_result_v2.rb +175 -0
  1093. data/lib/incident_io/models/secrets_rotate_payload_v2.rb +165 -0
  1094. data/lib/incident_io/models/secrets_rotate_result_v2.rb +164 -0
  1095. data/lib/incident_io/models/secrets_show_result_v2.rb +193 -0
  1096. data/lib/incident_io/models/secrets_update_payload_v2.rb +187 -0
  1097. data/lib/incident_io/models/secrets_update_result_v2.rb +164 -0
  1098. data/lib/incident_io/models/severities_create_payload_v1.rb +211 -0
  1099. data/lib/incident_io/models/severities_create_result_v1.rb +164 -0
  1100. data/lib/incident_io/models/severities_list_result_v1.rb +166 -0
  1101. data/lib/incident_io/models/severities_show_result_v1.rb +164 -0
  1102. data/lib/incident_io/models/severities_update_payload_v1.rb +211 -0
  1103. data/lib/incident_io/models/severities_update_result_v1.rb +164 -0
  1104. data/lib/incident_io/models/severity_v1.rb +309 -0
  1105. data/lib/incident_io/models/severity_v2.rb +309 -0
  1106. data/lib/incident_io/models/status_page_component_availability_v2.rb +284 -0
  1107. data/lib/incident_io/models/status_page_incident_affected_component_v2.rb +192 -0
  1108. data/lib/incident_io/models/status_page_incident_component_impact_v2.rb +229 -0
  1109. data/lib/incident_io/models/status_page_incident_update_v2.rb +302 -0
  1110. data/lib/incident_io/models/status_page_incident_v2.rb +331 -0
  1111. data/lib/incident_io/models/status_page_incident_with_update_v2.rb +190 -0
  1112. data/lib/incident_io/models/status_page_linked_response_incident_v1.rb +192 -0
  1113. data/lib/incident_io/models/status_page_maintenance_affected_component_v2.rb +192 -0
  1114. data/lib/incident_io/models/status_page_maintenance_component_maintenance_period_v2.rb +202 -0
  1115. data/lib/incident_io/models/status_page_maintenance_update_v2.rb +302 -0
  1116. data/lib/incident_io/models/status_page_maintenance_v2.rb +358 -0
  1117. data/lib/incident_io/models/status_page_retrospective_incident_update_v2.rb +241 -0
  1118. data/lib/incident_io/models/status_page_structure_component_v2.rb +192 -0
  1119. data/lib/incident_io/models/status_page_structure_group_v2.rb +221 -0
  1120. data/lib/incident_io/models/status_page_structure_item_v2.rb +165 -0
  1121. data/lib/incident_io/models/status_page_structure_sub_page_item_v2.rb +156 -0
  1122. data/lib/incident_io/models/status_page_structure_sub_page_v2.rb +221 -0
  1123. data/lib/incident_io/models/status_page_structure_v2.rb +167 -0
  1124. data/lib/incident_io/models/status_page_v2.rb +212 -0
  1125. data/lib/incident_io/models/status_pages_create_status_page_incident_payload_v2.rb +330 -0
  1126. data/lib/incident_io/models/status_pages_create_status_page_incident_result_v2.rb +147 -0
  1127. data/lib/incident_io/models/status_pages_create_status_page_incident_update_payload_v2.rb +250 -0
  1128. data/lib/incident_io/models/status_pages_create_status_page_incident_update_result_v2.rb +147 -0
  1129. data/lib/incident_io/models/status_pages_create_status_page_maintenance_payload_v2.rb +411 -0
  1130. data/lib/incident_io/models/status_pages_create_status_page_maintenance_result_v2.rb +147 -0
  1131. data/lib/incident_io/models/status_pages_create_status_page_maintenance_update_payload_v2.rb +250 -0
  1132. data/lib/incident_io/models/status_pages_create_status_page_maintenance_update_result_v2.rb +147 -0
  1133. data/lib/incident_io/models/status_pages_create_status_page_retrospective_incident_payload_v2.rb +257 -0
  1134. data/lib/incident_io/models/status_pages_create_status_page_retrospective_incident_result_v2.rb +147 -0
  1135. data/lib/incident_io/models/status_pages_list_response_incidents_result_v1.rb +166 -0
  1136. data/lib/incident_io/models/status_pages_list_status_page_incidents_result_v2.rb +192 -0
  1137. data/lib/incident_io/models/status_pages_list_status_page_maintenances_result_v2.rb +192 -0
  1138. data/lib/incident_io/models/status_pages_list_status_pages_result_v2.rb +192 -0
  1139. data/lib/incident_io/models/status_pages_show_status_page_component_availability_result_v2.rb +164 -0
  1140. data/lib/incident_io/models/status_pages_show_status_page_incident_result_v2.rb +147 -0
  1141. data/lib/incident_io/models/status_pages_show_status_page_maintenance_result_v2.rb +147 -0
  1142. data/lib/incident_io/models/status_pages_show_status_page_structure_result_v2.rb +164 -0
  1143. data/lib/incident_io/models/status_pages_update_status_page_incident_payload_v2.rb +174 -0
  1144. data/lib/incident_io/models/status_pages_update_status_page_incident_result_v2.rb +147 -0
  1145. data/lib/incident_io/models/status_pages_update_status_page_maintenance_payload_v2.rb +228 -0
  1146. data/lib/incident_io/models/status_pages_update_status_page_maintenance_result_v2.rb +147 -0
  1147. data/lib/incident_io/models/step_config_payload_v2.rb +231 -0
  1148. data/lib/incident_io/models/step_config_slim_v2.rb +192 -0
  1149. data/lib/incident_io/models/step_config_v2.rb +258 -0
  1150. data/lib/incident_io/models/step_progress_slim_v2.rb +251 -0
  1151. data/lib/incident_io/models/step_progress_v2.rb +251 -0
  1152. data/lib/incident_io/models/team_slim_v2.rb +192 -0
  1153. data/lib/incident_io/models/team_v3.rb +247 -0
  1154. data/lib/incident_io/models/teams_list_result_v3.rb +192 -0
  1155. data/lib/incident_io/models/teams_show_result_v3.rb +164 -0
  1156. data/lib/incident_io/models/telemetry_data_source_v2.rb +338 -0
  1157. data/lib/incident_io/models/telemetry_datadog_update_config_v2.rb +159 -0
  1158. data/lib/incident_io/models/telemetry_grafana_update_config_v2.rb +159 -0
  1159. data/lib/incident_io/models/telemetry_update_data_source_payload_v2.rb +166 -0
  1160. data/lib/incident_io/models/telemetry_update_data_source_result_v2.rb +164 -0
  1161. data/lib/incident_io/models/trigger_slim_v2.rb +192 -0
  1162. data/lib/incident_io/models/user_reference_payload_v1.rb +168 -0
  1163. data/lib/incident_io/models/user_reference_payload_v2.rb +168 -0
  1164. data/lib/incident_io/models/user_seats_v2.rb +192 -0
  1165. data/lib/incident_io/models/user_v1.rb +239 -0
  1166. data/lib/incident_io/models/user_v2.rb +239 -0
  1167. data/lib/incident_io/models/user_v3.rb +212 -0
  1168. data/lib/incident_io/models/user_with_roles_v2.rb +346 -0
  1169. data/lib/incident_io/models/users_list_notification_methods_result_v2.rb +166 -0
  1170. data/lib/incident_io/models/users_list_notification_rules_result_v2.rb +166 -0
  1171. data/lib/incident_io/models/users_list_result_v2.rb +192 -0
  1172. data/lib/incident_io/models/users_show_paging_provider_result_v2.rb +148 -0
  1173. data/lib/incident_io/models/users_show_result_v2.rb +164 -0
  1174. data/lib/incident_io/models/users_update_paging_provider_payload_v2.rb +165 -0
  1175. data/lib/incident_io/models/utilities_identity_result_v1.rb +164 -0
  1176. data/lib/incident_io/models/utilities_ip_ranges_result_v1.rb +167 -0
  1177. data/lib/incident_io/models/webhook_delivery_request_v2.rb +204 -0
  1178. data/lib/incident_io/models/webhook_delivery_response_v2.rb +204 -0
  1179. data/lib/incident_io/models/webhook_delivery_slim_v2.rb +239 -0
  1180. data/lib/incident_io/models/webhook_delivery_v2.rb +274 -0
  1181. data/lib/incident_io/models/webhook_incident_user_v2.rb +202 -0
  1182. data/lib/incident_io/models/webhook_incident_v2.rb +752 -0
  1183. data/lib/incident_io/models/webhook_private_resource_v2.rb +165 -0
  1184. data/lib/incident_io/models/webhooks_private_alert_created_v1_response_body.rb +191 -0
  1185. data/lib/incident_io/models/webhooks_private_alert_resolved_v1_response_body.rb +191 -0
  1186. data/lib/incident_io/models/webhooks_private_escalation_created_v1_response_body.rb +191 -0
  1187. data/lib/incident_io/models/webhooks_private_escalation_status_updated_v1_response_body.rb +191 -0
  1188. data/lib/incident_io/models/webhooks_private_incident_action_created_v1_response_body.rb +191 -0
  1189. data/lib/incident_io/models/webhooks_private_incident_action_updated_v1_response_body.rb +191 -0
  1190. data/lib/incident_io/models/webhooks_private_incident_follow_up_created_v1_response_body.rb +191 -0
  1191. data/lib/incident_io/models/webhooks_private_incident_follow_up_created_v2_response_body.rb +191 -0
  1192. data/lib/incident_io/models/webhooks_private_incident_follow_up_updated_v1_response_body.rb +191 -0
  1193. data/lib/incident_io/models/webhooks_private_incident_follow_up_updated_v2_response_body.rb +191 -0
  1194. data/lib/incident_io/models/webhooks_private_incident_incident_created_v2_response_body.rb +191 -0
  1195. data/lib/incident_io/models/webhooks_private_incident_incident_updated_v2_response_body.rb +191 -0
  1196. data/lib/incident_io/models/webhooks_private_incident_membership_granted_v1_response_body.rb +191 -0
  1197. data/lib/incident_io/models/webhooks_private_incident_membership_revoked_v1_response_body.rb +191 -0
  1198. data/lib/incident_io/models/webhooks_private_incident_postmortem_document_status_updated_v1_response_body.rb +191 -0
  1199. data/lib/incident_io/models/webhooks_public_alert_created_v1_response_body.rb +191 -0
  1200. data/lib/incident_io/models/webhooks_public_alert_resolved_v1_response_body.rb +191 -0
  1201. data/lib/incident_io/models/webhooks_public_escalation_created_v1_response_body.rb +191 -0
  1202. data/lib/incident_io/models/webhooks_public_escalation_status_updated_v1_response_body.rb +191 -0
  1203. data/lib/incident_io/models/webhooks_public_incident_action_created_v1_response_body.rb +191 -0
  1204. data/lib/incident_io/models/webhooks_public_incident_action_updated_v1_response_body.rb +191 -0
  1205. data/lib/incident_io/models/webhooks_public_incident_follow_up_created_v1_response_body.rb +191 -0
  1206. data/lib/incident_io/models/webhooks_public_incident_follow_up_created_v2_response_body.rb +191 -0
  1207. data/lib/incident_io/models/webhooks_public_incident_follow_up_updated_v1_response_body.rb +191 -0
  1208. data/lib/incident_io/models/webhooks_public_incident_follow_up_updated_v2_response_body.rb +191 -0
  1209. data/lib/incident_io/models/webhooks_public_incident_incident_created_v2_response_body.rb +191 -0
  1210. data/lib/incident_io/models/webhooks_public_incident_incident_status_updated_v2_response_body.rb +191 -0
  1211. data/lib/incident_io/models/webhooks_public_incident_incident_updated_v2_response_body.rb +191 -0
  1212. data/lib/incident_io/models/webhooks_public_incident_postmortem_document_status_updated_v1_response_body.rb +191 -0
  1213. data/lib/incident_io/models/webhooks_schedule_created_v1_response_body.rb +191 -0
  1214. data/lib/incident_io/models/webhooks_schedule_deleted_v1_response_body.rb +191 -0
  1215. data/lib/incident_io/models/webhooks_schedule_shift_change_v1_response_body.rb +191 -0
  1216. data/lib/incident_io/models/webhooks_schedule_updated_v1_response_body.rb +191 -0
  1217. data/lib/incident_io/models/webhooks_status_page_incident_update_shared_v1_response_body.rb +191 -0
  1218. data/lib/incident_io/models/weekday_interval_config_v2.rb +247 -0
  1219. data/lib/incident_io/models/weekday_interval_v2.rb +219 -0
  1220. data/lib/incident_io/models/workflow_actor_v2.rb +192 -0
  1221. data/lib/incident_io/models/workflow_delay_v2.rb +201 -0
  1222. data/lib/incident_io/models/workflow_form_field_payload_v2.rb +259 -0
  1223. data/lib/incident_io/models/workflow_form_field_v2.rb +310 -0
  1224. data/lib/incident_io/models/workflow_run_slim_v2.rb +416 -0
  1225. data/lib/incident_io/models/workflow_run_v2.rb +416 -0
  1226. data/lib/incident_io/models/workflow_runs_list_result_v2.rb +175 -0
  1227. data/lib/incident_io/models/workflow_runs_show_result_v2.rb +164 -0
  1228. data/lib/incident_io/models/workflow_slim_v2.rb +603 -0
  1229. data/lib/incident_io/models/workflow_v2.rb +615 -0
  1230. data/lib/incident_io/models/workflows_create_workflow_payload_v2.rb +496 -0
  1231. data/lib/incident_io/models/workflows_create_workflow_result_v2.rb +190 -0
  1232. data/lib/incident_io/models/workflows_list_workflows_result_v2.rb +166 -0
  1233. data/lib/incident_io/models/workflows_show_workflow_result_v2.rb +190 -0
  1234. data/lib/incident_io/models/workflows_update_workflow_payload_v2.rb +479 -0
  1235. data/lib/incident_io/models/workflows_update_workflow_result_v2.rb +190 -0
  1236. data/lib/incident_io/models/workload_metadata_v2.rb +148 -0
  1237. data/lib/incident_io/models/workload_minutes_v2.rb +246 -0
  1238. data/lib/incident_io/version.rb +8 -0
  1239. data/lib/incident_io.rb +1271 -0
  1240. data/lib/incident_io_api.rb +6 -0
  1241. metadata +1341 -0
@@ -0,0 +1,1501 @@
1
+ =begin
2
+ #incident.io
3
+
4
+ #Ruby client for the incident.io API.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.25.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module IncidentIo
16
+ class SchedulesV2Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create Schedules V2
23
+ # Create a new schedule.
24
+ # @param schedules_create_payload_v2 [SchedulesCreatePayloadV2]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [SchedulesCreateResultV2]
27
+ def schedules_v2_create(schedules_create_payload_v2, opts = {})
28
+ data, _status_code, _headers = schedules_v2_create_with_http_info(schedules_create_payload_v2, opts)
29
+ data
30
+ end
31
+
32
+ # Create Schedules V2
33
+ # Create a new schedule.
34
+ # @param schedules_create_payload_v2 [SchedulesCreatePayloadV2]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(SchedulesCreateResultV2, Integer, Hash)>] SchedulesCreateResultV2 data, response status code and response headers
37
+ def schedules_v2_create_with_http_info(schedules_create_payload_v2, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_create ...'
40
+ end
41
+ # verify the required parameter 'schedules_create_payload_v2' is set
42
+ if @api_client.config.client_side_validation && schedules_create_payload_v2.nil?
43
+ fail ArgumentError, "Missing the required parameter 'schedules_create_payload_v2' when calling SchedulesV2Api.schedules_v2_create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/v2/schedules'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
+ # HTTP header 'Content-Type'
56
+ content_type = @api_client.select_header_content_type(['application/json'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(schedules_create_payload_v2)
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type] || 'SchedulesCreateResultV2'
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"SchedulesV2Api.schedules_v2_create",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # CreateOverride Schedules V2
91
+ # Create a new schedule override.
92
+ # @param schedules_create_override_payload_v2 [SchedulesCreateOverridePayloadV2]
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [SchedulesCreateOverrideResultV2]
95
+ def schedules_v2_create_override(schedules_create_override_payload_v2, opts = {})
96
+ data, _status_code, _headers = schedules_v2_create_override_with_http_info(schedules_create_override_payload_v2, opts)
97
+ data
98
+ end
99
+
100
+ # CreateOverride Schedules V2
101
+ # Create a new schedule override.
102
+ # @param schedules_create_override_payload_v2 [SchedulesCreateOverridePayloadV2]
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(SchedulesCreateOverrideResultV2, Integer, Hash)>] SchedulesCreateOverrideResultV2 data, response status code and response headers
105
+ def schedules_v2_create_override_with_http_info(schedules_create_override_payload_v2, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_create_override ...'
108
+ end
109
+ # verify the required parameter 'schedules_create_override_payload_v2' is set
110
+ if @api_client.config.client_side_validation && schedules_create_override_payload_v2.nil?
111
+ fail ArgumentError, "Missing the required parameter 'schedules_create_override_payload_v2' when calling SchedulesV2Api.schedules_v2_create_override"
112
+ end
113
+ # resource path
114
+ local_var_path = '/v2/schedule_overrides'
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
123
+ # HTTP header 'Content-Type'
124
+ content_type = @api_client.select_header_content_type(['application/json'])
125
+ if !content_type.nil?
126
+ header_params['Content-Type'] = content_type
127
+ end
128
+
129
+ # form parameters
130
+ form_params = opts[:form_params] || {}
131
+
132
+ # http body (model)
133
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(schedules_create_override_payload_v2)
134
+
135
+ # return_type
136
+ return_type = opts[:debug_return_type] || 'SchedulesCreateOverrideResultV2'
137
+
138
+ # auth_names
139
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
140
+
141
+ new_options = opts.merge(
142
+ :operation => :"SchedulesV2Api.schedules_v2_create_override",
143
+ :header_params => header_params,
144
+ :query_params => query_params,
145
+ :form_params => form_params,
146
+ :body => post_body,
147
+ :auth_names => auth_names,
148
+ :return_type => return_type
149
+ )
150
+
151
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
152
+ if @api_client.config.debugging
153
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_create_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
+ end
155
+ return data, status_code, headers
156
+ end
157
+
158
+ # CreateScheduleReplica Schedules V2
159
+ # Create a new schedule replica.
160
+ # @param schedule_id [String] The schedule to create a replica for
161
+ # @param schedules_create_schedule_replica_payload_v2 [SchedulesCreateScheduleReplicaPayloadV2]
162
+ # @param [Hash] opts the optional parameters
163
+ # @return [SchedulesCreateScheduleReplicaResultV2]
164
+ def schedules_v2_create_schedule_replica(schedule_id, schedules_create_schedule_replica_payload_v2, opts = {})
165
+ data, _status_code, _headers = schedules_v2_create_schedule_replica_with_http_info(schedule_id, schedules_create_schedule_replica_payload_v2, opts)
166
+ data
167
+ end
168
+
169
+ # CreateScheduleReplica Schedules V2
170
+ # Create a new schedule replica.
171
+ # @param schedule_id [String] The schedule to create a replica for
172
+ # @param schedules_create_schedule_replica_payload_v2 [SchedulesCreateScheduleReplicaPayloadV2]
173
+ # @param [Hash] opts the optional parameters
174
+ # @return [Array<(SchedulesCreateScheduleReplicaResultV2, Integer, Hash)>] SchedulesCreateScheduleReplicaResultV2 data, response status code and response headers
175
+ def schedules_v2_create_schedule_replica_with_http_info(schedule_id, schedules_create_schedule_replica_payload_v2, opts = {})
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_create_schedule_replica ...'
178
+ end
179
+ # verify the required parameter 'schedule_id' is set
180
+ if @api_client.config.client_side_validation && schedule_id.nil?
181
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_create_schedule_replica"
182
+ end
183
+ # verify the required parameter 'schedules_create_schedule_replica_payload_v2' is set
184
+ if @api_client.config.client_side_validation && schedules_create_schedule_replica_payload_v2.nil?
185
+ fail ArgumentError, "Missing the required parameter 'schedules_create_schedule_replica_payload_v2' when calling SchedulesV2Api.schedules_v2_create_schedule_replica"
186
+ end
187
+ # resource path
188
+ local_var_path = '/v2/schedules/{schedule_id}/replicas'.sub('{schedule_id}', CGI.escape(schedule_id.to_s))
189
+
190
+ # query parameters
191
+ query_params = opts[:query_params] || {}
192
+
193
+ # header parameters
194
+ header_params = opts[:header_params] || {}
195
+ # HTTP header 'Accept' (if needed)
196
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
197
+ # HTTP header 'Content-Type'
198
+ content_type = @api_client.select_header_content_type(['application/json'])
199
+ if !content_type.nil?
200
+ header_params['Content-Type'] = content_type
201
+ end
202
+
203
+ # form parameters
204
+ form_params = opts[:form_params] || {}
205
+
206
+ # http body (model)
207
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(schedules_create_schedule_replica_payload_v2)
208
+
209
+ # return_type
210
+ return_type = opts[:debug_return_type] || 'SchedulesCreateScheduleReplicaResultV2'
211
+
212
+ # auth_names
213
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
214
+
215
+ new_options = opts.merge(
216
+ :operation => :"SchedulesV2Api.schedules_v2_create_schedule_replica",
217
+ :header_params => header_params,
218
+ :query_params => query_params,
219
+ :form_params => form_params,
220
+ :body => post_body,
221
+ :auth_names => auth_names,
222
+ :return_type => return_type
223
+ )
224
+
225
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
226
+ if @api_client.config.debugging
227
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_create_schedule_replica\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
228
+ end
229
+ return data, status_code, headers
230
+ end
231
+
232
+ # CreateScheduleSyncRule Schedules V2
233
+ # Create a new sync rule linking a schedule to a sync target.
234
+ # @param schedule_id [String] The schedule to create a sync rule for
235
+ # @param schedules_create_schedule_sync_rule_payload_v2 [SchedulesCreateScheduleSyncRulePayloadV2]
236
+ # @param [Hash] opts the optional parameters
237
+ # @return [SchedulesCreateScheduleSyncRuleResultV2]
238
+ def schedules_v2_create_schedule_sync_rule(schedule_id, schedules_create_schedule_sync_rule_payload_v2, opts = {})
239
+ data, _status_code, _headers = schedules_v2_create_schedule_sync_rule_with_http_info(schedule_id, schedules_create_schedule_sync_rule_payload_v2, opts)
240
+ data
241
+ end
242
+
243
+ # CreateScheduleSyncRule Schedules V2
244
+ # Create a new sync rule linking a schedule to a sync target.
245
+ # @param schedule_id [String] The schedule to create a sync rule for
246
+ # @param schedules_create_schedule_sync_rule_payload_v2 [SchedulesCreateScheduleSyncRulePayloadV2]
247
+ # @param [Hash] opts the optional parameters
248
+ # @return [Array<(SchedulesCreateScheduleSyncRuleResultV2, Integer, Hash)>] SchedulesCreateScheduleSyncRuleResultV2 data, response status code and response headers
249
+ def schedules_v2_create_schedule_sync_rule_with_http_info(schedule_id, schedules_create_schedule_sync_rule_payload_v2, opts = {})
250
+ if @api_client.config.debugging
251
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_create_schedule_sync_rule ...'
252
+ end
253
+ # verify the required parameter 'schedule_id' is set
254
+ if @api_client.config.client_side_validation && schedule_id.nil?
255
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_create_schedule_sync_rule"
256
+ end
257
+ # verify the required parameter 'schedules_create_schedule_sync_rule_payload_v2' is set
258
+ if @api_client.config.client_side_validation && schedules_create_schedule_sync_rule_payload_v2.nil?
259
+ fail ArgumentError, "Missing the required parameter 'schedules_create_schedule_sync_rule_payload_v2' when calling SchedulesV2Api.schedules_v2_create_schedule_sync_rule"
260
+ end
261
+ # resource path
262
+ local_var_path = '/v2/schedules/{schedule_id}/sync_rules'.sub('{schedule_id}', CGI.escape(schedule_id.to_s))
263
+
264
+ # query parameters
265
+ query_params = opts[:query_params] || {}
266
+
267
+ # header parameters
268
+ header_params = opts[:header_params] || {}
269
+ # HTTP header 'Accept' (if needed)
270
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
271
+ # HTTP header 'Content-Type'
272
+ content_type = @api_client.select_header_content_type(['application/json'])
273
+ if !content_type.nil?
274
+ header_params['Content-Type'] = content_type
275
+ end
276
+
277
+ # form parameters
278
+ form_params = opts[:form_params] || {}
279
+
280
+ # http body (model)
281
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(schedules_create_schedule_sync_rule_payload_v2)
282
+
283
+ # return_type
284
+ return_type = opts[:debug_return_type] || 'SchedulesCreateScheduleSyncRuleResultV2'
285
+
286
+ # auth_names
287
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
288
+
289
+ new_options = opts.merge(
290
+ :operation => :"SchedulesV2Api.schedules_v2_create_schedule_sync_rule",
291
+ :header_params => header_params,
292
+ :query_params => query_params,
293
+ :form_params => form_params,
294
+ :body => post_body,
295
+ :auth_names => auth_names,
296
+ :return_type => return_type
297
+ )
298
+
299
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
300
+ if @api_client.config.debugging
301
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_create_schedule_sync_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
302
+ end
303
+ return data, status_code, headers
304
+ end
305
+
306
+ # Destroy Schedules V2
307
+ # Archives a single schedule. Will fail if the schedule has active replicas — remove all replicas before deleting.
308
+ # @param id [String] Unique internal ID of the schedule
309
+ # @param [Hash] opts the optional parameters
310
+ # @return [nil]
311
+ def schedules_v2_destroy(id, opts = {})
312
+ schedules_v2_destroy_with_http_info(id, opts)
313
+ nil
314
+ end
315
+
316
+ # Destroy Schedules V2
317
+ # Archives a single schedule. Will fail if the schedule has active replicas — remove all replicas before deleting.
318
+ # @param id [String] Unique internal ID of the schedule
319
+ # @param [Hash] opts the optional parameters
320
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
321
+ def schedules_v2_destroy_with_http_info(id, opts = {})
322
+ if @api_client.config.debugging
323
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_destroy ...'
324
+ end
325
+ # verify the required parameter 'id' is set
326
+ if @api_client.config.client_side_validation && id.nil?
327
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_destroy"
328
+ end
329
+ # resource path
330
+ local_var_path = '/v2/schedules/{id}'.sub('{id}', CGI.escape(id.to_s))
331
+
332
+ # query parameters
333
+ query_params = opts[:query_params] || {}
334
+
335
+ # header parameters
336
+ header_params = opts[:header_params] || {}
337
+ # HTTP header 'Accept' (if needed)
338
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
339
+
340
+ # form parameters
341
+ form_params = opts[:form_params] || {}
342
+
343
+ # http body (model)
344
+ post_body = opts[:debug_body]
345
+
346
+ # return_type
347
+ return_type = opts[:debug_return_type]
348
+
349
+ # auth_names
350
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
351
+
352
+ new_options = opts.merge(
353
+ :operation => :"SchedulesV2Api.schedules_v2_destroy",
354
+ :header_params => header_params,
355
+ :query_params => query_params,
356
+ :form_params => form_params,
357
+ :body => post_body,
358
+ :auth_names => auth_names,
359
+ :return_type => return_type
360
+ )
361
+
362
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
363
+ if @api_client.config.debugging
364
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
365
+ end
366
+ return data, status_code, headers
367
+ end
368
+
369
+ # DestroyOverride Schedules V2
370
+ # Delete a schedule override, restoring whoever the rotations put on-call for that window. Deleting an override that has already been deleted succeeds, so it is safe to retry.
371
+ # @param id [String] The override ID to delete
372
+ # @param [Hash] opts the optional parameters
373
+ # @return [nil]
374
+ def schedules_v2_destroy_override(id, opts = {})
375
+ schedules_v2_destroy_override_with_http_info(id, opts)
376
+ nil
377
+ end
378
+
379
+ # DestroyOverride Schedules V2
380
+ # Delete a schedule override, restoring whoever the rotations put on-call for that window. Deleting an override that has already been deleted succeeds, so it is safe to retry.
381
+ # @param id [String] The override ID to delete
382
+ # @param [Hash] opts the optional parameters
383
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
384
+ def schedules_v2_destroy_override_with_http_info(id, opts = {})
385
+ if @api_client.config.debugging
386
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_destroy_override ...'
387
+ end
388
+ # verify the required parameter 'id' is set
389
+ if @api_client.config.client_side_validation && id.nil?
390
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_destroy_override"
391
+ end
392
+ # resource path
393
+ local_var_path = '/v2/schedule_overrides/{id}'.sub('{id}', CGI.escape(id.to_s))
394
+
395
+ # query parameters
396
+ query_params = opts[:query_params] || {}
397
+
398
+ # header parameters
399
+ header_params = opts[:header_params] || {}
400
+ # HTTP header 'Accept' (if needed)
401
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
402
+
403
+ # form parameters
404
+ form_params = opts[:form_params] || {}
405
+
406
+ # http body (model)
407
+ post_body = opts[:debug_body]
408
+
409
+ # return_type
410
+ return_type = opts[:debug_return_type]
411
+
412
+ # auth_names
413
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
414
+
415
+ new_options = opts.merge(
416
+ :operation => :"SchedulesV2Api.schedules_v2_destroy_override",
417
+ :header_params => header_params,
418
+ :query_params => query_params,
419
+ :form_params => form_params,
420
+ :body => post_body,
421
+ :auth_names => auth_names,
422
+ :return_type => return_type
423
+ )
424
+
425
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
426
+ if @api_client.config.debugging
427
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_destroy_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
428
+ end
429
+ return data, status_code, headers
430
+ end
431
+
432
+ # DestroyScheduleReplica Schedules V2
433
+ # Archives a single schedule replica, stopping incident.io from syncing on-call shifts to the external provider. As with disabling mirroring via the UI, this will remove any upcoming overrides that incident.io has created in the external schedule, restoring it to its original state. If multiple replicas target the same external schedule, overrides are only removed when the last replica pointing to that schedule is deleted. Note: override cleanup is supported for PagerDuty and Jira Service Management. Opsgenie does not support programmatic override deletion, so overrides must be removed manually.
434
+ # @param schedule_id [String] The parent schedule ID
435
+ # @param id [String] The replica ID to archive
436
+ # @param [Hash] opts the optional parameters
437
+ # @return [nil]
438
+ def schedules_v2_destroy_schedule_replica(schedule_id, id, opts = {})
439
+ schedules_v2_destroy_schedule_replica_with_http_info(schedule_id, id, opts)
440
+ nil
441
+ end
442
+
443
+ # DestroyScheduleReplica Schedules V2
444
+ # Archives a single schedule replica, stopping incident.io from syncing on-call shifts to the external provider. As with disabling mirroring via the UI, this will remove any upcoming overrides that incident.io has created in the external schedule, restoring it to its original state. If multiple replicas target the same external schedule, overrides are only removed when the last replica pointing to that schedule is deleted. Note: override cleanup is supported for PagerDuty and Jira Service Management. Opsgenie does not support programmatic override deletion, so overrides must be removed manually.
445
+ # @param schedule_id [String] The parent schedule ID
446
+ # @param id [String] The replica ID to archive
447
+ # @param [Hash] opts the optional parameters
448
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
449
+ def schedules_v2_destroy_schedule_replica_with_http_info(schedule_id, id, opts = {})
450
+ if @api_client.config.debugging
451
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_destroy_schedule_replica ...'
452
+ end
453
+ # verify the required parameter 'schedule_id' is set
454
+ if @api_client.config.client_side_validation && schedule_id.nil?
455
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_destroy_schedule_replica"
456
+ end
457
+ # verify the required parameter 'id' is set
458
+ if @api_client.config.client_side_validation && id.nil?
459
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_destroy_schedule_replica"
460
+ end
461
+ # resource path
462
+ local_var_path = '/v2/schedules/{schedule_id}/replicas/{id}'.sub('{schedule_id}', CGI.escape(schedule_id.to_s)).sub('{id}', CGI.escape(id.to_s))
463
+
464
+ # query parameters
465
+ query_params = opts[:query_params] || {}
466
+
467
+ # header parameters
468
+ header_params = opts[:header_params] || {}
469
+ # HTTP header 'Accept' (if needed)
470
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
471
+
472
+ # form parameters
473
+ form_params = opts[:form_params] || {}
474
+
475
+ # http body (model)
476
+ post_body = opts[:debug_body]
477
+
478
+ # return_type
479
+ return_type = opts[:debug_return_type]
480
+
481
+ # auth_names
482
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
483
+
484
+ new_options = opts.merge(
485
+ :operation => :"SchedulesV2Api.schedules_v2_destroy_schedule_replica",
486
+ :header_params => header_params,
487
+ :query_params => query_params,
488
+ :form_params => form_params,
489
+ :body => post_body,
490
+ :auth_names => auth_names,
491
+ :return_type => return_type
492
+ )
493
+
494
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
495
+ if @api_client.config.debugging
496
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_destroy_schedule_replica\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
497
+ end
498
+ return data, status_code, headers
499
+ end
500
+
501
+ # DestroyScheduleSyncRule Schedules V2
502
+ # Archive a sync rule, unlinking the schedule from the sync target.
503
+ # @param schedule_id [String] The parent schedule ID
504
+ # @param id [String] The sync rule ID to archive
505
+ # @param [Hash] opts the optional parameters
506
+ # @return [nil]
507
+ def schedules_v2_destroy_schedule_sync_rule(schedule_id, id, opts = {})
508
+ schedules_v2_destroy_schedule_sync_rule_with_http_info(schedule_id, id, opts)
509
+ nil
510
+ end
511
+
512
+ # DestroyScheduleSyncRule Schedules V2
513
+ # Archive a sync rule, unlinking the schedule from the sync target.
514
+ # @param schedule_id [String] The parent schedule ID
515
+ # @param id [String] The sync rule ID to archive
516
+ # @param [Hash] opts the optional parameters
517
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
518
+ def schedules_v2_destroy_schedule_sync_rule_with_http_info(schedule_id, id, opts = {})
519
+ if @api_client.config.debugging
520
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_destroy_schedule_sync_rule ...'
521
+ end
522
+ # verify the required parameter 'schedule_id' is set
523
+ if @api_client.config.client_side_validation && schedule_id.nil?
524
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_destroy_schedule_sync_rule"
525
+ end
526
+ # verify the required parameter 'id' is set
527
+ if @api_client.config.client_side_validation && id.nil?
528
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_destroy_schedule_sync_rule"
529
+ end
530
+ # resource path
531
+ local_var_path = '/v2/schedules/{schedule_id}/sync_rules/{id}'.sub('{schedule_id}', CGI.escape(schedule_id.to_s)).sub('{id}', CGI.escape(id.to_s))
532
+
533
+ # query parameters
534
+ query_params = opts[:query_params] || {}
535
+
536
+ # header parameters
537
+ header_params = opts[:header_params] || {}
538
+ # HTTP header 'Accept' (if needed)
539
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
540
+
541
+ # form parameters
542
+ form_params = opts[:form_params] || {}
543
+
544
+ # http body (model)
545
+ post_body = opts[:debug_body]
546
+
547
+ # return_type
548
+ return_type = opts[:debug_return_type]
549
+
550
+ # auth_names
551
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
552
+
553
+ new_options = opts.merge(
554
+ :operation => :"SchedulesV2Api.schedules_v2_destroy_schedule_sync_rule",
555
+ :header_params => header_params,
556
+ :query_params => query_params,
557
+ :form_params => form_params,
558
+ :body => post_body,
559
+ :auth_names => auth_names,
560
+ :return_type => return_type
561
+ )
562
+
563
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
564
+ if @api_client.config.debugging
565
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_destroy_schedule_sync_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
566
+ end
567
+ return data, status_code, headers
568
+ end
569
+
570
+ # List Schedules V2
571
+ # List configured schedules.
572
+ # @param [Hash] opts the optional parameters
573
+ # @option opts [Integer] :page_size Note that next_shifts will only be returned when the page size is 25 or lower. (default to 25)
574
+ # @option opts [String] :after A schedule&#39;s ID. This endpoint will return a list of schedules after this ID in relation to the API response order.
575
+ # @return [SchedulesListResultV2]
576
+ def schedules_v2_list(opts = {})
577
+ data, _status_code, _headers = schedules_v2_list_with_http_info(opts)
578
+ data
579
+ end
580
+
581
+ # List Schedules V2
582
+ # List configured schedules.
583
+ # @param [Hash] opts the optional parameters
584
+ # @option opts [Integer] :page_size Note that next_shifts will only be returned when the page size is 25 or lower. (default to 25)
585
+ # @option opts [String] :after A schedule&#39;s ID. This endpoint will return a list of schedules after this ID in relation to the API response order.
586
+ # @return [Array<(SchedulesListResultV2, Integer, Hash)>] SchedulesListResultV2 data, response status code and response headers
587
+ def schedules_v2_list_with_http_info(opts = {})
588
+ if @api_client.config.debugging
589
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_list ...'
590
+ end
591
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 10000
592
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SchedulesV2Api.schedules_v2_list, must be smaller than or equal to 10000.'
593
+ end
594
+
595
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
596
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SchedulesV2Api.schedules_v2_list, must be greater than or equal to 1.'
597
+ end
598
+
599
+ # resource path
600
+ local_var_path = '/v2/schedules'
601
+
602
+ # query parameters
603
+ query_params = opts[:query_params] || {}
604
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
605
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
606
+
607
+ # header parameters
608
+ header_params = opts[:header_params] || {}
609
+ # HTTP header 'Accept' (if needed)
610
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
611
+
612
+ # form parameters
613
+ form_params = opts[:form_params] || {}
614
+
615
+ # http body (model)
616
+ post_body = opts[:debug_body]
617
+
618
+ # return_type
619
+ return_type = opts[:debug_return_type] || 'SchedulesListResultV2'
620
+
621
+ # auth_names
622
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
623
+
624
+ new_options = opts.merge(
625
+ :operation => :"SchedulesV2Api.schedules_v2_list",
626
+ :header_params => header_params,
627
+ :query_params => query_params,
628
+ :form_params => form_params,
629
+ :body => post_body,
630
+ :auth_names => auth_names,
631
+ :return_type => return_type
632
+ )
633
+
634
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
635
+ if @api_client.config.debugging
636
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
637
+ end
638
+ return data, status_code, headers
639
+ end
640
+
641
+ # ListOverrides Schedules V2
642
+ # List the overrides on a schedule. Overrides are one-off changes layered on top of the rotations, such as someone covering a colleague's shift. This returns the overrides themselves: to see the effective schedule with overrides already merged in, use the schedule entries endpoint instead. Overrides belong to a specific layer of a specific rotation, so you can narrow the results with `rotation_id` and `layer_id`. Archived overrides are not returned.
643
+ # @param schedule_id [String] The ID of the schedule to get overrides for.
644
+ # @param [Hash] opts the optional parameters
645
+ # @option opts [String] :rotation_id If set, only return overrides on this rotation.
646
+ # @option opts [String] :layer_id If set, only return overrides on this layer.
647
+ # @option opts [Integer] :page_size Integer number of records to return (default to 25)
648
+ # @option opts [String] :after An override&#39;s ID. This endpoint will return a list of overrides after this ID in relation to the API response order.
649
+ # @return [SchedulesListOverridesResultV2]
650
+ def schedules_v2_list_overrides(schedule_id, opts = {})
651
+ data, _status_code, _headers = schedules_v2_list_overrides_with_http_info(schedule_id, opts)
652
+ data
653
+ end
654
+
655
+ # ListOverrides Schedules V2
656
+ # List the overrides on a schedule. Overrides are one-off changes layered on top of the rotations, such as someone covering a colleague&#39;s shift. This returns the overrides themselves: to see the effective schedule with overrides already merged in, use the schedule entries endpoint instead. Overrides belong to a specific layer of a specific rotation, so you can narrow the results with &#x60;rotation_id&#x60; and &#x60;layer_id&#x60;. Archived overrides are not returned.
657
+ # @param schedule_id [String] The ID of the schedule to get overrides for.
658
+ # @param [Hash] opts the optional parameters
659
+ # @option opts [String] :rotation_id If set, only return overrides on this rotation.
660
+ # @option opts [String] :layer_id If set, only return overrides on this layer.
661
+ # @option opts [Integer] :page_size Integer number of records to return (default to 25)
662
+ # @option opts [String] :after An override&#39;s ID. This endpoint will return a list of overrides after this ID in relation to the API response order.
663
+ # @return [Array<(SchedulesListOverridesResultV2, Integer, Hash)>] SchedulesListOverridesResultV2 data, response status code and response headers
664
+ def schedules_v2_list_overrides_with_http_info(schedule_id, opts = {})
665
+ if @api_client.config.debugging
666
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_list_overrides ...'
667
+ end
668
+ # verify the required parameter 'schedule_id' is set
669
+ if @api_client.config.client_side_validation && schedule_id.nil?
670
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_list_overrides"
671
+ end
672
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 250
673
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SchedulesV2Api.schedules_v2_list_overrides, must be smaller than or equal to 250.'
674
+ end
675
+
676
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
677
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SchedulesV2Api.schedules_v2_list_overrides, must be greater than or equal to 1.'
678
+ end
679
+
680
+ # resource path
681
+ local_var_path = '/v2/schedule_overrides'
682
+
683
+ # query parameters
684
+ query_params = opts[:query_params] || {}
685
+ query_params[:'schedule_id'] = schedule_id
686
+ query_params[:'rotation_id'] = opts[:'rotation_id'] if !opts[:'rotation_id'].nil?
687
+ query_params[:'layer_id'] = opts[:'layer_id'] if !opts[:'layer_id'].nil?
688
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
689
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
690
+
691
+ # header parameters
692
+ header_params = opts[:header_params] || {}
693
+ # HTTP header 'Accept' (if needed)
694
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
695
+
696
+ # form parameters
697
+ form_params = opts[:form_params] || {}
698
+
699
+ # http body (model)
700
+ post_body = opts[:debug_body]
701
+
702
+ # return_type
703
+ return_type = opts[:debug_return_type] || 'SchedulesListOverridesResultV2'
704
+
705
+ # auth_names
706
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
707
+
708
+ new_options = opts.merge(
709
+ :operation => :"SchedulesV2Api.schedules_v2_list_overrides",
710
+ :header_params => header_params,
711
+ :query_params => query_params,
712
+ :form_params => form_params,
713
+ :body => post_body,
714
+ :auth_names => auth_names,
715
+ :return_type => return_type
716
+ )
717
+
718
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
719
+ if @api_client.config.debugging
720
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_list_overrides\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
721
+ end
722
+ return data, status_code, headers
723
+ end
724
+
725
+ # ListScheduleEntries Schedules V2
726
+ # List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: `scheduled` (the entries the rotation rules produce, before any overrides), `overrides` (any one-off overrides that apply in the window) and `final` (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the `rotation_id` and `layer_id` it belongs to. Schedules can be made up of multiple rotations (for example, a primary and a secondary rotation) and each rotation can have several layers, and we return entries for every rotation and layer on the schedule. The endpoint returns all entries that overlap with the given window. If no window is provided we default to a sensible range starting from now. ## Pagination Responses are paginated. When more entries are available than fit on a single page, the response includes a `pagination_meta` block with two fields: - `after_url` — a fully-formed URL for the next page. The simplest way to paginate is to keep following this URL until it is no longer present. - `after` — an opaque cursor token. To fetch the next page manually, re-issue the request with `entry_window_start` set to this value and `entry_window_end` left unchanged from the original request. Treat the token as opaque — do not parse or modify it. Keep paginating until `pagination_meta` is absent from the response, at which point you have received every entry in the window.
727
+ # @param schedule_id [String] The ID of the schedule to get entries for.
728
+ # @param [Hash] opts the optional parameters
729
+ # @option opts [String] :entry_window_start The start of the window to get entries for. May also carry an opaque pagination cursor previously returned in &#x60;pagination_meta.after&#x60; — pass it back here unchanged to fetch the next page (leave &#x60;entry_window_end&#x60; unchanged from the original request).
730
+ # @option opts [Time] :entry_window_end The end of the window to get entries for.
731
+ # @return [SchedulesListScheduleEntriesResultV2]
732
+ def schedules_v2_list_schedule_entries(schedule_id, opts = {})
733
+ data, _status_code, _headers = schedules_v2_list_schedule_entries_with_http_info(schedule_id, opts)
734
+ data
735
+ end
736
+
737
+ # ListScheduleEntries Schedules V2
738
+ # List the schedule entries for a schedule over a window of time. Use this endpoint to find out who is on-call for a schedule, either right now or at any point in the future. Common uses include: - Building a calendar or timeline view of who is on-call. - Looking up who was on-call at a particular moment (for example, when an incident fired). - Exporting upcoming shifts into another system, such as a payroll or scheduling tool. The response groups entries into three lists: &#x60;scheduled&#x60; (the entries the rotation rules produce, before any overrides), &#x60;overrides&#x60; (any one-off overrides that apply in the window) and &#x60;final&#x60; (the effective schedule after overrides have been merged in — this is normally the list you want). Each entry includes the &#x60;rotation_id&#x60; and &#x60;layer_id&#x60; it belongs to. Schedules can be made up of multiple rotations (for example, a primary and a secondary rotation) and each rotation can have several layers, and we return entries for every rotation and layer on the schedule. The endpoint returns all entries that overlap with the given window. If no window is provided we default to a sensible range starting from now. ## Pagination Responses are paginated. When more entries are available than fit on a single page, the response includes a &#x60;pagination_meta&#x60; block with two fields: - &#x60;after_url&#x60; — a fully-formed URL for the next page. The simplest way to paginate is to keep following this URL until it is no longer present. - &#x60;after&#x60; — an opaque cursor token. To fetch the next page manually, re-issue the request with &#x60;entry_window_start&#x60; set to this value and &#x60;entry_window_end&#x60; left unchanged from the original request. Treat the token as opaque — do not parse or modify it. Keep paginating until &#x60;pagination_meta&#x60; is absent from the response, at which point you have received every entry in the window.
739
+ # @param schedule_id [String] The ID of the schedule to get entries for.
740
+ # @param [Hash] opts the optional parameters
741
+ # @option opts [String] :entry_window_start The start of the window to get entries for. May also carry an opaque pagination cursor previously returned in &#x60;pagination_meta.after&#x60; — pass it back here unchanged to fetch the next page (leave &#x60;entry_window_end&#x60; unchanged from the original request).
742
+ # @option opts [Time] :entry_window_end The end of the window to get entries for.
743
+ # @return [Array<(SchedulesListScheduleEntriesResultV2, Integer, Hash)>] SchedulesListScheduleEntriesResultV2 data, response status code and response headers
744
+ def schedules_v2_list_schedule_entries_with_http_info(schedule_id, opts = {})
745
+ if @api_client.config.debugging
746
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_list_schedule_entries ...'
747
+ end
748
+ # verify the required parameter 'schedule_id' is set
749
+ if @api_client.config.client_side_validation && schedule_id.nil?
750
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_list_schedule_entries"
751
+ end
752
+ # resource path
753
+ local_var_path = '/v2/schedule_entries'
754
+
755
+ # query parameters
756
+ query_params = opts[:query_params] || {}
757
+ query_params[:'schedule_id'] = schedule_id
758
+ query_params[:'entry_window_start'] = opts[:'entry_window_start'] if !opts[:'entry_window_start'].nil?
759
+ query_params[:'entry_window_end'] = opts[:'entry_window_end'] if !opts[:'entry_window_end'].nil?
760
+
761
+ # header parameters
762
+ header_params = opts[:header_params] || {}
763
+ # HTTP header 'Accept' (if needed)
764
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
765
+
766
+ # form parameters
767
+ form_params = opts[:form_params] || {}
768
+
769
+ # http body (model)
770
+ post_body = opts[:debug_body]
771
+
772
+ # return_type
773
+ return_type = opts[:debug_return_type] || 'SchedulesListScheduleEntriesResultV2'
774
+
775
+ # auth_names
776
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
777
+
778
+ new_options = opts.merge(
779
+ :operation => :"SchedulesV2Api.schedules_v2_list_schedule_entries",
780
+ :header_params => header_params,
781
+ :query_params => query_params,
782
+ :form_params => form_params,
783
+ :body => post_body,
784
+ :auth_names => auth_names,
785
+ :return_type => return_type
786
+ )
787
+
788
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
789
+ if @api_client.config.debugging
790
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_list_schedule_entries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
791
+ end
792
+ return data, status_code, headers
793
+ end
794
+
795
+ # ListScheduleReplicas Schedules V2
796
+ # List all replicas for a schedule.
797
+ # @param schedule_id [String] The schedule to list replicas for
798
+ # @param [Hash] opts the optional parameters
799
+ # @return [SchedulesListScheduleReplicasResultV2]
800
+ def schedules_v2_list_schedule_replicas(schedule_id, opts = {})
801
+ data, _status_code, _headers = schedules_v2_list_schedule_replicas_with_http_info(schedule_id, opts)
802
+ data
803
+ end
804
+
805
+ # ListScheduleReplicas Schedules V2
806
+ # List all replicas for a schedule.
807
+ # @param schedule_id [String] The schedule to list replicas for
808
+ # @param [Hash] opts the optional parameters
809
+ # @return [Array<(SchedulesListScheduleReplicasResultV2, Integer, Hash)>] SchedulesListScheduleReplicasResultV2 data, response status code and response headers
810
+ def schedules_v2_list_schedule_replicas_with_http_info(schedule_id, opts = {})
811
+ if @api_client.config.debugging
812
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_list_schedule_replicas ...'
813
+ end
814
+ # verify the required parameter 'schedule_id' is set
815
+ if @api_client.config.client_side_validation && schedule_id.nil?
816
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_list_schedule_replicas"
817
+ end
818
+ # resource path
819
+ local_var_path = '/v2/schedules/{schedule_id}/replicas'.sub('{schedule_id}', CGI.escape(schedule_id.to_s))
820
+
821
+ # query parameters
822
+ query_params = opts[:query_params] || {}
823
+
824
+ # header parameters
825
+ header_params = opts[:header_params] || {}
826
+ # HTTP header 'Accept' (if needed)
827
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
828
+
829
+ # form parameters
830
+ form_params = opts[:form_params] || {}
831
+
832
+ # http body (model)
833
+ post_body = opts[:debug_body]
834
+
835
+ # return_type
836
+ return_type = opts[:debug_return_type] || 'SchedulesListScheduleReplicasResultV2'
837
+
838
+ # auth_names
839
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
840
+
841
+ new_options = opts.merge(
842
+ :operation => :"SchedulesV2Api.schedules_v2_list_schedule_replicas",
843
+ :header_params => header_params,
844
+ :query_params => query_params,
845
+ :form_params => form_params,
846
+ :body => post_body,
847
+ :auth_names => auth_names,
848
+ :return_type => return_type
849
+ )
850
+
851
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
852
+ if @api_client.config.debugging
853
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_list_schedule_replicas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
854
+ end
855
+ return data, status_code, headers
856
+ end
857
+
858
+ # ListScheduleSyncRules Schedules V2
859
+ # List the sync rules configured on this schedule.
860
+ # @param schedule_id [String] The schedule to list sync rules for
861
+ # @param [Hash] opts the optional parameters
862
+ # @option opts [Integer] :page_size Integer number of records to return (default to 25)
863
+ # @option opts [String] :after A sync rule&#39;s ID. This endpoint will return a list of sync rules after this ID in relation to the API response order.
864
+ # @return [SchedulesListScheduleSyncRulesResultV2]
865
+ def schedules_v2_list_schedule_sync_rules(schedule_id, opts = {})
866
+ data, _status_code, _headers = schedules_v2_list_schedule_sync_rules_with_http_info(schedule_id, opts)
867
+ data
868
+ end
869
+
870
+ # ListScheduleSyncRules Schedules V2
871
+ # List the sync rules configured on this schedule.
872
+ # @param schedule_id [String] The schedule to list sync rules for
873
+ # @param [Hash] opts the optional parameters
874
+ # @option opts [Integer] :page_size Integer number of records to return (default to 25)
875
+ # @option opts [String] :after A sync rule&#39;s ID. This endpoint will return a list of sync rules after this ID in relation to the API response order.
876
+ # @return [Array<(SchedulesListScheduleSyncRulesResultV2, Integer, Hash)>] SchedulesListScheduleSyncRulesResultV2 data, response status code and response headers
877
+ def schedules_v2_list_schedule_sync_rules_with_http_info(schedule_id, opts = {})
878
+ if @api_client.config.debugging
879
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_list_schedule_sync_rules ...'
880
+ end
881
+ # verify the required parameter 'schedule_id' is set
882
+ if @api_client.config.client_side_validation && schedule_id.nil?
883
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_list_schedule_sync_rules"
884
+ end
885
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 250
886
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SchedulesV2Api.schedules_v2_list_schedule_sync_rules, must be smaller than or equal to 250.'
887
+ end
888
+
889
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
890
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling SchedulesV2Api.schedules_v2_list_schedule_sync_rules, must be greater than or equal to 1.'
891
+ end
892
+
893
+ # resource path
894
+ local_var_path = '/v2/schedules/{schedule_id}/sync_rules'.sub('{schedule_id}', CGI.escape(schedule_id.to_s))
895
+
896
+ # query parameters
897
+ query_params = opts[:query_params] || {}
898
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
899
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
900
+
901
+ # header parameters
902
+ header_params = opts[:header_params] || {}
903
+ # HTTP header 'Accept' (if needed)
904
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
905
+
906
+ # form parameters
907
+ form_params = opts[:form_params] || {}
908
+
909
+ # http body (model)
910
+ post_body = opts[:debug_body]
911
+
912
+ # return_type
913
+ return_type = opts[:debug_return_type] || 'SchedulesListScheduleSyncRulesResultV2'
914
+
915
+ # auth_names
916
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
917
+
918
+ new_options = opts.merge(
919
+ :operation => :"SchedulesV2Api.schedules_v2_list_schedule_sync_rules",
920
+ :header_params => header_params,
921
+ :query_params => query_params,
922
+ :form_params => form_params,
923
+ :body => post_body,
924
+ :auth_names => auth_names,
925
+ :return_type => return_type
926
+ )
927
+
928
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
929
+ if @api_client.config.debugging
930
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_list_schedule_sync_rules\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
931
+ end
932
+ return data, status_code, headers
933
+ end
934
+
935
+ # PreviewScheduleEntries Schedules V2
936
+ # Preview the schedule entries that would be generated by a proposed schedule configuration. Use this endpoint before updating a schedule to see who would be on-call if you saved the supplied schedule payload. The request body uses the same `schedule` payload shape as Update schedule, so you can send the configuration you intend to save without persisting it. The response uses the same `schedule_entries` envelope as List schedule entries: `scheduled` contains entries produced by the rotation rules, `overrides` contains matching overrides, and `final` contains the effective schedule after overrides are applied. The preview window is bounded to keep requests predictable. If you ask for more than 91 days, the response is capped to 91 days from `entry_window_start`.
937
+ # @param id [String] The ID of the schedule to preview entries for.
938
+ # @param schedules_preview_schedule_entries_payload_v2 [SchedulesPreviewScheduleEntriesPayloadV2]
939
+ # @param [Hash] opts the optional parameters
940
+ # @return [SchedulesPreviewScheduleEntriesResultV2]
941
+ def schedules_v2_preview_schedule_entries(id, schedules_preview_schedule_entries_payload_v2, opts = {})
942
+ data, _status_code, _headers = schedules_v2_preview_schedule_entries_with_http_info(id, schedules_preview_schedule_entries_payload_v2, opts)
943
+ data
944
+ end
945
+
946
+ # PreviewScheduleEntries Schedules V2
947
+ # Preview the schedule entries that would be generated by a proposed schedule configuration. Use this endpoint before updating a schedule to see who would be on-call if you saved the supplied schedule payload. The request body uses the same &#x60;schedule&#x60; payload shape as Update schedule, so you can send the configuration you intend to save without persisting it. The response uses the same &#x60;schedule_entries&#x60; envelope as List schedule entries: &#x60;scheduled&#x60; contains entries produced by the rotation rules, &#x60;overrides&#x60; contains matching overrides, and &#x60;final&#x60; contains the effective schedule after overrides are applied. The preview window is bounded to keep requests predictable. If you ask for more than 91 days, the response is capped to 91 days from &#x60;entry_window_start&#x60;.
948
+ # @param id [String] The ID of the schedule to preview entries for.
949
+ # @param schedules_preview_schedule_entries_payload_v2 [SchedulesPreviewScheduleEntriesPayloadV2]
950
+ # @param [Hash] opts the optional parameters
951
+ # @return [Array<(SchedulesPreviewScheduleEntriesResultV2, Integer, Hash)>] SchedulesPreviewScheduleEntriesResultV2 data, response status code and response headers
952
+ def schedules_v2_preview_schedule_entries_with_http_info(id, schedules_preview_schedule_entries_payload_v2, opts = {})
953
+ if @api_client.config.debugging
954
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_preview_schedule_entries ...'
955
+ end
956
+ # verify the required parameter 'id' is set
957
+ if @api_client.config.client_side_validation && id.nil?
958
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_preview_schedule_entries"
959
+ end
960
+ # verify the required parameter 'schedules_preview_schedule_entries_payload_v2' is set
961
+ if @api_client.config.client_side_validation && schedules_preview_schedule_entries_payload_v2.nil?
962
+ fail ArgumentError, "Missing the required parameter 'schedules_preview_schedule_entries_payload_v2' when calling SchedulesV2Api.schedules_v2_preview_schedule_entries"
963
+ end
964
+ # resource path
965
+ local_var_path = '/v2/schedules/{id}/actions/preview_entries'.sub('{id}', CGI.escape(id.to_s))
966
+
967
+ # query parameters
968
+ query_params = opts[:query_params] || {}
969
+
970
+ # header parameters
971
+ header_params = opts[:header_params] || {}
972
+ # HTTP header 'Accept' (if needed)
973
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
974
+ # HTTP header 'Content-Type'
975
+ content_type = @api_client.select_header_content_type(['application/json'])
976
+ if !content_type.nil?
977
+ header_params['Content-Type'] = content_type
978
+ end
979
+
980
+ # form parameters
981
+ form_params = opts[:form_params] || {}
982
+
983
+ # http body (model)
984
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(schedules_preview_schedule_entries_payload_v2)
985
+
986
+ # return_type
987
+ return_type = opts[:debug_return_type] || 'SchedulesPreviewScheduleEntriesResultV2'
988
+
989
+ # auth_names
990
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
991
+
992
+ new_options = opts.merge(
993
+ :operation => :"SchedulesV2Api.schedules_v2_preview_schedule_entries",
994
+ :header_params => header_params,
995
+ :query_params => query_params,
996
+ :form_params => form_params,
997
+ :body => post_body,
998
+ :auth_names => auth_names,
999
+ :return_type => return_type
1000
+ )
1001
+
1002
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1003
+ if @api_client.config.debugging
1004
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_preview_schedule_entries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1005
+ end
1006
+ return data, status_code, headers
1007
+ end
1008
+
1009
+ # Show Schedules V2
1010
+ # Get a single schedule.
1011
+ # @param id [String] Unique internal ID of the schedule
1012
+ # @param [Hash] opts the optional parameters
1013
+ # @return [SchedulesShowResultV2]
1014
+ def schedules_v2_show(id, opts = {})
1015
+ data, _status_code, _headers = schedules_v2_show_with_http_info(id, opts)
1016
+ data
1017
+ end
1018
+
1019
+ # Show Schedules V2
1020
+ # Get a single schedule.
1021
+ # @param id [String] Unique internal ID of the schedule
1022
+ # @param [Hash] opts the optional parameters
1023
+ # @return [Array<(SchedulesShowResultV2, Integer, Hash)>] SchedulesShowResultV2 data, response status code and response headers
1024
+ def schedules_v2_show_with_http_info(id, opts = {})
1025
+ if @api_client.config.debugging
1026
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_show ...'
1027
+ end
1028
+ # verify the required parameter 'id' is set
1029
+ if @api_client.config.client_side_validation && id.nil?
1030
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_show"
1031
+ end
1032
+ # resource path
1033
+ local_var_path = '/v2/schedules/{id}'.sub('{id}', CGI.escape(id.to_s))
1034
+
1035
+ # query parameters
1036
+ query_params = opts[:query_params] || {}
1037
+
1038
+ # header parameters
1039
+ header_params = opts[:header_params] || {}
1040
+ # HTTP header 'Accept' (if needed)
1041
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1042
+
1043
+ # form parameters
1044
+ form_params = opts[:form_params] || {}
1045
+
1046
+ # http body (model)
1047
+ post_body = opts[:debug_body]
1048
+
1049
+ # return_type
1050
+ return_type = opts[:debug_return_type] || 'SchedulesShowResultV2'
1051
+
1052
+ # auth_names
1053
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
1054
+
1055
+ new_options = opts.merge(
1056
+ :operation => :"SchedulesV2Api.schedules_v2_show",
1057
+ :header_params => header_params,
1058
+ :query_params => query_params,
1059
+ :form_params => form_params,
1060
+ :body => post_body,
1061
+ :auth_names => auth_names,
1062
+ :return_type => return_type
1063
+ )
1064
+
1065
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1066
+ if @api_client.config.debugging
1067
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_show\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1068
+ end
1069
+ return data, status_code, headers
1070
+ end
1071
+
1072
+ # ShowOverride Schedules V2
1073
+ # Get a single schedule override. Overrides that have been deleted are not returned. An override's ID is not stable across edits: updating an override that overlaps its neighbours replaces them with new overrides, so an ID you are holding can stop resolving. List the schedule's overrides again to pick up the replacements.
1074
+ # @param id [String] The override ID to get
1075
+ # @param [Hash] opts the optional parameters
1076
+ # @return [SchedulesShowOverrideResultV2]
1077
+ def schedules_v2_show_override(id, opts = {})
1078
+ data, _status_code, _headers = schedules_v2_show_override_with_http_info(id, opts)
1079
+ data
1080
+ end
1081
+
1082
+ # ShowOverride Schedules V2
1083
+ # Get a single schedule override. Overrides that have been deleted are not returned. An override&#39;s ID is not stable across edits: updating an override that overlaps its neighbours replaces them with new overrides, so an ID you are holding can stop resolving. List the schedule&#39;s overrides again to pick up the replacements.
1084
+ # @param id [String] The override ID to get
1085
+ # @param [Hash] opts the optional parameters
1086
+ # @return [Array<(SchedulesShowOverrideResultV2, Integer, Hash)>] SchedulesShowOverrideResultV2 data, response status code and response headers
1087
+ def schedules_v2_show_override_with_http_info(id, opts = {})
1088
+ if @api_client.config.debugging
1089
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_show_override ...'
1090
+ end
1091
+ # verify the required parameter 'id' is set
1092
+ if @api_client.config.client_side_validation && id.nil?
1093
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_show_override"
1094
+ end
1095
+ # resource path
1096
+ local_var_path = '/v2/schedule_overrides/{id}'.sub('{id}', CGI.escape(id.to_s))
1097
+
1098
+ # query parameters
1099
+ query_params = opts[:query_params] || {}
1100
+
1101
+ # header parameters
1102
+ header_params = opts[:header_params] || {}
1103
+ # HTTP header 'Accept' (if needed)
1104
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1105
+
1106
+ # form parameters
1107
+ form_params = opts[:form_params] || {}
1108
+
1109
+ # http body (model)
1110
+ post_body = opts[:debug_body]
1111
+
1112
+ # return_type
1113
+ return_type = opts[:debug_return_type] || 'SchedulesShowOverrideResultV2'
1114
+
1115
+ # auth_names
1116
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
1117
+
1118
+ new_options = opts.merge(
1119
+ :operation => :"SchedulesV2Api.schedules_v2_show_override",
1120
+ :header_params => header_params,
1121
+ :query_params => query_params,
1122
+ :form_params => form_params,
1123
+ :body => post_body,
1124
+ :auth_names => auth_names,
1125
+ :return_type => return_type
1126
+ )
1127
+
1128
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1129
+ if @api_client.config.debugging
1130
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_show_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1131
+ end
1132
+ return data, status_code, headers
1133
+ end
1134
+
1135
+ # ShowScheduleReplica Schedules V2
1136
+ # Get a single schedule replica.
1137
+ # @param schedule_id [String] The parent schedule ID
1138
+ # @param id [String] The replica ID to show
1139
+ # @param [Hash] opts the optional parameters
1140
+ # @return [SchedulesShowScheduleReplicaResultV2]
1141
+ def schedules_v2_show_schedule_replica(schedule_id, id, opts = {})
1142
+ data, _status_code, _headers = schedules_v2_show_schedule_replica_with_http_info(schedule_id, id, opts)
1143
+ data
1144
+ end
1145
+
1146
+ # ShowScheduleReplica Schedules V2
1147
+ # Get a single schedule replica.
1148
+ # @param schedule_id [String] The parent schedule ID
1149
+ # @param id [String] The replica ID to show
1150
+ # @param [Hash] opts the optional parameters
1151
+ # @return [Array<(SchedulesShowScheduleReplicaResultV2, Integer, Hash)>] SchedulesShowScheduleReplicaResultV2 data, response status code and response headers
1152
+ def schedules_v2_show_schedule_replica_with_http_info(schedule_id, id, opts = {})
1153
+ if @api_client.config.debugging
1154
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_show_schedule_replica ...'
1155
+ end
1156
+ # verify the required parameter 'schedule_id' is set
1157
+ if @api_client.config.client_side_validation && schedule_id.nil?
1158
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_show_schedule_replica"
1159
+ end
1160
+ # verify the required parameter 'id' is set
1161
+ if @api_client.config.client_side_validation && id.nil?
1162
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_show_schedule_replica"
1163
+ end
1164
+ # resource path
1165
+ local_var_path = '/v2/schedules/{schedule_id}/replicas/{id}'.sub('{schedule_id}', CGI.escape(schedule_id.to_s)).sub('{id}', CGI.escape(id.to_s))
1166
+
1167
+ # query parameters
1168
+ query_params = opts[:query_params] || {}
1169
+
1170
+ # header parameters
1171
+ header_params = opts[:header_params] || {}
1172
+ # HTTP header 'Accept' (if needed)
1173
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1174
+
1175
+ # form parameters
1176
+ form_params = opts[:form_params] || {}
1177
+
1178
+ # http body (model)
1179
+ post_body = opts[:debug_body]
1180
+
1181
+ # return_type
1182
+ return_type = opts[:debug_return_type] || 'SchedulesShowScheduleReplicaResultV2'
1183
+
1184
+ # auth_names
1185
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
1186
+
1187
+ new_options = opts.merge(
1188
+ :operation => :"SchedulesV2Api.schedules_v2_show_schedule_replica",
1189
+ :header_params => header_params,
1190
+ :query_params => query_params,
1191
+ :form_params => form_params,
1192
+ :body => post_body,
1193
+ :auth_names => auth_names,
1194
+ :return_type => return_type
1195
+ )
1196
+
1197
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1198
+ if @api_client.config.debugging
1199
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_show_schedule_replica\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1200
+ end
1201
+ return data, status_code, headers
1202
+ end
1203
+
1204
+ # ShowScheduleSyncRule Schedules V2
1205
+ # Get a single sync rule for a schedule.
1206
+ # @param schedule_id [String] The parent schedule ID
1207
+ # @param id [String] The sync rule ID
1208
+ # @param [Hash] opts the optional parameters
1209
+ # @return [SchedulesShowScheduleSyncRuleResultV2]
1210
+ def schedules_v2_show_schedule_sync_rule(schedule_id, id, opts = {})
1211
+ data, _status_code, _headers = schedules_v2_show_schedule_sync_rule_with_http_info(schedule_id, id, opts)
1212
+ data
1213
+ end
1214
+
1215
+ # ShowScheduleSyncRule Schedules V2
1216
+ # Get a single sync rule for a schedule.
1217
+ # @param schedule_id [String] The parent schedule ID
1218
+ # @param id [String] The sync rule ID
1219
+ # @param [Hash] opts the optional parameters
1220
+ # @return [Array<(SchedulesShowScheduleSyncRuleResultV2, Integer, Hash)>] SchedulesShowScheduleSyncRuleResultV2 data, response status code and response headers
1221
+ def schedules_v2_show_schedule_sync_rule_with_http_info(schedule_id, id, opts = {})
1222
+ if @api_client.config.debugging
1223
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_show_schedule_sync_rule ...'
1224
+ end
1225
+ # verify the required parameter 'schedule_id' is set
1226
+ if @api_client.config.client_side_validation && schedule_id.nil?
1227
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_show_schedule_sync_rule"
1228
+ end
1229
+ # verify the required parameter 'id' is set
1230
+ if @api_client.config.client_side_validation && id.nil?
1231
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_show_schedule_sync_rule"
1232
+ end
1233
+ # resource path
1234
+ local_var_path = '/v2/schedules/{schedule_id}/sync_rules/{id}'.sub('{schedule_id}', CGI.escape(schedule_id.to_s)).sub('{id}', CGI.escape(id.to_s))
1235
+
1236
+ # query parameters
1237
+ query_params = opts[:query_params] || {}
1238
+
1239
+ # header parameters
1240
+ header_params = opts[:header_params] || {}
1241
+ # HTTP header 'Accept' (if needed)
1242
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1243
+
1244
+ # form parameters
1245
+ form_params = opts[:form_params] || {}
1246
+
1247
+ # http body (model)
1248
+ post_body = opts[:debug_body]
1249
+
1250
+ # return_type
1251
+ return_type = opts[:debug_return_type] || 'SchedulesShowScheduleSyncRuleResultV2'
1252
+
1253
+ # auth_names
1254
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
1255
+
1256
+ new_options = opts.merge(
1257
+ :operation => :"SchedulesV2Api.schedules_v2_show_schedule_sync_rule",
1258
+ :header_params => header_params,
1259
+ :query_params => query_params,
1260
+ :form_params => form_params,
1261
+ :body => post_body,
1262
+ :auth_names => auth_names,
1263
+ :return_type => return_type
1264
+ )
1265
+
1266
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1267
+ if @api_client.config.debugging
1268
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_show_schedule_sync_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1269
+ end
1270
+ return data, status_code, headers
1271
+ end
1272
+
1273
+ # Update Schedules V2
1274
+ # Update a schedule. Updating a schedule replaces its entire configuration with the one you send, including any scheduled future versions of its rotations — fetch the schedule first and include every version you want to keep. To change who's in a rotation from a future date without affecting shifts before then, keep the current version unchanged and add another version of the same rotation with `effective_from` set to when the change should land — ideally an upcoming handover, so nobody is swapped mid-shift. You can check the effect of any configuration before saving it with Preview schedule entries.
1275
+ # @param id [String] The schedule ID to update.
1276
+ # @param schedules_update_payload_v2 [SchedulesUpdatePayloadV2]
1277
+ # @param [Hash] opts the optional parameters
1278
+ # @return [SchedulesUpdateResultV2]
1279
+ def schedules_v2_update(id, schedules_update_payload_v2, opts = {})
1280
+ data, _status_code, _headers = schedules_v2_update_with_http_info(id, schedules_update_payload_v2, opts)
1281
+ data
1282
+ end
1283
+
1284
+ # Update Schedules V2
1285
+ # Update a schedule. Updating a schedule replaces its entire configuration with the one you send, including any scheduled future versions of its rotations — fetch the schedule first and include every version you want to keep. To change who&#39;s in a rotation from a future date without affecting shifts before then, keep the current version unchanged and add another version of the same rotation with &#x60;effective_from&#x60; set to when the change should land — ideally an upcoming handover, so nobody is swapped mid-shift. You can check the effect of any configuration before saving it with Preview schedule entries.
1286
+ # @param id [String] The schedule ID to update.
1287
+ # @param schedules_update_payload_v2 [SchedulesUpdatePayloadV2]
1288
+ # @param [Hash] opts the optional parameters
1289
+ # @return [Array<(SchedulesUpdateResultV2, Integer, Hash)>] SchedulesUpdateResultV2 data, response status code and response headers
1290
+ def schedules_v2_update_with_http_info(id, schedules_update_payload_v2, opts = {})
1291
+ if @api_client.config.debugging
1292
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_update ...'
1293
+ end
1294
+ # verify the required parameter 'id' is set
1295
+ if @api_client.config.client_side_validation && id.nil?
1296
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_update"
1297
+ end
1298
+ # verify the required parameter 'schedules_update_payload_v2' is set
1299
+ if @api_client.config.client_side_validation && schedules_update_payload_v2.nil?
1300
+ fail ArgumentError, "Missing the required parameter 'schedules_update_payload_v2' when calling SchedulesV2Api.schedules_v2_update"
1301
+ end
1302
+ # resource path
1303
+ local_var_path = '/v2/schedules/{id}'.sub('{id}', CGI.escape(id.to_s))
1304
+
1305
+ # query parameters
1306
+ query_params = opts[:query_params] || {}
1307
+
1308
+ # header parameters
1309
+ header_params = opts[:header_params] || {}
1310
+ # HTTP header 'Accept' (if needed)
1311
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1312
+ # HTTP header 'Content-Type'
1313
+ content_type = @api_client.select_header_content_type(['application/json'])
1314
+ if !content_type.nil?
1315
+ header_params['Content-Type'] = content_type
1316
+ end
1317
+
1318
+ # form parameters
1319
+ form_params = opts[:form_params] || {}
1320
+
1321
+ # http body (model)
1322
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(schedules_update_payload_v2)
1323
+
1324
+ # return_type
1325
+ return_type = opts[:debug_return_type] || 'SchedulesUpdateResultV2'
1326
+
1327
+ # auth_names
1328
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
1329
+
1330
+ new_options = opts.merge(
1331
+ :operation => :"SchedulesV2Api.schedules_v2_update",
1332
+ :header_params => header_params,
1333
+ :query_params => query_params,
1334
+ :form_params => form_params,
1335
+ :body => post_body,
1336
+ :auth_names => auth_names,
1337
+ :return_type => return_type
1338
+ )
1339
+
1340
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1341
+ if @api_client.config.debugging
1342
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1343
+ end
1344
+ return data, status_code, headers
1345
+ end
1346
+
1347
+ # UpdateOverride Schedules V2
1348
+ # Update a schedule override, moving its window or the rotation and layer it sits on. An override cannot be reassigned: send the user it already has, and delete and recreate it to put someone else on call for that window. Overrides on a layer cannot overlap, so widening one over its neighbour's window takes that time over. The neighbour is deleted, and any of its time left outside the new window comes back as new overrides with new IDs, so other override IDs on this layer may stop resolving — list the schedule's overrides again to pick up the replacements.
1349
+ # @param id [String] The override ID to update
1350
+ # @param schedules_update_override_payload_v2 [SchedulesUpdateOverridePayloadV2]
1351
+ # @param [Hash] opts the optional parameters
1352
+ # @return [SchedulesUpdateOverrideResultV2]
1353
+ def schedules_v2_update_override(id, schedules_update_override_payload_v2, opts = {})
1354
+ data, _status_code, _headers = schedules_v2_update_override_with_http_info(id, schedules_update_override_payload_v2, opts)
1355
+ data
1356
+ end
1357
+
1358
+ # UpdateOverride Schedules V2
1359
+ # Update a schedule override, moving its window or the rotation and layer it sits on. An override cannot be reassigned: send the user it already has, and delete and recreate it to put someone else on call for that window. Overrides on a layer cannot overlap, so widening one over its neighbour&#39;s window takes that time over. The neighbour is deleted, and any of its time left outside the new window comes back as new overrides with new IDs, so other override IDs on this layer may stop resolving — list the schedule&#39;s overrides again to pick up the replacements.
1360
+ # @param id [String] The override ID to update
1361
+ # @param schedules_update_override_payload_v2 [SchedulesUpdateOverridePayloadV2]
1362
+ # @param [Hash] opts the optional parameters
1363
+ # @return [Array<(SchedulesUpdateOverrideResultV2, Integer, Hash)>] SchedulesUpdateOverrideResultV2 data, response status code and response headers
1364
+ def schedules_v2_update_override_with_http_info(id, schedules_update_override_payload_v2, opts = {})
1365
+ if @api_client.config.debugging
1366
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_update_override ...'
1367
+ end
1368
+ # verify the required parameter 'id' is set
1369
+ if @api_client.config.client_side_validation && id.nil?
1370
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_update_override"
1371
+ end
1372
+ # verify the required parameter 'schedules_update_override_payload_v2' is set
1373
+ if @api_client.config.client_side_validation && schedules_update_override_payload_v2.nil?
1374
+ fail ArgumentError, "Missing the required parameter 'schedules_update_override_payload_v2' when calling SchedulesV2Api.schedules_v2_update_override"
1375
+ end
1376
+ # resource path
1377
+ local_var_path = '/v2/schedule_overrides/{id}'.sub('{id}', CGI.escape(id.to_s))
1378
+
1379
+ # query parameters
1380
+ query_params = opts[:query_params] || {}
1381
+
1382
+ # header parameters
1383
+ header_params = opts[:header_params] || {}
1384
+ # HTTP header 'Accept' (if needed)
1385
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1386
+ # HTTP header 'Content-Type'
1387
+ content_type = @api_client.select_header_content_type(['application/json'])
1388
+ if !content_type.nil?
1389
+ header_params['Content-Type'] = content_type
1390
+ end
1391
+
1392
+ # form parameters
1393
+ form_params = opts[:form_params] || {}
1394
+
1395
+ # http body (model)
1396
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(schedules_update_override_payload_v2)
1397
+
1398
+ # return_type
1399
+ return_type = opts[:debug_return_type] || 'SchedulesUpdateOverrideResultV2'
1400
+
1401
+ # auth_names
1402
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
1403
+
1404
+ new_options = opts.merge(
1405
+ :operation => :"SchedulesV2Api.schedules_v2_update_override",
1406
+ :header_params => header_params,
1407
+ :query_params => query_params,
1408
+ :form_params => form_params,
1409
+ :body => post_body,
1410
+ :auth_names => auth_names,
1411
+ :return_type => return_type
1412
+ )
1413
+
1414
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1415
+ if @api_client.config.debugging
1416
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_update_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1417
+ end
1418
+ return data, status_code, headers
1419
+ end
1420
+
1421
+ # UpdateScheduleSyncRule Schedules V2
1422
+ # Update a sync rule's sync_type and permanent members in place. If the rule's sync target is shared with other schedules, a sync_type change propagates to every linked schedule and the entire operation aborts if the caller lacks edit permission on any of them. Permanent members are scoped to this rule and never propagate.
1423
+ # @param schedule_id [String] The parent schedule ID
1424
+ # @param id [String] The sync rule ID
1425
+ # @param schedules_update_schedule_sync_rule_payload_v2 [SchedulesUpdateScheduleSyncRulePayloadV2]
1426
+ # @param [Hash] opts the optional parameters
1427
+ # @return [SchedulesUpdateScheduleSyncRuleResultV2]
1428
+ def schedules_v2_update_schedule_sync_rule(schedule_id, id, schedules_update_schedule_sync_rule_payload_v2, opts = {})
1429
+ data, _status_code, _headers = schedules_v2_update_schedule_sync_rule_with_http_info(schedule_id, id, schedules_update_schedule_sync_rule_payload_v2, opts)
1430
+ data
1431
+ end
1432
+
1433
+ # UpdateScheduleSyncRule Schedules V2
1434
+ # Update a sync rule&#39;s sync_type and permanent members in place. If the rule&#39;s sync target is shared with other schedules, a sync_type change propagates to every linked schedule and the entire operation aborts if the caller lacks edit permission on any of them. Permanent members are scoped to this rule and never propagate.
1435
+ # @param schedule_id [String] The parent schedule ID
1436
+ # @param id [String] The sync rule ID
1437
+ # @param schedules_update_schedule_sync_rule_payload_v2 [SchedulesUpdateScheduleSyncRulePayloadV2]
1438
+ # @param [Hash] opts the optional parameters
1439
+ # @return [Array<(SchedulesUpdateScheduleSyncRuleResultV2, Integer, Hash)>] SchedulesUpdateScheduleSyncRuleResultV2 data, response status code and response headers
1440
+ def schedules_v2_update_schedule_sync_rule_with_http_info(schedule_id, id, schedules_update_schedule_sync_rule_payload_v2, opts = {})
1441
+ if @api_client.config.debugging
1442
+ @api_client.config.logger.debug 'Calling API: SchedulesV2Api.schedules_v2_update_schedule_sync_rule ...'
1443
+ end
1444
+ # verify the required parameter 'schedule_id' is set
1445
+ if @api_client.config.client_side_validation && schedule_id.nil?
1446
+ fail ArgumentError, "Missing the required parameter 'schedule_id' when calling SchedulesV2Api.schedules_v2_update_schedule_sync_rule"
1447
+ end
1448
+ # verify the required parameter 'id' is set
1449
+ if @api_client.config.client_side_validation && id.nil?
1450
+ fail ArgumentError, "Missing the required parameter 'id' when calling SchedulesV2Api.schedules_v2_update_schedule_sync_rule"
1451
+ end
1452
+ # verify the required parameter 'schedules_update_schedule_sync_rule_payload_v2' is set
1453
+ if @api_client.config.client_side_validation && schedules_update_schedule_sync_rule_payload_v2.nil?
1454
+ fail ArgumentError, "Missing the required parameter 'schedules_update_schedule_sync_rule_payload_v2' when calling SchedulesV2Api.schedules_v2_update_schedule_sync_rule"
1455
+ end
1456
+ # resource path
1457
+ local_var_path = '/v2/schedules/{schedule_id}/sync_rules/{id}'.sub('{schedule_id}', CGI.escape(schedule_id.to_s)).sub('{id}', CGI.escape(id.to_s))
1458
+
1459
+ # query parameters
1460
+ query_params = opts[:query_params] || {}
1461
+
1462
+ # header parameters
1463
+ header_params = opts[:header_params] || {}
1464
+ # HTTP header 'Accept' (if needed)
1465
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1466
+ # HTTP header 'Content-Type'
1467
+ content_type = @api_client.select_header_content_type(['application/json'])
1468
+ if !content_type.nil?
1469
+ header_params['Content-Type'] = content_type
1470
+ end
1471
+
1472
+ # form parameters
1473
+ form_params = opts[:form_params] || {}
1474
+
1475
+ # http body (model)
1476
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(schedules_update_schedule_sync_rule_payload_v2)
1477
+
1478
+ # return_type
1479
+ return_type = opts[:debug_return_type] || 'SchedulesUpdateScheduleSyncRuleResultV2'
1480
+
1481
+ # auth_names
1482
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
1483
+
1484
+ new_options = opts.merge(
1485
+ :operation => :"SchedulesV2Api.schedules_v2_update_schedule_sync_rule",
1486
+ :header_params => header_params,
1487
+ :query_params => query_params,
1488
+ :form_params => form_params,
1489
+ :body => post_body,
1490
+ :auth_names => auth_names,
1491
+ :return_type => return_type
1492
+ )
1493
+
1494
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1495
+ if @api_client.config.debugging
1496
+ @api_client.config.logger.debug "API called: SchedulesV2Api#schedules_v2_update_schedule_sync_rule\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1497
+ end
1498
+ return data, status_code, headers
1499
+ end
1500
+ end
1501
+ end