incident_io_api 2.30.0 → 2.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. checksums.yaml +4 -4
  2. data/lib/incident_io/api/alert_attachments_v2_api.rb +230 -0
  3. data/lib/incident_io/models/alert_attachment_v2.rb +267 -0
  4. data/lib/incident_io/models/alert_attachments_create_payload_v2.rb +195 -0
  5. data/lib/incident_io/models/alert_attachments_create_result_v2.rb +164 -0
  6. data/lib/incident_io/models/alert_attachments_list_result_v2.rb +175 -0
  7. data/lib/incident_io/models/audit_log_actor_metadata_v2.rb +14 -4
  8. data/lib/incident_io/models/audit_log_reliability_review_repository_updated_metadata_v2.rb +165 -0
  9. data/lib/incident_io/models/audit_log_reliability_review_settings_updated_metadata_v2.rb +245 -0
  10. data/lib/incident_io/models/audit_log_reliability_review_spend_limit_updated_metadata_v2.rb +158 -0
  11. data/lib/incident_io/models/audit_log_target_v2.rb +1 -1
  12. data/lib/incident_io/models/audit_logs_activity_log_scrubbed_v2.rb +300 -0
  13. data/lib/incident_io/models/audit_logs_alert_chat_message_template_created_v2.rb +300 -0
  14. data/lib/incident_io/models/audit_logs_alert_chat_message_template_deleted_v2.rb +300 -0
  15. data/lib/incident_io/models/audit_logs_alert_chat_message_template_updated_v2.rb +300 -0
  16. data/lib/incident_io/models/audit_logs_alert_priority_created_v2.rb +300 -0
  17. data/lib/incident_io/models/audit_logs_alert_priority_deleted_v2.rb +300 -0
  18. data/lib/incident_io/models/audit_logs_alert_priority_set_as_default_v2.rb +300 -0
  19. data/lib/incident_io/models/audit_logs_alert_priority_updated_v2.rb +300 -0
  20. data/lib/incident_io/models/audit_logs_alert_route_created_v2.rb +300 -0
  21. data/lib/incident_io/models/audit_logs_alert_route_deleted_v2.rb +300 -0
  22. data/lib/incident_io/models/audit_logs_alert_route_updated_v2.rb +300 -0
  23. data/lib/incident_io/models/audit_logs_alert_schema_updated_v2.rb +300 -0
  24. data/lib/incident_io/models/audit_logs_alert_scrubbed_v2.rb +300 -0
  25. data/lib/incident_io/models/audit_logs_alert_source_config_created_v2.rb +300 -0
  26. data/lib/incident_io/models/audit_logs_alert_source_config_deleted_v2.rb +300 -0
  27. data/lib/incident_io/models/audit_logs_alert_source_config_updated_v2.rb +300 -0
  28. data/lib/incident_io/models/audit_logs_announcement_post_template_created_v3.rb +326 -0
  29. data/lib/incident_io/models/audit_logs_announcement_post_template_deleted_v2.rb +300 -0
  30. data/lib/incident_io/models/audit_logs_announcement_post_template_set_as_default_v2.rb +300 -0
  31. data/lib/incident_io/models/audit_logs_announcement_post_template_updated_v3.rb +326 -0
  32. data/lib/incident_io/models/audit_logs_announcement_rule_created_v3.rb +326 -0
  33. data/lib/incident_io/models/audit_logs_announcement_rule_deleted_v2.rb +300 -0
  34. data/lib/incident_io/models/audit_logs_announcement_rule_updated_v3.rb +326 -0
  35. data/lib/incident_io/models/audit_logs_api_key_created_v2.rb +300 -0
  36. data/lib/incident_io/models/audit_logs_api_key_deleted_v2.rb +300 -0
  37. data/lib/incident_io/models/audit_logs_api_key_rotated_v2.rb +300 -0
  38. data/lib/incident_io/models/audit_logs_api_key_updated_v2.rb +300 -0
  39. data/lib/incident_io/models/audit_logs_catalog_entry_attribute_updated_v3.rb +326 -0
  40. data/lib/incident_io/models/audit_logs_catalog_type_created_v2.rb +300 -0
  41. data/lib/incident_io/models/audit_logs_catalog_type_deleted_v2.rb +300 -0
  42. data/lib/incident_io/models/audit_logs_catalog_type_updated_v2.rb +300 -0
  43. data/lib/incident_io/models/audit_logs_connector_config_created_v2.rb +300 -0
  44. data/lib/incident_io/models/audit_logs_connector_config_token_generated_v2.rb +300 -0
  45. data/lib/incident_io/models/audit_logs_connector_config_updated_v2.rb +300 -0
  46. data/lib/incident_io/models/audit_logs_custom_field_created_v2.rb +300 -0
  47. data/lib/incident_io/models/audit_logs_custom_field_deleted_v2.rb +300 -0
  48. data/lib/incident_io/models/audit_logs_custom_field_updated_v2.rb +300 -0
  49. data/lib/incident_io/models/audit_logs_debrief_invite_rule_created_v2.rb +300 -0
  50. data/lib/incident_io/models/audit_logs_debrief_invite_rule_deleted_v2.rb +300 -0
  51. data/lib/incident_io/models/audit_logs_debrief_invite_rule_updated_v2.rb +300 -0
  52. data/lib/incident_io/models/audit_logs_email_otp_login_setting_updated_v2.rb +326 -0
  53. data/lib/incident_io/models/audit_logs_escalation_path_created_v2.rb +300 -0
  54. data/lib/incident_io/models/audit_logs_escalation_path_deleted_v2.rb +300 -0
  55. data/lib/incident_io/models/audit_logs_escalation_path_template_created_v2.rb +300 -0
  56. data/lib/incident_io/models/audit_logs_escalation_path_template_deleted_v2.rb +300 -0
  57. data/lib/incident_io/models/audit_logs_escalation_path_template_updated_v2.rb +300 -0
  58. data/lib/incident_io/models/audit_logs_escalation_path_updated_v2.rb +300 -0
  59. data/lib/incident_io/models/audit_logs_escalation_scrubbed_v2.rb +300 -0
  60. data/lib/incident_io/models/audit_logs_extension_connector_called_v5.rb +326 -0
  61. data/lib/incident_io/models/audit_logs_extension_plugin_created_v2.rb +326 -0
  62. data/lib/incident_io/models/audit_logs_extension_plugin_deleted_v2.rb +300 -0
  63. data/lib/incident_io/models/audit_logs_extension_plugin_updated_v2.rb +326 -0
  64. data/lib/incident_io/models/audit_logs_follow_up_category_created_v2.rb +300 -0
  65. data/lib/incident_io/models/audit_logs_follow_up_category_deleted_v2.rb +300 -0
  66. data/lib/incident_io/models/audit_logs_follow_up_category_updated_v2.rb +300 -0
  67. data/lib/incident_io/models/audit_logs_follow_up_priority_created_v2.rb +300 -0
  68. data/lib/incident_io/models/audit_logs_follow_up_priority_deleted_v2.rb +300 -0
  69. data/lib/incident_io/models/audit_logs_follow_up_priority_updated_v2.rb +300 -0
  70. data/lib/incident_io/models/audit_logs_glossary_entry_created_v2.rb +300 -0
  71. data/lib/incident_io/models/audit_logs_glossary_entry_deleted_v2.rb +300 -0
  72. data/lib/incident_io/models/audit_logs_glossary_entry_updated_v2.rb +300 -0
  73. data/lib/incident_io/models/audit_logs_holiday_user_feed_created_v2.rb +300 -0
  74. data/lib/incident_io/models/audit_logs_holiday_user_feed_deleted_v2.rb +300 -0
  75. data/lib/incident_io/models/audit_logs_holiday_user_feed_updated_v2.rb +300 -0
  76. data/lib/incident_io/models/audit_logs_hris_time_off_policy_updated_v2.rb +326 -0
  77. data/lib/incident_io/models/audit_logs_incident_call_setting_updated_v2.rb +300 -0
  78. data/lib/incident_io/models/audit_logs_incident_call_transcription_session_deleted_v2.rb +300 -0
  79. data/lib/incident_io/models/audit_logs_incident_duration_metric_created_v2.rb +300 -0
  80. data/lib/incident_io/models/audit_logs_incident_duration_metric_deleted_v2.rb +300 -0
  81. data/lib/incident_io/models/audit_logs_incident_duration_metric_updated_v2.rb +300 -0
  82. data/lib/incident_io/models/audit_logs_incident_role_created_v2.rb +300 -0
  83. data/lib/incident_io/models/audit_logs_incident_role_deleted_v2.rb +300 -0
  84. data/lib/incident_io/models/audit_logs_incident_role_updated_v2.rb +300 -0
  85. data/lib/incident_io/models/audit_logs_incident_scrubbed_v2.rb +300 -0
  86. data/lib/incident_io/models/audit_logs_incident_status_created_v2.rb +300 -0
  87. data/lib/incident_io/models/audit_logs_incident_status_deleted_v2.rb +300 -0
  88. data/lib/incident_io/models/audit_logs_incident_status_updated_v2.rb +300 -0
  89. data/lib/incident_io/models/audit_logs_incident_template_created_v2.rb +300 -0
  90. data/lib/incident_io/models/audit_logs_incident_template_deleted_v2.rb +300 -0
  91. data/lib/incident_io/models/audit_logs_incident_template_set_as_default_v2.rb +300 -0
  92. data/lib/incident_io/models/audit_logs_incident_template_updated_v2.rb +300 -0
  93. data/lib/incident_io/models/audit_logs_incident_timestamp_created_v2.rb +300 -0
  94. data/lib/incident_io/models/audit_logs_incident_timestamp_deleted_v2.rb +300 -0
  95. data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_created_v2.rb +300 -0
  96. data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_deleted_v2.rb +300 -0
  97. data/lib/incident_io/models/audit_logs_incident_timestamp_set_by_rule_updated_v2.rb +300 -0
  98. data/lib/incident_io/models/audit_logs_incident_timestamp_updated_v2.rb +300 -0
  99. data/lib/incident_io/models/audit_logs_incident_type_created_v3.rb +326 -0
  100. data/lib/incident_io/models/audit_logs_incident_type_deleted_v2.rb +300 -0
  101. data/lib/incident_io/models/audit_logs_incident_type_updated_v3.rb +326 -0
  102. data/lib/incident_io/models/audit_logs_integration_installed_v2.rb +300 -0
  103. data/lib/incident_io/models/audit_logs_integration_uninstalled_v2.rb +300 -0
  104. data/lib/incident_io/models/audit_logs_internal_status_page_created_v2.rb +300 -0
  105. data/lib/incident_io/models/audit_logs_internal_status_page_deleted_v2.rb +300 -0
  106. data/lib/incident_io/models/audit_logs_internal_status_page_updated_v2.rb +300 -0
  107. data/lib/incident_io/models/audit_logs_investigation_config_updated_v2.rb +326 -0
  108. data/lib/incident_io/models/audit_logs_investigation_trigger_created_v2.rb +326 -0
  109. data/lib/incident_io/models/audit_logs_investigation_trigger_deleted_v2.rb +326 -0
  110. data/lib/incident_io/models/audit_logs_investigation_trigger_updated_v2.rb +326 -0
  111. data/lib/incident_io/models/audit_logs_ip_allowlist_updated_v2.rb +326 -0
  112. data/lib/incident_io/models/audit_logs_maintenance_window_created_v2.rb +300 -0
  113. data/lib/incident_io/models/audit_logs_maintenance_window_deleted_v2.rb +300 -0
  114. data/lib/incident_io/models/audit_logs_maintenance_window_updated_v2.rb +300 -0
  115. data/lib/incident_io/models/audit_logs_microsoft_entra_tenant_linked_v2.rb +326 -0
  116. data/lib/incident_io/models/audit_logs_mobile_intune_enabled_setting_updated_v2.rb +326 -0
  117. data/lib/incident_io/models/audit_logs_nudge_created_v2.rb +300 -0
  118. data/lib/incident_io/models/audit_logs_nudge_deleted_v2.rb +300 -0
  119. data/lib/incident_io/models/audit_logs_nudge_updated_v2.rb +300 -0
  120. data/lib/incident_io/models/audit_logs_on_call_notification_method_created_v3.rb +326 -0
  121. data/lib/incident_io/models/audit_logs_on_call_notification_method_destroyed_v3.rb +326 -0
  122. data/lib/incident_io/models/audit_logs_on_call_notification_pause_created_v3.rb +326 -0
  123. data/lib/incident_io/models/audit_logs_on_call_notification_pause_deleted_v3.rb +326 -0
  124. data/lib/incident_io/models/audit_logs_on_call_notification_pause_resumed_v2.rb +326 -0
  125. data/lib/incident_io/models/audit_logs_on_call_notification_pause_updated_v3.rb +326 -0
  126. data/lib/incident_io/models/audit_logs_on_call_upsell_requested_v2.rb +326 -0
  127. data/lib/incident_io/models/audit_logs_organisation_settings_updated_v2.rb +326 -0
  128. data/lib/incident_io/models/audit_logs_policy_created_v3.rb +326 -0
  129. data/lib/incident_io/models/audit_logs_policy_deleted_v2.rb +300 -0
  130. data/lib/incident_io/models/audit_logs_policy_report_schedule_created_v2.rb +300 -0
  131. data/lib/incident_io/models/audit_logs_policy_report_schedule_deleted_v2.rb +300 -0
  132. data/lib/incident_io/models/audit_logs_policy_report_schedule_updated_v2.rb +300 -0
  133. data/lib/incident_io/models/audit_logs_policy_updated_v3.rb +326 -0
  134. data/lib/incident_io/models/audit_logs_post_incident_task_created_v2.rb +300 -0
  135. data/lib/incident_io/models/audit_logs_post_incident_task_deleted_v2.rb +300 -0
  136. data/lib/incident_io/models/audit_logs_post_incident_task_updated_v2.rb +300 -0
  137. data/lib/incident_io/models/audit_logs_postmortem_section_created_v3.rb +300 -0
  138. data/lib/incident_io/models/audit_logs_postmortem_section_deleted_v3.rb +300 -0
  139. data/lib/incident_io/models/audit_logs_postmortem_section_updated_v3.rb +300 -0
  140. data/lib/incident_io/models/audit_logs_postmortem_template_created_v3.rb +300 -0
  141. data/lib/incident_io/models/audit_logs_postmortem_template_deleted_v3.rb +300 -0
  142. data/lib/incident_io/models/audit_logs_postmortem_template_updated_v3.rb +300 -0
  143. data/lib/incident_io/models/audit_logs_private_alert_access_attempted_v2.rb +326 -0
  144. data/lib/incident_io/models/audit_logs_private_escalation_access_attempted_v2.rb +326 -0
  145. data/lib/incident_io/models/audit_logs_private_incident_access_attempted_v3.rb +326 -0
  146. data/lib/incident_io/models/audit_logs_private_incident_access_requested_v2.rb +300 -0
  147. data/lib/incident_io/models/audit_logs_private_incident_accessed_via_bot_v2.rb +300 -0
  148. data/lib/incident_io/models/audit_logs_private_incident_membership_granted_v2.rb +300 -0
  149. data/lib/incident_io/models/audit_logs_private_incident_membership_revoked_v2.rb +300 -0
  150. data/lib/incident_io/models/audit_logs_private_incident_membership_upgraded_to_direct_v2.rb +300 -0
  151. data/lib/incident_io/models/audit_logs_private_incident_team_membership_granted_v2.rb +300 -0
  152. data/lib/incident_io/models/audit_logs_private_incident_team_membership_revoked_v2.rb +300 -0
  153. data/lib/incident_io/models/audit_logs_private_insights_exported_v2.rb +326 -0
  154. data/lib/incident_io/models/audit_logs_private_insights_measure_queried_v2.rb +326 -0
  155. data/lib/incident_io/models/audit_logs_private_insights_underlying_data_queried_v2.rb +326 -0
  156. data/lib/incident_io/models/audit_logs_qr_code_mobile_login_setting_updated_v2.rb +326 -0
  157. data/lib/incident_io/models/audit_logs_rbac_role_created_v2.rb +300 -0
  158. data/lib/incident_io/models/audit_logs_rbac_role_deleted_v2.rb +300 -0
  159. data/lib/incident_io/models/audit_logs_rbac_role_updated_v2.rb +300 -0
  160. data/lib/incident_io/models/audit_logs_reliability_review_repository_updated_v1.rb +326 -0
  161. data/lib/incident_io/models/audit_logs_reliability_review_repository_updated_v2.rb +326 -0
  162. data/lib/incident_io/models/audit_logs_reliability_review_settings_updated_v1.rb +326 -0
  163. data/lib/incident_io/models/audit_logs_reliability_review_settings_updated_v2.rb +326 -0
  164. data/lib/incident_io/models/audit_logs_reliability_review_spend_limit_updated_v1.rb +326 -0
  165. data/lib/incident_io/models/audit_logs_reliability_review_spend_limit_updated_v2.rb +326 -0
  166. data/lib/incident_io/models/audit_logs_schedule_created_v2.rb +300 -0
  167. data/lib/incident_io/models/audit_logs_schedule_deleted_v2.rb +300 -0
  168. data/lib/incident_io/models/audit_logs_schedule_override_created_v3.rb +326 -0
  169. data/lib/incident_io/models/audit_logs_schedule_override_deleted_v3.rb +326 -0
  170. data/lib/incident_io/models/audit_logs_schedule_override_updated_v3.rb +326 -0
  171. data/lib/incident_io/models/audit_logs_schedule_sync_rule_created_v2.rb +300 -0
  172. data/lib/incident_io/models/audit_logs_schedule_sync_rule_deleted_v2.rb +300 -0
  173. data/lib/incident_io/models/audit_logs_schedule_sync_rule_updated_v2.rb +300 -0
  174. data/lib/incident_io/models/audit_logs_schedule_sync_target_created_v2.rb +300 -0
  175. data/lib/incident_io/models/audit_logs_schedule_sync_target_deleted_v2.rb +300 -0
  176. data/lib/incident_io/models/audit_logs_schedule_sync_target_updated_v2.rb +300 -0
  177. data/lib/incident_io/models/audit_logs_schedule_updated_v2.rb +300 -0
  178. data/lib/incident_io/models/audit_logs_scim_group_role_mappings_updated_v2.rb +326 -0
  179. data/lib/incident_io/models/audit_logs_scim_group_seat_mappings_updated_v2.rb +326 -0
  180. data/lib/incident_io/models/audit_logs_secret_created_v2.rb +300 -0
  181. data/lib/incident_io/models/audit_logs_secret_deleted_v2.rb +300 -0
  182. data/lib/incident_io/models/audit_logs_secret_reference_added_v2.rb +300 -0
  183. data/lib/incident_io/models/audit_logs_secret_reference_removed_v2.rb +300 -0
  184. data/lib/incident_io/models/audit_logs_secret_rotated_v2.rb +300 -0
  185. data/lib/incident_io/models/audit_logs_secret_updated_v2.rb +300 -0
  186. data/lib/incident_io/models/audit_logs_severity_created_v2.rb +300 -0
  187. data/lib/incident_io/models/audit_logs_severity_deleted_v2.rb +300 -0
  188. data/lib/incident_io/models/audit_logs_severity_updated_v2.rb +300 -0
  189. data/lib/incident_io/models/audit_logs_status_page_created_v2.rb +300 -0
  190. data/lib/incident_io/models/audit_logs_status_page_deleted_v2.rb +300 -0
  191. data/lib/incident_io/models/audit_logs_status_page_sub_page_created_v2.rb +300 -0
  192. data/lib/incident_io/models/audit_logs_status_page_sub_page_deleted_v2.rb +300 -0
  193. data/lib/incident_io/models/audit_logs_status_page_sub_page_updated_v2.rb +300 -0
  194. data/lib/incident_io/models/audit_logs_status_page_template_created_v2.rb +300 -0
  195. data/lib/incident_io/models/audit_logs_status_page_template_deleted_v2.rb +300 -0
  196. data/lib/incident_io/models/audit_logs_status_page_template_updated_v2.rb +300 -0
  197. data/lib/incident_io/models/audit_logs_status_page_updated_v2.rb +300 -0
  198. data/lib/incident_io/models/audit_logs_team_role_created_v2.rb +300 -0
  199. data/lib/incident_io/models/audit_logs_team_role_deleted_v2.rb +300 -0
  200. data/lib/incident_io/models/audit_logs_team_role_updated_v2.rb +300 -0
  201. data/lib/incident_io/models/audit_logs_team_settings_updated_v2.rb +300 -0
  202. data/lib/incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v2.rb +326 -0
  203. data/lib/incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v3.rb +326 -0
  204. data/lib/incident_io/models/audit_logs_telemetry_data_source_caller_identity_sharing_changed_v2.rb +326 -0
  205. data/lib/incident_io/models/audit_logs_telemetry_data_source_installed_v2.rb +300 -0
  206. data/lib/incident_io/models/audit_logs_telemetry_data_source_passthrough_changed_v2.rb +326 -0
  207. data/lib/incident_io/models/audit_logs_telemetry_data_source_queried_v3.rb +326 -0
  208. data/lib/incident_io/models/audit_logs_telemetry_data_source_requested_v2.rb +326 -0
  209. data/lib/incident_io/models/audit_logs_telemetry_data_source_tool_access_changed_v2.rb +326 -0
  210. data/lib/incident_io/models/audit_logs_telemetry_data_source_tool_overrides_changed_v2.rb +326 -0
  211. data/lib/incident_io/models/audit_logs_telemetry_data_source_uninstalled_v2.rb +300 -0
  212. data/lib/incident_io/models/audit_logs_telemetry_data_source_write_access_granted_v2.rb +326 -0
  213. data/lib/incident_io/models/audit_logs_telemetry_data_source_write_access_revoked_v2.rb +326 -0
  214. data/lib/incident_io/models/audit_logs_timeline_item_deleted_v2.rb +300 -0
  215. data/lib/incident_io/models/audit_logs_twilio_connection_created_v2.rb +326 -0
  216. data/lib/incident_io/models/audit_logs_twilio_connection_deleted_v2.rb +326 -0
  217. data/lib/incident_io/models/audit_logs_twilio_connection_updated_v2.rb +326 -0
  218. data/lib/incident_io/models/audit_logs_user_api_key_created_v2.rb +300 -0
  219. data/lib/incident_io/models/audit_logs_user_api_key_deleted_v2.rb +300 -0
  220. data/lib/incident_io/models/audit_logs_user_created_v2.rb +300 -0
  221. data/lib/incident_io/models/audit_logs_user_deactivated_v2.rb +300 -0
  222. data/lib/incident_io/models/audit_logs_user_logged_in_v2.rb +326 -0
  223. data/lib/incident_io/models/audit_logs_user_reinstated_v2.rb +300 -0
  224. data/lib/incident_io/models/audit_logs_user_role_memberships_updated_v2.rb +326 -0
  225. data/lib/incident_io/models/audit_logs_user_updated_v2.rb +300 -0
  226. data/lib/incident_io/models/audit_logs_workflow_created_v2.rb +300 -0
  227. data/lib/incident_io/models/audit_logs_workflow_deleted_v2.rb +300 -0
  228. data/lib/incident_io/models/audit_logs_workflow_updated_v2.rb +300 -0
  229. data/lib/incident_io/models/incident_activity_log_entry_v2.rb +1 -1
  230. data/lib/incident_io/version.rb +1 -1
  231. data/lib/incident_io.rb +225 -0
  232. metadata +226 -1
@@ -0,0 +1,195 @@
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 'date'
14
+ require 'time'
15
+
16
+ module IncidentIo
17
+ class AlertAttachmentsCreatePayloadV2 < ApiModelBase
18
+ # ID of the alert group to attach to. Provide exactly one of alert_id or alert_group_id.
19
+ attr_accessor :alert_group_id
20
+
21
+ # ID of the alert to attach to. Provide exactly one of alert_id or alert_group_id.
22
+ attr_accessor :alert_id
23
+
24
+ # Title for a link. Tickets and pull requests use their own title, so we ignore this for them.
25
+ attr_accessor :title
26
+
27
+ # The URL to attach
28
+ attr_accessor :url
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'alert_group_id' => :'alert_group_id',
34
+ :'alert_id' => :'alert_id',
35
+ :'title' => :'title',
36
+ :'url' => :'url'
37
+ }
38
+ end
39
+
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ acceptable_attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'alert_group_id' => :'String',
54
+ :'alert_id' => :'String',
55
+ :'title' => :'String',
56
+ :'url' => :'String'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AlertAttachmentsCreatePayloadV2` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
75
+ attributes = attributes.each_with_object({}) { |(k, v), h|
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AlertAttachmentsCreatePayloadV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
+ end
79
+ h[k.to_sym] = v
80
+ }
81
+
82
+ if attributes.key?(:'alert_group_id')
83
+ self.alert_group_id = attributes[:'alert_group_id']
84
+ end
85
+
86
+ if attributes.key?(:'alert_id')
87
+ self.alert_id = attributes[:'alert_id']
88
+ end
89
+
90
+ if attributes.key?(:'title')
91
+ self.title = attributes[:'title']
92
+ end
93
+
94
+ if attributes.key?(:'url')
95
+ self.url = attributes[:'url']
96
+ else
97
+ self.url = nil
98
+ end
99
+ end
100
+
101
+ # Show invalid properties with the reasons. Usually used together with valid?
102
+ # @return Array for valid properties with the reasons
103
+ def list_invalid_properties
104
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
105
+ invalid_properties = Array.new
106
+ if @url.nil?
107
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
108
+ end
109
+
110
+ invalid_properties
111
+ end
112
+
113
+ # Check to see if the all the properties in the model are valid
114
+ # @return true if the model is valid
115
+ def valid?
116
+ warn '[DEPRECATED] the `valid?` method is obsolete'
117
+ return false if @url.nil?
118
+ true
119
+ end
120
+
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] url Value to be assigned
123
+ def url=(url)
124
+ if url.nil?
125
+ fail ArgumentError, 'url cannot be nil'
126
+ end
127
+
128
+ @url = url
129
+ end
130
+
131
+ # Checks equality by comparing each attribute.
132
+ # @param [Object] Object to be compared
133
+ def ==(o)
134
+ return true if self.equal?(o)
135
+ self.class == o.class &&
136
+ alert_group_id == o.alert_group_id &&
137
+ alert_id == o.alert_id &&
138
+ title == o.title &&
139
+ url == o.url
140
+ end
141
+
142
+ # @see the `==` method
143
+ # @param [Object] Object to be compared
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Integer] Hash code
150
+ def hash
151
+ [alert_group_id, alert_id, title, url].hash
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def self.build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ attributes = attributes.transform_keys(&:to_sym)
160
+ transformed_hash = {}
161
+ openapi_types.each_pair do |key, type|
162
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
163
+ transformed_hash["#{key}"] = nil
164
+ elsif type =~ /\AArray<(.*)>/i
165
+ # check to ensure the input is an array given that the attribute
166
+ # is documented as an array but the input is not
167
+ if attributes[attribute_map[key]].is_a?(Array)
168
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
169
+ end
170
+ elsif !attributes[attribute_map[key]].nil?
171
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
172
+ end
173
+ end
174
+ new(transformed_hash)
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ if value.nil?
184
+ is_nullable = self.class.openapi_nullable.include?(attr)
185
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
186
+ end
187
+
188
+ hash[param] = _to_hash(value)
189
+ end
190
+ hash
191
+ end
192
+
193
+ end
194
+
195
+ end
@@ -0,0 +1,164 @@
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 'date'
14
+ require 'time'
15
+
16
+ module IncidentIo
17
+ class AlertAttachmentsCreateResultV2 < ApiModelBase
18
+ attr_accessor :alert_attachment
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'alert_attachment' => :'alert_attachment'
24
+ }
25
+ end
26
+
27
+ # Returns attribute mapping this model knows about
28
+ def self.acceptable_attribute_map
29
+ attribute_map
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ acceptable_attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'alert_attachment' => :'AlertAttachmentV2'
41
+ }
42
+ end
43
+
44
+ # List of attributes with nullable: true
45
+ def self.openapi_nullable
46
+ Set.new([
47
+ ])
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ if (!attributes.is_a?(Hash))
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AlertAttachmentsCreateResultV2` initialize method"
55
+ end
56
+
57
+ # check to see if the attribute exists and convert string to symbol for hash key
58
+ acceptable_attribute_map = self.class.acceptable_attribute_map
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!acceptable_attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AlertAttachmentsCreateResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'alert_attachment')
67
+ self.alert_attachment = attributes[:'alert_attachment']
68
+ else
69
+ self.alert_attachment = nil
70
+ end
71
+ end
72
+
73
+ # Show invalid properties with the reasons. Usually used together with valid?
74
+ # @return Array for valid properties with the reasons
75
+ def list_invalid_properties
76
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
77
+ invalid_properties = Array.new
78
+ if @alert_attachment.nil?
79
+ invalid_properties.push('invalid value for "alert_attachment", alert_attachment cannot be nil.')
80
+ end
81
+
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ warn '[DEPRECATED] the `valid?` method is obsolete'
89
+ return false if @alert_attachment.nil?
90
+ true
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] alert_attachment Value to be assigned
95
+ def alert_attachment=(alert_attachment)
96
+ if alert_attachment.nil?
97
+ fail ArgumentError, 'alert_attachment cannot be nil'
98
+ end
99
+
100
+ @alert_attachment = alert_attachment
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param [Object] Object to be compared
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ alert_attachment == o.alert_attachment
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Integer] Hash code
119
+ def hash
120
+ [alert_attachment].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def self.build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ attributes = attributes.transform_keys(&:to_sym)
129
+ transformed_hash = {}
130
+ openapi_types.each_pair do |key, type|
131
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
132
+ transformed_hash["#{key}"] = nil
133
+ elsif type =~ /\AArray<(.*)>/i
134
+ # check to ensure the input is an array given that the attribute
135
+ # is documented as an array but the input is not
136
+ if attributes[attribute_map[key]].is_a?(Array)
137
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
138
+ end
139
+ elsif !attributes[attribute_map[key]].nil?
140
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
141
+ end
142
+ end
143
+ new(transformed_hash)
144
+ end
145
+
146
+ # Returns the object in the form of hash
147
+ # @return [Hash] Returns the object in the form of hash
148
+ def to_hash
149
+ hash = {}
150
+ self.class.attribute_map.each_pair do |attr, param|
151
+ value = self.send(attr)
152
+ if value.nil?
153
+ is_nullable = self.class.openapi_nullable.include?(attr)
154
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
155
+ end
156
+
157
+ hash[param] = _to_hash(value)
158
+ end
159
+ hash
160
+ end
161
+
162
+ end
163
+
164
+ end
@@ -0,0 +1,175 @@
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 'date'
14
+ require 'time'
15
+
16
+ module IncidentIo
17
+ class AlertAttachmentsListResultV2 < ApiModelBase
18
+ attr_accessor :alert_attachments
19
+
20
+ attr_accessor :pagination_meta
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'alert_attachments' => :'alert_attachments',
26
+ :'pagination_meta' => :'pagination_meta'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'alert_attachments' => :'Array<AlertAttachmentV2>',
44
+ :'pagination_meta' => :'PaginationMetaResultV2'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AlertAttachmentsListResultV2` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AlertAttachmentsListResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'alert_attachments')
71
+ if (value = attributes[:'alert_attachments']).is_a?(Array)
72
+ self.alert_attachments = value
73
+ end
74
+ else
75
+ self.alert_attachments = nil
76
+ end
77
+
78
+ if attributes.key?(:'pagination_meta')
79
+ self.pagination_meta = attributes[:'pagination_meta']
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
+ invalid_properties = Array.new
88
+ if @alert_attachments.nil?
89
+ invalid_properties.push('invalid value for "alert_attachments", alert_attachments cannot be nil.')
90
+ end
91
+
92
+ invalid_properties
93
+ end
94
+
95
+ # Check to see if the all the properties in the model are valid
96
+ # @return true if the model is valid
97
+ def valid?
98
+ warn '[DEPRECATED] the `valid?` method is obsolete'
99
+ return false if @alert_attachments.nil?
100
+ true
101
+ end
102
+
103
+ # Custom attribute writer method with validation
104
+ # @param [Object] alert_attachments Value to be assigned
105
+ def alert_attachments=(alert_attachments)
106
+ if alert_attachments.nil?
107
+ fail ArgumentError, 'alert_attachments cannot be nil'
108
+ end
109
+
110
+ @alert_attachments = alert_attachments
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ alert_attachments == o.alert_attachments &&
119
+ pagination_meta == o.pagination_meta
120
+ end
121
+
122
+ # @see the `==` method
123
+ # @param [Object] Object to be compared
124
+ def eql?(o)
125
+ self == o
126
+ end
127
+
128
+ # Calculates hash code according to all attributes.
129
+ # @return [Integer] Hash code
130
+ def hash
131
+ [alert_attachments, pagination_meta].hash
132
+ end
133
+
134
+ # Builds the object from hash
135
+ # @param [Hash] attributes Model attributes in the form of hash
136
+ # @return [Object] Returns the model itself
137
+ def self.build_from_hash(attributes)
138
+ return nil unless attributes.is_a?(Hash)
139
+ attributes = attributes.transform_keys(&:to_sym)
140
+ transformed_hash = {}
141
+ openapi_types.each_pair do |key, type|
142
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
143
+ transformed_hash["#{key}"] = nil
144
+ elsif type =~ /\AArray<(.*)>/i
145
+ # check to ensure the input is an array given that the attribute
146
+ # is documented as an array but the input is not
147
+ if attributes[attribute_map[key]].is_a?(Array)
148
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
149
+ end
150
+ elsif !attributes[attribute_map[key]].nil?
151
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
152
+ end
153
+ end
154
+ new(transformed_hash)
155
+ end
156
+
157
+ # Returns the object in the form of hash
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_hash
160
+ hash = {}
161
+ self.class.attribute_map.each_pair do |attr, param|
162
+ value = self.send(attr)
163
+ if value.nil?
164
+ is_nullable = self.class.openapi_nullable.include?(attr)
165
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
166
+ end
167
+
168
+ hash[param] = _to_hash(value)
169
+ end
170
+ hash
171
+ end
172
+
173
+ end
174
+
175
+ end
@@ -33,6 +33,9 @@ module IncidentIo
33
33
  # The custom role slugs of the user, separated by commas (if it's a user actor)
34
34
  attr_accessor :user_custom_role_slugs
35
35
 
36
+ # How the user made the change, when it wasn't directly (if it's a user actor)
37
+ attr_accessor :via
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
@@ -41,7 +44,8 @@ module IncidentIo
41
44
  :'external_resource_external_id' => :'external_resource_external_id',
42
45
  :'external_resource_type' => :'external_resource_type',
43
46
  :'user_base_role_slug' => :'user_base_role_slug',
44
- :'user_custom_role_slugs' => :'user_custom_role_slugs'
47
+ :'user_custom_role_slugs' => :'user_custom_role_slugs',
48
+ :'via' => :'via'
45
49
  }
46
50
  end
47
51
 
@@ -63,7 +67,8 @@ module IncidentIo
63
67
  :'external_resource_external_id' => :'String',
64
68
  :'external_resource_type' => :'String',
65
69
  :'user_base_role_slug' => :'String',
66
- :'user_custom_role_slugs' => :'String'
70
+ :'user_custom_role_slugs' => :'String',
71
+ :'via' => :'String'
67
72
  }
68
73
  end
69
74
 
@@ -112,6 +117,10 @@ module IncidentIo
112
117
  if attributes.key?(:'user_custom_role_slugs')
113
118
  self.user_custom_role_slugs = attributes[:'user_custom_role_slugs']
114
119
  end
120
+
121
+ if attributes.key?(:'via')
122
+ self.via = attributes[:'via']
123
+ end
115
124
  end
116
125
 
117
126
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -139,7 +148,8 @@ module IncidentIo
139
148
  external_resource_external_id == o.external_resource_external_id &&
140
149
  external_resource_type == o.external_resource_type &&
141
150
  user_base_role_slug == o.user_base_role_slug &&
142
- user_custom_role_slugs == o.user_custom_role_slugs
151
+ user_custom_role_slugs == o.user_custom_role_slugs &&
152
+ via == o.via
143
153
  end
144
154
 
145
155
  # @see the `==` method
@@ -151,7 +161,7 @@ module IncidentIo
151
161
  # Calculates hash code according to all attributes.
152
162
  # @return [Integer] Hash code
153
163
  def hash
154
- [alert_source_id, api_key_roles, external_resource_external_id, external_resource_type, user_base_role_slug, user_custom_role_slugs].hash
164
+ [alert_source_id, api_key_roles, external_resource_external_id, external_resource_type, user_base_role_slug, user_custom_role_slugs, via].hash
155
165
  end
156
166
 
157
167
  # Builds the object from hash