incident_io_api 2.10.0 → 2.12.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: 042dc0ebc895dba1a981bede7ee341dd036cdd6494037e3dc98768f17e4cad2e
4
- data.tar.gz: dafbc91e94c7e3638acb1d87b0a562312f10f6fb984a9a469d939d905b4f0d9e
3
+ metadata.gz: 734b247fd9014ca6c42cee2f96dadc1368f37a05e193f29fb500bfa59cfda311
4
+ data.tar.gz: f60a7c8e119d1007706601af9130d0053ea6ca0e04fad50e043dd968df7c7b0a
5
5
  SHA512:
6
- metadata.gz: e8c3387db062ecd66f07fd44af6334f69e73b62e1074133b08485f4fe322daf01dcd68261de85607f9fc890ef92a26d0d86eb043381654c5722742f911e39684
7
- data.tar.gz: 5c51d11cae0d1415662c1d8c09ad692ac3907406ee32b875c0cf69f081929f588494e2deb116542d7a4d27a7de056078d7b51fc6d25401c9f733868a76e10c26
6
+ metadata.gz: 8435e217215c77fcbc3194a6e3c9437181f98d5a6bcf0a22c07ead0e37dde4fb5dc6982750c390e3f42cc4bb30edc7f4aebd868d7ae7b76725f4716b32b562e9
7
+ data.tar.gz: b7b209be6af601e9297596e822eb25a084e30162d38f9cf7c10e1e417ff8e67e4f387ffd5e3e37210fc5e033356bd83d9923918dfb12aca4d72f6123f410bfbf
@@ -0,0 +1,229 @@
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 AuditLogExtensionPluginCreatedMetadataV2 < ApiModelBase
18
+ # The source control provider the plugin's repository lives in (github, gitlab)
19
+ attr_accessor :provider
20
+
21
+ # The name of the plugin's repository
22
+ attr_accessor :repo_name
23
+
24
+ # The owner of the plugin's repository, including any GitLab group path
25
+ attr_accessor :repo_owner
26
+
27
+ # The plugin's directory within the repository, absent when the plugin is the repository root
28
+ attr_accessor :subpath
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'provider' => :'provider',
34
+ :'repo_name' => :'repo_name',
35
+ :'repo_owner' => :'repo_owner',
36
+ :'subpath' => :'subpath'
37
+ }
38
+ end
39
+
40
+ # Returns attribute mapping this model knows about
41
+ def self.acceptable_attribute_map
42
+ attribute_map
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ acceptable_attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'provider' => :'String',
54
+ :'repo_name' => :'String',
55
+ :'repo_owner' => :'String',
56
+ :'subpath' => :'String'
57
+ }
58
+ end
59
+
60
+ # List of attributes with nullable: true
61
+ def self.openapi_nullable
62
+ Set.new([
63
+ ])
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ if (!attributes.is_a?(Hash))
70
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogExtensionPluginCreatedMetadataV2` initialize method"
71
+ end
72
+
73
+ # check to see if the attribute exists and convert string to symbol for hash key
74
+ acceptable_attribute_map = self.class.acceptable_attribute_map
75
+ attributes = attributes.each_with_object({}) { |(k, v), h|
76
+ if (!acceptable_attribute_map.key?(k.to_sym))
77
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogExtensionPluginCreatedMetadataV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
+ end
79
+ h[k.to_sym] = v
80
+ }
81
+
82
+ if attributes.key?(:'provider')
83
+ self.provider = attributes[:'provider']
84
+ else
85
+ self.provider = nil
86
+ end
87
+
88
+ if attributes.key?(:'repo_name')
89
+ self.repo_name = attributes[:'repo_name']
90
+ else
91
+ self.repo_name = nil
92
+ end
93
+
94
+ if attributes.key?(:'repo_owner')
95
+ self.repo_owner = attributes[:'repo_owner']
96
+ else
97
+ self.repo_owner = nil
98
+ end
99
+
100
+ if attributes.key?(:'subpath')
101
+ self.subpath = attributes[:'subpath']
102
+ end
103
+ end
104
+
105
+ # Show invalid properties with the reasons. Usually used together with valid?
106
+ # @return Array for valid properties with the reasons
107
+ def list_invalid_properties
108
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
109
+ invalid_properties = Array.new
110
+ if @provider.nil?
111
+ invalid_properties.push('invalid value for "provider", provider cannot be nil.')
112
+ end
113
+
114
+ if @repo_name.nil?
115
+ invalid_properties.push('invalid value for "repo_name", repo_name cannot be nil.')
116
+ end
117
+
118
+ if @repo_owner.nil?
119
+ invalid_properties.push('invalid value for "repo_owner", repo_owner cannot be nil.')
120
+ end
121
+
122
+ invalid_properties
123
+ end
124
+
125
+ # Check to see if the all the properties in the model are valid
126
+ # @return true if the model is valid
127
+ def valid?
128
+ warn '[DEPRECATED] the `valid?` method is obsolete'
129
+ return false if @provider.nil?
130
+ return false if @repo_name.nil?
131
+ return false if @repo_owner.nil?
132
+ true
133
+ end
134
+
135
+ # Custom attribute writer method with validation
136
+ # @param [Object] provider Value to be assigned
137
+ def provider=(provider)
138
+ if provider.nil?
139
+ fail ArgumentError, 'provider cannot be nil'
140
+ end
141
+
142
+ @provider = provider
143
+ end
144
+
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] repo_name Value to be assigned
147
+ def repo_name=(repo_name)
148
+ if repo_name.nil?
149
+ fail ArgumentError, 'repo_name cannot be nil'
150
+ end
151
+
152
+ @repo_name = repo_name
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] repo_owner Value to be assigned
157
+ def repo_owner=(repo_owner)
158
+ if repo_owner.nil?
159
+ fail ArgumentError, 'repo_owner cannot be nil'
160
+ end
161
+
162
+ @repo_owner = repo_owner
163
+ end
164
+
165
+ # Checks equality by comparing each attribute.
166
+ # @param [Object] Object to be compared
167
+ def ==(o)
168
+ return true if self.equal?(o)
169
+ self.class == o.class &&
170
+ provider == o.provider &&
171
+ repo_name == o.repo_name &&
172
+ repo_owner == o.repo_owner &&
173
+ subpath == o.subpath
174
+ end
175
+
176
+ # @see the `==` method
177
+ # @param [Object] Object to be compared
178
+ def eql?(o)
179
+ self == o
180
+ end
181
+
182
+ # Calculates hash code according to all attributes.
183
+ # @return [Integer] Hash code
184
+ def hash
185
+ [provider, repo_name, repo_owner, subpath].hash
186
+ end
187
+
188
+ # Builds the object from hash
189
+ # @param [Hash] attributes Model attributes in the form of hash
190
+ # @return [Object] Returns the model itself
191
+ def self.build_from_hash(attributes)
192
+ return nil unless attributes.is_a?(Hash)
193
+ attributes = attributes.transform_keys(&:to_sym)
194
+ transformed_hash = {}
195
+ openapi_types.each_pair do |key, type|
196
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
197
+ transformed_hash["#{key}"] = nil
198
+ elsif type =~ /\AArray<(.*)>/i
199
+ # check to ensure the input is an array given that the attribute
200
+ # is documented as an array but the input is not
201
+ if attributes[attribute_map[key]].is_a?(Array)
202
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
203
+ end
204
+ elsif !attributes[attribute_map[key]].nil?
205
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
206
+ end
207
+ end
208
+ new(transformed_hash)
209
+ end
210
+
211
+ # Returns the object in the form of hash
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_hash
214
+ hash = {}
215
+ self.class.attribute_map.each_pair do |attr, param|
216
+ value = self.send(attr)
217
+ if value.nil?
218
+ is_nullable = self.class.openapi_nullable.include?(attr)
219
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
220
+ end
221
+
222
+ hash[param] = _to_hash(value)
223
+ end
224
+ hash
225
+ end
226
+
227
+ end
228
+
229
+ end
@@ -0,0 +1,325 @@
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 AuditLogExtensionPluginUpdatedMetadataV2 < ApiModelBase
18
+ # Whether the plugin is mounted into agent runs after the change (true, false)
19
+ attr_accessor :after_enabled
20
+
21
+ # How many skills are selected after the change, absent when every skill loads
22
+ attr_accessor :after_enabled_skill_count
23
+
24
+ # The plugin's name after the change
25
+ attr_accessor :after_name
26
+
27
+ # The source control provider of the plugin's new repository (github, gitlab)
28
+ attr_accessor :after_provider
29
+
30
+ # The name of the plugin's new repository
31
+ attr_accessor :after_repo_name
32
+
33
+ # The owner of the plugin's new repository
34
+ attr_accessor :after_repo_owner
35
+
36
+ # Which skills load after the change: every skill, or only the selected ones (automatic, selected)
37
+ attr_accessor :after_skill_selection_mode
38
+
39
+ # The plugin's new directory within its repository, absent when it is the repository root
40
+ attr_accessor :after_subpath
41
+
42
+ # Whether the plugin was mounted into agent runs before the change (true, false)
43
+ attr_accessor :before_enabled
44
+
45
+ # How many skills were selected before the change, absent when every skill loaded
46
+ attr_accessor :before_enabled_skill_count
47
+
48
+ # The plugin's name before the change
49
+ attr_accessor :before_name
50
+
51
+ # The source control provider of the plugin's previous repository (github, gitlab)
52
+ attr_accessor :before_provider
53
+
54
+ # The name of the plugin's previous repository
55
+ attr_accessor :before_repo_name
56
+
57
+ # The owner of the plugin's previous repository
58
+ attr_accessor :before_repo_owner
59
+
60
+ # Which skills loaded before the change: every skill, or only the selected ones (automatic, selected)
61
+ attr_accessor :before_skill_selection_mode
62
+
63
+ # The plugin's previous directory within its repository, absent when it was the repository root
64
+ attr_accessor :before_subpath
65
+
66
+ # What the update changed, comma separated (enabled, skill_selection, name, location)
67
+ attr_accessor :changed
68
+
69
+ # Attribute mapping from ruby-style variable name to JSON key.
70
+ def self.attribute_map
71
+ {
72
+ :'after_enabled' => :'after_enabled',
73
+ :'after_enabled_skill_count' => :'after_enabled_skill_count',
74
+ :'after_name' => :'after_name',
75
+ :'after_provider' => :'after_provider',
76
+ :'after_repo_name' => :'after_repo_name',
77
+ :'after_repo_owner' => :'after_repo_owner',
78
+ :'after_skill_selection_mode' => :'after_skill_selection_mode',
79
+ :'after_subpath' => :'after_subpath',
80
+ :'before_enabled' => :'before_enabled',
81
+ :'before_enabled_skill_count' => :'before_enabled_skill_count',
82
+ :'before_name' => :'before_name',
83
+ :'before_provider' => :'before_provider',
84
+ :'before_repo_name' => :'before_repo_name',
85
+ :'before_repo_owner' => :'before_repo_owner',
86
+ :'before_skill_selection_mode' => :'before_skill_selection_mode',
87
+ :'before_subpath' => :'before_subpath',
88
+ :'changed' => :'changed'
89
+ }
90
+ end
91
+
92
+ # Returns attribute mapping this model knows about
93
+ def self.acceptable_attribute_map
94
+ attribute_map
95
+ end
96
+
97
+ # Returns all the JSON keys this model knows about
98
+ def self.acceptable_attributes
99
+ acceptable_attribute_map.values
100
+ end
101
+
102
+ # Attribute type mapping.
103
+ def self.openapi_types
104
+ {
105
+ :'after_enabled' => :'String',
106
+ :'after_enabled_skill_count' => :'String',
107
+ :'after_name' => :'String',
108
+ :'after_provider' => :'String',
109
+ :'after_repo_name' => :'String',
110
+ :'after_repo_owner' => :'String',
111
+ :'after_skill_selection_mode' => :'String',
112
+ :'after_subpath' => :'String',
113
+ :'before_enabled' => :'String',
114
+ :'before_enabled_skill_count' => :'String',
115
+ :'before_name' => :'String',
116
+ :'before_provider' => :'String',
117
+ :'before_repo_name' => :'String',
118
+ :'before_repo_owner' => :'String',
119
+ :'before_skill_selection_mode' => :'String',
120
+ :'before_subpath' => :'String',
121
+ :'changed' => :'String'
122
+ }
123
+ end
124
+
125
+ # List of attributes with nullable: true
126
+ def self.openapi_nullable
127
+ Set.new([
128
+ ])
129
+ end
130
+
131
+ # Initializes the object
132
+ # @param [Hash] attributes Model attributes in the form of hash
133
+ def initialize(attributes = {})
134
+ if (!attributes.is_a?(Hash))
135
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AuditLogExtensionPluginUpdatedMetadataV2` initialize method"
136
+ end
137
+
138
+ # check to see if the attribute exists and convert string to symbol for hash key
139
+ acceptable_attribute_map = self.class.acceptable_attribute_map
140
+ attributes = attributes.each_with_object({}) { |(k, v), h|
141
+ if (!acceptable_attribute_map.key?(k.to_sym))
142
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AuditLogExtensionPluginUpdatedMetadataV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
143
+ end
144
+ h[k.to_sym] = v
145
+ }
146
+
147
+ if attributes.key?(:'after_enabled')
148
+ self.after_enabled = attributes[:'after_enabled']
149
+ end
150
+
151
+ if attributes.key?(:'after_enabled_skill_count')
152
+ self.after_enabled_skill_count = attributes[:'after_enabled_skill_count']
153
+ end
154
+
155
+ if attributes.key?(:'after_name')
156
+ self.after_name = attributes[:'after_name']
157
+ end
158
+
159
+ if attributes.key?(:'after_provider')
160
+ self.after_provider = attributes[:'after_provider']
161
+ end
162
+
163
+ if attributes.key?(:'after_repo_name')
164
+ self.after_repo_name = attributes[:'after_repo_name']
165
+ end
166
+
167
+ if attributes.key?(:'after_repo_owner')
168
+ self.after_repo_owner = attributes[:'after_repo_owner']
169
+ end
170
+
171
+ if attributes.key?(:'after_skill_selection_mode')
172
+ self.after_skill_selection_mode = attributes[:'after_skill_selection_mode']
173
+ end
174
+
175
+ if attributes.key?(:'after_subpath')
176
+ self.after_subpath = attributes[:'after_subpath']
177
+ end
178
+
179
+ if attributes.key?(:'before_enabled')
180
+ self.before_enabled = attributes[:'before_enabled']
181
+ end
182
+
183
+ if attributes.key?(:'before_enabled_skill_count')
184
+ self.before_enabled_skill_count = attributes[:'before_enabled_skill_count']
185
+ end
186
+
187
+ if attributes.key?(:'before_name')
188
+ self.before_name = attributes[:'before_name']
189
+ end
190
+
191
+ if attributes.key?(:'before_provider')
192
+ self.before_provider = attributes[:'before_provider']
193
+ end
194
+
195
+ if attributes.key?(:'before_repo_name')
196
+ self.before_repo_name = attributes[:'before_repo_name']
197
+ end
198
+
199
+ if attributes.key?(:'before_repo_owner')
200
+ self.before_repo_owner = attributes[:'before_repo_owner']
201
+ end
202
+
203
+ if attributes.key?(:'before_skill_selection_mode')
204
+ self.before_skill_selection_mode = attributes[:'before_skill_selection_mode']
205
+ end
206
+
207
+ if attributes.key?(:'before_subpath')
208
+ self.before_subpath = attributes[:'before_subpath']
209
+ end
210
+
211
+ if attributes.key?(:'changed')
212
+ self.changed = attributes[:'changed']
213
+ else
214
+ self.changed = nil
215
+ end
216
+ end
217
+
218
+ # Show invalid properties with the reasons. Usually used together with valid?
219
+ # @return Array for valid properties with the reasons
220
+ def list_invalid_properties
221
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
222
+ invalid_properties = Array.new
223
+ if @changed.nil?
224
+ invalid_properties.push('invalid value for "changed", changed cannot be nil.')
225
+ end
226
+
227
+ invalid_properties
228
+ end
229
+
230
+ # Check to see if the all the properties in the model are valid
231
+ # @return true if the model is valid
232
+ def valid?
233
+ warn '[DEPRECATED] the `valid?` method is obsolete'
234
+ return false if @changed.nil?
235
+ true
236
+ end
237
+
238
+ # Custom attribute writer method with validation
239
+ # @param [Object] changed Value to be assigned
240
+ def changed=(changed)
241
+ if changed.nil?
242
+ fail ArgumentError, 'changed cannot be nil'
243
+ end
244
+
245
+ @changed = changed
246
+ end
247
+
248
+ # Checks equality by comparing each attribute.
249
+ # @param [Object] Object to be compared
250
+ def ==(o)
251
+ return true if self.equal?(o)
252
+ self.class == o.class &&
253
+ after_enabled == o.after_enabled &&
254
+ after_enabled_skill_count == o.after_enabled_skill_count &&
255
+ after_name == o.after_name &&
256
+ after_provider == o.after_provider &&
257
+ after_repo_name == o.after_repo_name &&
258
+ after_repo_owner == o.after_repo_owner &&
259
+ after_skill_selection_mode == o.after_skill_selection_mode &&
260
+ after_subpath == o.after_subpath &&
261
+ before_enabled == o.before_enabled &&
262
+ before_enabled_skill_count == o.before_enabled_skill_count &&
263
+ before_name == o.before_name &&
264
+ before_provider == o.before_provider &&
265
+ before_repo_name == o.before_repo_name &&
266
+ before_repo_owner == o.before_repo_owner &&
267
+ before_skill_selection_mode == o.before_skill_selection_mode &&
268
+ before_subpath == o.before_subpath &&
269
+ changed == o.changed
270
+ end
271
+
272
+ # @see the `==` method
273
+ # @param [Object] Object to be compared
274
+ def eql?(o)
275
+ self == o
276
+ end
277
+
278
+ # Calculates hash code according to all attributes.
279
+ # @return [Integer] Hash code
280
+ def hash
281
+ [after_enabled, after_enabled_skill_count, after_name, after_provider, after_repo_name, after_repo_owner, after_skill_selection_mode, after_subpath, before_enabled, before_enabled_skill_count, before_name, before_provider, before_repo_name, before_repo_owner, before_skill_selection_mode, before_subpath, changed].hash
282
+ end
283
+
284
+ # Builds the object from hash
285
+ # @param [Hash] attributes Model attributes in the form of hash
286
+ # @return [Object] Returns the model itself
287
+ def self.build_from_hash(attributes)
288
+ return nil unless attributes.is_a?(Hash)
289
+ attributes = attributes.transform_keys(&:to_sym)
290
+ transformed_hash = {}
291
+ openapi_types.each_pair do |key, type|
292
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
293
+ transformed_hash["#{key}"] = nil
294
+ elsif type =~ /\AArray<(.*)>/i
295
+ # check to ensure the input is an array given that the attribute
296
+ # is documented as an array but the input is not
297
+ if attributes[attribute_map[key]].is_a?(Array)
298
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
299
+ end
300
+ elsif !attributes[attribute_map[key]].nil?
301
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
302
+ end
303
+ end
304
+ new(transformed_hash)
305
+ end
306
+
307
+ # Returns the object in the form of hash
308
+ # @return [Hash] Returns the object in the form of hash
309
+ def to_hash
310
+ hash = {}
311
+ self.class.attribute_map.each_pair do |attr, param|
312
+ value = self.send(attr)
313
+ if value.nil?
314
+ is_nullable = self.class.openapi_nullable.include?(attr)
315
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
316
+ end
317
+
318
+ hash[param] = _to_hash(value)
319
+ end
320
+ hash
321
+ end
322
+
323
+ end
324
+
325
+ end