incident_io_api 1.2.0 → 2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4418f1edbe148b7ac20242fa2de79d33c8774ba53ee9399d50a561465486df16
4
- data.tar.gz: 7b3673422cfbb6aecf9402c5ee271f0ddb8fce19b71e1d5ed0fd0d62191c378f
3
+ metadata.gz: 9003db95fc14c284f3c0151ba851762cfa723d2a1203da13b790c0725dd427d1
4
+ data.tar.gz: 853db891c89a138907bd103472dcb04dc70338476096bc92bdbc5341b4731f8a
5
5
  SHA512:
6
- metadata.gz: e45f2d30a508cd436bb7ebc313ffbe493d6db9e21fbfc6970a7d71837d2e9e4d766c7b6b8b8ec7d20f52910cc3fdc5ac3e3b8bb98bdc371bd783b1e6f0488e5f
7
- data.tar.gz: a5e2902405e8489918bf49d502a94b677fa6b8b62753b6e8ca66be4da26da0d6af9127cbf675357b701a33c53469e349572d788f6ea24c1d25ca08aecf757593
6
+ metadata.gz: fa1ba663293ea1ef0eb476ac129fa30a5f7b0b3e5cf88f5ab8e512de5b62aa0ec2ca1ea4208ff930f1a64072e7b49e277e2bb706f7572c54d33bba82d60f8ad3
7
+ data.tar.gz: 56a7f943c835ac46a36fbe4e4fbba4c13af8ebe64da3b9e37f4ced1a7cdf29f7d46d0bb22903bfb272186c579bb55c7e57c382186db86b9c7f799f5d7391f48b
@@ -723,7 +723,7 @@ module IncidentIo
723
723
  end
724
724
 
725
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.
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` 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
727
  # @param schedule_id [String] The ID of the schedule to get entries for.
728
728
  # @param [Hash] opts the optional parameters
729
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).
@@ -735,7 +735,7 @@ module IncidentIo
735
735
  end
736
736
 
737
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.
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` 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
739
  # @param schedule_id [String] The ID of the schedule to get entries for.
740
740
  # @param [Hash] opts the optional parameters
741
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).
@@ -21,7 +21,7 @@ module IncidentIo
21
21
  # The name of the target
22
22
  attr_accessor :name
23
23
 
24
- # The type of target Known values: `api_key`, `alert`, `alert_chat_message_template`, `alert_route`, `alert_schema`, `alert_source`, `alert_priority`, `announcement_rule`, `announcement_post_template`, `catalog_type`, `catalog_entry`, `catalog_attribute`, `connector_config`, `custom_field`, `debrief_invite_rule`, `escalation`, `escalation_path`, `escalation_path_template`, `extension_connector`, `extension_connector_tool`, `follow_up_category`, `follow_up_priority`, `holiday_user_feed`, `hris_time_off_policy`, `incident`, `incident_call_transcription_session`, `incident_call_setting`, `incident_duration_metric`, `incident_template`, `maintenance_window`, `incident_role`, `incident_status`, `incident_timestamp`, `incident_timestamp_set_by_rule`, `incident_type`, `integration`, `internal_status_page`, `ip_allowlist`, `nudge`, `on_call_notification_method`, `on_call_notification_pause`, `organisation`, `organisation_settings`, `schedule_override`, `schedule_sync_rule`, `schedule_sync_target`, `policy`, `policy_report_schedule`, `post_incident_task`, `postmortem_template`, `postmortem_template_section`, `private_incident_membership`, `rbac_role`, `scim_group`, `schedule`, `team_role`, `secret`, `severity`, `status_page`, `status_page_sub_page`, `status_page_template`, `team_settings`, `telemetry_data_source`, `twilio_connection`, `user`, `workflow`, `activity_log`, `timeline_item`, `on_call_upsell_request`
24
+ # The type of target Known values: `api_key`, `alert`, `alert_chat_message_template`, `alert_route`, `alert_schema`, `alert_source`, `alert_priority`, `announcement_rule`, `announcement_post_template`, `catalog_type`, `catalog_entry`, `catalog_attribute`, `connector_config`, `custom_field`, `debrief_invite_rule`, `escalation`, `escalation_path`, `escalation_path_template`, `extension_connector`, `extension_connector_tool`, `follow_up_category`, `follow_up_priority`, `holiday_user_feed`, `hris_time_off_policy`, `incident`, `incident_call_transcription_session`, `incident_call_setting`, `incident_duration_metric`, `incident_template`, `maintenance_window`, `incident_role`, `incident_status`, `incident_timestamp`, `incident_timestamp_set_by_rule`, `incident_type`, `integration`, `internal_status_page`, `ip_allowlist`, `nudge`, `on_call_notification_method`, `on_call_notification_pause`, `organisation`, `organisation_settings`, `schedule_override`, `schedule_sync_rule`, `schedule_sync_target`, `policy`, `policy_report_schedule`, `post_incident_task`, `postmortem_template`, `postmortem_template_section`, `private_incident_membership`, `rbac_role`, `scim_group`, `schedule`, `team_role`, `secret`, `severity`, `status_page`, `status_page_sub_page`, `status_page_template`, `team_settings`, `telemetry_data_source`, `twilio_connection`, `user`, `user_api_key`, `workflow`, `activity_log`, `timeline_item`, `on_call_upsell_request`
25
25
  attr_accessor :type
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -0,0 +1,326 @@
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 AuditLogsOnCallNotificationPauseResumedV1 < ApiModelBase
18
+ # The type of log entry that this is
19
+ attr_accessor :action
20
+
21
+ attr_accessor :actor
22
+
23
+ attr_accessor :context
24
+
25
+ attr_accessor :metadata
26
+
27
+ # When the entry occurred
28
+ attr_accessor :occurred_at
29
+
30
+ # The custom field that was created
31
+ attr_accessor :targets
32
+
33
+ # Which version the event is
34
+ attr_accessor :version
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'action' => :'action',
40
+ :'actor' => :'actor',
41
+ :'context' => :'context',
42
+ :'metadata' => :'metadata',
43
+ :'occurred_at' => :'occurred_at',
44
+ :'targets' => :'targets',
45
+ :'version' => :'version'
46
+ }
47
+ end
48
+
49
+ # Returns attribute mapping this model knows about
50
+ def self.acceptable_attribute_map
51
+ attribute_map
52
+ end
53
+
54
+ # Returns all the JSON keys this model knows about
55
+ def self.acceptable_attributes
56
+ acceptable_attribute_map.values
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.openapi_types
61
+ {
62
+ :'action' => :'String',
63
+ :'actor' => :'AuditLogActorV2',
64
+ :'context' => :'AuditLogEntryContextV2',
65
+ :'metadata' => :'AuditLogOnCallNotificationPauseMetadataV2',
66
+ :'occurred_at' => :'Time',
67
+ :'targets' => :'Array<AuditLogTargetV2>',
68
+ :'version' => :'Integer'
69
+ }
70
+ end
71
+
72
+ # List of attributes with nullable: true
73
+ def self.openapi_nullable
74
+ Set.new([
75
+ ])
76
+ end
77
+
78
+ # Initializes the object
79
+ # @param [Hash] attributes Model attributes in the form of hash
80
+ def initialize(attributes = {})
81
+ if (!attributes.is_a?(Hash))
82
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogsOnCallNotificationPauseResumedV1` initialize method"
83
+ end
84
+
85
+ # check to see if the attribute exists and convert string to symbol for hash key
86
+ acceptable_attribute_map = self.class.acceptable_attribute_map
87
+ attributes = attributes.each_with_object({}) { |(k, v), h|
88
+ if (!acceptable_attribute_map.key?(k.to_sym))
89
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogsOnCallNotificationPauseResumedV1`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
90
+ end
91
+ h[k.to_sym] = v
92
+ }
93
+
94
+ if attributes.key?(:'action')
95
+ self.action = attributes[:'action']
96
+ else
97
+ self.action = nil
98
+ end
99
+
100
+ if attributes.key?(:'actor')
101
+ self.actor = attributes[:'actor']
102
+ else
103
+ self.actor = nil
104
+ end
105
+
106
+ if attributes.key?(:'context')
107
+ self.context = attributes[:'context']
108
+ else
109
+ self.context = nil
110
+ end
111
+
112
+ if attributes.key?(:'metadata')
113
+ self.metadata = attributes[:'metadata']
114
+ else
115
+ self.metadata = nil
116
+ end
117
+
118
+ if attributes.key?(:'occurred_at')
119
+ self.occurred_at = attributes[:'occurred_at']
120
+ else
121
+ self.occurred_at = nil
122
+ end
123
+
124
+ if attributes.key?(:'targets')
125
+ if (value = attributes[:'targets']).is_a?(Array)
126
+ self.targets = value
127
+ end
128
+ else
129
+ self.targets = nil
130
+ end
131
+
132
+ if attributes.key?(:'version')
133
+ self.version = attributes[:'version']
134
+ else
135
+ self.version = nil
136
+ end
137
+ end
138
+
139
+ # Show invalid properties with the reasons. Usually used together with valid?
140
+ # @return Array for valid properties with the reasons
141
+ def list_invalid_properties
142
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
143
+ invalid_properties = Array.new
144
+ if @action.nil?
145
+ invalid_properties.push('invalid value for "action", action cannot be nil.')
146
+ end
147
+
148
+ if @actor.nil?
149
+ invalid_properties.push('invalid value for "actor", actor cannot be nil.')
150
+ end
151
+
152
+ if @context.nil?
153
+ invalid_properties.push('invalid value for "context", context cannot be nil.')
154
+ end
155
+
156
+ if @metadata.nil?
157
+ invalid_properties.push('invalid value for "metadata", metadata cannot be nil.')
158
+ end
159
+
160
+ if @occurred_at.nil?
161
+ invalid_properties.push('invalid value for "occurred_at", occurred_at cannot be nil.')
162
+ end
163
+
164
+ if @targets.nil?
165
+ invalid_properties.push('invalid value for "targets", targets cannot be nil.')
166
+ end
167
+
168
+ if @version.nil?
169
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
170
+ end
171
+
172
+ invalid_properties
173
+ end
174
+
175
+ # Check to see if the all the properties in the model are valid
176
+ # @return true if the model is valid
177
+ def valid?
178
+ warn '[DEPRECATED] the `valid?` method is obsolete'
179
+ return false if @action.nil?
180
+ return false if @actor.nil?
181
+ return false if @context.nil?
182
+ return false if @metadata.nil?
183
+ return false if @occurred_at.nil?
184
+ return false if @targets.nil?
185
+ return false if @version.nil?
186
+ true
187
+ end
188
+
189
+ # Custom attribute writer method with validation
190
+ # @param [Object] action Value to be assigned
191
+ def action=(action)
192
+ if action.nil?
193
+ fail ArgumentError, 'action cannot be nil'
194
+ end
195
+
196
+ @action = action
197
+ end
198
+
199
+ # Custom attribute writer method with validation
200
+ # @param [Object] actor Value to be assigned
201
+ def actor=(actor)
202
+ if actor.nil?
203
+ fail ArgumentError, 'actor cannot be nil'
204
+ end
205
+
206
+ @actor = actor
207
+ end
208
+
209
+ # Custom attribute writer method with validation
210
+ # @param [Object] context Value to be assigned
211
+ def context=(context)
212
+ if context.nil?
213
+ fail ArgumentError, 'context cannot be nil'
214
+ end
215
+
216
+ @context = context
217
+ end
218
+
219
+ # Custom attribute writer method with validation
220
+ # @param [Object] metadata Value to be assigned
221
+ def metadata=(metadata)
222
+ if metadata.nil?
223
+ fail ArgumentError, 'metadata cannot be nil'
224
+ end
225
+
226
+ @metadata = metadata
227
+ end
228
+
229
+ # Custom attribute writer method with validation
230
+ # @param [Object] occurred_at Value to be assigned
231
+ def occurred_at=(occurred_at)
232
+ if occurred_at.nil?
233
+ fail ArgumentError, 'occurred_at cannot be nil'
234
+ end
235
+
236
+ @occurred_at = occurred_at
237
+ end
238
+
239
+ # Custom attribute writer method with validation
240
+ # @param [Object] targets Value to be assigned
241
+ def targets=(targets)
242
+ if targets.nil?
243
+ fail ArgumentError, 'targets cannot be nil'
244
+ end
245
+
246
+ @targets = targets
247
+ end
248
+
249
+ # Custom attribute writer method with validation
250
+ # @param [Object] version Value to be assigned
251
+ def version=(version)
252
+ if version.nil?
253
+ fail ArgumentError, 'version cannot be nil'
254
+ end
255
+
256
+ @version = version
257
+ end
258
+
259
+ # Checks equality by comparing each attribute.
260
+ # @param [Object] Object to be compared
261
+ def ==(o)
262
+ return true if self.equal?(o)
263
+ self.class == o.class &&
264
+ action == o.action &&
265
+ actor == o.actor &&
266
+ context == o.context &&
267
+ metadata == o.metadata &&
268
+ occurred_at == o.occurred_at &&
269
+ targets == o.targets &&
270
+ version == o.version
271
+ end
272
+
273
+ # @see the `==` method
274
+ # @param [Object] Object to be compared
275
+ def eql?(o)
276
+ self == o
277
+ end
278
+
279
+ # Calculates hash code according to all attributes.
280
+ # @return [Integer] Hash code
281
+ def hash
282
+ [action, actor, context, metadata, occurred_at, targets, version].hash
283
+ end
284
+
285
+ # Builds the object from hash
286
+ # @param [Hash] attributes Model attributes in the form of hash
287
+ # @return [Object] Returns the model itself
288
+ def self.build_from_hash(attributes)
289
+ return nil unless attributes.is_a?(Hash)
290
+ attributes = attributes.transform_keys(&:to_sym)
291
+ transformed_hash = {}
292
+ openapi_types.each_pair do |key, type|
293
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
294
+ transformed_hash["#{key}"] = nil
295
+ elsif type =~ /\AArray<(.*)>/i
296
+ # check to ensure the input is an array given that the attribute
297
+ # is documented as an array but the input is not
298
+ if attributes[attribute_map[key]].is_a?(Array)
299
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
300
+ end
301
+ elsif !attributes[attribute_map[key]].nil?
302
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
303
+ end
304
+ end
305
+ new(transformed_hash)
306
+ end
307
+
308
+ # Returns the object in the form of hash
309
+ # @return [Hash] Returns the object in the form of hash
310
+ def to_hash
311
+ hash = {}
312
+ self.class.attribute_map.each_pair do |attr, param|
313
+ value = self.send(attr)
314
+ if value.nil?
315
+ is_nullable = self.class.openapi_nullable.include?(attr)
316
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
317
+ end
318
+
319
+ hash[param] = _to_hash(value)
320
+ end
321
+ hash
322
+ end
323
+
324
+ end
325
+
326
+ end
@@ -0,0 +1,300 @@
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 AuditLogsUserAPIKeyCreatedV1 < ApiModelBase
18
+ # The type of log entry that this is
19
+ attr_accessor :action
20
+
21
+ attr_accessor :actor
22
+
23
+ attr_accessor :context
24
+
25
+ # When the entry occurred
26
+ attr_accessor :occurred_at
27
+
28
+ # The custom field that was created
29
+ attr_accessor :targets
30
+
31
+ # Which version the event is
32
+ attr_accessor :version
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'action' => :'action',
38
+ :'actor' => :'actor',
39
+ :'context' => :'context',
40
+ :'occurred_at' => :'occurred_at',
41
+ :'targets' => :'targets',
42
+ :'version' => :'version'
43
+ }
44
+ end
45
+
46
+ # Returns attribute mapping this model knows about
47
+ def self.acceptable_attribute_map
48
+ attribute_map
49
+ end
50
+
51
+ # Returns all the JSON keys this model knows about
52
+ def self.acceptable_attributes
53
+ acceptable_attribute_map.values
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.openapi_types
58
+ {
59
+ :'action' => :'String',
60
+ :'actor' => :'AuditLogActorV2',
61
+ :'context' => :'AuditLogEntryContextV2',
62
+ :'occurred_at' => :'Time',
63
+ :'targets' => :'Array<AuditLogTargetV2>',
64
+ :'version' => :'Integer'
65
+ }
66
+ end
67
+
68
+ # List of attributes with nullable: true
69
+ def self.openapi_nullable
70
+ Set.new([
71
+ ])
72
+ end
73
+
74
+ # Initializes the object
75
+ # @param [Hash] attributes Model attributes in the form of hash
76
+ def initialize(attributes = {})
77
+ if (!attributes.is_a?(Hash))
78
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogsUserAPIKeyCreatedV1` initialize method"
79
+ end
80
+
81
+ # check to see if the attribute exists and convert string to symbol for hash key
82
+ acceptable_attribute_map = self.class.acceptable_attribute_map
83
+ attributes = attributes.each_with_object({}) { |(k, v), h|
84
+ if (!acceptable_attribute_map.key?(k.to_sym))
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogsUserAPIKeyCreatedV1`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
86
+ end
87
+ h[k.to_sym] = v
88
+ }
89
+
90
+ if attributes.key?(:'action')
91
+ self.action = attributes[:'action']
92
+ else
93
+ self.action = nil
94
+ end
95
+
96
+ if attributes.key?(:'actor')
97
+ self.actor = attributes[:'actor']
98
+ else
99
+ self.actor = nil
100
+ end
101
+
102
+ if attributes.key?(:'context')
103
+ self.context = attributes[:'context']
104
+ else
105
+ self.context = nil
106
+ end
107
+
108
+ if attributes.key?(:'occurred_at')
109
+ self.occurred_at = attributes[:'occurred_at']
110
+ else
111
+ self.occurred_at = nil
112
+ end
113
+
114
+ if attributes.key?(:'targets')
115
+ if (value = attributes[:'targets']).is_a?(Array)
116
+ self.targets = value
117
+ end
118
+ else
119
+ self.targets = nil
120
+ end
121
+
122
+ if attributes.key?(:'version')
123
+ self.version = attributes[:'version']
124
+ else
125
+ self.version = nil
126
+ end
127
+ end
128
+
129
+ # Show invalid properties with the reasons. Usually used together with valid?
130
+ # @return Array for valid properties with the reasons
131
+ def list_invalid_properties
132
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
133
+ invalid_properties = Array.new
134
+ if @action.nil?
135
+ invalid_properties.push('invalid value for "action", action cannot be nil.')
136
+ end
137
+
138
+ if @actor.nil?
139
+ invalid_properties.push('invalid value for "actor", actor cannot be nil.')
140
+ end
141
+
142
+ if @context.nil?
143
+ invalid_properties.push('invalid value for "context", context cannot be nil.')
144
+ end
145
+
146
+ if @occurred_at.nil?
147
+ invalid_properties.push('invalid value for "occurred_at", occurred_at cannot be nil.')
148
+ end
149
+
150
+ if @targets.nil?
151
+ invalid_properties.push('invalid value for "targets", targets cannot be nil.')
152
+ end
153
+
154
+ if @version.nil?
155
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
156
+ end
157
+
158
+ invalid_properties
159
+ end
160
+
161
+ # Check to see if the all the properties in the model are valid
162
+ # @return true if the model is valid
163
+ def valid?
164
+ warn '[DEPRECATED] the `valid?` method is obsolete'
165
+ return false if @action.nil?
166
+ return false if @actor.nil?
167
+ return false if @context.nil?
168
+ return false if @occurred_at.nil?
169
+ return false if @targets.nil?
170
+ return false if @version.nil?
171
+ true
172
+ end
173
+
174
+ # Custom attribute writer method with validation
175
+ # @param [Object] action Value to be assigned
176
+ def action=(action)
177
+ if action.nil?
178
+ fail ArgumentError, 'action cannot be nil'
179
+ end
180
+
181
+ @action = action
182
+ end
183
+
184
+ # Custom attribute writer method with validation
185
+ # @param [Object] actor Value to be assigned
186
+ def actor=(actor)
187
+ if actor.nil?
188
+ fail ArgumentError, 'actor cannot be nil'
189
+ end
190
+
191
+ @actor = actor
192
+ end
193
+
194
+ # Custom attribute writer method with validation
195
+ # @param [Object] context Value to be assigned
196
+ def context=(context)
197
+ if context.nil?
198
+ fail ArgumentError, 'context cannot be nil'
199
+ end
200
+
201
+ @context = context
202
+ end
203
+
204
+ # Custom attribute writer method with validation
205
+ # @param [Object] occurred_at Value to be assigned
206
+ def occurred_at=(occurred_at)
207
+ if occurred_at.nil?
208
+ fail ArgumentError, 'occurred_at cannot be nil'
209
+ end
210
+
211
+ @occurred_at = occurred_at
212
+ end
213
+
214
+ # Custom attribute writer method with validation
215
+ # @param [Object] targets Value to be assigned
216
+ def targets=(targets)
217
+ if targets.nil?
218
+ fail ArgumentError, 'targets cannot be nil'
219
+ end
220
+
221
+ @targets = targets
222
+ end
223
+
224
+ # Custom attribute writer method with validation
225
+ # @param [Object] version Value to be assigned
226
+ def version=(version)
227
+ if version.nil?
228
+ fail ArgumentError, 'version cannot be nil'
229
+ end
230
+
231
+ @version = version
232
+ end
233
+
234
+ # Checks equality by comparing each attribute.
235
+ # @param [Object] Object to be compared
236
+ def ==(o)
237
+ return true if self.equal?(o)
238
+ self.class == o.class &&
239
+ action == o.action &&
240
+ actor == o.actor &&
241
+ context == o.context &&
242
+ occurred_at == o.occurred_at &&
243
+ targets == o.targets &&
244
+ version == o.version
245
+ end
246
+
247
+ # @see the `==` method
248
+ # @param [Object] Object to be compared
249
+ def eql?(o)
250
+ self == o
251
+ end
252
+
253
+ # Calculates hash code according to all attributes.
254
+ # @return [Integer] Hash code
255
+ def hash
256
+ [action, actor, context, occurred_at, targets, version].hash
257
+ end
258
+
259
+ # Builds the object from hash
260
+ # @param [Hash] attributes Model attributes in the form of hash
261
+ # @return [Object] Returns the model itself
262
+ def self.build_from_hash(attributes)
263
+ return nil unless attributes.is_a?(Hash)
264
+ attributes = attributes.transform_keys(&:to_sym)
265
+ transformed_hash = {}
266
+ openapi_types.each_pair do |key, type|
267
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
268
+ transformed_hash["#{key}"] = nil
269
+ elsif type =~ /\AArray<(.*)>/i
270
+ # check to ensure the input is an array given that the attribute
271
+ # is documented as an array but the input is not
272
+ if attributes[attribute_map[key]].is_a?(Array)
273
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
274
+ end
275
+ elsif !attributes[attribute_map[key]].nil?
276
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
277
+ end
278
+ end
279
+ new(transformed_hash)
280
+ end
281
+
282
+ # Returns the object in the form of hash
283
+ # @return [Hash] Returns the object in the form of hash
284
+ def to_hash
285
+ hash = {}
286
+ self.class.attribute_map.each_pair do |attr, param|
287
+ value = self.send(attr)
288
+ if value.nil?
289
+ is_nullable = self.class.openapi_nullable.include?(attr)
290
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
291
+ end
292
+
293
+ hash[param] = _to_hash(value)
294
+ end
295
+ hash
296
+ end
297
+
298
+ end
299
+
300
+ end
@@ -0,0 +1,300 @@
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 AuditLogsUserAPIKeyDeletedV1 < ApiModelBase
18
+ # The type of log entry that this is
19
+ attr_accessor :action
20
+
21
+ attr_accessor :actor
22
+
23
+ attr_accessor :context
24
+
25
+ # When the entry occurred
26
+ attr_accessor :occurred_at
27
+
28
+ # The custom field that was created
29
+ attr_accessor :targets
30
+
31
+ # Which version the event is
32
+ attr_accessor :version
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'action' => :'action',
38
+ :'actor' => :'actor',
39
+ :'context' => :'context',
40
+ :'occurred_at' => :'occurred_at',
41
+ :'targets' => :'targets',
42
+ :'version' => :'version'
43
+ }
44
+ end
45
+
46
+ # Returns attribute mapping this model knows about
47
+ def self.acceptable_attribute_map
48
+ attribute_map
49
+ end
50
+
51
+ # Returns all the JSON keys this model knows about
52
+ def self.acceptable_attributes
53
+ acceptable_attribute_map.values
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.openapi_types
58
+ {
59
+ :'action' => :'String',
60
+ :'actor' => :'AuditLogActorV2',
61
+ :'context' => :'AuditLogEntryContextV2',
62
+ :'occurred_at' => :'Time',
63
+ :'targets' => :'Array<AuditLogTargetV2>',
64
+ :'version' => :'Integer'
65
+ }
66
+ end
67
+
68
+ # List of attributes with nullable: true
69
+ def self.openapi_nullable
70
+ Set.new([
71
+ ])
72
+ end
73
+
74
+ # Initializes the object
75
+ # @param [Hash] attributes Model attributes in the form of hash
76
+ def initialize(attributes = {})
77
+ if (!attributes.is_a?(Hash))
78
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogsUserAPIKeyDeletedV1` initialize method"
79
+ end
80
+
81
+ # check to see if the attribute exists and convert string to symbol for hash key
82
+ acceptable_attribute_map = self.class.acceptable_attribute_map
83
+ attributes = attributes.each_with_object({}) { |(k, v), h|
84
+ if (!acceptable_attribute_map.key?(k.to_sym))
85
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogsUserAPIKeyDeletedV1`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
86
+ end
87
+ h[k.to_sym] = v
88
+ }
89
+
90
+ if attributes.key?(:'action')
91
+ self.action = attributes[:'action']
92
+ else
93
+ self.action = nil
94
+ end
95
+
96
+ if attributes.key?(:'actor')
97
+ self.actor = attributes[:'actor']
98
+ else
99
+ self.actor = nil
100
+ end
101
+
102
+ if attributes.key?(:'context')
103
+ self.context = attributes[:'context']
104
+ else
105
+ self.context = nil
106
+ end
107
+
108
+ if attributes.key?(:'occurred_at')
109
+ self.occurred_at = attributes[:'occurred_at']
110
+ else
111
+ self.occurred_at = nil
112
+ end
113
+
114
+ if attributes.key?(:'targets')
115
+ if (value = attributes[:'targets']).is_a?(Array)
116
+ self.targets = value
117
+ end
118
+ else
119
+ self.targets = nil
120
+ end
121
+
122
+ if attributes.key?(:'version')
123
+ self.version = attributes[:'version']
124
+ else
125
+ self.version = nil
126
+ end
127
+ end
128
+
129
+ # Show invalid properties with the reasons. Usually used together with valid?
130
+ # @return Array for valid properties with the reasons
131
+ def list_invalid_properties
132
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
133
+ invalid_properties = Array.new
134
+ if @action.nil?
135
+ invalid_properties.push('invalid value for "action", action cannot be nil.')
136
+ end
137
+
138
+ if @actor.nil?
139
+ invalid_properties.push('invalid value for "actor", actor cannot be nil.')
140
+ end
141
+
142
+ if @context.nil?
143
+ invalid_properties.push('invalid value for "context", context cannot be nil.')
144
+ end
145
+
146
+ if @occurred_at.nil?
147
+ invalid_properties.push('invalid value for "occurred_at", occurred_at cannot be nil.')
148
+ end
149
+
150
+ if @targets.nil?
151
+ invalid_properties.push('invalid value for "targets", targets cannot be nil.')
152
+ end
153
+
154
+ if @version.nil?
155
+ invalid_properties.push('invalid value for "version", version cannot be nil.')
156
+ end
157
+
158
+ invalid_properties
159
+ end
160
+
161
+ # Check to see if the all the properties in the model are valid
162
+ # @return true if the model is valid
163
+ def valid?
164
+ warn '[DEPRECATED] the `valid?` method is obsolete'
165
+ return false if @action.nil?
166
+ return false if @actor.nil?
167
+ return false if @context.nil?
168
+ return false if @occurred_at.nil?
169
+ return false if @targets.nil?
170
+ return false if @version.nil?
171
+ true
172
+ end
173
+
174
+ # Custom attribute writer method with validation
175
+ # @param [Object] action Value to be assigned
176
+ def action=(action)
177
+ if action.nil?
178
+ fail ArgumentError, 'action cannot be nil'
179
+ end
180
+
181
+ @action = action
182
+ end
183
+
184
+ # Custom attribute writer method with validation
185
+ # @param [Object] actor Value to be assigned
186
+ def actor=(actor)
187
+ if actor.nil?
188
+ fail ArgumentError, 'actor cannot be nil'
189
+ end
190
+
191
+ @actor = actor
192
+ end
193
+
194
+ # Custom attribute writer method with validation
195
+ # @param [Object] context Value to be assigned
196
+ def context=(context)
197
+ if context.nil?
198
+ fail ArgumentError, 'context cannot be nil'
199
+ end
200
+
201
+ @context = context
202
+ end
203
+
204
+ # Custom attribute writer method with validation
205
+ # @param [Object] occurred_at Value to be assigned
206
+ def occurred_at=(occurred_at)
207
+ if occurred_at.nil?
208
+ fail ArgumentError, 'occurred_at cannot be nil'
209
+ end
210
+
211
+ @occurred_at = occurred_at
212
+ end
213
+
214
+ # Custom attribute writer method with validation
215
+ # @param [Object] targets Value to be assigned
216
+ def targets=(targets)
217
+ if targets.nil?
218
+ fail ArgumentError, 'targets cannot be nil'
219
+ end
220
+
221
+ @targets = targets
222
+ end
223
+
224
+ # Custom attribute writer method with validation
225
+ # @param [Object] version Value to be assigned
226
+ def version=(version)
227
+ if version.nil?
228
+ fail ArgumentError, 'version cannot be nil'
229
+ end
230
+
231
+ @version = version
232
+ end
233
+
234
+ # Checks equality by comparing each attribute.
235
+ # @param [Object] Object to be compared
236
+ def ==(o)
237
+ return true if self.equal?(o)
238
+ self.class == o.class &&
239
+ action == o.action &&
240
+ actor == o.actor &&
241
+ context == o.context &&
242
+ occurred_at == o.occurred_at &&
243
+ targets == o.targets &&
244
+ version == o.version
245
+ end
246
+
247
+ # @see the `==` method
248
+ # @param [Object] Object to be compared
249
+ def eql?(o)
250
+ self == o
251
+ end
252
+
253
+ # Calculates hash code according to all attributes.
254
+ # @return [Integer] Hash code
255
+ def hash
256
+ [action, actor, context, occurred_at, targets, version].hash
257
+ end
258
+
259
+ # Builds the object from hash
260
+ # @param [Hash] attributes Model attributes in the form of hash
261
+ # @return [Object] Returns the model itself
262
+ def self.build_from_hash(attributes)
263
+ return nil unless attributes.is_a?(Hash)
264
+ attributes = attributes.transform_keys(&:to_sym)
265
+ transformed_hash = {}
266
+ openapi_types.each_pair do |key, type|
267
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
268
+ transformed_hash["#{key}"] = nil
269
+ elsif type =~ /\AArray<(.*)>/i
270
+ # check to ensure the input is an array given that the attribute
271
+ # is documented as an array but the input is not
272
+ if attributes[attribute_map[key]].is_a?(Array)
273
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
274
+ end
275
+ elsif !attributes[attribute_map[key]].nil?
276
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
277
+ end
278
+ end
279
+ new(transformed_hash)
280
+ end
281
+
282
+ # Returns the object in the form of hash
283
+ # @return [Hash] Returns the object in the form of hash
284
+ def to_hash
285
+ hash = {}
286
+ self.class.attribute_map.each_pair do |attr, param|
287
+ value = self.send(attr)
288
+ if value.nil?
289
+ is_nullable = self.class.openapi_nullable.include?(attr)
290
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
291
+ end
292
+
293
+ hash[param] = _to_hash(value)
294
+ end
295
+ hash
296
+ end
297
+
298
+ end
299
+
300
+ end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IncidentIo
17
- # A single shift on a schedule, representing who is on-call between a start and end time. When present, `rotation_id` and `layer_id` tell you which rotation and which layer within that rotation the entry belongs to. A schedule may have multiple rotations (for example, a primary and a secondary rotation) and each rotation can be made up of several layers — entries are returned for every rotation and layer on the schedule. Entries come from two places: they are either generated from a schedule's rotation configuration (the regular pattern of who is on-call) or created by an override (a one-off change that replaces the normal rotation for a period of time). When you call the List schedule entries endpoint we return both kinds separately, along with the merged `final` schedule that reflects what will actually happen. `entry_id` is only populated for entries that correspond to a stored record. Scheduled entries are projections computed from the rotation rules on the fly and don't have a persisted ID, so `entry_id` will be absent for those. Use `fingerprint` if you need a stable identifier to deduplicate or diff a shift across requests.
17
+ # A single shift on a schedule, representing who is on-call between a start and end time. When present, `rotation_id` tells you which rotation the entry belongs to. A schedule may have multiple rotations (for example, a primary and a secondary rotation) and each rotation can be made up of several layers — entries are returned for every rotation and layer on the schedule. Entries come from two places: they are either generated from a schedule's rotation configuration (the regular pattern of who is on-call) or created by an override (a one-off change that replaces the normal rotation for a period of time). When you call the List schedule entries endpoint we return both kinds separately, along with the merged `final` schedule that reflects what will actually happen. `entry_id` is only populated for entries that correspond to a stored record. Scheduled entries are projections computed from the rotation rules on the fly and don't have a persisted ID, so `entry_id` will be absent for those. Use `fingerprint` if you need a stable identifier to deduplicate or diff a shift across requests.
18
18
  class ScheduleEntryV2 < ApiModelBase
19
19
  attr_accessor :end_at
20
20
 
@@ -24,9 +24,6 @@ module IncidentIo
24
24
  # A unique identifier for this entry, used to determine a unique shift
25
25
  attr_accessor :fingerprint
26
26
 
27
- # If present, the layer this entry applies to on the rotation
28
- attr_accessor :layer_id
29
-
30
27
  # If present, the rotation this entry applies to on the schedule
31
28
  attr_accessor :rotation_id
32
29
 
@@ -40,7 +37,6 @@ module IncidentIo
40
37
  :'end_at' => :'end_at',
41
38
  :'entry_id' => :'entry_id',
42
39
  :'fingerprint' => :'fingerprint',
43
- :'layer_id' => :'layer_id',
44
40
  :'rotation_id' => :'rotation_id',
45
41
  :'start_at' => :'start_at',
46
42
  :'user' => :'user'
@@ -63,7 +59,6 @@ module IncidentIo
63
59
  :'end_at' => :'Time',
64
60
  :'entry_id' => :'String',
65
61
  :'fingerprint' => :'String',
66
- :'layer_id' => :'String',
67
62
  :'rotation_id' => :'String',
68
63
  :'start_at' => :'Time',
69
64
  :'user' => :'UserV2'
@@ -106,10 +101,6 @@ module IncidentIo
106
101
  self.fingerprint = attributes[:'fingerprint']
107
102
  end
108
103
 
109
- if attributes.key?(:'layer_id')
110
- self.layer_id = attributes[:'layer_id']
111
- end
112
-
113
104
  if attributes.key?(:'rotation_id')
114
105
  self.rotation_id = attributes[:'rotation_id']
115
106
  end
@@ -178,7 +169,6 @@ module IncidentIo
178
169
  end_at == o.end_at &&
179
170
  entry_id == o.entry_id &&
180
171
  fingerprint == o.fingerprint &&
181
- layer_id == o.layer_id &&
182
172
  rotation_id == o.rotation_id &&
183
173
  start_at == o.start_at &&
184
174
  user == o.user
@@ -193,7 +183,7 @@ module IncidentIo
193
183
  # Calculates hash code according to all attributes.
194
184
  # @return [Integer] Hash code
195
185
  def hash
196
- [end_at, entry_id, fingerprint, layer_id, rotation_id, start_at, user].hash
186
+ [end_at, entry_id, fingerprint, rotation_id, start_at, user].hash
197
187
  end
198
188
 
199
189
  # Builds the object from hash
@@ -4,5 +4,5 @@ module IncidentIo
4
4
  # The release workflow sets this before building, so it tracks whatever we
5
5
  # last published. Listed in .openapi-generator-ignore so regeneration can't
6
6
  # reset it.
7
- VERSION = "1.2.0"
7
+ VERSION = "2.0.0"
8
8
  end
data/lib/incident_io.rb CHANGED
@@ -374,6 +374,7 @@ IncidentIo.autoload :AuditLogsOnCallNotificationPauseCreatedV1, 'incident_io/mod
374
374
  IncidentIo.autoload :AuditLogsOnCallNotificationPauseCreatedV2, 'incident_io/models/audit_logs_on_call_notification_pause_created_v2'
375
375
  IncidentIo.autoload :AuditLogsOnCallNotificationPauseDeletedV1, 'incident_io/models/audit_logs_on_call_notification_pause_deleted_v1'
376
376
  IncidentIo.autoload :AuditLogsOnCallNotificationPauseDeletedV2, 'incident_io/models/audit_logs_on_call_notification_pause_deleted_v2'
377
+ IncidentIo.autoload :AuditLogsOnCallNotificationPauseResumedV1, 'incident_io/models/audit_logs_on_call_notification_pause_resumed_v1'
377
378
  IncidentIo.autoload :AuditLogsOnCallNotificationPauseUpdatedV1, 'incident_io/models/audit_logs_on_call_notification_pause_updated_v1'
378
379
  IncidentIo.autoload :AuditLogsOnCallNotificationPauseUpdatedV2, 'incident_io/models/audit_logs_on_call_notification_pause_updated_v2'
379
380
  IncidentIo.autoload :AuditLogsOnCallUpsellRequestedV1, 'incident_io/models/audit_logs_on_call_upsell_requested_v1'
@@ -473,6 +474,8 @@ IncidentIo.autoload :AuditLogsTimelineItemDeletedV1, 'incident_io/models/audit_l
473
474
  IncidentIo.autoload :AuditLogsTwilioConnectionCreatedV1, 'incident_io/models/audit_logs_twilio_connection_created_v1'
474
475
  IncidentIo.autoload :AuditLogsTwilioConnectionDeletedV1, 'incident_io/models/audit_logs_twilio_connection_deleted_v1'
475
476
  IncidentIo.autoload :AuditLogsTwilioConnectionUpdatedV1, 'incident_io/models/audit_logs_twilio_connection_updated_v1'
477
+ IncidentIo.autoload :AuditLogsUserAPIKeyCreatedV1, 'incident_io/models/audit_logs_user_api_key_created_v1'
478
+ IncidentIo.autoload :AuditLogsUserAPIKeyDeletedV1, 'incident_io/models/audit_logs_user_api_key_deleted_v1'
476
479
  IncidentIo.autoload :AuditLogsUserCreatedV1, 'incident_io/models/audit_logs_user_created_v1'
477
480
  IncidentIo.autoload :AuditLogsUserDeactivatedV1, 'incident_io/models/audit_logs_user_deactivated_v1'
478
481
  IncidentIo.autoload :AuditLogsUserLoggedInV1, 'incident_io/models/audit_logs_user_logged_in_v1'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incident_io_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - incident.io
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-28 00:00:00.000000000 Z
11
+ date: 2026-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -495,6 +495,7 @@ files:
495
495
  - lib/incident_io/models/audit_logs_on_call_notification_pause_created_v2.rb
496
496
  - lib/incident_io/models/audit_logs_on_call_notification_pause_deleted_v1.rb
497
497
  - lib/incident_io/models/audit_logs_on_call_notification_pause_deleted_v2.rb
498
+ - lib/incident_io/models/audit_logs_on_call_notification_pause_resumed_v1.rb
498
499
  - lib/incident_io/models/audit_logs_on_call_notification_pause_updated_v1.rb
499
500
  - lib/incident_io/models/audit_logs_on_call_notification_pause_updated_v2.rb
500
501
  - lib/incident_io/models/audit_logs_on_call_upsell_requested_v1.rb
@@ -594,6 +595,8 @@ files:
594
595
  - lib/incident_io/models/audit_logs_twilio_connection_created_v1.rb
595
596
  - lib/incident_io/models/audit_logs_twilio_connection_deleted_v1.rb
596
597
  - lib/incident_io/models/audit_logs_twilio_connection_updated_v1.rb
598
+ - lib/incident_io/models/audit_logs_user_api_key_created_v1.rb
599
+ - lib/incident_io/models/audit_logs_user_api_key_deleted_v1.rb
597
600
  - lib/incident_io/models/audit_logs_user_created_v1.rb
598
601
  - lib/incident_io/models/audit_logs_user_deactivated_v1.rb
599
602
  - lib/incident_io/models/audit_logs_user_logged_in_v1.rb