incident_io_api 2.35.0 → 2.36.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: bf122d0ff432c2d94e4b25f4ee36fb7932755a85991d29801016fbaf5c0eb645
4
- data.tar.gz: e932063b915619780f735f224e57c9644888106406aa4afeb55448c1ecb2be13
3
+ metadata.gz: 8195923f0c75b344ec6b94a6aec7854297ba473f906fd97f756e7b301d88ac9c
4
+ data.tar.gz: d09145b400c23d269b102be4f05fc297327e84543dabf559e19621e0fade1d36
5
5
  SHA512:
6
- metadata.gz: 55f2feec8055ddea58336ce8f48de754983ffa36385389fa3634790b8bbd7d58e77d76e0aa285c2a89f0bcd509ddd82ed941fc4e91a28f7b5d48117cddf669ff
7
- data.tar.gz: 377ef506a8f9ece47979b54e290c6b80a407b32b96feec4442b669c2d2b024c9d9753ab4f1a5930f153cc020627722dbaf77acf70a4c53b216118a7ac8524422
6
+ metadata.gz: 5ebe5f640318114a0fd41351542cdebf464af11264fd33ec0eeffafb9e7c3c513635e0559d943364c2a138784fcd4df636712f2d69e41eea908a6c08fc112cf6
7
+ data.tar.gz: 3e7f801d05415f74ac2749b88758f7ff9ccff14c15ae454a3d74b740e2aa2b29b5e17aa43f6cb84c3cf55d571b00f31d6d7d4f1acf4f7f2906ccaa18b0e489ae
@@ -0,0 +1,178 @@
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 AuditLogOrganisationSettingsUpdatedMetadataV3V2 < ApiModelBase
18
+ # The organisation name after the change
19
+ attr_accessor :after_organisation_name
20
+
21
+ # The organisation name before the change
22
+ attr_accessor :before_organisation_name
23
+
24
+ # The default timezone that was set
25
+ attr_accessor :default_timezone
26
+
27
+ # The number of days incident channel messages are kept for, empty when they are kept indefinitely
28
+ attr_accessor :message_retention_days
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'after_organisation_name' => :'after_organisation_name',
34
+ :'before_organisation_name' => :'before_organisation_name',
35
+ :'default_timezone' => :'default_timezone',
36
+ :'message_retention_days' => :'message_retention_days'
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
+ :'after_organisation_name' => :'String',
54
+ :'before_organisation_name' => :'String',
55
+ :'default_timezone' => :'String',
56
+ :'message_retention_days' => :'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::AuditLogOrganisationSettingsUpdatedMetadataV3V2` 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::AuditLogOrganisationSettingsUpdatedMetadataV3V2`. 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?(:'after_organisation_name')
83
+ self.after_organisation_name = attributes[:'after_organisation_name']
84
+ end
85
+
86
+ if attributes.key?(:'before_organisation_name')
87
+ self.before_organisation_name = attributes[:'before_organisation_name']
88
+ end
89
+
90
+ if attributes.key?(:'default_timezone')
91
+ self.default_timezone = attributes[:'default_timezone']
92
+ end
93
+
94
+ if attributes.key?(:'message_retention_days')
95
+ self.message_retention_days = attributes[:'message_retention_days']
96
+ end
97
+ end
98
+
99
+ # Show invalid properties with the reasons. Usually used together with valid?
100
+ # @return Array for valid properties with the reasons
101
+ def list_invalid_properties
102
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
103
+ invalid_properties = Array.new
104
+ invalid_properties
105
+ end
106
+
107
+ # Check to see if the all the properties in the model are valid
108
+ # @return true if the model is valid
109
+ def valid?
110
+ warn '[DEPRECATED] the `valid?` method is obsolete'
111
+ true
112
+ end
113
+
114
+ # Checks equality by comparing each attribute.
115
+ # @param [Object] Object to be compared
116
+ def ==(o)
117
+ return true if self.equal?(o)
118
+ self.class == o.class &&
119
+ after_organisation_name == o.after_organisation_name &&
120
+ before_organisation_name == o.before_organisation_name &&
121
+ default_timezone == o.default_timezone &&
122
+ message_retention_days == o.message_retention_days
123
+ end
124
+
125
+ # @see the `==` method
126
+ # @param [Object] Object to be compared
127
+ def eql?(o)
128
+ self == o
129
+ end
130
+
131
+ # Calculates hash code according to all attributes.
132
+ # @return [Integer] Hash code
133
+ def hash
134
+ [after_organisation_name, before_organisation_name, default_timezone, message_retention_days].hash
135
+ end
136
+
137
+ # Builds the object from hash
138
+ # @param [Hash] attributes Model attributes in the form of hash
139
+ # @return [Object] Returns the model itself
140
+ def self.build_from_hash(attributes)
141
+ return nil unless attributes.is_a?(Hash)
142
+ attributes = attributes.transform_keys(&:to_sym)
143
+ transformed_hash = {}
144
+ openapi_types.each_pair do |key, type|
145
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
146
+ transformed_hash["#{key}"] = nil
147
+ elsif type =~ /\AArray<(.*)>/i
148
+ # check to ensure the input is an array given that the attribute
149
+ # is documented as an array but the input is not
150
+ if attributes[attribute_map[key]].is_a?(Array)
151
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
152
+ end
153
+ elsif !attributes[attribute_map[key]].nil?
154
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
155
+ end
156
+ end
157
+ new(transformed_hash)
158
+ end
159
+
160
+ # Returns the object in the form of hash
161
+ # @return [Hash] Returns the object in the form of hash
162
+ def to_hash
163
+ hash = {}
164
+ self.class.attribute_map.each_pair do |attr, param|
165
+ value = self.send(attr)
166
+ if value.nil?
167
+ is_nullable = self.class.openapi_nullable.include?(attr)
168
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
169
+ end
170
+
171
+ hash[param] = _to_hash(value)
172
+ end
173
+ hash
174
+ end
175
+
176
+ end
177
+
178
+ 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 AuditLogsOrganisationSettingsUpdatedV3 < 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' => :'AuditLogOrganisationSettingsUpdatedMetadataV3V2',
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::AuditLogsOrganisationSettingsUpdatedV3` 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::AuditLogsOrganisationSettingsUpdatedV3`. 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
@@ -4,5 +4,5 @@ module IncidentIo
4
4
  # The release workflow sets this before building, so it tracks whatever we
5
5
  # last published. Listed in .openapi-generator-ignore so regeneration can't
6
6
  # reset it.
7
- VERSION = "2.35.0"
7
+ VERSION = "2.36.0"
8
8
  end
data/lib/incident_io.rb CHANGED
@@ -246,6 +246,7 @@ IncidentIo.autoload :AuditLogOnCallNotificationMethodMetadataV2, 'incident_io/mo
246
246
  IncidentIo.autoload :AuditLogOnCallNotificationPauseMetadataV2, 'incident_io/models/audit_log_on_call_notification_pause_metadata_v2'
247
247
  IncidentIo.autoload :AuditLogOnCallUpsellRequestedMetadataV2, 'incident_io/models/audit_log_on_call_upsell_requested_metadata_v2'
248
248
  IncidentIo.autoload :AuditLogOrganisationSettingsUpdatedMetadataV2, 'incident_io/models/audit_log_organisation_settings_updated_metadata_v2'
249
+ IncidentIo.autoload :AuditLogOrganisationSettingsUpdatedMetadataV3V2, 'incident_io/models/audit_log_organisation_settings_updated_metadata_v3_v2'
249
250
  IncidentIo.autoload :AuditLogPolicyMetadataV2, 'incident_io/models/audit_log_policy_metadata_v2'
250
251
  IncidentIo.autoload :AuditLogPrivateAlertAccessAttemptedMetadataV2, 'incident_io/models/audit_log_private_alert_access_attempted_metadata_v2'
251
252
  IncidentIo.autoload :AuditLogPrivateEscalationAccessAttemptedMetadataV2, 'incident_io/models/audit_log_private_escalation_access_attempted_metadata_v2'
@@ -525,6 +526,7 @@ IncidentIo.autoload :AuditLogsOnCallUpsellRequestedV1, 'incident_io/models/audit
525
526
  IncidentIo.autoload :AuditLogsOnCallUpsellRequestedV2, 'incident_io/models/audit_logs_on_call_upsell_requested_v2'
526
527
  IncidentIo.autoload :AuditLogsOrganisationSettingsUpdatedV1, 'incident_io/models/audit_logs_organisation_settings_updated_v1'
527
528
  IncidentIo.autoload :AuditLogsOrganisationSettingsUpdatedV2, 'incident_io/models/audit_logs_organisation_settings_updated_v2'
529
+ IncidentIo.autoload :AuditLogsOrganisationSettingsUpdatedV3, 'incident_io/models/audit_logs_organisation_settings_updated_v3'
528
530
  IncidentIo.autoload :AuditLogsPolicyCreatedV1, 'incident_io/models/audit_logs_policy_created_v1'
529
531
  IncidentIo.autoload :AuditLogsPolicyCreatedV2, 'incident_io/models/audit_logs_policy_created_v2'
530
532
  IncidentIo.autoload :AuditLogsPolicyCreatedV3, 'incident_io/models/audit_logs_policy_created_v3'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incident_io_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.35.0
4
+ version: 2.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - incident.io
@@ -374,6 +374,7 @@ files:
374
374
  - lib/incident_io/models/audit_log_on_call_notification_pause_metadata_v2.rb
375
375
  - lib/incident_io/models/audit_log_on_call_upsell_requested_metadata_v2.rb
376
376
  - lib/incident_io/models/audit_log_organisation_settings_updated_metadata_v2.rb
377
+ - lib/incident_io/models/audit_log_organisation_settings_updated_metadata_v3_v2.rb
377
378
  - lib/incident_io/models/audit_log_policy_metadata_v2.rb
378
379
  - lib/incident_io/models/audit_log_private_alert_access_attempted_metadata_v2.rb
379
380
  - lib/incident_io/models/audit_log_private_escalation_access_attempted_metadata_v2.rb
@@ -653,6 +654,7 @@ files:
653
654
  - lib/incident_io/models/audit_logs_on_call_upsell_requested_v2.rb
654
655
  - lib/incident_io/models/audit_logs_organisation_settings_updated_v1.rb
655
656
  - lib/incident_io/models/audit_logs_organisation_settings_updated_v2.rb
657
+ - lib/incident_io/models/audit_logs_organisation_settings_updated_v3.rb
656
658
  - lib/incident_io/models/audit_logs_policy_created_v1.rb
657
659
  - lib/incident_io/models/audit_logs_policy_created_v2.rb
658
660
  - lib/incident_io/models/audit_logs_policy_created_v3.rb