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.
- checksums.yaml +7 -0
- data/LICENSE +7 -0
- data/README.md +177 -0
- data/lib/incident_io/api/actions_v1_api.rb +157 -0
- data/lib/incident_io/api/actions_v2_api.rb +368 -0
- data/lib/incident_io/api/actions_v3_api.rb +373 -0
- data/lib/incident_io/api/alert_attributes_v2_api.rb +347 -0
- data/lib/incident_io/api/alert_events_v2_api.rb +105 -0
- data/lib/incident_io/api/alert_notes_v1_api.rb +367 -0
- data/lib/incident_io/api/alert_routes_v2_api.rb +365 -0
- data/lib/incident_io/api/alert_routes_v3_api.rb +361 -0
- data/lib/incident_io/api/alert_sources_v2_api.rb +415 -0
- data/lib/incident_io/api/alerts_v2_api.rb +772 -0
- data/lib/incident_io/api/announcement_rules_v2_api.rb +361 -0
- data/lib/incident_io/api/announcement_templates_v2_api.rb +347 -0
- data/lib/incident_io/api/api_keys_v1_api.rb +435 -0
- data/lib/incident_io/api/call_routes_v2_api.rb +940 -0
- data/lib/incident_io/api/call_sessions_v2_api.rb +100 -0
- data/lib/incident_io/api/call_transcript_entries_v2_api.rb +100 -0
- data/lib/incident_io/api/catalog_v2_api.rb +860 -0
- data/lib/incident_io/api/catalog_v3_api.rb +902 -0
- data/lib/incident_io/api/custom_field_options_v1_api.rb +368 -0
- data/lib/incident_io/api/custom_fields_v1_api.rb +362 -0
- data/lib/incident_io/api/custom_fields_v2_api.rb +347 -0
- data/lib/incident_io/api/escalation_path_templates_v2_api.rb +369 -0
- data/lib/incident_io/api/escalations_v2_api.rb +869 -0
- data/lib/incident_io/api/follow_ups_v2_api.rb +448 -0
- data/lib/incident_io/api/follow_ups_v3_api.rb +518 -0
- data/lib/incident_io/api/heartbeat_v2_api.rb +160 -0
- data/lib/incident_io/api/incident_activity_log_entries_v2_api.rb +107 -0
- data/lib/incident_io/api/incident_attachments_v1_api.rb +219 -0
- data/lib/incident_io/api/incident_memberships_v1_api.rb +158 -0
- data/lib/incident_io/api/incident_participant_workloads_v2_api.rb +86 -0
- data/lib/incident_io/api/incident_participants_v2_api.rb +86 -0
- data/lib/incident_io/api/incident_relationships_v1_api.rb +100 -0
- data/lib/incident_io/api/incident_roles_v1_api.rb +362 -0
- data/lib/incident_io/api/incident_roles_v2_api.rb +347 -0
- data/lib/incident_io/api/incident_statuses_v1_api.rb +347 -0
- data/lib/incident_io/api/incident_templates_v1_api.rb +429 -0
- data/lib/incident_io/api/incident_timeline_items_v2_api.rb +242 -0
- data/lib/incident_io/api/incident_timestamps_v2_api.rb +142 -0
- data/lib/incident_io/api/incident_types_v1_api.rb +142 -0
- data/lib/incident_io/api/incident_updates_v2_api.rb +164 -0
- data/lib/incident_io/api/incidents_v1_api.rb +236 -0
- data/lib/incident_io/api/incidents_v2_api.rb +405 -0
- data/lib/incident_io/api/ip_allowlists_v1_api.rb +147 -0
- data/lib/incident_io/api/maintenance_windows_v1_api.rb +367 -0
- data/lib/incident_io/api/pay_configs_v2_api.rb +1071 -0
- data/lib/incident_io/api/pay_reports_v2_api.rb +498 -0
- data/lib/incident_io/api/policies_v2_api.rb +364 -0
- data/lib/incident_io/api/policy_findings_v2_api.rb +296 -0
- data/lib/incident_io/api/postmortem_documents_v1_api.rb +367 -0
- data/lib/incident_io/api/schedule_sync_targets_v2_api.rb +361 -0
- data/lib/incident_io/api/schedules_v2_api.rb +1501 -0
- data/lib/incident_io/api/secrets_v2_api.rb +438 -0
- data/lib/incident_io/api/severities_v1_api.rb +347 -0
- data/lib/incident_io/api/status_pages_v1_api.rb +91 -0
- data/lib/incident_io/api/status_pages_v2_api.rb +1102 -0
- data/lib/incident_io/api/teams_v3_api.rb +156 -0
- data/lib/incident_io/api/telemetry_v2_api.rb +96 -0
- data/lib/incident_io/api/users_v2_api.rb +428 -0
- data/lib/incident_io/api/utilities_v1_api.rb +193 -0
- data/lib/incident_io/api/workflow_runs_v2_api.rb +165 -0
- data/lib/incident_io/api/workflows_v2_api.rb +350 -0
- data/lib/incident_io/api_client.rb +441 -0
- data/lib/incident_io/api_error.rb +58 -0
- data/lib/incident_io/api_model_base.rb +88 -0
- data/lib/incident_io/configuration.rb +392 -0
- data/lib/incident_io/deprecation.rb +31 -0
- data/lib/incident_io/errors.rb +101 -0
- data/lib/incident_io/models/action_v1.rb +338 -0
- data/lib/incident_io/models/action_v2.rb +345 -0
- data/lib/incident_io/models/action_v3.rb +345 -0
- data/lib/incident_io/models/actions_create_payload_v2.rb +202 -0
- data/lib/incident_io/models/actions_create_payload_v3.rb +202 -0
- data/lib/incident_io/models/actions_create_result_v2.rb +164 -0
- data/lib/incident_io/models/actions_create_result_v3.rb +164 -0
- data/lib/incident_io/models/actions_list_result_v1.rb +166 -0
- data/lib/incident_io/models/actions_list_result_v2.rb +166 -0
- data/lib/incident_io/models/actions_list_result_v3.rb +192 -0
- data/lib/incident_io/models/actions_show_result_v1.rb +164 -0
- data/lib/incident_io/models/actions_show_result_v2.rb +164 -0
- data/lib/incident_io/models/actions_show_result_v3.rb +164 -0
- data/lib/incident_io/models/actions_update_payload_v2.rb +202 -0
- data/lib/incident_io/models/actions_update_payload_v3.rb +202 -0
- data/lib/incident_io/models/actions_update_result_v2.rb +164 -0
- data/lib/incident_io/models/actions_update_result_v3.rb +164 -0
- data/lib/incident_io/models/activity_action_ref_v2.rb +174 -0
- data/lib/incident_io/models/activity_action_updated_v2.rb +212 -0
- data/lib/incident_io/models/activity_alert_ref_v2.rb +174 -0
- data/lib/incident_io/models/activity_custom_field_value_update_v2.rb +200 -0
- data/lib/incident_io/models/activity_escalation_acknowledged_v2.rb +174 -0
- data/lib/incident_io/models/activity_escalation_created_v2.rb +196 -0
- data/lib/incident_io/models/activity_follow_up_ref_v2.rb +174 -0
- data/lib/incident_io/models/activity_follow_up_updated_v2.rb +232 -0
- data/lib/incident_io/models/activity_incident_merged_v2.rb +166 -0
- data/lib/incident_io/models/activity_incident_rename_v2.rb +201 -0
- data/lib/incident_io/models/activity_incident_timestamp_set_v2.rb +210 -0
- data/lib/incident_io/models/activity_incident_type_changed_v2.rb +165 -0
- data/lib/incident_io/models/activity_incident_update_v2.rb +230 -0
- data/lib/incident_io/models/activity_incident_visibility_changed_v2.rb +201 -0
- data/lib/incident_io/models/activity_role_update_v2.rb +174 -0
- data/lib/incident_io/models/activity_status_change_v2.rb +165 -0
- data/lib/incident_io/models/activity_summary_update_v2.rb +167 -0
- data/lib/incident_io/models/activity_workflow_ran_v2.rb +184 -0
- data/lib/incident_io/models/actor_v1.rb +156 -0
- data/lib/incident_io/models/actor_v2.rb +174 -0
- data/lib/incident_io/models/after_pagination_meta_result_v2.rb +192 -0
- data/lib/incident_io/models/alert_actor_v2.rb +192 -0
- data/lib/incident_io/models/alert_attribute_catalog_entry_v2.rb +219 -0
- data/lib/incident_io/models/alert_attribute_entry_v2.rb +185 -0
- data/lib/incident_io/models/alert_attribute_v2.rb +283 -0
- data/lib/incident_io/models/alert_attribute_value_v2.rb +167 -0
- data/lib/incident_io/models/alert_attributes_create_payload_v2.rb +239 -0
- data/lib/incident_io/models/alert_attributes_create_result_v2.rb +164 -0
- data/lib/incident_io/models/alert_attributes_list_result_v2.rb +166 -0
- data/lib/incident_io/models/alert_attributes_show_result_v2.rb +164 -0
- data/lib/incident_io/models/alert_attributes_update_payload_v2.rb +239 -0
- data/lib/incident_io/models/alert_attributes_update_result_v2.rb +164 -0
- data/lib/incident_io/models/alert_events_create_http_payload_v2.rb +234 -0
- data/lib/incident_io/models/alert_events_create_http_result_v2.rb +219 -0
- data/lib/incident_io/models/alert_grouping_config_v3.rb +164 -0
- data/lib/incident_io/models/alert_message_config_payload_v3.rb +176 -0
- data/lib/incident_io/models/alert_message_config_v3.rb +176 -0
- data/lib/incident_io/models/alert_message_destination_payload_v3.rb +185 -0
- data/lib/incident_io/models/alert_message_destination_v3.rb +185 -0
- data/lib/incident_io/models/alert_note_v1.rb +331 -0
- data/lib/incident_io/models/alert_notes_create_payload_v1.rb +185 -0
- data/lib/incident_io/models/alert_notes_create_result_v1.rb +164 -0
- data/lib/incident_io/models/alert_notes_list_result_v1.rb +192 -0
- data/lib/incident_io/models/alert_notes_show_result_v1.rb +164 -0
- data/lib/incident_io/models/alert_notes_update_payload_v1.rb +165 -0
- data/lib/incident_io/models/alert_notes_update_result_v1.rb +164 -0
- data/lib/incident_io/models/alert_route_alert_source_payload_v2.rb +194 -0
- data/lib/incident_io/models/alert_route_alert_source_payload_v3.rb +194 -0
- data/lib/incident_io/models/alert_route_alert_source_v2.rb +194 -0
- data/lib/incident_io/models/alert_route_alert_source_v3.rb +194 -0
- data/lib/incident_io/models/alert_route_auto_generated_template_binding_payload_v2.rb +157 -0
- data/lib/incident_io/models/alert_route_auto_generated_template_binding_payload_v3.rb +157 -0
- data/lib/incident_io/models/alert_route_auto_generated_template_binding_v2.rb +174 -0
- data/lib/incident_io/models/alert_route_auto_generated_template_binding_v3.rb +174 -0
- data/lib/incident_io/models/alert_route_channel_config_payload_v2.rb +185 -0
- data/lib/incident_io/models/alert_route_channel_config_v2.rb +185 -0
- data/lib/incident_io/models/alert_route_channel_target_payload_v2.rb +191 -0
- data/lib/incident_io/models/alert_route_channel_target_payload_v3.rb +201 -0
- data/lib/incident_io/models/alert_route_channel_target_v2.rb +191 -0
- data/lib/incident_io/models/alert_route_channel_target_v3.rb +201 -0
- data/lib/incident_io/models/alert_route_custom_field_binding_payload_v2.rb +218 -0
- data/lib/incident_io/models/alert_route_custom_field_binding_payload_v3.rb +218 -0
- data/lib/incident_io/models/alert_route_custom_field_binding_v2.rb +218 -0
- data/lib/incident_io/models/alert_route_custom_field_binding_v3.rb +218 -0
- data/lib/incident_io/models/alert_route_escalation_config_payload_v2.rb +194 -0
- data/lib/incident_io/models/alert_route_escalation_config_payload_v3.rb +203 -0
- data/lib/incident_io/models/alert_route_escalation_config_v2.rb +194 -0
- data/lib/incident_io/models/alert_route_escalation_config_v3.rb +203 -0
- data/lib/incident_io/models/alert_route_escalation_target_payload_v2.rb +156 -0
- data/lib/incident_io/models/alert_route_escalation_target_payload_v3.rb +156 -0
- data/lib/incident_io/models/alert_route_escalation_target_v2.rb +156 -0
- data/lib/incident_io/models/alert_route_escalation_target_v3.rb +156 -0
- data/lib/incident_io/models/alert_route_incident_config_payload_v2.rb +314 -0
- data/lib/incident_io/models/alert_route_incident_config_payload_v3.rb +214 -0
- data/lib/incident_io/models/alert_route_incident_config_v2.rb +331 -0
- data/lib/incident_io/models/alert_route_incident_config_v3.rb +214 -0
- data/lib/incident_io/models/alert_route_incident_template_payload_v2.rb +239 -0
- data/lib/incident_io/models/alert_route_incident_template_payload_v3.rb +231 -0
- data/lib/incident_io/models/alert_route_incident_template_v2.rb +239 -0
- data/lib/incident_io/models/alert_route_incident_template_v3.rb +231 -0
- data/lib/incident_io/models/alert_route_severity_binding_payload_v2.rb +174 -0
- data/lib/incident_io/models/alert_route_severity_binding_payload_v3.rb +174 -0
- data/lib/incident_io/models/alert_route_severity_binding_v2.rb +174 -0
- data/lib/incident_io/models/alert_route_severity_binding_v3.rb +174 -0
- data/lib/incident_io/models/alert_route_slim_v2.rb +219 -0
- data/lib/incident_io/models/alert_route_slim_v3.rb +219 -0
- data/lib/incident_io/models/alert_route_template_binding_payload_v2.rb +147 -0
- data/lib/incident_io/models/alert_route_template_binding_payload_v3.rb +147 -0
- data/lib/incident_io/models/alert_route_template_binding_v2.rb +147 -0
- data/lib/incident_io/models/alert_route_template_binding_v3.rb +147 -0
- data/lib/incident_io/models/alert_route_v2.rb +508 -0
- data/lib/incident_io/models/alert_route_v3.rb +496 -0
- data/lib/incident_io/models/alert_route_when_alert_joins_group_payload_v3.rb +203 -0
- data/lib/incident_io/models/alert_route_when_alert_joins_group_v3.rb +175 -0
- data/lib/incident_io/models/alert_routes_create_payload_v2.rb +454 -0
- data/lib/incident_io/models/alert_routes_create_payload_v3.rb +422 -0
- data/lib/incident_io/models/alert_routes_create_result_v2.rb +164 -0
- data/lib/incident_io/models/alert_routes_create_result_v3.rb +164 -0
- data/lib/incident_io/models/alert_routes_list_result_v2.rb +192 -0
- data/lib/incident_io/models/alert_routes_list_result_v3.rb +192 -0
- data/lib/incident_io/models/alert_routes_show_result_v2.rb +164 -0
- data/lib/incident_io/models/alert_routes_show_result_v3.rb +164 -0
- data/lib/incident_io/models/alert_routes_update_payload_v2.rb +481 -0
- data/lib/incident_io/models/alert_routes_update_payload_v3.rb +449 -0
- data/lib/incident_io/models/alert_routes_update_result_v2.rb +164 -0
- data/lib/incident_io/models/alert_routes_update_result_v3.rb +164 -0
- data/lib/incident_io/models/alert_slim_v2.rb +369 -0
- data/lib/incident_io/models/alert_source_azure_devops_options_v2.rb +167 -0
- data/lib/incident_io/models/alert_source_email_options_payload_v2.rb +177 -0
- data/lib/incident_io/models/alert_source_email_options_v2.rb +204 -0
- data/lib/incident_io/models/alert_source_heartbeat_options_payload_v2.rb +189 -0
- data/lib/incident_io/models/alert_source_heartbeat_options_v2.rb +246 -0
- data/lib/incident_io/models/alert_source_http_custom_options_v2.rb +192 -0
- data/lib/incident_io/models/alert_source_jira_options_v2.rb +167 -0
- data/lib/incident_io/models/alert_source_rate_limit_sharding_v2.rb +166 -0
- data/lib/incident_io/models/alert_source_v2.rb +373 -0
- data/lib/incident_io/models/alert_sources_create_payload_v2.rb +326 -0
- data/lib/incident_io/models/alert_sources_create_result_v2.rb +164 -0
- data/lib/incident_io/models/alert_sources_list_result_v2.rb +166 -0
- data/lib/incident_io/models/alert_sources_show_result_v2.rb +164 -0
- data/lib/incident_io/models/alert_sources_update_payload_v2.rb +309 -0
- data/lib/incident_io/models/alert_sources_update_result_v2.rb +164 -0
- data/lib/incident_io/models/alert_sources_validate_payload_v2.rb +203 -0
- data/lib/incident_io/models/alert_tag_v2.rb +192 -0
- data/lib/incident_io/models/alert_template_attribute_binding_payload_v2.rb +169 -0
- data/lib/incident_io/models/alert_template_attribute_binding_v2.rb +169 -0
- data/lib/incident_io/models/alert_template_attribute_payload_v2.rb +191 -0
- data/lib/incident_io/models/alert_template_attribute_v2.rb +191 -0
- data/lib/incident_io/models/alert_template_payload_v2.rb +267 -0
- data/lib/incident_io/models/alert_template_v2.rb +284 -0
- data/lib/incident_io/models/alert_v2.rb +410 -0
- data/lib/incident_io/models/alerts_add_tags_payload_v2.rb +176 -0
- data/lib/incident_io/models/alerts_add_tags_result_v2.rb +164 -0
- data/lib/incident_io/models/alerts_create_incident_alert_payload_v2.rb +204 -0
- data/lib/incident_io/models/alerts_create_incident_alert_result_v2.rb +164 -0
- data/lib/incident_io/models/alerts_list_alert_tags_result_v2.rb +192 -0
- data/lib/incident_io/models/alerts_list_incident_alerts_result_v2.rb +192 -0
- data/lib/incident_io/models/alerts_list_result_v2.rb +192 -0
- data/lib/incident_io/models/alerts_remove_tags_payload_v2.rb +176 -0
- data/lib/incident_io/models/alerts_remove_tags_result_v2.rb +164 -0
- data/lib/incident_io/models/alerts_resolve_result_v2.rb +164 -0
- data/lib/incident_io/models/alerts_set_tags_payload_v2.rb +176 -0
- data/lib/incident_io/models/alerts_set_tags_result_v2.rb +164 -0
- data/lib/incident_io/models/alerts_show_result_v2.rb +164 -0
- data/lib/incident_io/models/alerts_transition_incident_alert_payload_v2.rb +165 -0
- data/lib/incident_io/models/alerts_transition_incident_alert_result_v2.rb +164 -0
- data/lib/incident_io/models/announcement_rule_v2.rb +464 -0
- data/lib/incident_io/models/announcement_rules_create_payload_v2.rb +314 -0
- data/lib/incident_io/models/announcement_rules_create_result_v2.rb +164 -0
- data/lib/incident_io/models/announcement_rules_list_result_v2.rb +192 -0
- data/lib/incident_io/models/announcement_rules_show_result_v2.rb +164 -0
- data/lib/incident_io/models/announcement_rules_update_payload_v2.rb +314 -0
- data/lib/incident_io/models/announcement_rules_update_result_v2.rb +164 -0
- data/lib/incident_io/models/announcement_template_action_payload_v2.rb +202 -0
- data/lib/incident_io/models/announcement_template_action_v2.rb +229 -0
- data/lib/incident_io/models/announcement_template_field_payload_v2.rb +241 -0
- data/lib/incident_io/models/announcement_template_field_v2.rb +268 -0
- data/lib/incident_io/models/announcement_template_rich_text_v2.rb +193 -0
- data/lib/incident_io/models/announcement_template_v2.rb +307 -0
- data/lib/incident_io/models/announcement_templates_create_payload_v2.rb +201 -0
- data/lib/incident_io/models/announcement_templates_create_result_v2.rb +164 -0
- data/lib/incident_io/models/announcement_templates_list_result_v2.rb +166 -0
- data/lib/incident_io/models/announcement_templates_show_result_v2.rb +164 -0
- data/lib/incident_io/models/announcement_templates_update_payload_v2.rb +235 -0
- data/lib/incident_io/models/announcement_templates_update_result_v2.rb +164 -0
- data/lib/incident_io/models/api_key_actor_v1.rb +192 -0
- data/lib/incident_io/models/api_key_actor_v2.rb +192 -0
- data/lib/incident_io/models/api_key_role_v1.rb +192 -0
- data/lib/incident_io/models/api_key_team_role_v1.rb +192 -0
- data/lib/incident_io/models/api_key_v1.rb +409 -0
- data/lib/incident_io/models/api_keys_create_payload_v1.rb +310 -0
- data/lib/incident_io/models/api_keys_create_result_v1.rb +191 -0
- data/lib/incident_io/models/api_keys_list_result_v1.rb +192 -0
- data/lib/incident_io/models/api_keys_rotate_payload_v1.rb +183 -0
- data/lib/incident_io/models/api_keys_rotate_result_v1.rb +191 -0
- data/lib/incident_io/models/api_keys_show_result_v1.rb +164 -0
- data/lib/incident_io/models/api_keys_update_payload_v1.rb +310 -0
- data/lib/incident_io/models/api_keys_update_result_v1.rb +164 -0
- data/lib/incident_io/models/audit_log_actor_metadata_v2.rb +198 -0
- data/lib/incident_io/models/audit_log_actor_v2.rb +211 -0
- data/lib/incident_io/models/audit_log_announcement_post_template_owning_teams_metadata_v2.rb +192 -0
- data/lib/incident_io/models/audit_log_announcement_rule_metadata_v2.rb +246 -0
- data/lib/incident_io/models/audit_log_catalog_attribute_updated_metadata_v2.rb +196 -0
- data/lib/incident_io/models/audit_log_catalog_attribute_updated_metadata_v2_v2.rb +192 -0
- data/lib/incident_io/models/audit_log_email_otp_login_setting_updated_metadata_v2.rb +148 -0
- data/lib/incident_io/models/audit_log_entry_context_v2.rb +175 -0
- data/lib/incident_io/models/audit_log_extension_connector_called_metadata_v2.rb +256 -0
- data/lib/incident_io/models/audit_log_extension_connector_called_metadata_v2_v2.rb +266 -0
- data/lib/incident_io/models/audit_log_extension_connector_called_metadata_v3_v2.rb +296 -0
- data/lib/incident_io/models/audit_log_hris_time_off_policy_updated_metadata_v2.rb +178 -0
- data/lib/incident_io/models/audit_log_incident_type_default_teams_metadata_v2.rb +192 -0
- data/lib/incident_io/models/audit_log_ip_allowlist_updated_metadata_v2.rb +198 -0
- data/lib/incident_io/models/audit_log_microsoft_entra_tenant_linked_metadata_v2.rb +158 -0
- data/lib/incident_io/models/audit_log_mobile_intune_enabled_setting_updated_metadata_v2.rb +148 -0
- data/lib/incident_io/models/audit_log_on_call_notification_method_metadata_v2.rb +148 -0
- data/lib/incident_io/models/audit_log_on_call_notification_pause_metadata_v2.rb +249 -0
- data/lib/incident_io/models/audit_log_on_call_upsell_requested_metadata_v2.rb +246 -0
- data/lib/incident_io/models/audit_log_organisation_settings_updated_metadata_v2.rb +168 -0
- data/lib/incident_io/models/audit_log_policy_metadata_v2.rb +148 -0
- data/lib/incident_io/models/audit_log_private_alert_access_attempted_metadata_v2.rb +148 -0
- data/lib/incident_io/models/audit_log_private_escalation_access_attempted_metadata_v2.rb +148 -0
- data/lib/incident_io/models/audit_log_private_incident_access_attempted_metadata_v2.rb +148 -0
- data/lib/incident_io/models/audit_log_private_incident_access_attempted_metadata_v2_v2.rb +219 -0
- data/lib/incident_io/models/audit_log_private_insights_exported_metadata_v2.rb +158 -0
- data/lib/incident_io/models/audit_log_private_insights_measure_queried_metadata_v2.rb +158 -0
- data/lib/incident_io/models/audit_log_private_insights_underlying_data_queried_metadata_v2.rb +158 -0
- data/lib/incident_io/models/audit_log_qr_code_mobile_login_setting_updated_metadata_v2.rb +148 -0
- data/lib/incident_io/models/audit_log_schedule_override_metadata_v2.rb +300 -0
- data/lib/incident_io/models/audit_log_scim_group_seat_mapping_changed_metadata_v2.rb +192 -0
- data/lib/incident_io/models/audit_log_target_v2.rb +202 -0
- data/lib/incident_io/models/audit_log_telemetry_data_source_access_mode_changed_metadata_v2.rb +192 -0
- data/lib/incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2.rb +229 -0
- data/lib/incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2.rb +229 -0
- data/lib/incident_io/models/audit_log_telemetry_data_source_queried_metadata_v2_v2.rb +239 -0
- data/lib/incident_io/models/audit_log_telemetry_data_source_requested_metadata_v2.rb +249 -0
- data/lib/incident_io/models/audit_log_telemetry_data_source_tool_access_changed_metadata_v2.rb +300 -0
- data/lib/incident_io/models/audit_log_telemetry_data_source_tool_overrides_changed_metadata_v2.rb +246 -0
- data/lib/incident_io/models/audit_log_telemetry_data_source_write_access_metadata_v2.rb +165 -0
- data/lib/incident_io/models/audit_log_twilio_connection_metadata_v2.rb +165 -0
- data/lib/incident_io/models/audit_log_user_logged_in_metadata_v2.rb +165 -0
- data/lib/incident_io/models/audit_log_user_role_membership_changed_metadata_v2.rb +246 -0
- data/lib/incident_io/models/audit_log_user_scim_group_mapping_changed_metadata_v2.rb +178 -0
- data/lib/incident_io/models/audit_logs_activity_log_scrubbed_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_chat_message_template_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_chat_message_template_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_chat_message_template_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_priority_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_priority_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_priority_set_as_default_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_priority_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_route_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_route_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_route_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_schema_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_scrubbed_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_source_config_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_source_config_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_alert_source_config_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_post_template_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_post_template_created_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_announcement_post_template_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_post_template_set_as_default_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_post_template_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_post_template_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_announcement_rule_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_rule_created_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_announcement_rule_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_rule_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_announcement_rule_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_api_key_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_api_key_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_api_key_rotated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_api_key_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_catalog_entry_attribute_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_catalog_entry_attribute_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_catalog_type_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_catalog_type_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_catalog_type_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_connector_config_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_connector_config_token_generated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_connector_config_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_custom_field_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_custom_field_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_custom_field_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_debrief_invite_rule_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_debrief_invite_rule_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_debrief_invite_rule_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_email_otp_login_setting_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_escalation_path_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_path_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_path_template_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_path_template_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_path_template_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_path_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_escalation_scrubbed_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_extension_connector_called_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_extension_connector_called_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_extension_connector_called_v3.rb +326 -0
- data/lib/incident_io/models/audit_logs_follow_up_category_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_follow_up_category_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_follow_up_category_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_follow_up_priority_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_follow_up_priority_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_follow_up_priority_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_holiday_user_feed_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_holiday_user_feed_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_holiday_user_feed_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_hris_time_off_policy_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_incident_call_setting_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_call_transcription_session_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_duration_metric_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_duration_metric_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_duration_metric_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_role_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_role_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_role_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_status_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_status_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_status_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_template_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_template_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_template_set_as_default_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_template_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_timestamp_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_type_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_type_created_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_incident_type_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_type_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_incident_type_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_integration_installed_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_integration_uninstalled_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_internal_status_page_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_internal_status_page_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_internal_status_page_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_ip_allowlist_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_maintenance_window_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_maintenance_window_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_maintenance_window_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_microsoft_entra_tenant_linked_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_mobile_intune_enabled_setting_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_nudge_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_nudge_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_nudge_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_method_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_method_created_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_method_destroyed_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_method_destroyed_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_pause_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_pause_created_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_pause_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_pause_deleted_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_pause_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_on_call_notification_pause_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_on_call_upsell_requested_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_organisation_settings_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_policy_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_policy_created_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_policy_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_policy_report_schedule_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_policy_report_schedule_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_policy_report_schedule_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_policy_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_policy_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_post_incident_task_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_post_incident_task_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_post_incident_task_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_section_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_section_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_section_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_section_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_section_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_section_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_template_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_template_created_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_template_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_template_deleted_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_template_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_postmortem_template_updated_v2.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_alert_access_attempted_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_escalation_access_attempted_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_incident_access_attempted_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_incident_access_attempted_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_incident_access_requested_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_accessed_via_bot_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_membership_granted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_membership_revoked_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_membership_upgraded_to_direct_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_team_membership_granted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_incident_team_membership_revoked_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_private_insights_exported_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_insights_measure_queried_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_private_insights_underlying_data_queried_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_qr_code_mobile_login_setting_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_rbac_role_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_rbac_role_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_rbac_role_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_override_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_override_created_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_schedule_override_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_override_deleted_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_schedule_override_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_override_updated_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_rule_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_rule_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_rule_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_target_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_target_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_sync_target_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_schedule_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_scim_group_role_mappings_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_scim_group_seat_mappings_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_secret_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_secret_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_secret_reference_added_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_secret_reference_removed_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_secret_rotated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_secret_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_severity_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_severity_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_severity_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_sub_page_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_sub_page_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_sub_page_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_template_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_template_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_template_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_status_page_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_team_role_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_team_role_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_team_role_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_team_settings_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_installed_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_queried_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_queried_v2.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_requested_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_tool_access_changed_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_tool_overrides_changed_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_uninstalled_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_write_access_granted_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_write_access_revoked_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_timeline_item_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_twilio_connection_created_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_twilio_connection_deleted_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_twilio_connection_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_user_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_user_deactivated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_user_logged_in_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_user_reinstated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_user_role_memberships_updated_v1.rb +326 -0
- data/lib/incident_io/models/audit_logs_user_updated_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_workflow_created_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_workflow_deleted_v1.rb +300 -0
- data/lib/incident_io/models/audit_logs_workflow_updated_v1.rb +300 -0
- data/lib/incident_io/models/call_route_allowed_caller_v2.rb +203 -0
- data/lib/incident_io/models/call_route_option_v2.rb +258 -0
- data/lib/incident_io/models/call_route_path_node_level_v2.rb +168 -0
- data/lib/incident_io/models/call_route_path_node_payload_v2.rb +193 -0
- data/lib/incident_io/models/call_route_path_node_v2.rb +211 -0
- data/lib/incident_io/models/call_route_path_node_voicemail_v2.rb +175 -0
- data/lib/incident_io/models/call_route_target_v2.rb +240 -0
- data/lib/incident_io/models/call_route_v2.rb +470 -0
- data/lib/incident_io/models/call_routes_create_allowed_caller_payload_v2.rb +175 -0
- data/lib/incident_io/models/call_routes_create_allowed_caller_result_v2.rb +164 -0
- data/lib/incident_io/models/call_routes_create_option_payload_v2.rb +230 -0
- data/lib/incident_io/models/call_routes_create_option_result_v2.rb +164 -0
- data/lib/incident_io/models/call_routes_list_allowed_callers_result_v2.rb +166 -0
- data/lib/incident_io/models/call_routes_list_options_result_v2.rb +166 -0
- data/lib/incident_io/models/call_routes_list_result_v2.rb +175 -0
- data/lib/incident_io/models/call_routes_show_allowed_caller_result_v2.rb +164 -0
- data/lib/incident_io/models/call_routes_show_option_result_v2.rb +164 -0
- data/lib/incident_io/models/call_routes_show_result_v2.rb +164 -0
- data/lib/incident_io/models/call_routes_update_allowed_caller_payload_v2.rb +175 -0
- data/lib/incident_io/models/call_routes_update_allowed_caller_result_v2.rb +164 -0
- data/lib/incident_io/models/call_routes_update_option_payload_v2.rb +230 -0
- data/lib/incident_io/models/call_routes_update_option_result_v2.rb +164 -0
- data/lib/incident_io/models/call_routes_update_payload_v2.rb +275 -0
- data/lib/incident_io/models/call_routes_update_result_v2.rb +164 -0
- data/lib/incident_io/models/call_session_v2.rb +230 -0
- data/lib/incident_io/models/call_sessions_list_result_v2.rb +175 -0
- data/lib/incident_io/models/call_transcript_entries_list_result_v2.rb +175 -0
- data/lib/incident_io/models/call_transcript_entry_v2.rb +274 -0
- data/lib/incident_io/models/catalog_bulk_update_entries_payload_v3.rb +224 -0
- data/lib/incident_io/models/catalog_create_entry_payload_v2.rb +253 -0
- data/lib/incident_io/models/catalog_create_entry_payload_v3.rb +253 -0
- data/lib/incident_io/models/catalog_create_entry_result_v2.rb +164 -0
- data/lib/incident_io/models/catalog_create_entry_result_v3.rb +164 -0
- data/lib/incident_io/models/catalog_create_type_payload_v2.rb +266 -0
- data/lib/incident_io/models/catalog_create_type_payload_v3.rb +288 -0
- data/lib/incident_io/models/catalog_create_type_result_v2.rb +164 -0
- data/lib/incident_io/models/catalog_create_type_result_v3.rb +164 -0
- data/lib/incident_io/models/catalog_engine_param_binding_payload_v3.rb +159 -0
- data/lib/incident_io/models/catalog_engine_param_binding_value_payload_v3.rb +148 -0
- data/lib/incident_io/models/catalog_entry_engine_param_binding_v2.rb +159 -0
- data/lib/incident_io/models/catalog_entry_engine_param_binding_v3.rb +159 -0
- data/lib/incident_io/models/catalog_entry_engine_param_binding_value_v2.rb +271 -0
- data/lib/incident_io/models/catalog_entry_engine_param_binding_value_v3.rb +175 -0
- data/lib/incident_io/models/catalog_entry_reference_v2.rb +229 -0
- data/lib/incident_io/models/catalog_entry_slim_v3_v3.rb +202 -0
- data/lib/incident_io/models/catalog_entry_v2.rb +378 -0
- data/lib/incident_io/models/catalog_entry_v3.rb +378 -0
- data/lib/incident_io/models/catalog_list_entries_result_v2.rb +218 -0
- data/lib/incident_io/models/catalog_list_entries_result_v3.rb +218 -0
- data/lib/incident_io/models/catalog_list_resources_result_v2.rb +166 -0
- data/lib/incident_io/models/catalog_list_resources_result_v3.rb +166 -0
- data/lib/incident_io/models/catalog_list_types_result_v2.rb +166 -0
- data/lib/incident_io/models/catalog_list_types_result_v3.rb +166 -0
- data/lib/incident_io/models/catalog_resource_v2.rb +273 -0
- data/lib/incident_io/models/catalog_resource_v3.rb +300 -0
- data/lib/incident_io/models/catalog_show_entry_result_v2.rb +190 -0
- data/lib/incident_io/models/catalog_show_entry_result_v3.rb +190 -0
- data/lib/incident_io/models/catalog_show_type_result_v2.rb +164 -0
- data/lib/incident_io/models/catalog_show_type_result_v3.rb +164 -0
- data/lib/incident_io/models/catalog_type_attribute_path_item_payload_v2.rb +165 -0
- data/lib/incident_io/models/catalog_type_attribute_path_item_payload_v3.rb +165 -0
- data/lib/incident_io/models/catalog_type_attribute_path_item_v2.rb +192 -0
- data/lib/incident_io/models/catalog_type_attribute_path_item_v3.rb +192 -0
- data/lib/incident_io/models/catalog_type_attribute_payload_v2.rb +261 -0
- data/lib/incident_io/models/catalog_type_attribute_payload_v3.rb +261 -0
- data/lib/incident_io/models/catalog_type_attribute_v2.rb +295 -0
- data/lib/incident_io/models/catalog_type_attribute_v3.rb +295 -0
- data/lib/incident_io/models/catalog_type_schema_v2.rb +194 -0
- data/lib/incident_io/models/catalog_type_schema_v3.rb +194 -0
- data/lib/incident_io/models/catalog_type_v2.rb +581 -0
- data/lib/incident_io/models/catalog_type_v3.rb +630 -0
- data/lib/incident_io/models/catalog_update_entry_payload_v2.rb +226 -0
- data/lib/incident_io/models/catalog_update_entry_payload_v3.rb +238 -0
- data/lib/incident_io/models/catalog_update_entry_result_v2.rb +190 -0
- data/lib/incident_io/models/catalog_update_entry_result_v3.rb +190 -0
- data/lib/incident_io/models/catalog_update_type_payload_v2.rb +256 -0
- data/lib/incident_io/models/catalog_update_type_payload_v3.rb +278 -0
- data/lib/incident_io/models/catalog_update_type_result_v2.rb +164 -0
- data/lib/incident_io/models/catalog_update_type_result_v3.rb +164 -0
- data/lib/incident_io/models/catalog_update_type_schema_payload_v2.rb +192 -0
- data/lib/incident_io/models/catalog_update_type_schema_payload_v3.rb +192 -0
- data/lib/incident_io/models/catalog_update_type_schema_result_v2.rb +164 -0
- data/lib/incident_io/models/catalog_update_type_schema_result_v3.rb +164 -0
- data/lib/incident_io/models/chat_channel_slim_v2.rb +178 -0
- data/lib/incident_io/models/condition_group_payload_v2.rb +167 -0
- data/lib/incident_io/models/condition_group_payload_v3.rb +167 -0
- data/lib/incident_io/models/condition_group_v2.rb +167 -0
- data/lib/incident_io/models/condition_group_v3.rb +167 -0
- data/lib/incident_io/models/condition_operation_v2.rb +192 -0
- data/lib/incident_io/models/condition_operation_v3.rb +192 -0
- data/lib/incident_io/models/condition_payload_v2.rb +221 -0
- data/lib/incident_io/models/condition_payload_v3.rb +221 -0
- data/lib/incident_io/models/condition_subject_v2.rb +192 -0
- data/lib/incident_io/models/condition_subject_v3.rb +192 -0
- data/lib/incident_io/models/condition_v2.rb +219 -0
- data/lib/incident_io/models/condition_v3.rb +219 -0
- data/lib/incident_io/models/custom_field_entry_payload_v1.rb +194 -0
- data/lib/incident_io/models/custom_field_entry_payload_v2.rb +194 -0
- data/lib/incident_io/models/custom_field_entry_v1.rb +193 -0
- data/lib/incident_io/models/custom_field_entry_v2.rb +193 -0
- data/lib/incident_io/models/custom_field_filter_by_options_v2.rb +192 -0
- data/lib/incident_io/models/custom_field_fixed_filter_options_v2.rb +194 -0
- data/lib/incident_io/models/custom_field_option_v1.rb +246 -0
- data/lib/incident_io/models/custom_field_option_v2.rb +246 -0
- data/lib/incident_io/models/custom_field_options_create_payload_v1.rb +204 -0
- data/lib/incident_io/models/custom_field_options_create_result_v1.rb +164 -0
- data/lib/incident_io/models/custom_field_options_list_result_v1.rb +192 -0
- data/lib/incident_io/models/custom_field_options_show_result_v1.rb +164 -0
- data/lib/incident_io/models/custom_field_options_update_payload_v1.rb +192 -0
- data/lib/incident_io/models/custom_field_options_update_result_v1.rb +164 -0
- data/lib/incident_io/models/custom_field_type_info_v1.rb +284 -0
- data/lib/incident_io/models/custom_field_type_info_v2.rb +284 -0
- data/lib/incident_io/models/custom_field_v1.rb +459 -0
- data/lib/incident_io/models/custom_field_v2.rb +357 -0
- data/lib/incident_io/models/custom_field_value_payload_v1.rb +208 -0
- data/lib/incident_io/models/custom_field_value_payload_v2.rb +208 -0
- data/lib/incident_io/models/custom_field_value_v1.rb +186 -0
- data/lib/incident_io/models/custom_field_value_v2.rb +186 -0
- data/lib/incident_io/models/custom_fields_create_payload_v1.rb +339 -0
- data/lib/incident_io/models/custom_fields_create_payload_v2.rb +276 -0
- data/lib/incident_io/models/custom_fields_create_result_v1.rb +164 -0
- data/lib/incident_io/models/custom_fields_create_result_v2.rb +164 -0
- data/lib/incident_io/models/custom_fields_list_result_v1.rb +166 -0
- data/lib/incident_io/models/custom_fields_list_result_v2.rb +166 -0
- data/lib/incident_io/models/custom_fields_show_result_v1.rb +164 -0
- data/lib/incident_io/models/custom_fields_show_result_v2.rb +164 -0
- data/lib/incident_io/models/custom_fields_update_payload_v1.rb +312 -0
- data/lib/incident_io/models/custom_fields_update_payload_v2.rb +239 -0
- data/lib/incident_io/models/custom_fields_update_result_v1.rb +164 -0
- data/lib/incident_io/models/custom_fields_update_result_v2.rb +164 -0
- data/lib/incident_io/models/embedded_catalog_entry_v1.rb +214 -0
- data/lib/incident_io/models/embedded_catalog_entry_v2.rb +214 -0
- data/lib/incident_io/models/embedded_incident_role_v2.rb +382 -0
- data/lib/incident_io/models/engine_param_binding_payload_v2.rb +159 -0
- data/lib/incident_io/models/engine_param_binding_payload_v3.rb +159 -0
- data/lib/incident_io/models/engine_param_binding_v2.rb +159 -0
- data/lib/incident_io/models/engine_param_binding_v3.rb +159 -0
- data/lib/incident_io/models/engine_param_binding_value_payload_v2.rb +158 -0
- data/lib/incident_io/models/engine_param_binding_value_payload_v3.rb +158 -0
- data/lib/incident_io/models/engine_param_binding_value_v2.rb +185 -0
- data/lib/incident_io/models/engine_param_binding_value_v3.rb +158 -0
- data/lib/incident_io/models/engine_param_v2.rb +321 -0
- data/lib/incident_io/models/engine_reference_v2.rb +246 -0
- data/lib/incident_io/models/error_debug.rb +194 -0
- data/lib/incident_io/models/error_rate_limit.rb +246 -0
- data/lib/incident_io/models/error_response.rb +266 -0
- data/lib/incident_io/models/error_single.rb +213 -0
- data/lib/incident_io/models/error_source.rb +192 -0
- data/lib/incident_io/models/escalation_creator_v2.rb +166 -0
- data/lib/incident_io/models/escalation_event_v2.rb +253 -0
- data/lib/incident_io/models/escalation_path_node_delay_v2.rb +168 -0
- data/lib/incident_io/models/escalation_path_node_escalation_path_v2.rb +165 -0
- data/lib/incident_io/models/escalation_path_node_if_else_payload_v2.rb +208 -0
- data/lib/incident_io/models/escalation_path_node_if_else_v2.rb +225 -0
- data/lib/incident_io/models/escalation_path_node_level_v2.rb +225 -0
- data/lib/incident_io/models/escalation_path_node_level_with_binding_payload_v2.rb +225 -0
- data/lib/incident_io/models/escalation_path_node_level_with_binding_v2.rb +225 -0
- data/lib/incident_io/models/escalation_path_node_notify_channel_v2.rb +197 -0
- data/lib/incident_io/models/escalation_path_node_notify_channel_with_binding_payload_v2.rb +197 -0
- data/lib/incident_io/models/escalation_path_node_notify_channel_with_binding_v2.rb +197 -0
- data/lib/incident_io/models/escalation_path_node_payload_v2.rb +246 -0
- data/lib/incident_io/models/escalation_path_node_repeat_v2.rb +192 -0
- data/lib/incident_io/models/escalation_path_node_v2.rb +246 -0
- data/lib/incident_io/models/escalation_path_repeat_config_v2.rb +210 -0
- data/lib/incident_io/models/escalation_path_retry_config_v2.rb +210 -0
- data/lib/incident_io/models/escalation_path_round_robin_config_v2.rb +175 -0
- data/lib/incident_io/models/escalation_path_target_v2.rb +239 -0
- data/lib/incident_io/models/escalation_path_target_with_binding_payload_v2.rb +231 -0
- data/lib/incident_io/models/escalation_path_target_with_binding_v2.rb +231 -0
- data/lib/incident_io/models/escalation_path_template_node_if_else_payload_v2.rb +208 -0
- data/lib/incident_io/models/escalation_path_template_node_if_else_v2.rb +225 -0
- data/lib/incident_io/models/escalation_path_template_node_payload_v2.rb +246 -0
- data/lib/incident_io/models/escalation_path_template_node_v2.rb +246 -0
- data/lib/incident_io/models/escalation_path_template_v2.rb +337 -0
- data/lib/incident_io/models/escalation_path_templates_create_payload_v2.rb +249 -0
- data/lib/incident_io/models/escalation_path_templates_create_result_v2.rb +164 -0
- data/lib/incident_io/models/escalation_path_templates_list_result_v2.rb +192 -0
- data/lib/incident_io/models/escalation_path_templates_show_result_v2.rb +164 -0
- data/lib/incident_io/models/escalation_path_templates_update_payload_v2.rb +249 -0
- data/lib/incident_io/models/escalation_path_templates_update_result_v2.rb +164 -0
- data/lib/incident_io/models/escalation_path_v2.rb +332 -0
- data/lib/incident_io/models/escalation_priority_v2.rb +166 -0
- data/lib/incident_io/models/escalation_respond_snooze_details_payload_v2.rb +175 -0
- data/lib/incident_io/models/escalation_user_response_options_v2.rb +194 -0
- data/lib/incident_io/models/escalation_v2.rb +449 -0
- data/lib/incident_io/models/escalation_with_status_change_v2.rb +210 -0
- data/lib/incident_io/models/escalations_check_escalation_permissions_payload_v2.rb +167 -0
- data/lib/incident_io/models/escalations_check_escalation_permissions_result_v2.rb +167 -0
- data/lib/incident_io/models/escalations_create_path_payload_v2.rb +259 -0
- data/lib/incident_io/models/escalations_create_path_result_v2.rb +164 -0
- data/lib/incident_io/models/escalations_create_payload_v2.rb +234 -0
- data/lib/incident_io/models/escalations_create_result_v2.rb +164 -0
- data/lib/incident_io/models/escalations_list_paths_result_v2.rb +192 -0
- data/lib/incident_io/models/escalations_list_result_v2.rb +192 -0
- data/lib/incident_io/models/escalations_reassign_escalation_payload_v2.rb +192 -0
- data/lib/incident_io/models/escalations_reassign_escalation_result_v2.rb +164 -0
- data/lib/incident_io/models/escalations_respond_escalation_payload_v2.rb +174 -0
- data/lib/incident_io/models/escalations_show_path_result_v2.rb +164 -0
- data/lib/incident_io/models/escalations_show_result_v2.rb +164 -0
- data/lib/incident_io/models/escalations_update_path_payload_v2.rb +259 -0
- data/lib/incident_io/models/escalations_update_path_result_v2.rb +164 -0
- data/lib/incident_io/models/expression_branch_payload_v2.rb +193 -0
- data/lib/incident_io/models/expression_branch_payload_v3.rb +193 -0
- data/lib/incident_io/models/expression_branch_v2.rb +193 -0
- data/lib/incident_io/models/expression_branch_v3.rb +193 -0
- data/lib/incident_io/models/expression_branches_opts_payload_v2.rb +193 -0
- data/lib/incident_io/models/expression_branches_opts_payload_v3.rb +193 -0
- data/lib/incident_io/models/expression_branches_opts_v2.rb +193 -0
- data/lib/incident_io/models/expression_branches_opts_v3.rb +193 -0
- data/lib/incident_io/models/expression_cast_opts_payload_v2.rb +164 -0
- data/lib/incident_io/models/expression_cast_opts_payload_v3.rb +164 -0
- data/lib/incident_io/models/expression_cast_opts_v2.rb +164 -0
- data/lib/incident_io/models/expression_cast_opts_v3.rb +164 -0
- data/lib/incident_io/models/expression_concatenate_opts_payload_v2.rb +165 -0
- data/lib/incident_io/models/expression_concatenate_opts_payload_v3.rb +165 -0
- data/lib/incident_io/models/expression_concatenate_opts_v2.rb +192 -0
- data/lib/incident_io/models/expression_concatenate_opts_v3.rb +192 -0
- data/lib/incident_io/models/expression_else_branch_payload_v2.rb +164 -0
- data/lib/incident_io/models/expression_else_branch_payload_v3.rb +164 -0
- data/lib/incident_io/models/expression_else_branch_v2.rb +164 -0
- data/lib/incident_io/models/expression_else_branch_v3.rb +164 -0
- data/lib/incident_io/models/expression_filter_opts_payload_v2.rb +167 -0
- data/lib/incident_io/models/expression_filter_opts_payload_v3.rb +167 -0
- data/lib/incident_io/models/expression_filter_opts_v2.rb +167 -0
- data/lib/incident_io/models/expression_filter_opts_v3.rb +167 -0
- data/lib/incident_io/models/expression_navigate_opts_payload_v2.rb +165 -0
- data/lib/incident_io/models/expression_navigate_opts_payload_v3.rb +165 -0
- data/lib/incident_io/models/expression_navigate_opts_v2.rb +192 -0
- data/lib/incident_io/models/expression_navigate_opts_v3.rb +192 -0
- data/lib/incident_io/models/expression_operation_payload_v2.rb +219 -0
- data/lib/incident_io/models/expression_operation_payload_v3.rb +219 -0
- data/lib/incident_io/models/expression_operation_v2.rb +245 -0
- data/lib/incident_io/models/expression_operation_v3.rb +245 -0
- data/lib/incident_io/models/expression_parse_opts_payload_v2.rb +191 -0
- data/lib/incident_io/models/expression_parse_opts_payload_v3.rb +191 -0
- data/lib/incident_io/models/expression_parse_opts_v2.rb +191 -0
- data/lib/incident_io/models/expression_parse_opts_v3.rb +191 -0
- data/lib/incident_io/models/expression_payload_v2.rb +256 -0
- data/lib/incident_io/models/expression_payload_v3.rb +256 -0
- data/lib/incident_io/models/expression_v2.rb +282 -0
- data/lib/incident_io/models/expression_v3.rb +282 -0
- data/lib/incident_io/models/external_issue_reference_v1.rb +168 -0
- data/lib/incident_io/models/external_issue_reference_v2.rb +219 -0
- data/lib/incident_io/models/external_resource_v1.rb +246 -0
- data/lib/incident_io/models/follow_up_category_v3.rb +229 -0
- data/lib/incident_io/models/follow_up_priority_v2.rb +229 -0
- data/lib/incident_io/models/follow_up_v2.rb +411 -0
- data/lib/incident_io/models/follow_up_v3.rb +420 -0
- data/lib/incident_io/models/follow_ups_connect_external_issue_payload_v2.rb +192 -0
- data/lib/incident_io/models/follow_ups_connect_external_issue_payload_v3.rb +192 -0
- data/lib/incident_io/models/follow_ups_connect_external_issue_result_v2.rb +164 -0
- data/lib/incident_io/models/follow_ups_connect_external_issue_result_v3.rb +164 -0
- data/lib/incident_io/models/follow_ups_create_from_link_payload_v3.rb +192 -0
- data/lib/incident_io/models/follow_ups_create_from_link_result_v3.rb +164 -0
- data/lib/incident_io/models/follow_ups_create_payload_v2.rb +264 -0
- data/lib/incident_io/models/follow_ups_create_payload_v3.rb +264 -0
- data/lib/incident_io/models/follow_ups_create_result_v2.rb +164 -0
- data/lib/incident_io/models/follow_ups_create_result_v3.rb +164 -0
- data/lib/incident_io/models/follow_ups_list_result_v2.rb +166 -0
- data/lib/incident_io/models/follow_ups_list_result_v3.rb +192 -0
- data/lib/incident_io/models/follow_ups_show_result_v2.rb +164 -0
- data/lib/incident_io/models/follow_ups_show_result_v3.rb +164 -0
- data/lib/incident_io/models/follow_ups_update_payload_v2.rb +254 -0
- data/lib/incident_io/models/follow_ups_update_payload_v3.rb +254 -0
- data/lib/incident_io/models/follow_ups_update_result_v2.rb +164 -0
- data/lib/incident_io/models/follow_ups_update_result_v3.rb +164 -0
- data/lib/incident_io/models/grouping_key_v2.rb +165 -0
- data/lib/incident_io/models/grouping_key_v3.rb +165 -0
- data/lib/incident_io/models/grouping_settings_v3.rb +225 -0
- data/lib/incident_io/models/identity_team_v1.rb +192 -0
- data/lib/incident_io/models/identity_v1.rb +279 -0
- data/lib/incident_io/models/image_v1.rb +192 -0
- data/lib/incident_io/models/incident_activity_log_content_v2.rb +301 -0
- data/lib/incident_io/models/incident_activity_log_entries_list_result_v2.rb +175 -0
- data/lib/incident_io/models/incident_activity_log_entry_v2.rb +310 -0
- data/lib/incident_io/models/incident_alert_v2.rb +227 -0
- data/lib/incident_io/models/incident_attachment_v1.rb +218 -0
- data/lib/incident_io/models/incident_attachments_create_payload_v1.rb +191 -0
- data/lib/incident_io/models/incident_attachments_create_payload_v1_resource.rb +205 -0
- data/lib/incident_io/models/incident_attachments_create_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_attachments_list_result_v1.rb +166 -0
- data/lib/incident_io/models/incident_duration_metric_v2.rb +192 -0
- data/lib/incident_io/models/incident_duration_metric_with_value_v2.rb +201 -0
- data/lib/incident_io/models/incident_edit_payload_v2.rb +234 -0
- data/lib/incident_io/models/incident_membership_v1.rb +272 -0
- data/lib/incident_io/models/incident_memberships_create_payload_v1.rb +191 -0
- data/lib/incident_io/models/incident_memberships_create_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_memberships_revoke_payload_v1.rb +191 -0
- data/lib/incident_io/models/incident_participant_v2.rb +191 -0
- data/lib/incident_io/models/incident_participant_workload_v2.rb +210 -0
- data/lib/incident_io/models/incident_participant_workloads_list_result_v2.rb +192 -0
- data/lib/incident_io/models/incident_participants_list_result_v2.rb +164 -0
- data/lib/incident_io/models/incident_participants_v2.rb +196 -0
- data/lib/incident_io/models/incident_relationship_details_v1.rb +219 -0
- data/lib/incident_io/models/incident_relationship_v1.rb +191 -0
- data/lib/incident_io/models/incident_relationships_list_result_v1.rb +175 -0
- data/lib/incident_io/models/incident_role_assignment_payload_v1.rb +191 -0
- data/lib/incident_io/models/incident_role_assignment_payload_v2.rb +174 -0
- data/lib/incident_io/models/incident_role_assignment_v1.rb +173 -0
- data/lib/incident_io/models/incident_role_assignment_v2.rb +173 -0
- data/lib/incident_io/models/incident_role_v1.rb +382 -0
- data/lib/incident_io/models/incident_role_v2.rb +372 -0
- data/lib/incident_io/models/incident_roles_create_payload_v1.rb +291 -0
- data/lib/incident_io/models/incident_roles_create_payload_v2.rb +264 -0
- data/lib/incident_io/models/incident_roles_create_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_roles_create_result_v2.rb +164 -0
- data/lib/incident_io/models/incident_roles_list_result_v1.rb +166 -0
- data/lib/incident_io/models/incident_roles_list_result_v2.rb +166 -0
- data/lib/incident_io/models/incident_roles_show_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_roles_show_result_v2.rb +164 -0
- data/lib/incident_io/models/incident_roles_update_payload_v1.rb +274 -0
- data/lib/incident_io/models/incident_roles_update_payload_v2.rb +264 -0
- data/lib/incident_io/models/incident_roles_update_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_roles_update_result_v2.rb +164 -0
- data/lib/incident_io/models/incident_slim_v2.rb +311 -0
- data/lib/incident_io/models/incident_status_v1.rb +325 -0
- data/lib/incident_io/models/incident_status_v2.rb +325 -0
- data/lib/incident_io/models/incident_statuses_create_payload_v1.rb +229 -0
- data/lib/incident_io/models/incident_statuses_create_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_statuses_list_result_v1.rb +166 -0
- data/lib/incident_io/models/incident_statuses_show_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_statuses_update_payload_v1.rb +202 -0
- data/lib/incident_io/models/incident_statuses_update_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_template_auto_generated_binding_payload_v1.rb +157 -0
- data/lib/incident_io/models/incident_template_auto_generated_binding_v1.rb +174 -0
- data/lib/incident_io/models/incident_template_binding_payload_v1.rb +147 -0
- data/lib/incident_io/models/incident_template_binding_v1.rb +147 -0
- data/lib/incident_io/models/incident_template_config_payload_v1.rb +231 -0
- data/lib/incident_io/models/incident_template_config_v1.rb +231 -0
- data/lib/incident_io/models/incident_template_custom_field_binding_payload_v1.rb +218 -0
- data/lib/incident_io/models/incident_template_custom_field_binding_v1.rb +218 -0
- data/lib/incident_io/models/incident_template_severity_binding_payload_v1.rb +174 -0
- data/lib/incident_io/models/incident_template_severity_binding_v1.rb +174 -0
- data/lib/incident_io/models/incident_template_v1.rb +285 -0
- data/lib/incident_io/models/incident_template_validate_warning_v1.rb +193 -0
- data/lib/incident_io/models/incident_templates_create_payload_v1.rb +203 -0
- data/lib/incident_io/models/incident_templates_create_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_templates_list_result_v1.rb +175 -0
- data/lib/incident_io/models/incident_templates_show_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_templates_update_payload_v1.rb +203 -0
- data/lib/incident_io/models/incident_templates_update_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_templates_validate_payload_v1.rb +203 -0
- data/lib/incident_io/models/incident_templates_validate_result_v1.rb +167 -0
- data/lib/incident_io/models/incident_timeline_item_v2.rb +347 -0
- data/lib/incident_io/models/incident_timeline_items_create_payload_v2.rb +274 -0
- data/lib/incident_io/models/incident_timeline_items_create_result_v2.rb +164 -0
- data/lib/incident_io/models/incident_timeline_items_list_result_v2.rb +175 -0
- data/lib/incident_io/models/incident_timeline_items_update_payload_v2.rb +187 -0
- data/lib/incident_io/models/incident_timeline_items_update_result_v2.rb +164 -0
- data/lib/incident_io/models/incident_timestamp_v2.rb +219 -0
- data/lib/incident_io/models/incident_timestamp_value_payload_v2.rb +175 -0
- data/lib/incident_io/models/incident_timestamp_value_v1.rb +175 -0
- data/lib/incident_io/models/incident_timestamp_value_v2.rb +148 -0
- data/lib/incident_io/models/incident_timestamp_with_value_v2.rb +173 -0
- data/lib/incident_io/models/incident_timestamps_list_result_v2.rb +166 -0
- data/lib/incident_io/models/incident_timestamps_show_result_v2.rb +164 -0
- data/lib/incident_io/models/incident_type_v1.rb +366 -0
- data/lib/incident_io/models/incident_type_v2.rb +354 -0
- data/lib/incident_io/models/incident_types_list_result_v1.rb +166 -0
- data/lib/incident_io/models/incident_types_show_result_v1.rb +164 -0
- data/lib/incident_io/models/incident_update_v2.rb +300 -0
- data/lib/incident_io/models/incident_updates_create_payload_v2.rb +222 -0
- data/lib/incident_io/models/incident_updates_create_result_v2.rb +164 -0
- data/lib/incident_io/models/incident_updates_list_result_v2.rb +175 -0
- data/lib/incident_io/models/incident_v1.rb +572 -0
- data/lib/incident_io/models/incident_v2.rb +730 -0
- data/lib/incident_io/models/incident_with_status_change_v2.rb +226 -0
- data/lib/incident_io/models/incidents_create_payload_v1.rb +306 -0
- data/lib/incident_io/models/incidents_create_payload_v2.rb +317 -0
- data/lib/incident_io/models/incidents_create_result_v1.rb +164 -0
- data/lib/incident_io/models/incidents_create_result_v2.rb +164 -0
- data/lib/incident_io/models/incidents_edit_payload_v2.rb +191 -0
- data/lib/incident_io/models/incidents_edit_result_v2.rb +164 -0
- data/lib/incident_io/models/incidents_import_postmortem_document_payload_v2.rb +192 -0
- data/lib/incident_io/models/incidents_import_postmortem_document_result_v2.rb +164 -0
- data/lib/incident_io/models/incidents_list_result_v1.rb +175 -0
- data/lib/incident_io/models/incidents_list_result_v2.rb +175 -0
- data/lib/incident_io/models/incidents_show_result_v1.rb +164 -0
- data/lib/incident_io/models/incidents_show_result_v2.rb +164 -0
- data/lib/incident_io/models/ip_allowlist_item_v1.rb +175 -0
- data/lib/incident_io/models/ip_allowlist_v1.rb +231 -0
- data/lib/incident_io/models/ip_allowlists_show_ip_allowlist_result_v1.rb +164 -0
- data/lib/incident_io/models/ip_allowlists_update_ip_allowlist_payload_v1.rb +221 -0
- data/lib/incident_io/models/ip_allowlists_update_ip_allowlist_result_v1.rb +164 -0
- data/lib/incident_io/models/ip_range_v1.rb +193 -0
- data/lib/incident_io/models/linked_schedule_v2.rb +221 -0
- data/lib/incident_io/models/maintenance_window_escalation_target_payload_v1.rb +156 -0
- data/lib/incident_io/models/maintenance_window_escalation_target_v1.rb +156 -0
- data/lib/incident_io/models/maintenance_window_notify_channel_payload_v1.rb +203 -0
- data/lib/incident_io/models/maintenance_window_notify_channel_v1.rb +213 -0
- data/lib/incident_io/models/maintenance_window_v1.rb +522 -0
- data/lib/incident_io/models/maintenance_windows_create_payload_v1.rb +397 -0
- data/lib/incident_io/models/maintenance_windows_create_result_v1.rb +164 -0
- data/lib/incident_io/models/maintenance_windows_list_result_v1.rb +192 -0
- data/lib/incident_io/models/maintenance_windows_show_result_v1.rb +164 -0
- data/lib/incident_io/models/maintenance_windows_update_payload_v1.rb +397 -0
- data/lib/incident_io/models/maintenance_windows_update_result_v1.rb +164 -0
- data/lib/incident_io/models/management_meta_v2.rb +204 -0
- data/lib/incident_io/models/new_slack_user_group_payload_v2.rb +229 -0
- data/lib/incident_io/models/on_call_notification_method_phone_details_public_v2.rb +192 -0
- data/lib/incident_io/models/on_call_notification_method_public_v2.rb +255 -0
- data/lib/incident_io/models/on_call_notification_rule_app_details_public_v2.rb +165 -0
- data/lib/incident_io/models/on_call_notification_rule_method_target_public_v2.rb +183 -0
- data/lib/incident_io/models/on_call_notification_rule_method_target_specific_public_v2.rb +165 -0
- data/lib/incident_io/models/on_call_notification_rule_phone_details_public_v2.rb +165 -0
- data/lib/incident_io/models/on_call_notification_rule_public_v2.rb +301 -0
- data/lib/incident_io/models/pagination_meta_result_v1.rb +184 -0
- data/lib/incident_io/models/pagination_meta_result_v2.rb +184 -0
- data/lib/incident_io/models/pagination_meta_result_v3.rb +184 -0
- data/lib/incident_io/models/pagination_meta_result_with_total_v1.rb +194 -0
- data/lib/incident_io/models/pagination_meta_result_with_total_v2.rb +194 -0
- data/lib/incident_io/models/pagination_meta_result_with_total_v3.rb +194 -0
- data/lib/incident_io/models/partial_entry_payload_v3.rb +237 -0
- data/lib/incident_io/models/pay_config_one_off_rule_payload_v2.rb +257 -0
- data/lib/incident_io/models/pay_config_one_off_rule_v2.rb +274 -0
- data/lib/incident_io/models/pay_config_v2.rb +421 -0
- data/lib/incident_io/models/pay_config_weekly_rule_payload_v2.rb +259 -0
- data/lib/incident_io/models/pay_config_weekly_rule_v2.rb +276 -0
- data/lib/incident_io/models/pay_configs_create_one_off_rule_payload_v2.rb +246 -0
- data/lib/incident_io/models/pay_configs_create_one_off_rule_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_configs_create_payload_v2.rb +297 -0
- data/lib/incident_io/models/pay_configs_create_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_configs_create_weekly_rule_payload_v2.rb +248 -0
- data/lib/incident_io/models/pay_configs_create_weekly_rule_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_configs_list_one_off_rules_result_v2.rb +166 -0
- data/lib/incident_io/models/pay_configs_list_result_v2.rb +192 -0
- data/lib/incident_io/models/pay_configs_list_weekly_rules_result_v2.rb +166 -0
- data/lib/incident_io/models/pay_configs_show_one_off_rule_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_configs_show_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_configs_show_weekly_rule_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_configs_update_one_off_rule_payload_v2.rb +246 -0
- data/lib/incident_io/models/pay_configs_update_one_off_rule_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_configs_update_payload_v2.rb +273 -0
- data/lib/incident_io/models/pay_configs_update_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_configs_update_weekly_rule_payload_v2.rb +248 -0
- data/lib/incident_io/models/pay_configs_update_weekly_rule_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_report_rotation_filter_v2.rb +204 -0
- data/lib/incident_io/models/pay_report_v2.rb +472 -0
- data/lib/incident_io/models/pay_reports_create_payload_v2.rb +318 -0
- data/lib/incident_io/models/pay_reports_create_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_reports_list_result_v2.rb +192 -0
- data/lib/incident_io/models/pay_reports_publish_payload_v2.rb +194 -0
- data/lib/incident_io/models/pay_reports_publish_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_reports_show_result_v2.rb +164 -0
- data/lib/incident_io/models/pay_reports_unpublish_payload_v2.rb +174 -0
- data/lib/incident_io/models/pay_reports_unpublish_result_v2.rb +164 -0
- data/lib/incident_io/models/policies_create_payload_v2.rb +324 -0
- data/lib/incident_io/models/policies_create_result_v2.rb +164 -0
- data/lib/incident_io/models/policies_list_result_v2.rb +192 -0
- data/lib/incident_io/models/policies_show_result_v2.rb +164 -0
- data/lib/incident_io/models/policies_update_payload_v2.rb +324 -0
- data/lib/incident_io/models/policies_update_result_v2.rb +164 -0
- data/lib/incident_io/models/policy_assignment_rules_payload_v2.rb +226 -0
- data/lib/incident_io/models/policy_assignment_rules_v2.rb +226 -0
- data/lib/incident_io/models/policy_debrief_payload_v2.rb +187 -0
- data/lib/incident_io/models/policy_debrief_v2.rb +187 -0
- data/lib/incident_io/models/policy_due_date_config_payload_v2.rb +238 -0
- data/lib/incident_io/models/policy_due_date_config_v2.rb +238 -0
- data/lib/incident_io/models/policy_finding_debrief_v2.rb +166 -0
- data/lib/incident_io/models/policy_finding_dismissal_v2.rb +217 -0
- data/lib/incident_io/models/policy_finding_follow_up_v2.rb +193 -0
- data/lib/incident_io/models/policy_finding_on_call_readiness_v2.rb +224 -0
- data/lib/incident_io/models/policy_finding_post_mortem_v2.rb +166 -0
- data/lib/incident_io/models/policy_finding_readiness_rule_v2.rb +203 -0
- data/lib/incident_io/models/policy_finding_schedule_impacted_user_v2.rb +217 -0
- data/lib/incident_io/models/policy_finding_schedule_v2.rb +262 -0
- data/lib/incident_io/models/policy_finding_v2.rb +437 -0
- data/lib/incident_io/models/policy_finding_vacation_conflict_v2.rb +267 -0
- data/lib/incident_io/models/policy_findings_dismiss_payload_v2.rb +174 -0
- data/lib/incident_io/models/policy_findings_dismiss_result_v2.rb +164 -0
- data/lib/incident_io/models/policy_findings_list_result_v2.rb +192 -0
- data/lib/incident_io/models/policy_findings_restore_result_v2.rb +164 -0
- data/lib/incident_io/models/policy_findings_show_result_v2.rb +164 -0
- data/lib/incident_io/models/policy_follow_up_payload_v2.rb +187 -0
- data/lib/incident_io/models/policy_follow_up_v2.rb +187 -0
- data/lib/incident_io/models/policy_on_call_readiness_v2.rb +171 -0
- data/lib/incident_io/models/policy_post_mortem_payload_v2.rb +187 -0
- data/lib/incident_io/models/policy_post_mortem_v2.rb +187 -0
- data/lib/incident_io/models/policy_readiness_rule_v2.rb +176 -0
- data/lib/incident_io/models/policy_reminder_cadence_v2.rb +166 -0
- data/lib/incident_io/models/policy_schedule_v2.rb +176 -0
- data/lib/incident_io/models/policy_v2.rb +403 -0
- data/lib/incident_io/models/postmortem_document_v1.rb +412 -0
- data/lib/incident_io/models/postmortem_document_with_status_change_v1.rb +218 -0
- data/lib/incident_io/models/postmortem_documents_attach_payload_v1.rb +202 -0
- data/lib/incident_io/models/postmortem_documents_attach_result_v1.rb +164 -0
- data/lib/incident_io/models/postmortem_documents_list_result_v1.rb +192 -0
- data/lib/incident_io/models/postmortem_documents_show_content_result_v1.rb +165 -0
- data/lib/incident_io/models/postmortem_documents_show_result_v1.rb +164 -0
- data/lib/incident_io/models/postmortem_documents_update_status_payload_v1.rb +165 -0
- data/lib/incident_io/models/postmortem_documents_update_status_result_v1.rb +164 -0
- data/lib/incident_io/models/rbac_role_v2.rb +229 -0
- data/lib/incident_io/models/retrospective_incident_options_v2.rb +168 -0
- data/lib/incident_io/models/returns_meta_v2.rb +192 -0
- data/lib/incident_io/models/returns_meta_v3.rb +192 -0
- data/lib/incident_io/models/schedule_config_create_payload_v2.rb +149 -0
- data/lib/incident_io/models/schedule_config_update_payload_v2.rb +149 -0
- data/lib/incident_io/models/schedule_config_v2.rb +167 -0
- data/lib/incident_io/models/schedule_create_payload_v2.rb +200 -0
- data/lib/incident_io/models/schedule_entries_list_payload_v2.rb +226 -0
- data/lib/incident_io/models/schedule_entry_v2.rb +240 -0
- data/lib/incident_io/models/schedule_holidays_public_config_payload_v2.rb +167 -0
- data/lib/incident_io/models/schedule_holidays_public_config_v2.rb +167 -0
- data/lib/incident_io/models/schedule_layer_create_payload_v2.rb +175 -0
- data/lib/incident_io/models/schedule_layer_update_payload_v2.rb +158 -0
- data/lib/incident_io/models/schedule_layer_v2.rb +158 -0
- data/lib/incident_io/models/schedule_override_v2.rb +361 -0
- data/lib/incident_io/models/schedule_replica_create_payload_v2.rb +286 -0
- data/lib/incident_io/models/schedule_replica_source_v2.rb +192 -0
- data/lib/incident_io/models/schedule_replica_user_status_v2.rb +175 -0
- data/lib/incident_io/models/schedule_replica_v2.rb +443 -0
- data/lib/incident_io/models/schedule_rotation_create_payload_v2.rb +263 -0
- data/lib/incident_io/models/schedule_rotation_handover_v2.rb +191 -0
- data/lib/incident_io/models/schedule_rotation_update_payload_v2.rb +246 -0
- data/lib/incident_io/models/schedule_rotation_v2.rb +367 -0
- data/lib/incident_io/models/schedule_rotation_working_interval_create_payload_v2.rb +219 -0
- data/lib/incident_io/models/schedule_rotation_working_interval_v2.rb +219 -0
- data/lib/incident_io/models/schedule_shift_change_v2.rb +222 -0
- data/lib/incident_io/models/schedule_slim_v2.rb +283 -0
- data/lib/incident_io/models/schedule_sync_rule_create_payload_v2.rb +226 -0
- data/lib/incident_io/models/schedule_sync_rule_v2.rb +364 -0
- data/lib/incident_io/models/schedule_sync_target_create_payload_v2.rb +196 -0
- data/lib/incident_io/models/schedule_sync_target_resource_v2.rb +328 -0
- data/lib/incident_io/models/schedule_sync_targets_create_payload_v2.rb +164 -0
- data/lib/incident_io/models/schedule_sync_targets_create_result_v2.rb +164 -0
- data/lib/incident_io/models/schedule_sync_targets_list_result_v2.rb +175 -0
- data/lib/incident_io/models/schedule_sync_targets_show_result_v2.rb +164 -0
- data/lib/incident_io/models/schedule_sync_targets_update_payload_v2.rb +177 -0
- data/lib/incident_io/models/schedule_sync_targets_update_result_v2.rb +164 -0
- data/lib/incident_io/models/schedule_update_payload_v2.rb +200 -0
- data/lib/incident_io/models/schedule_v2.rb +398 -0
- data/lib/incident_io/models/schedules_create_override_payload_v2.rb +299 -0
- data/lib/incident_io/models/schedules_create_override_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_create_payload_v2.rb +164 -0
- data/lib/incident_io/models/schedules_create_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_create_schedule_replica_payload_v2.rb +164 -0
- data/lib/incident_io/models/schedules_create_schedule_replica_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_create_schedule_sync_rule_payload_v2.rb +164 -0
- data/lib/incident_io/models/schedules_create_schedule_sync_rule_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_list_overrides_result_v2.rb +175 -0
- data/lib/incident_io/models/schedules_list_result_v2.rb +175 -0
- data/lib/incident_io/models/schedules_list_schedule_entries_result_v2.rb +173 -0
- data/lib/incident_io/models/schedules_list_schedule_replicas_result_v2.rb +166 -0
- data/lib/incident_io/models/schedules_list_schedule_sync_rules_result_v2.rb +175 -0
- data/lib/incident_io/models/schedules_preview_schedule_entries_payload_v2.rb +184 -0
- data/lib/incident_io/models/schedules_preview_schedule_entries_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_show_override_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_show_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_show_schedule_replica_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_show_schedule_sync_rule_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_update_override_payload_v2.rb +272 -0
- data/lib/incident_io/models/schedules_update_override_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_update_payload_v2.rb +164 -0
- data/lib/incident_io/models/schedules_update_result_v2.rb +164 -0
- data/lib/incident_io/models/schedules_update_schedule_sync_rule_payload_v2.rb +189 -0
- data/lib/incident_io/models/schedules_update_schedule_sync_rule_result_v2.rb +164 -0
- data/lib/incident_io/models/secret_v2.rb +321 -0
- data/lib/incident_io/models/secret_version_v2.rb +211 -0
- data/lib/incident_io/models/secrets_create_payload_v2.rb +214 -0
- data/lib/incident_io/models/secrets_create_result_v2.rb +164 -0
- data/lib/incident_io/models/secrets_list_result_v2.rb +175 -0
- data/lib/incident_io/models/secrets_rotate_payload_v2.rb +165 -0
- data/lib/incident_io/models/secrets_rotate_result_v2.rb +164 -0
- data/lib/incident_io/models/secrets_show_result_v2.rb +193 -0
- data/lib/incident_io/models/secrets_update_payload_v2.rb +187 -0
- data/lib/incident_io/models/secrets_update_result_v2.rb +164 -0
- data/lib/incident_io/models/severities_create_payload_v1.rb +211 -0
- data/lib/incident_io/models/severities_create_result_v1.rb +164 -0
- data/lib/incident_io/models/severities_list_result_v1.rb +166 -0
- data/lib/incident_io/models/severities_show_result_v1.rb +164 -0
- data/lib/incident_io/models/severities_update_payload_v1.rb +211 -0
- data/lib/incident_io/models/severities_update_result_v1.rb +164 -0
- data/lib/incident_io/models/severity_v1.rb +309 -0
- data/lib/incident_io/models/severity_v2.rb +309 -0
- data/lib/incident_io/models/status_page_component_availability_v2.rb +284 -0
- data/lib/incident_io/models/status_page_incident_affected_component_v2.rb +192 -0
- data/lib/incident_io/models/status_page_incident_component_impact_v2.rb +229 -0
- data/lib/incident_io/models/status_page_incident_update_v2.rb +302 -0
- data/lib/incident_io/models/status_page_incident_v2.rb +331 -0
- data/lib/incident_io/models/status_page_incident_with_update_v2.rb +190 -0
- data/lib/incident_io/models/status_page_linked_response_incident_v1.rb +192 -0
- data/lib/incident_io/models/status_page_maintenance_affected_component_v2.rb +192 -0
- data/lib/incident_io/models/status_page_maintenance_component_maintenance_period_v2.rb +202 -0
- data/lib/incident_io/models/status_page_maintenance_update_v2.rb +302 -0
- data/lib/incident_io/models/status_page_maintenance_v2.rb +358 -0
- data/lib/incident_io/models/status_page_retrospective_incident_update_v2.rb +241 -0
- data/lib/incident_io/models/status_page_structure_component_v2.rb +192 -0
- data/lib/incident_io/models/status_page_structure_group_v2.rb +221 -0
- data/lib/incident_io/models/status_page_structure_item_v2.rb +165 -0
- data/lib/incident_io/models/status_page_structure_sub_page_item_v2.rb +156 -0
- data/lib/incident_io/models/status_page_structure_sub_page_v2.rb +221 -0
- data/lib/incident_io/models/status_page_structure_v2.rb +167 -0
- data/lib/incident_io/models/status_page_v2.rb +212 -0
- data/lib/incident_io/models/status_pages_create_status_page_incident_payload_v2.rb +330 -0
- data/lib/incident_io/models/status_pages_create_status_page_incident_result_v2.rb +147 -0
- data/lib/incident_io/models/status_pages_create_status_page_incident_update_payload_v2.rb +250 -0
- data/lib/incident_io/models/status_pages_create_status_page_incident_update_result_v2.rb +147 -0
- data/lib/incident_io/models/status_pages_create_status_page_maintenance_payload_v2.rb +411 -0
- data/lib/incident_io/models/status_pages_create_status_page_maintenance_result_v2.rb +147 -0
- data/lib/incident_io/models/status_pages_create_status_page_maintenance_update_payload_v2.rb +250 -0
- data/lib/incident_io/models/status_pages_create_status_page_maintenance_update_result_v2.rb +147 -0
- data/lib/incident_io/models/status_pages_create_status_page_retrospective_incident_payload_v2.rb +257 -0
- data/lib/incident_io/models/status_pages_create_status_page_retrospective_incident_result_v2.rb +147 -0
- data/lib/incident_io/models/status_pages_list_response_incidents_result_v1.rb +166 -0
- data/lib/incident_io/models/status_pages_list_status_page_incidents_result_v2.rb +192 -0
- data/lib/incident_io/models/status_pages_list_status_page_maintenances_result_v2.rb +192 -0
- data/lib/incident_io/models/status_pages_list_status_pages_result_v2.rb +192 -0
- data/lib/incident_io/models/status_pages_show_status_page_component_availability_result_v2.rb +164 -0
- data/lib/incident_io/models/status_pages_show_status_page_incident_result_v2.rb +147 -0
- data/lib/incident_io/models/status_pages_show_status_page_maintenance_result_v2.rb +147 -0
- data/lib/incident_io/models/status_pages_show_status_page_structure_result_v2.rb +164 -0
- data/lib/incident_io/models/status_pages_update_status_page_incident_payload_v2.rb +174 -0
- data/lib/incident_io/models/status_pages_update_status_page_incident_result_v2.rb +147 -0
- data/lib/incident_io/models/status_pages_update_status_page_maintenance_payload_v2.rb +228 -0
- data/lib/incident_io/models/status_pages_update_status_page_maintenance_result_v2.rb +147 -0
- data/lib/incident_io/models/step_config_payload_v2.rb +231 -0
- data/lib/incident_io/models/step_config_slim_v2.rb +192 -0
- data/lib/incident_io/models/step_config_v2.rb +258 -0
- data/lib/incident_io/models/step_progress_slim_v2.rb +251 -0
- data/lib/incident_io/models/step_progress_v2.rb +251 -0
- data/lib/incident_io/models/team_slim_v2.rb +192 -0
- data/lib/incident_io/models/team_v3.rb +247 -0
- data/lib/incident_io/models/teams_list_result_v3.rb +192 -0
- data/lib/incident_io/models/teams_show_result_v3.rb +164 -0
- data/lib/incident_io/models/telemetry_data_source_v2.rb +338 -0
- data/lib/incident_io/models/telemetry_datadog_update_config_v2.rb +159 -0
- data/lib/incident_io/models/telemetry_grafana_update_config_v2.rb +159 -0
- data/lib/incident_io/models/telemetry_update_data_source_payload_v2.rb +166 -0
- data/lib/incident_io/models/telemetry_update_data_source_result_v2.rb +164 -0
- data/lib/incident_io/models/trigger_slim_v2.rb +192 -0
- data/lib/incident_io/models/user_reference_payload_v1.rb +168 -0
- data/lib/incident_io/models/user_reference_payload_v2.rb +168 -0
- data/lib/incident_io/models/user_seats_v2.rb +192 -0
- data/lib/incident_io/models/user_v1.rb +239 -0
- data/lib/incident_io/models/user_v2.rb +239 -0
- data/lib/incident_io/models/user_v3.rb +212 -0
- data/lib/incident_io/models/user_with_roles_v2.rb +346 -0
- data/lib/incident_io/models/users_list_notification_methods_result_v2.rb +166 -0
- data/lib/incident_io/models/users_list_notification_rules_result_v2.rb +166 -0
- data/lib/incident_io/models/users_list_result_v2.rb +192 -0
- data/lib/incident_io/models/users_show_paging_provider_result_v2.rb +148 -0
- data/lib/incident_io/models/users_show_result_v2.rb +164 -0
- data/lib/incident_io/models/users_update_paging_provider_payload_v2.rb +165 -0
- data/lib/incident_io/models/utilities_identity_result_v1.rb +164 -0
- data/lib/incident_io/models/utilities_ip_ranges_result_v1.rb +167 -0
- data/lib/incident_io/models/webhook_delivery_request_v2.rb +204 -0
- data/lib/incident_io/models/webhook_delivery_response_v2.rb +204 -0
- data/lib/incident_io/models/webhook_delivery_slim_v2.rb +239 -0
- data/lib/incident_io/models/webhook_delivery_v2.rb +274 -0
- data/lib/incident_io/models/webhook_incident_user_v2.rb +202 -0
- data/lib/incident_io/models/webhook_incident_v2.rb +752 -0
- data/lib/incident_io/models/webhook_private_resource_v2.rb +165 -0
- data/lib/incident_io/models/webhooks_private_alert_created_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_alert_resolved_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_escalation_created_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_escalation_status_updated_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_action_created_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_action_updated_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_follow_up_created_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_follow_up_created_v2_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_follow_up_updated_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_follow_up_updated_v2_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_incident_created_v2_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_incident_updated_v2_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_membership_granted_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_membership_revoked_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_private_incident_postmortem_document_status_updated_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_alert_created_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_alert_resolved_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_escalation_created_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_escalation_status_updated_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_incident_action_created_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_incident_action_updated_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_incident_follow_up_created_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_incident_follow_up_created_v2_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_incident_follow_up_updated_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_incident_follow_up_updated_v2_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_incident_incident_created_v2_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_incident_incident_status_updated_v2_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_incident_incident_updated_v2_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_public_incident_postmortem_document_status_updated_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_schedule_created_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_schedule_deleted_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_schedule_shift_change_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_schedule_updated_v1_response_body.rb +191 -0
- data/lib/incident_io/models/webhooks_status_page_incident_update_shared_v1_response_body.rb +191 -0
- data/lib/incident_io/models/weekday_interval_config_v2.rb +247 -0
- data/lib/incident_io/models/weekday_interval_v2.rb +219 -0
- data/lib/incident_io/models/workflow_actor_v2.rb +192 -0
- data/lib/incident_io/models/workflow_delay_v2.rb +201 -0
- data/lib/incident_io/models/workflow_form_field_payload_v2.rb +259 -0
- data/lib/incident_io/models/workflow_form_field_v2.rb +310 -0
- data/lib/incident_io/models/workflow_run_slim_v2.rb +416 -0
- data/lib/incident_io/models/workflow_run_v2.rb +416 -0
- data/lib/incident_io/models/workflow_runs_list_result_v2.rb +175 -0
- data/lib/incident_io/models/workflow_runs_show_result_v2.rb +164 -0
- data/lib/incident_io/models/workflow_slim_v2.rb +603 -0
- data/lib/incident_io/models/workflow_v2.rb +615 -0
- data/lib/incident_io/models/workflows_create_workflow_payload_v2.rb +496 -0
- data/lib/incident_io/models/workflows_create_workflow_result_v2.rb +190 -0
- data/lib/incident_io/models/workflows_list_workflows_result_v2.rb +166 -0
- data/lib/incident_io/models/workflows_show_workflow_result_v2.rb +190 -0
- data/lib/incident_io/models/workflows_update_workflow_payload_v2.rb +479 -0
- data/lib/incident_io/models/workflows_update_workflow_result_v2.rb +190 -0
- data/lib/incident_io/models/workload_metadata_v2.rb +148 -0
- data/lib/incident_io/models/workload_minutes_v2.rb +246 -0
- data/lib/incident_io/version.rb +8 -0
- data/lib/incident_io.rb +1271 -0
- data/lib/incident_io_api.rb +6 -0
- 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'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'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'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'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.
|
|
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'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 `pagination_meta.after` — pass it back here unchanged to fetch the next page (leave `entry_window_end` 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: `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.
|
|
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 `pagination_meta.after` — pass it back here unchanged to fetch the next page (leave `entry_window_end` 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'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'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 `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`.
|
|
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'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.
|
|
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'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.
|
|
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'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.
|
|
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'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.
|
|
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
|