incident_io_api 1.1.0 → 1.3.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: ea31f8dc1cf3796aff64ae2dcf7e9a73e27bbee1b7b7f02dd0a73ea28ff87b23
4
- data.tar.gz: 482cf4f03b62869da007c5b032d7ea2269da041442ae9420c6776b70b2e83f5d
3
+ metadata.gz: 6bf9f1c5912e372c6d2c203c09ef2e9d21b734512db214f0d7e5a0eb21f176f1
4
+ data.tar.gz: 77f62d6fed7b3a19a6e60ade9be517c565cdf6d7a70cdb3ecb436329516066ea
5
5
  SHA512:
6
- metadata.gz: 4288ca021f0b30df37a3da3d00b420cf2b555793c212c925e9e3534c308c87c40362ced0088beb2b10c4c675f26b5515d3bb0ee400a8c84bfa940f0fc8e8f67a
7
- data.tar.gz: adebbf80edcaf5ef1f3252edd7723bdc625af227120fe8b38cf74c99af9466ccdd1e3425759a2b02de9abdaf8a531fb5218fc9305e364e4ee7b11c0911ba5176
6
+ metadata.gz: '02308c9db7f0125ab0a839de724fc37551230154b265257537a1041cb311ac315149858317b78d2dc568e4ba9c7f3fdc492577ef7da649c85298cc5c92482a61'
7
+ data.tar.gz: f56c5bf6541e09cc54f9acf7199d57eeed10103efb7e637733a3839a063d665830d76df6541fa092deea8f148245a2248c2dc714f503d13dd111b5790b39573e
@@ -679,6 +679,69 @@ module IncidentIo
679
679
  return data, status_code, headers
680
680
  end
681
681
 
682
+ # ShowStatusPage Status Pages V2
683
+ # Show a single status page. This endpoint requires a valid API key but no specific scopes. Use ShowStatusPageStructure to see the components and groups configured on the page.
684
+ # @param status_page_id [String] ID of the status page. You can find this by calling the ListStatusPages endpoint.
685
+ # @param [Hash] opts the optional parameters
686
+ # @return [StatusPagesShowStatusPageResultV2]
687
+ def status_pages_v2_show_status_page(status_page_id, opts = {})
688
+ data, _status_code, _headers = status_pages_v2_show_status_page_with_http_info(status_page_id, opts)
689
+ data
690
+ end
691
+
692
+ # ShowStatusPage Status Pages V2
693
+ # Show a single status page. This endpoint requires a valid API key but no specific scopes. Use ShowStatusPageStructure to see the components and groups configured on the page.
694
+ # @param status_page_id [String] ID of the status page. You can find this by calling the ListStatusPages endpoint.
695
+ # @param [Hash] opts the optional parameters
696
+ # @return [Array<(StatusPagesShowStatusPageResultV2, Integer, Hash)>] StatusPagesShowStatusPageResultV2 data, response status code and response headers
697
+ def status_pages_v2_show_status_page_with_http_info(status_page_id, opts = {})
698
+ if @api_client.config.debugging
699
+ @api_client.config.logger.debug 'Calling API: StatusPagesV2Api.status_pages_v2_show_status_page ...'
700
+ end
701
+ # verify the required parameter 'status_page_id' is set
702
+ if @api_client.config.client_side_validation && status_page_id.nil?
703
+ fail ArgumentError, "Missing the required parameter 'status_page_id' when calling StatusPagesV2Api.status_pages_v2_show_status_page"
704
+ end
705
+ # resource path
706
+ local_var_path = '/v2/status_pages/{status_page_id}'.sub('{status_page_id}', CGI.escape(status_page_id.to_s))
707
+
708
+ # query parameters
709
+ query_params = opts[:query_params] || {}
710
+
711
+ # header parameters
712
+ header_params = opts[:header_params] || {}
713
+ # HTTP header 'Accept' (if needed)
714
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
715
+
716
+ # form parameters
717
+ form_params = opts[:form_params] || {}
718
+
719
+ # http body (model)
720
+ post_body = opts[:debug_body]
721
+
722
+ # return_type
723
+ return_type = opts[:debug_return_type] || 'StatusPagesShowStatusPageResultV2'
724
+
725
+ # auth_names
726
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
727
+
728
+ new_options = opts.merge(
729
+ :operation => :"StatusPagesV2Api.status_pages_v2_show_status_page",
730
+ :header_params => header_params,
731
+ :query_params => query_params,
732
+ :form_params => form_params,
733
+ :body => post_body,
734
+ :auth_names => auth_names,
735
+ :return_type => return_type
736
+ )
737
+
738
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
739
+ if @api_client.config.debugging
740
+ @api_client.config.logger.debug "API called: StatusPagesV2Api#status_pages_v2_show_status_page\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
741
+ end
742
+ return data, status_code, headers
743
+ end
744
+
682
745
  # ShowStatusPageComponentAvailability Status Pages V2
683
746
  # Show availability for a status page component over a time window. Pass start_at and end_at as RFC3339 timestamps. The window cannot be longer than 366 days. Availability uses the same rules as the public status page: full and partial outages count as downtime, overlapping impacts are merged, and time before we have data for the component is excluded rather than counted as up. This endpoint requires a valid API key but no specific scopes. Use ListStatusPages and ShowStatusPageStructure to find status page and component IDs.
684
747
  # @param start_at [Time] Start of the availability window
@@ -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,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
@@ -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 StatusPagesShowStatusPageResultV2 < ApiModelBase
18
+ attr_accessor :status_page
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'status_page' => :'status_page'
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
+ :'status_page' => :'StatusPageV2'
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::StatusPagesShowStatusPageResultV2` 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::StatusPagesShowStatusPageResultV2`. 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?(:'status_page')
67
+ self.status_page = attributes[:'status_page']
68
+ else
69
+ self.status_page = 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 @status_page.nil?
79
+ invalid_properties.push('invalid value for "status_page", status_page 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 @status_page.nil?
90
+ true
91
+ end
92
+
93
+ # Custom attribute writer method with validation
94
+ # @param [Object] status_page Value to be assigned
95
+ def status_page=(status_page)
96
+ if status_page.nil?
97
+ fail ArgumentError, 'status_page cannot be nil'
98
+ end
99
+
100
+ @status_page = status_page
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
+ status_page == o.status_page
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
+ [status_page].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
@@ -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.1.0"
7
+ VERSION = "1.3.0"
8
8
  end
data/lib/incident_io.rb CHANGED
@@ -473,6 +473,8 @@ IncidentIo.autoload :AuditLogsTimelineItemDeletedV1, 'incident_io/models/audit_l
473
473
  IncidentIo.autoload :AuditLogsTwilioConnectionCreatedV1, 'incident_io/models/audit_logs_twilio_connection_created_v1'
474
474
  IncidentIo.autoload :AuditLogsTwilioConnectionDeletedV1, 'incident_io/models/audit_logs_twilio_connection_deleted_v1'
475
475
  IncidentIo.autoload :AuditLogsTwilioConnectionUpdatedV1, 'incident_io/models/audit_logs_twilio_connection_updated_v1'
476
+ IncidentIo.autoload :AuditLogsUserAPIKeyCreatedV1, 'incident_io/models/audit_logs_user_api_key_created_v1'
477
+ IncidentIo.autoload :AuditLogsUserAPIKeyDeletedV1, 'incident_io/models/audit_logs_user_api_key_deleted_v1'
476
478
  IncidentIo.autoload :AuditLogsUserCreatedV1, 'incident_io/models/audit_logs_user_created_v1'
477
479
  IncidentIo.autoload :AuditLogsUserDeactivatedV1, 'incident_io/models/audit_logs_user_deactivated_v1'
478
480
  IncidentIo.autoload :AuditLogsUserLoggedInV1, 'incident_io/models/audit_logs_user_logged_in_v1'
@@ -1092,6 +1094,7 @@ IncidentIo.autoload :StatusPagesListStatusPagesResultV2, 'incident_io/models/sta
1092
1094
  IncidentIo.autoload :StatusPagesShowStatusPageComponentAvailabilityResultV2, 'incident_io/models/status_pages_show_status_page_component_availability_result_v2'
1093
1095
  IncidentIo.autoload :StatusPagesShowStatusPageIncidentResultV2, 'incident_io/models/status_pages_show_status_page_incident_result_v2'
1094
1096
  IncidentIo.autoload :StatusPagesShowStatusPageMaintenanceResultV2, 'incident_io/models/status_pages_show_status_page_maintenance_result_v2'
1097
+ IncidentIo.autoload :StatusPagesShowStatusPageResultV2, 'incident_io/models/status_pages_show_status_page_result_v2'
1095
1098
  IncidentIo.autoload :StatusPagesShowStatusPageStructureResultV2, 'incident_io/models/status_pages_show_status_page_structure_result_v2'
1096
1099
  IncidentIo.autoload :StatusPagesUpdateStatusPageIncidentPayloadV2, 'incident_io/models/status_pages_update_status_page_incident_payload_v2'
1097
1100
  IncidentIo.autoload :StatusPagesUpdateStatusPageIncidentResultV2, 'incident_io/models/status_pages_update_status_page_incident_result_v2'
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.1.0
4
+ version: 1.3.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
@@ -594,6 +594,8 @@ files:
594
594
  - lib/incident_io/models/audit_logs_twilio_connection_created_v1.rb
595
595
  - lib/incident_io/models/audit_logs_twilio_connection_deleted_v1.rb
596
596
  - lib/incident_io/models/audit_logs_twilio_connection_updated_v1.rb
597
+ - lib/incident_io/models/audit_logs_user_api_key_created_v1.rb
598
+ - lib/incident_io/models/audit_logs_user_api_key_deleted_v1.rb
597
599
  - lib/incident_io/models/audit_logs_user_created_v1.rb
598
600
  - lib/incident_io/models/audit_logs_user_deactivated_v1.rb
599
601
  - lib/incident_io/models/audit_logs_user_logged_in_v1.rb
@@ -1213,6 +1215,7 @@ files:
1213
1215
  - lib/incident_io/models/status_pages_show_status_page_component_availability_result_v2.rb
1214
1216
  - lib/incident_io/models/status_pages_show_status_page_incident_result_v2.rb
1215
1217
  - lib/incident_io/models/status_pages_show_status_page_maintenance_result_v2.rb
1218
+ - lib/incident_io/models/status_pages_show_status_page_result_v2.rb
1216
1219
  - lib/incident_io/models/status_pages_show_status_page_structure_result_v2.rb
1217
1220
  - lib/incident_io/models/status_pages_update_status_page_incident_payload_v2.rb
1218
1221
  - lib/incident_io/models/status_pages_update_status_page_incident_result_v2.rb