incident_io_api 2.36.0 → 2.38.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/models/audit_log_extension_connector_called_metadata_v5_v2.rb +326 -0
- data/lib/incident_io/models/audit_log_integration_updated_metadata_v2.rb +232 -0
- data/lib/incident_io/models/audit_logs_extension_connector_called_v6.rb +326 -0
- data/lib/incident_io/models/audit_logs_integration_updated_v1.rb +326 -0
- data/lib/incident_io/version.rb +1 -1
- data/lib/incident_io.rb +4 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 326f278ded66377323369344cd47e755877cb09fd5a92c9930b111e06f6fd6e3
|
|
4
|
+
data.tar.gz: d1897091f38d943d47bff2766d9d711c26e75fe2ef4f767aebeda8d5a392841e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 196142189ae88839fbfe49d54918fd3e5b87fdb7d81d1258a566dceba06af8f203bdd3c021373f4e703b51b665c626c2a07879c41a092303ba04d56b92fc30cd
|
|
7
|
+
data.tar.gz: bc55ebd2bc15a726521f97baacfdeda727ff0811300783e81aa869d62f7e55c54d3dd8210a829b0ca1dcf9abf7451f40e46a7aedcc386605450da71d29da737f
|
|
@@ -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 AuditLogExtensionConnectorCalledMetadataV5V2 < ApiModelBase
|
|
18
|
+
# What decided: the connector's access policy, or a decision pinned on this tool (policy, override)
|
|
19
|
+
attr_accessor :access_source
|
|
20
|
+
|
|
21
|
+
# ID of the approval request this call executed, when a person's approval is what permitted it
|
|
22
|
+
attr_accessor :approval_id
|
|
23
|
+
|
|
24
|
+
# ID of the user who approved the approval request this call executed
|
|
25
|
+
attr_accessor :approved_by
|
|
26
|
+
|
|
27
|
+
# What calling the tool does to the connected system, as the tool's own server describes it (read, write, destructive, unknown)
|
|
28
|
+
attr_accessor :_class
|
|
29
|
+
|
|
30
|
+
# The incident the call was made for, when incident-scoped
|
|
31
|
+
attr_accessor :incident_id
|
|
32
|
+
|
|
33
|
+
# The investigation that made the call, when investigation-driven
|
|
34
|
+
attr_accessor :investigation_id
|
|
35
|
+
|
|
36
|
+
# How the call ended (success, error, denied, requires_approval). A denied call was refused by the connector's access policy and a requires_approval call is waiting for a person's approval; neither reached the connected system
|
|
37
|
+
attr_accessor :outcome
|
|
38
|
+
|
|
39
|
+
# Why the call was allowed, refused or made to wait (allowed, denied_by_rule, disabled, unknown_rule_type, rule_not_found, not_read, no_person_present, not_in_allow_list, requires_approval)
|
|
40
|
+
attr_accessor :reason
|
|
41
|
+
|
|
42
|
+
# The kind of connector that was called (mcp, http)
|
|
43
|
+
attr_accessor :source_kind
|
|
44
|
+
|
|
45
|
+
# The product surface the call ran from (chat, investigation, explore, mcp_client, verify), or internal for system paths with no surface
|
|
46
|
+
attr_accessor :surface
|
|
47
|
+
|
|
48
|
+
# ID of our stored record of this call, absent for a call that was refused or is waiting for approval
|
|
49
|
+
attr_accessor :telemetry_query_id
|
|
50
|
+
|
|
51
|
+
# Whether the call was permitted to change the connected system (true, false)
|
|
52
|
+
attr_accessor :write
|
|
53
|
+
|
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
55
|
+
def self.attribute_map
|
|
56
|
+
{
|
|
57
|
+
:'access_source' => :'access_source',
|
|
58
|
+
:'approval_id' => :'approval_id',
|
|
59
|
+
:'approved_by' => :'approved_by',
|
|
60
|
+
:'_class' => :'class',
|
|
61
|
+
:'incident_id' => :'incident_id',
|
|
62
|
+
:'investigation_id' => :'investigation_id',
|
|
63
|
+
:'outcome' => :'outcome',
|
|
64
|
+
:'reason' => :'reason',
|
|
65
|
+
:'source_kind' => :'source_kind',
|
|
66
|
+
:'surface' => :'surface',
|
|
67
|
+
:'telemetry_query_id' => :'telemetry_query_id',
|
|
68
|
+
:'write' => :'write'
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Returns attribute mapping this model knows about
|
|
73
|
+
def self.acceptable_attribute_map
|
|
74
|
+
attribute_map
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
# Returns all the JSON keys this model knows about
|
|
78
|
+
def self.acceptable_attributes
|
|
79
|
+
acceptable_attribute_map.values
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Attribute type mapping.
|
|
83
|
+
def self.openapi_types
|
|
84
|
+
{
|
|
85
|
+
:'access_source' => :'String',
|
|
86
|
+
:'approval_id' => :'String',
|
|
87
|
+
:'approved_by' => :'String',
|
|
88
|
+
:'_class' => :'String',
|
|
89
|
+
:'incident_id' => :'String',
|
|
90
|
+
:'investigation_id' => :'String',
|
|
91
|
+
:'outcome' => :'String',
|
|
92
|
+
:'reason' => :'String',
|
|
93
|
+
:'source_kind' => :'String',
|
|
94
|
+
:'surface' => :'String',
|
|
95
|
+
:'telemetry_query_id' => :'String',
|
|
96
|
+
:'write' => :'String'
|
|
97
|
+
}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# List of attributes with nullable: true
|
|
101
|
+
def self.openapi_nullable
|
|
102
|
+
Set.new([
|
|
103
|
+
])
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Initializes the object
|
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
108
|
+
def initialize(attributes = {})
|
|
109
|
+
if (!attributes.is_a?(Hash))
|
|
110
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogExtensionConnectorCalledMetadataV5V2` initialize method"
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
114
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
115
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
116
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
117
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogExtensionConnectorCalledMetadataV5V2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
118
|
+
end
|
|
119
|
+
h[k.to_sym] = v
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'access_source')
|
|
123
|
+
self.access_source = attributes[:'access_source']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'approval_id')
|
|
127
|
+
self.approval_id = attributes[:'approval_id']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'approved_by')
|
|
131
|
+
self.approved_by = attributes[:'approved_by']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'_class')
|
|
135
|
+
self._class = attributes[:'_class']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.key?(:'incident_id')
|
|
139
|
+
self.incident_id = attributes[:'incident_id']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.key?(:'investigation_id')
|
|
143
|
+
self.investigation_id = attributes[:'investigation_id']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'outcome')
|
|
147
|
+
self.outcome = attributes[:'outcome']
|
|
148
|
+
else
|
|
149
|
+
self.outcome = nil
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if attributes.key?(:'reason')
|
|
153
|
+
self.reason = attributes[:'reason']
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if attributes.key?(:'source_kind')
|
|
157
|
+
self.source_kind = attributes[:'source_kind']
|
|
158
|
+
else
|
|
159
|
+
self.source_kind = nil
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.key?(:'surface')
|
|
163
|
+
self.surface = attributes[:'surface']
|
|
164
|
+
else
|
|
165
|
+
self.surface = nil
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.key?(:'telemetry_query_id')
|
|
169
|
+
self.telemetry_query_id = attributes[:'telemetry_query_id']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'write')
|
|
173
|
+
self.write = attributes[:'write']
|
|
174
|
+
else
|
|
175
|
+
self.write = nil
|
|
176
|
+
end
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
180
|
+
# @return Array for valid properties with the reasons
|
|
181
|
+
def list_invalid_properties
|
|
182
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
183
|
+
invalid_properties = Array.new
|
|
184
|
+
if @outcome.nil?
|
|
185
|
+
invalid_properties.push('invalid value for "outcome", outcome cannot be nil.')
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if @source_kind.nil?
|
|
189
|
+
invalid_properties.push('invalid value for "source_kind", source_kind cannot be nil.')
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if @surface.nil?
|
|
193
|
+
invalid_properties.push('invalid value for "surface", surface cannot be nil.')
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
if @write.nil?
|
|
197
|
+
invalid_properties.push('invalid value for "write", write cannot be nil.')
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
invalid_properties
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Check to see if the all the properties in the model are valid
|
|
204
|
+
# @return true if the model is valid
|
|
205
|
+
def valid?
|
|
206
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
207
|
+
return false if @outcome.nil?
|
|
208
|
+
return false if @source_kind.nil?
|
|
209
|
+
return false if @surface.nil?
|
|
210
|
+
return false if @write.nil?
|
|
211
|
+
true
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Custom attribute writer method with validation
|
|
215
|
+
# @param [Object] outcome Value to be assigned
|
|
216
|
+
def outcome=(outcome)
|
|
217
|
+
if outcome.nil?
|
|
218
|
+
fail ArgumentError, 'outcome cannot be nil'
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
@outcome = outcome
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Custom attribute writer method with validation
|
|
225
|
+
# @param [Object] source_kind Value to be assigned
|
|
226
|
+
def source_kind=(source_kind)
|
|
227
|
+
if source_kind.nil?
|
|
228
|
+
fail ArgumentError, 'source_kind cannot be nil'
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
@source_kind = source_kind
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Custom attribute writer method with validation
|
|
235
|
+
# @param [Object] surface Value to be assigned
|
|
236
|
+
def surface=(surface)
|
|
237
|
+
if surface.nil?
|
|
238
|
+
fail ArgumentError, 'surface cannot be nil'
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
@surface = surface
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Custom attribute writer method with validation
|
|
245
|
+
# @param [Object] write Value to be assigned
|
|
246
|
+
def write=(write)
|
|
247
|
+
if write.nil?
|
|
248
|
+
fail ArgumentError, 'write cannot be nil'
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
@write = write
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Checks equality by comparing each attribute.
|
|
255
|
+
# @param [Object] Object to be compared
|
|
256
|
+
def ==(o)
|
|
257
|
+
return true if self.equal?(o)
|
|
258
|
+
self.class == o.class &&
|
|
259
|
+
access_source == o.access_source &&
|
|
260
|
+
approval_id == o.approval_id &&
|
|
261
|
+
approved_by == o.approved_by &&
|
|
262
|
+
_class == o._class &&
|
|
263
|
+
incident_id == o.incident_id &&
|
|
264
|
+
investigation_id == o.investigation_id &&
|
|
265
|
+
outcome == o.outcome &&
|
|
266
|
+
reason == o.reason &&
|
|
267
|
+
source_kind == o.source_kind &&
|
|
268
|
+
surface == o.surface &&
|
|
269
|
+
telemetry_query_id == o.telemetry_query_id &&
|
|
270
|
+
write == o.write
|
|
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
|
+
[access_source, approval_id, approved_by, _class, incident_id, investigation_id, outcome, reason, source_kind, surface, telemetry_query_id, write].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,232 @@
|
|
|
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 AuditLogIntegrationUpdatedMetadataV2 < ApiModelBase
|
|
18
|
+
# Comma-separated names of the fields that changed, such as connector_config_id, host, tls_root_cert, ca_certificate, personal_access_token, app_id, private_key or auth_type
|
|
19
|
+
attr_accessor :changed_fields
|
|
20
|
+
|
|
21
|
+
# ID of the connector requests went through before the change, absent when there was none
|
|
22
|
+
attr_accessor :connector_config_id_from
|
|
23
|
+
|
|
24
|
+
# ID of the connector requests go through after the change, absent when there is none
|
|
25
|
+
attr_accessor :connector_config_id_to
|
|
26
|
+
|
|
27
|
+
# The host before the change, absent when there was none
|
|
28
|
+
attr_accessor :host_from
|
|
29
|
+
|
|
30
|
+
# The host after the change
|
|
31
|
+
attr_accessor :host_to
|
|
32
|
+
|
|
33
|
+
# ID of the GitLab installation, GitHub Enterprise app or Jira Server config that changed
|
|
34
|
+
attr_accessor :integration_id
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'changed_fields' => :'changed_fields',
|
|
40
|
+
:'connector_config_id_from' => :'connector_config_id_from',
|
|
41
|
+
:'connector_config_id_to' => :'connector_config_id_to',
|
|
42
|
+
:'host_from' => :'host_from',
|
|
43
|
+
:'host_to' => :'host_to',
|
|
44
|
+
:'integration_id' => :'integration_id'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Returns attribute mapping this model knows about
|
|
49
|
+
def self.acceptable_attribute_map
|
|
50
|
+
attribute_map
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns all the JSON keys this model knows about
|
|
54
|
+
def self.acceptable_attributes
|
|
55
|
+
acceptable_attribute_map.values
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Attribute type mapping.
|
|
59
|
+
def self.openapi_types
|
|
60
|
+
{
|
|
61
|
+
:'changed_fields' => :'String',
|
|
62
|
+
:'connector_config_id_from' => :'String',
|
|
63
|
+
:'connector_config_id_to' => :'String',
|
|
64
|
+
:'host_from' => :'String',
|
|
65
|
+
:'host_to' => :'String',
|
|
66
|
+
:'integration_id' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogIntegrationUpdatedMetadataV2` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogIntegrationUpdatedMetadataV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
88
|
+
end
|
|
89
|
+
h[k.to_sym] = v
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'changed_fields')
|
|
93
|
+
self.changed_fields = attributes[:'changed_fields']
|
|
94
|
+
else
|
|
95
|
+
self.changed_fields = nil
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'connector_config_id_from')
|
|
99
|
+
self.connector_config_id_from = attributes[:'connector_config_id_from']
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'connector_config_id_to')
|
|
103
|
+
self.connector_config_id_to = attributes[:'connector_config_id_to']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'host_from')
|
|
107
|
+
self.host_from = attributes[:'host_from']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'host_to')
|
|
111
|
+
self.host_to = attributes[:'host_to']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.key?(:'integration_id')
|
|
115
|
+
self.integration_id = attributes[:'integration_id']
|
|
116
|
+
else
|
|
117
|
+
self.integration_id = nil
|
|
118
|
+
end
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
122
|
+
# @return Array for valid properties with the reasons
|
|
123
|
+
def list_invalid_properties
|
|
124
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
125
|
+
invalid_properties = Array.new
|
|
126
|
+
if @changed_fields.nil?
|
|
127
|
+
invalid_properties.push('invalid value for "changed_fields", changed_fields cannot be nil.')
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if @integration_id.nil?
|
|
131
|
+
invalid_properties.push('invalid value for "integration_id", integration_id cannot be nil.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
invalid_properties
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Check to see if the all the properties in the model are valid
|
|
138
|
+
# @return true if the model is valid
|
|
139
|
+
def valid?
|
|
140
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
141
|
+
return false if @changed_fields.nil?
|
|
142
|
+
return false if @integration_id.nil?
|
|
143
|
+
true
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Custom attribute writer method with validation
|
|
147
|
+
# @param [Object] changed_fields Value to be assigned
|
|
148
|
+
def changed_fields=(changed_fields)
|
|
149
|
+
if changed_fields.nil?
|
|
150
|
+
fail ArgumentError, 'changed_fields cannot be nil'
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
@changed_fields = changed_fields
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Custom attribute writer method with validation
|
|
157
|
+
# @param [Object] integration_id Value to be assigned
|
|
158
|
+
def integration_id=(integration_id)
|
|
159
|
+
if integration_id.nil?
|
|
160
|
+
fail ArgumentError, 'integration_id cannot be nil'
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
@integration_id = integration_id
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Checks equality by comparing each attribute.
|
|
167
|
+
# @param [Object] Object to be compared
|
|
168
|
+
def ==(o)
|
|
169
|
+
return true if self.equal?(o)
|
|
170
|
+
self.class == o.class &&
|
|
171
|
+
changed_fields == o.changed_fields &&
|
|
172
|
+
connector_config_id_from == o.connector_config_id_from &&
|
|
173
|
+
connector_config_id_to == o.connector_config_id_to &&
|
|
174
|
+
host_from == o.host_from &&
|
|
175
|
+
host_to == o.host_to &&
|
|
176
|
+
integration_id == o.integration_id
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# @see the `==` method
|
|
180
|
+
# @param [Object] Object to be compared
|
|
181
|
+
def eql?(o)
|
|
182
|
+
self == o
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Calculates hash code according to all attributes.
|
|
186
|
+
# @return [Integer] Hash code
|
|
187
|
+
def hash
|
|
188
|
+
[changed_fields, connector_config_id_from, connector_config_id_to, host_from, host_to, integration_id].hash
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Builds the object from hash
|
|
192
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
193
|
+
# @return [Object] Returns the model itself
|
|
194
|
+
def self.build_from_hash(attributes)
|
|
195
|
+
return nil unless attributes.is_a?(Hash)
|
|
196
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
197
|
+
transformed_hash = {}
|
|
198
|
+
openapi_types.each_pair do |key, type|
|
|
199
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
200
|
+
transformed_hash["#{key}"] = nil
|
|
201
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
202
|
+
# check to ensure the input is an array given that the attribute
|
|
203
|
+
# is documented as an array but the input is not
|
|
204
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
205
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
206
|
+
end
|
|
207
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
208
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
new(transformed_hash)
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns the object in the form of hash
|
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
|
216
|
+
def to_hash
|
|
217
|
+
hash = {}
|
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
219
|
+
value = self.send(attr)
|
|
220
|
+
if value.nil?
|
|
221
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
222
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
hash[param] = _to_hash(value)
|
|
226
|
+
end
|
|
227
|
+
hash
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
end
|
|
@@ -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 AuditLogsExtensionConnectorCalledV6 < 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' => :'AuditLogExtensionConnectorCalledMetadataV5V2',
|
|
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::AuditLogsExtensionConnectorCalledV6` 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::AuditLogsExtensionConnectorCalledV6`. 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,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 AuditLogsIntegrationUpdatedV1 < 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' => :'AuditLogIntegrationUpdatedMetadataV2',
|
|
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::AuditLogsIntegrationUpdatedV1` 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::AuditLogsIntegrationUpdatedV1`. 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
|
data/lib/incident_io/version.rb
CHANGED
data/lib/incident_io.rb
CHANGED
|
@@ -233,11 +233,13 @@ IncidentIo.autoload :AuditLogExtensionConnectorCalledMetadataV2, 'incident_io/mo
|
|
|
233
233
|
IncidentIo.autoload :AuditLogExtensionConnectorCalledMetadataV2V2, 'incident_io/models/audit_log_extension_connector_called_metadata_v2_v2'
|
|
234
234
|
IncidentIo.autoload :AuditLogExtensionConnectorCalledMetadataV3V2, 'incident_io/models/audit_log_extension_connector_called_metadata_v3_v2'
|
|
235
235
|
IncidentIo.autoload :AuditLogExtensionConnectorCalledMetadataV4V2, 'incident_io/models/audit_log_extension_connector_called_metadata_v4_v2'
|
|
236
|
+
IncidentIo.autoload :AuditLogExtensionConnectorCalledMetadataV5V2, 'incident_io/models/audit_log_extension_connector_called_metadata_v5_v2'
|
|
236
237
|
IncidentIo.autoload :AuditLogExtensionPluginCreatedMetadataV2, 'incident_io/models/audit_log_extension_plugin_created_metadata_v2'
|
|
237
238
|
IncidentIo.autoload :AuditLogExtensionPluginUpdatedMetadataV2, 'incident_io/models/audit_log_extension_plugin_updated_metadata_v2'
|
|
238
239
|
IncidentIo.autoload :AuditLogHrisTimeOffPolicyUpdatedMetadataV2, 'incident_io/models/audit_log_hris_time_off_policy_updated_metadata_v2'
|
|
239
240
|
IncidentIo.autoload :AuditLogIPAllowlistUpdatedMetadataV2, 'incident_io/models/audit_log_ip_allowlist_updated_metadata_v2'
|
|
240
241
|
IncidentIo.autoload :AuditLogIncidentTypeDefaultTeamsMetadataV2, 'incident_io/models/audit_log_incident_type_default_teams_metadata_v2'
|
|
242
|
+
IncidentIo.autoload :AuditLogIntegrationUpdatedMetadataV2, 'incident_io/models/audit_log_integration_updated_metadata_v2'
|
|
241
243
|
IncidentIo.autoload :AuditLogInvestigationConfigUpdatedMetadataV2, 'incident_io/models/audit_log_investigation_config_updated_metadata_v2'
|
|
242
244
|
IncidentIo.autoload :AuditLogInvestigationTriggerMetadataV2, 'incident_io/models/audit_log_investigation_trigger_metadata_v2'
|
|
243
245
|
IncidentIo.autoload :AuditLogMicrosoftEntraTenantLinkedMetadataV2, 'incident_io/models/audit_log_microsoft_entra_tenant_linked_metadata_v2'
|
|
@@ -385,6 +387,7 @@ IncidentIo.autoload :AuditLogsExtensionConnectorCalledV2, 'incident_io/models/au
|
|
|
385
387
|
IncidentIo.autoload :AuditLogsExtensionConnectorCalledV3, 'incident_io/models/audit_logs_extension_connector_called_v3'
|
|
386
388
|
IncidentIo.autoload :AuditLogsExtensionConnectorCalledV4, 'incident_io/models/audit_logs_extension_connector_called_v4'
|
|
387
389
|
IncidentIo.autoload :AuditLogsExtensionConnectorCalledV5, 'incident_io/models/audit_logs_extension_connector_called_v5'
|
|
390
|
+
IncidentIo.autoload :AuditLogsExtensionConnectorCalledV6, 'incident_io/models/audit_logs_extension_connector_called_v6'
|
|
388
391
|
IncidentIo.autoload :AuditLogsExtensionPluginCreatedV1, 'incident_io/models/audit_logs_extension_plugin_created_v1'
|
|
389
392
|
IncidentIo.autoload :AuditLogsExtensionPluginCreatedV2, 'incident_io/models/audit_logs_extension_plugin_created_v2'
|
|
390
393
|
IncidentIo.autoload :AuditLogsExtensionPluginDeletedV1, 'incident_io/models/audit_logs_extension_plugin_deleted_v1'
|
|
@@ -475,6 +478,7 @@ IncidentIo.autoload :AuditLogsIntegrationInstalledV1, 'incident_io/models/audit_
|
|
|
475
478
|
IncidentIo.autoload :AuditLogsIntegrationInstalledV2, 'incident_io/models/audit_logs_integration_installed_v2'
|
|
476
479
|
IncidentIo.autoload :AuditLogsIntegrationUninstalledV1, 'incident_io/models/audit_logs_integration_uninstalled_v1'
|
|
477
480
|
IncidentIo.autoload :AuditLogsIntegrationUninstalledV2, 'incident_io/models/audit_logs_integration_uninstalled_v2'
|
|
481
|
+
IncidentIo.autoload :AuditLogsIntegrationUpdatedV1, 'incident_io/models/audit_logs_integration_updated_v1'
|
|
478
482
|
IncidentIo.autoload :AuditLogsInternalStatusPageCreatedV1, 'incident_io/models/audit_logs_internal_status_page_created_v1'
|
|
479
483
|
IncidentIo.autoload :AuditLogsInternalStatusPageCreatedV2, 'incident_io/models/audit_logs_internal_status_page_created_v2'
|
|
480
484
|
IncidentIo.autoload :AuditLogsInternalStatusPageDeletedV1, 'incident_io/models/audit_logs_internal_status_page_deleted_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: 2.
|
|
4
|
+
version: 2.38.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-10-
|
|
11
|
+
date: 2026-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -361,10 +361,12 @@ files:
|
|
|
361
361
|
- lib/incident_io/models/audit_log_extension_connector_called_metadata_v2_v2.rb
|
|
362
362
|
- lib/incident_io/models/audit_log_extension_connector_called_metadata_v3_v2.rb
|
|
363
363
|
- lib/incident_io/models/audit_log_extension_connector_called_metadata_v4_v2.rb
|
|
364
|
+
- lib/incident_io/models/audit_log_extension_connector_called_metadata_v5_v2.rb
|
|
364
365
|
- lib/incident_io/models/audit_log_extension_plugin_created_metadata_v2.rb
|
|
365
366
|
- lib/incident_io/models/audit_log_extension_plugin_updated_metadata_v2.rb
|
|
366
367
|
- lib/incident_io/models/audit_log_hris_time_off_policy_updated_metadata_v2.rb
|
|
367
368
|
- lib/incident_io/models/audit_log_incident_type_default_teams_metadata_v2.rb
|
|
369
|
+
- lib/incident_io/models/audit_log_integration_updated_metadata_v2.rb
|
|
368
370
|
- lib/incident_io/models/audit_log_investigation_config_updated_metadata_v2.rb
|
|
369
371
|
- lib/incident_io/models/audit_log_investigation_trigger_metadata_v2.rb
|
|
370
372
|
- lib/incident_io/models/audit_log_ip_allowlist_updated_metadata_v2.rb
|
|
@@ -513,6 +515,7 @@ files:
|
|
|
513
515
|
- lib/incident_io/models/audit_logs_extension_connector_called_v3.rb
|
|
514
516
|
- lib/incident_io/models/audit_logs_extension_connector_called_v4.rb
|
|
515
517
|
- lib/incident_io/models/audit_logs_extension_connector_called_v5.rb
|
|
518
|
+
- lib/incident_io/models/audit_logs_extension_connector_called_v6.rb
|
|
516
519
|
- lib/incident_io/models/audit_logs_extension_plugin_created_v1.rb
|
|
517
520
|
- lib/incident_io/models/audit_logs_extension_plugin_created_v2.rb
|
|
518
521
|
- lib/incident_io/models/audit_logs_extension_plugin_deleted_v1.rb
|
|
@@ -601,6 +604,7 @@ files:
|
|
|
601
604
|
- lib/incident_io/models/audit_logs_integration_installed_v2.rb
|
|
602
605
|
- lib/incident_io/models/audit_logs_integration_uninstalled_v1.rb
|
|
603
606
|
- lib/incident_io/models/audit_logs_integration_uninstalled_v2.rb
|
|
607
|
+
- lib/incident_io/models/audit_logs_integration_updated_v1.rb
|
|
604
608
|
- lib/incident_io/models/audit_logs_internal_status_page_created_v1.rb
|
|
605
609
|
- lib/incident_io/models/audit_logs_internal_status_page_created_v2.rb
|
|
606
610
|
- lib/incident_io/models/audit_logs_internal_status_page_deleted_v1.rb
|