incident_io_api 2.43.0 → 2.45.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 +4 -4
- data/lib/incident_io/api/status_pages_v2_api.rb +69 -0
- data/lib/incident_io/models/audit_log_telemetry_data_source_access_inheritance_changed_metadata_v2.rb +165 -0
- data/lib/incident_io/models/audit_logs_telemetry_data_source_access_inheritance_changed_v1.rb +326 -0
- data/lib/incident_io/models/status_page_customer_page_component_v2.rb +256 -0
- data/lib/incident_io/models/status_page_customer_page_group_v2.rb +258 -0
- data/lib/incident_io/models/status_page_customer_page_item_v2.rb +156 -0
- data/lib/incident_io/models/status_page_customer_page_v2.rb +336 -0
- data/lib/incident_io/models/status_pages_show_status_page_customer_page_result_v2.rb +164 -0
- data/lib/incident_io/version.rb +1 -1
- data/lib/incident_io.rb +7 -0
- metadata +9 -2
|
@@ -0,0 +1,336 @@
|
|
|
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
|
+
# One customer's page on a customer status page: its status, components and incidents.
|
|
18
|
+
class StatusPageCustomerPageV2 < ApiModelBase
|
|
19
|
+
# Components and groups shown on this page, in display order
|
|
20
|
+
attr_accessor :components
|
|
21
|
+
|
|
22
|
+
# The external ID of the catalog entry that defines this customer's page
|
|
23
|
+
attr_accessor :customer_id
|
|
24
|
+
|
|
25
|
+
# Maintenance windows in progress or scheduled for this customer
|
|
26
|
+
attr_accessor :maintenances
|
|
27
|
+
|
|
28
|
+
# The name of this customer's page
|
|
29
|
+
attr_accessor :name
|
|
30
|
+
|
|
31
|
+
# Incidents currently affecting this customer
|
|
32
|
+
attr_accessor :ongoing_incidents
|
|
33
|
+
|
|
34
|
+
# Incidents from this page's history window, including ongoing incidents
|
|
35
|
+
attr_accessor :recent_incidents
|
|
36
|
+
|
|
37
|
+
# The worst current status of any component on this page, or operational when nothing is affected Known values: `operational`, `under_maintenance`, `degraded_performance`, `partial_outage`, `full_outage`
|
|
38
|
+
attr_accessor :status
|
|
39
|
+
|
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
41
|
+
def self.attribute_map
|
|
42
|
+
{
|
|
43
|
+
:'components' => :'components',
|
|
44
|
+
:'customer_id' => :'customer_id',
|
|
45
|
+
:'maintenances' => :'maintenances',
|
|
46
|
+
:'name' => :'name',
|
|
47
|
+
:'ongoing_incidents' => :'ongoing_incidents',
|
|
48
|
+
:'recent_incidents' => :'recent_incidents',
|
|
49
|
+
:'status' => :'status'
|
|
50
|
+
}
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns attribute mapping this model knows about
|
|
54
|
+
def self.acceptable_attribute_map
|
|
55
|
+
attribute_map
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns all the JSON keys this model knows about
|
|
59
|
+
def self.acceptable_attributes
|
|
60
|
+
acceptable_attribute_map.values
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Attribute type mapping.
|
|
64
|
+
def self.openapi_types
|
|
65
|
+
{
|
|
66
|
+
:'components' => :'Array<StatusPageCustomerPageItemV2>',
|
|
67
|
+
:'customer_id' => :'String',
|
|
68
|
+
:'maintenances' => :'Array<StatusPageMaintenanceV2>',
|
|
69
|
+
:'name' => :'String',
|
|
70
|
+
:'ongoing_incidents' => :'Array<StatusPageIncidentV2>',
|
|
71
|
+
:'recent_incidents' => :'Array<StatusPageIncidentV2>',
|
|
72
|
+
:'status' => :'String'
|
|
73
|
+
}
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# List of attributes with nullable: true
|
|
77
|
+
def self.openapi_nullable
|
|
78
|
+
Set.new([
|
|
79
|
+
])
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Initializes the object
|
|
83
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
84
|
+
def initialize(attributes = {})
|
|
85
|
+
if (!attributes.is_a?(Hash))
|
|
86
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::StatusPageCustomerPageV2` initialize method"
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
90
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
91
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
92
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
93
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::StatusPageCustomerPageV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
94
|
+
end
|
|
95
|
+
h[k.to_sym] = v
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'components')
|
|
99
|
+
if (value = attributes[:'components']).is_a?(Array)
|
|
100
|
+
self.components = value
|
|
101
|
+
end
|
|
102
|
+
else
|
|
103
|
+
self.components = nil
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'customer_id')
|
|
107
|
+
self.customer_id = attributes[:'customer_id']
|
|
108
|
+
else
|
|
109
|
+
self.customer_id = nil
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'maintenances')
|
|
113
|
+
if (value = attributes[:'maintenances']).is_a?(Array)
|
|
114
|
+
self.maintenances = value
|
|
115
|
+
end
|
|
116
|
+
else
|
|
117
|
+
self.maintenances = nil
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'name')
|
|
121
|
+
self.name = attributes[:'name']
|
|
122
|
+
else
|
|
123
|
+
self.name = nil
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'ongoing_incidents')
|
|
127
|
+
if (value = attributes[:'ongoing_incidents']).is_a?(Array)
|
|
128
|
+
self.ongoing_incidents = value
|
|
129
|
+
end
|
|
130
|
+
else
|
|
131
|
+
self.ongoing_incidents = nil
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'recent_incidents')
|
|
135
|
+
if (value = attributes[:'recent_incidents']).is_a?(Array)
|
|
136
|
+
self.recent_incidents = value
|
|
137
|
+
end
|
|
138
|
+
else
|
|
139
|
+
self.recent_incidents = nil
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'status')
|
|
143
|
+
self.status = attributes[:'status']
|
|
144
|
+
else
|
|
145
|
+
self.status = nil
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
150
|
+
# @return Array for valid properties with the reasons
|
|
151
|
+
def list_invalid_properties
|
|
152
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
153
|
+
invalid_properties = Array.new
|
|
154
|
+
if @components.nil?
|
|
155
|
+
invalid_properties.push('invalid value for "components", components cannot be nil.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if @customer_id.nil?
|
|
159
|
+
invalid_properties.push('invalid value for "customer_id", customer_id cannot be nil.')
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if @maintenances.nil?
|
|
163
|
+
invalid_properties.push('invalid value for "maintenances", maintenances cannot be nil.')
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if @name.nil?
|
|
167
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if @ongoing_incidents.nil?
|
|
171
|
+
invalid_properties.push('invalid value for "ongoing_incidents", ongoing_incidents cannot be nil.')
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if @recent_incidents.nil?
|
|
175
|
+
invalid_properties.push('invalid value for "recent_incidents", recent_incidents cannot be nil.')
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if @status.nil?
|
|
179
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
invalid_properties
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Check to see if the all the properties in the model are valid
|
|
186
|
+
# @return true if the model is valid
|
|
187
|
+
def valid?
|
|
188
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
189
|
+
return false if @components.nil?
|
|
190
|
+
return false if @customer_id.nil?
|
|
191
|
+
return false if @maintenances.nil?
|
|
192
|
+
return false if @name.nil?
|
|
193
|
+
return false if @ongoing_incidents.nil?
|
|
194
|
+
return false if @recent_incidents.nil?
|
|
195
|
+
return false if @status.nil?
|
|
196
|
+
true
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Custom attribute writer method with validation
|
|
200
|
+
# @param [Object] components Value to be assigned
|
|
201
|
+
def components=(components)
|
|
202
|
+
if components.nil?
|
|
203
|
+
fail ArgumentError, 'components cannot be nil'
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
@components = components
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Custom attribute writer method with validation
|
|
210
|
+
# @param [Object] customer_id Value to be assigned
|
|
211
|
+
def customer_id=(customer_id)
|
|
212
|
+
if customer_id.nil?
|
|
213
|
+
fail ArgumentError, 'customer_id cannot be nil'
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
@customer_id = customer_id
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Custom attribute writer method with validation
|
|
220
|
+
# @param [Object] maintenances Value to be assigned
|
|
221
|
+
def maintenances=(maintenances)
|
|
222
|
+
if maintenances.nil?
|
|
223
|
+
fail ArgumentError, 'maintenances cannot be nil'
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
@maintenances = maintenances
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Custom attribute writer method with validation
|
|
230
|
+
# @param [Object] name Value to be assigned
|
|
231
|
+
def name=(name)
|
|
232
|
+
if name.nil?
|
|
233
|
+
fail ArgumentError, 'name cannot be nil'
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
@name = name
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Custom attribute writer method with validation
|
|
240
|
+
# @param [Object] ongoing_incidents Value to be assigned
|
|
241
|
+
def ongoing_incidents=(ongoing_incidents)
|
|
242
|
+
if ongoing_incidents.nil?
|
|
243
|
+
fail ArgumentError, 'ongoing_incidents cannot be nil'
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
@ongoing_incidents = ongoing_incidents
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
# Custom attribute writer method with validation
|
|
250
|
+
# @param [Object] recent_incidents Value to be assigned
|
|
251
|
+
def recent_incidents=(recent_incidents)
|
|
252
|
+
if recent_incidents.nil?
|
|
253
|
+
fail ArgumentError, 'recent_incidents cannot be nil'
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
@recent_incidents = recent_incidents
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Custom attribute writer method with validation
|
|
260
|
+
# @param [Object] status Value to be assigned
|
|
261
|
+
def status=(status)
|
|
262
|
+
if status.nil?
|
|
263
|
+
fail ArgumentError, 'status cannot be nil'
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
@status = status
|
|
267
|
+
end
|
|
268
|
+
|
|
269
|
+
# Checks equality by comparing each attribute.
|
|
270
|
+
# @param [Object] Object to be compared
|
|
271
|
+
def ==(o)
|
|
272
|
+
return true if self.equal?(o)
|
|
273
|
+
self.class == o.class &&
|
|
274
|
+
components == o.components &&
|
|
275
|
+
customer_id == o.customer_id &&
|
|
276
|
+
maintenances == o.maintenances &&
|
|
277
|
+
name == o.name &&
|
|
278
|
+
ongoing_incidents == o.ongoing_incidents &&
|
|
279
|
+
recent_incidents == o.recent_incidents &&
|
|
280
|
+
status == o.status
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# @see the `==` method
|
|
284
|
+
# @param [Object] Object to be compared
|
|
285
|
+
def eql?(o)
|
|
286
|
+
self == o
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# Calculates hash code according to all attributes.
|
|
290
|
+
# @return [Integer] Hash code
|
|
291
|
+
def hash
|
|
292
|
+
[components, customer_id, maintenances, name, ongoing_incidents, recent_incidents, status].hash
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Builds the object from hash
|
|
296
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
297
|
+
# @return [Object] Returns the model itself
|
|
298
|
+
def self.build_from_hash(attributes)
|
|
299
|
+
return nil unless attributes.is_a?(Hash)
|
|
300
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
301
|
+
transformed_hash = {}
|
|
302
|
+
openapi_types.each_pair do |key, type|
|
|
303
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
304
|
+
transformed_hash["#{key}"] = nil
|
|
305
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
306
|
+
# check to ensure the input is an array given that the attribute
|
|
307
|
+
# is documented as an array but the input is not
|
|
308
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
309
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
310
|
+
end
|
|
311
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
312
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
new(transformed_hash)
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Returns the object in the form of hash
|
|
319
|
+
# @return [Hash] Returns the object in the form of hash
|
|
320
|
+
def to_hash
|
|
321
|
+
hash = {}
|
|
322
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
323
|
+
value = self.send(attr)
|
|
324
|
+
if value.nil?
|
|
325
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
326
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
hash[param] = _to_hash(value)
|
|
330
|
+
end
|
|
331
|
+
hash
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
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 StatusPagesShowStatusPageCustomerPageResultV2 < ApiModelBase
|
|
18
|
+
attr_accessor :customer_page
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'customer_page' => :'customer_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
|
+
:'customer_page' => :'StatusPageCustomerPageV2'
|
|
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::StatusPagesShowStatusPageCustomerPageResultV2` 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::StatusPagesShowStatusPageCustomerPageResultV2`. 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?(:'customer_page')
|
|
67
|
+
self.customer_page = attributes[:'customer_page']
|
|
68
|
+
else
|
|
69
|
+
self.customer_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 @customer_page.nil?
|
|
79
|
+
invalid_properties.push('invalid value for "customer_page", customer_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 @customer_page.nil?
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Custom attribute writer method with validation
|
|
94
|
+
# @param [Object] customer_page Value to be assigned
|
|
95
|
+
def customer_page=(customer_page)
|
|
96
|
+
if customer_page.nil?
|
|
97
|
+
fail ArgumentError, 'customer_page cannot be nil'
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
@customer_page = customer_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
|
+
customer_page == o.customer_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
|
+
[customer_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
|
data/lib/incident_io/version.rb
CHANGED
data/lib/incident_io.rb
CHANGED
|
@@ -266,6 +266,7 @@ IncidentIo.autoload :AuditLogReliabilityReviewSpendLimitUpdatedMetadataV2, 'inci
|
|
|
266
266
|
IncidentIo.autoload :AuditLogSCIMGroupSeatMappingChangedMetadataV2, 'incident_io/models/audit_log_scim_group_seat_mapping_changed_metadata_v2'
|
|
267
267
|
IncidentIo.autoload :AuditLogScheduleOverrideMetadataV2, 'incident_io/models/audit_log_schedule_override_metadata_v2'
|
|
268
268
|
IncidentIo.autoload :AuditLogTargetV2, 'incident_io/models/audit_log_target_v2'
|
|
269
|
+
IncidentIo.autoload :AuditLogTelemetryDataSourceAccessInheritanceChangedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_access_inheritance_changed_metadata_v2'
|
|
269
270
|
IncidentIo.autoload :AuditLogTelemetryDataSourceAccessModeChangedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_access_mode_changed_metadata_v2'
|
|
270
271
|
IncidentIo.autoload :AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2, 'incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2'
|
|
271
272
|
IncidentIo.autoload :AuditLogTelemetryDataSourceAccessPolicyChangedMetadataV2V2, 'incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2_v2'
|
|
@@ -690,6 +691,7 @@ IncidentIo.autoload :AuditLogsTeamRoleUpdatedV1, 'incident_io/models/audit_logs_
|
|
|
690
691
|
IncidentIo.autoload :AuditLogsTeamRoleUpdatedV2, 'incident_io/models/audit_logs_team_role_updated_v2'
|
|
691
692
|
IncidentIo.autoload :AuditLogsTeamSettingsUpdatedV1, 'incident_io/models/audit_logs_team_settings_updated_v1'
|
|
692
693
|
IncidentIo.autoload :AuditLogsTeamSettingsUpdatedV2, 'incident_io/models/audit_logs_team_settings_updated_v2'
|
|
694
|
+
IncidentIo.autoload :AuditLogsTelemetryDataSourceAccessInheritanceChangedV1, 'incident_io/models/audit_logs_telemetry_data_source_access_inheritance_changed_v1'
|
|
693
695
|
IncidentIo.autoload :AuditLogsTelemetryDataSourceAccessModeChangedV1, 'incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v1'
|
|
694
696
|
IncidentIo.autoload :AuditLogsTelemetryDataSourceAccessModeChangedV2, 'incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v2'
|
|
695
697
|
IncidentIo.autoload :AuditLogsTelemetryDataSourceAccessPolicyChangedV1, 'incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v1'
|
|
@@ -1363,6 +1365,10 @@ IncidentIo.autoload :StatusPageComponentsListResultV2, 'incident_io/models/statu
|
|
|
1363
1365
|
IncidentIo.autoload :StatusPageComponentsShowResultV2, 'incident_io/models/status_page_components_show_result_v2'
|
|
1364
1366
|
IncidentIo.autoload :StatusPageComponentsUpdatePayloadV2, 'incident_io/models/status_page_components_update_payload_v2'
|
|
1365
1367
|
IncidentIo.autoload :StatusPageComponentsUpdateResultV2, 'incident_io/models/status_page_components_update_result_v2'
|
|
1368
|
+
IncidentIo.autoload :StatusPageCustomerPageComponentV2, 'incident_io/models/status_page_customer_page_component_v2'
|
|
1369
|
+
IncidentIo.autoload :StatusPageCustomerPageGroupV2, 'incident_io/models/status_page_customer_page_group_v2'
|
|
1370
|
+
IncidentIo.autoload :StatusPageCustomerPageItemV2, 'incident_io/models/status_page_customer_page_item_v2'
|
|
1371
|
+
IncidentIo.autoload :StatusPageCustomerPageV2, 'incident_io/models/status_page_customer_page_v2'
|
|
1366
1372
|
IncidentIo.autoload :StatusPageIncidentAffectedComponentV2, 'incident_io/models/status_page_incident_affected_component_v2'
|
|
1367
1373
|
IncidentIo.autoload :StatusPageIncidentComponentImpactV2, 'incident_io/models/status_page_incident_component_impact_v2'
|
|
1368
1374
|
IncidentIo.autoload :StatusPageIncidentUpdateV2, 'incident_io/models/status_page_incident_update_v2'
|
|
@@ -1396,6 +1402,7 @@ IncidentIo.autoload :StatusPagesListStatusPageIncidentsResultV2, 'incident_io/mo
|
|
|
1396
1402
|
IncidentIo.autoload :StatusPagesListStatusPageMaintenancesResultV2, 'incident_io/models/status_pages_list_status_page_maintenances_result_v2'
|
|
1397
1403
|
IncidentIo.autoload :StatusPagesListStatusPagesResultV2, 'incident_io/models/status_pages_list_status_pages_result_v2'
|
|
1398
1404
|
IncidentIo.autoload :StatusPagesShowStatusPageComponentAvailabilityResultV2, 'incident_io/models/status_pages_show_status_page_component_availability_result_v2'
|
|
1405
|
+
IncidentIo.autoload :StatusPagesShowStatusPageCustomerPageResultV2, 'incident_io/models/status_pages_show_status_page_customer_page_result_v2'
|
|
1399
1406
|
IncidentIo.autoload :StatusPagesShowStatusPageIncidentResultV2, 'incident_io/models/status_pages_show_status_page_incident_result_v2'
|
|
1400
1407
|
IncidentIo.autoload :StatusPagesShowStatusPageMaintenanceResultV2, 'incident_io/models/status_pages_show_status_page_maintenance_result_v2'
|
|
1401
1408
|
IncidentIo.autoload :StatusPagesShowStatusPageResultV2, 'incident_io/models/status_pages_show_status_page_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: 2.
|
|
4
|
+
version: 2.45.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-11-
|
|
11
|
+
date: 2026-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -394,6 +394,7 @@ files:
|
|
|
394
394
|
- lib/incident_io/models/audit_log_schedule_override_metadata_v2.rb
|
|
395
395
|
- lib/incident_io/models/audit_log_scim_group_seat_mapping_changed_metadata_v2.rb
|
|
396
396
|
- lib/incident_io/models/audit_log_target_v2.rb
|
|
397
|
+
- lib/incident_io/models/audit_log_telemetry_data_source_access_inheritance_changed_metadata_v2.rb
|
|
397
398
|
- lib/incident_io/models/audit_log_telemetry_data_source_access_mode_changed_metadata_v2.rb
|
|
398
399
|
- lib/incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2.rb
|
|
399
400
|
- lib/incident_io/models/audit_log_telemetry_data_source_access_policy_changed_metadata_v2_v2.rb
|
|
@@ -818,6 +819,7 @@ files:
|
|
|
818
819
|
- lib/incident_io/models/audit_logs_team_role_updated_v2.rb
|
|
819
820
|
- lib/incident_io/models/audit_logs_team_settings_updated_v1.rb
|
|
820
821
|
- lib/incident_io/models/audit_logs_team_settings_updated_v2.rb
|
|
822
|
+
- lib/incident_io/models/audit_logs_telemetry_data_source_access_inheritance_changed_v1.rb
|
|
821
823
|
- lib/incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v1.rb
|
|
822
824
|
- lib/incident_io/models/audit_logs_telemetry_data_source_access_mode_changed_v2.rb
|
|
823
825
|
- lib/incident_io/models/audit_logs_telemetry_data_source_access_policy_changed_v1.rb
|
|
@@ -1491,6 +1493,10 @@ files:
|
|
|
1491
1493
|
- lib/incident_io/models/status_page_components_show_result_v2.rb
|
|
1492
1494
|
- lib/incident_io/models/status_page_components_update_payload_v2.rb
|
|
1493
1495
|
- lib/incident_io/models/status_page_components_update_result_v2.rb
|
|
1496
|
+
- lib/incident_io/models/status_page_customer_page_component_v2.rb
|
|
1497
|
+
- lib/incident_io/models/status_page_customer_page_group_v2.rb
|
|
1498
|
+
- lib/incident_io/models/status_page_customer_page_item_v2.rb
|
|
1499
|
+
- lib/incident_io/models/status_page_customer_page_v2.rb
|
|
1494
1500
|
- lib/incident_io/models/status_page_incident_affected_component_v2.rb
|
|
1495
1501
|
- lib/incident_io/models/status_page_incident_component_impact_v2.rb
|
|
1496
1502
|
- lib/incident_io/models/status_page_incident_update_v2.rb
|
|
@@ -1524,6 +1530,7 @@ files:
|
|
|
1524
1530
|
- lib/incident_io/models/status_pages_list_status_page_maintenances_result_v2.rb
|
|
1525
1531
|
- lib/incident_io/models/status_pages_list_status_pages_result_v2.rb
|
|
1526
1532
|
- lib/incident_io/models/status_pages_show_status_page_component_availability_result_v2.rb
|
|
1533
|
+
- lib/incident_io/models/status_pages_show_status_page_customer_page_result_v2.rb
|
|
1527
1534
|
- lib/incident_io/models/status_pages_show_status_page_incident_result_v2.rb
|
|
1528
1535
|
- lib/incident_io/models/status_pages_show_status_page_maintenance_result_v2.rb
|
|
1529
1536
|
- lib/incident_io/models/status_pages_show_status_page_result_v2.rb
|