incident_io_api 2.40.0 → 2.41.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: c8d87ce9e8376139edefed8b7c42a35779400d9580c626f68990f4ea5b40830f
4
- data.tar.gz: 27ab081d9d98cb710fa1374a330800761bbb727836e8db8229b6b2e2a18ceebe
3
+ metadata.gz: 65edaea8cb9f4c5c2a1e481eaaf4a2b5febc8a946684485806f24c87fc57def7
4
+ data.tar.gz: 516e05846e221eef10104f87059367101d4f256fcd2679d03e6ac9c313f5990c
5
5
  SHA512:
6
- metadata.gz: 800076b81e1112f6e267eba28a17f1e3b8ae9454533254e4cfea26abd5b1a63d9aeeeee4ed28224131c4711bdf5e5f9dc76ade159dc86f2a35223834ffe95d00
7
- data.tar.gz: 58ceab30188c55fdb23b24afe155621c40010281266d490e4290a44abca56498dba682eb45770ac0bd1d0d9c8212494c4cb81d6cfb6b655001c027429ba7456a
6
+ metadata.gz: 06b267dbadaf56cbcfeb8ba2224e96ef8cc77d7a9c2ea9127c1e534d21b7e0cfc90a74c9568525bb5bd68ef14db7f62197c9c365167d13df7f7fd1fb86ad95fc
7
+ data.tar.gz: 6f72cc8b1c9adefc13bb4ee54500b0ce170e9bdd3b04051441fcc48941ba3efec8c1791a9f93f65ee2d5aae238e768960efe264710d5b7063cf89b9b1855e82b
@@ -30,6 +30,9 @@ module IncidentIo
30
30
  # When this entry was created
31
31
  attr_accessor :created_at
32
32
 
33
+ # Aliases your organisation has added to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Syncs keep them, and they are also listed in aliases. When you update an entry, omit this or send null to keep its current custom aliases, send an empty list to clear them, or send a list to replace them.
34
+ attr_accessor :custom_aliases
35
+
33
36
  # An optional alternative ID for this entry, which is ensured to be unique for the type
34
37
  attr_accessor :external_id
35
38
 
@@ -53,6 +56,7 @@ module IncidentIo
53
56
  :'attribute_values' => :'attribute_values',
54
57
  :'catalog_type_id' => :'catalog_type_id',
55
58
  :'created_at' => :'created_at',
59
+ :'custom_aliases' => :'custom_aliases',
56
60
  :'external_id' => :'external_id',
57
61
  :'id' => :'id',
58
62
  :'name' => :'name',
@@ -79,6 +83,7 @@ module IncidentIo
79
83
  :'attribute_values' => :'Hash<String, CatalogEntryEngineParamBindingV3>',
80
84
  :'catalog_type_id' => :'String',
81
85
  :'created_at' => :'Time',
86
+ :'custom_aliases' => :'Array<String>',
82
87
  :'external_id' => :'String',
83
88
  :'id' => :'String',
84
89
  :'name' => :'String',
@@ -141,6 +146,14 @@ module IncidentIo
141
146
  self.created_at = nil
142
147
  end
143
148
 
149
+ if attributes.key?(:'custom_aliases')
150
+ if (value = attributes[:'custom_aliases']).is_a?(Array)
151
+ self.custom_aliases = value
152
+ end
153
+ else
154
+ self.custom_aliases = nil
155
+ end
156
+
144
157
  if attributes.key?(:'external_id')
145
158
  self.external_id = attributes[:'external_id']
146
159
  end
@@ -191,6 +204,10 @@ module IncidentIo
191
204
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
192
205
  end
193
206
 
207
+ if @custom_aliases.nil?
208
+ invalid_properties.push('invalid value for "custom_aliases", custom_aliases cannot be nil.')
209
+ end
210
+
194
211
  if @id.nil?
195
212
  invalid_properties.push('invalid value for "id", id cannot be nil.')
196
213
  end
@@ -218,6 +235,7 @@ module IncidentIo
218
235
  return false if @attribute_values.nil?
219
236
  return false if @catalog_type_id.nil?
220
237
  return false if @created_at.nil?
238
+ return false if @custom_aliases.nil?
221
239
  return false if @id.nil?
222
240
  return false if @name.nil?
223
241
  return false if @rank.nil?
@@ -265,6 +283,16 @@ module IncidentIo
265
283
  @created_at = created_at
266
284
  end
267
285
 
286
+ # Custom attribute writer method with validation
287
+ # @param [Object] custom_aliases Value to be assigned
288
+ def custom_aliases=(custom_aliases)
289
+ if custom_aliases.nil?
290
+ fail ArgumentError, 'custom_aliases cannot be nil'
291
+ end
292
+
293
+ @custom_aliases = custom_aliases
294
+ end
295
+
268
296
  # Custom attribute writer method with validation
269
297
  # @param [Object] id Value to be assigned
270
298
  def id=(id)
@@ -315,6 +343,7 @@ module IncidentIo
315
343
  attribute_values == o.attribute_values &&
316
344
  catalog_type_id == o.catalog_type_id &&
317
345
  created_at == o.created_at &&
346
+ custom_aliases == o.custom_aliases &&
318
347
  external_id == o.external_id &&
319
348
  id == o.id &&
320
349
  name == o.name &&
@@ -331,7 +360,7 @@ module IncidentIo
331
360
  # Calculates hash code according to all attributes.
332
361
  # @return [Integer] Hash code
333
362
  def hash
334
- [aliases, archived_at, attribute_values, catalog_type_id, created_at, external_id, id, name, rank, updated_at].hash
363
+ [aliases, archived_at, attribute_values, catalog_type_id, created_at, custom_aliases, external_id, id, name, rank, updated_at].hash
335
364
  end
336
365
 
337
366
  # Builds the object from hash
@@ -74,6 +74,9 @@ module IncidentIo
74
74
  # The url of the external repository where this type is managed
75
75
  attr_accessor :source_repo_url
76
76
 
77
+ # Whether entries of this type take custom_aliases. Only catalog types that incident.io syncs do, as you can't change their aliases directly, and not those whose aliases you edit elsewhere, such as alert priorities.
78
+ attr_accessor :supports_custom_aliases
79
+
77
80
  # The type name of this catalog type, to be used when defining attributes. This is immutable once a CatalogType has been created. For non-externally sync types, it must follow the pattern Custom[\"SomeName\"]
78
81
  attr_accessor :type_name
79
82
 
@@ -106,6 +109,7 @@ module IncidentIo
106
109
  :'required_integrations' => :'required_integrations',
107
110
  :'schema' => :'schema',
108
111
  :'source_repo_url' => :'source_repo_url',
112
+ :'supports_custom_aliases' => :'supports_custom_aliases',
109
113
  :'type_name' => :'type_name',
110
114
  :'updated_at' => :'updated_at',
111
115
  :'use_name_as_identifier' => :'use_name_as_identifier'
@@ -145,6 +149,7 @@ module IncidentIo
145
149
  :'required_integrations' => :'Array<String>',
146
150
  :'schema' => :'CatalogTypeSchemaV3',
147
151
  :'source_repo_url' => :'String',
152
+ :'supports_custom_aliases' => :'Boolean',
148
153
  :'type_name' => :'String',
149
154
  :'updated_at' => :'Time',
150
155
  :'use_name_as_identifier' => :'Boolean'
@@ -285,6 +290,12 @@ module IncidentIo
285
290
  self.source_repo_url = attributes[:'source_repo_url']
286
291
  end
287
292
 
293
+ if attributes.key?(:'supports_custom_aliases')
294
+ self.supports_custom_aliases = attributes[:'supports_custom_aliases']
295
+ else
296
+ self.supports_custom_aliases = nil
297
+ end
298
+
288
299
  if attributes.key?(:'type_name')
289
300
  self.type_name = attributes[:'type_name']
290
301
  else
@@ -357,6 +368,10 @@ module IncidentIo
357
368
  invalid_properties.push('invalid value for "schema", schema cannot be nil.')
358
369
  end
359
370
 
371
+ if @supports_custom_aliases.nil?
372
+ invalid_properties.push('invalid value for "supports_custom_aliases", supports_custom_aliases cannot be nil.')
373
+ end
374
+
360
375
  if @type_name.nil?
361
376
  invalid_properties.push('invalid value for "type_name", type_name cannot be nil.')
362
377
  end
@@ -388,6 +403,7 @@ module IncidentIo
388
403
  return false if @name.nil?
389
404
  return false if @ranked.nil?
390
405
  return false if @schema.nil?
406
+ return false if @supports_custom_aliases.nil?
391
407
  return false if @type_name.nil?
392
408
  return false if @updated_at.nil?
393
409
  return false if @use_name_as_identifier.nil?
@@ -514,6 +530,16 @@ module IncidentIo
514
530
  @schema = schema
515
531
  end
516
532
 
533
+ # Custom attribute writer method with validation
534
+ # @param [Object] supports_custom_aliases Value to be assigned
535
+ def supports_custom_aliases=(supports_custom_aliases)
536
+ if supports_custom_aliases.nil?
537
+ fail ArgumentError, 'supports_custom_aliases cannot be nil'
538
+ end
539
+
540
+ @supports_custom_aliases = supports_custom_aliases
541
+ end
542
+
517
543
  # Custom attribute writer method with validation
518
544
  # @param [Object] type_name Value to be assigned
519
545
  def type_name=(type_name)
@@ -569,6 +595,7 @@ module IncidentIo
569
595
  required_integrations == o.required_integrations &&
570
596
  schema == o.schema &&
571
597
  source_repo_url == o.source_repo_url &&
598
+ supports_custom_aliases == o.supports_custom_aliases &&
572
599
  type_name == o.type_name &&
573
600
  updated_at == o.updated_at &&
574
601
  use_name_as_identifier == o.use_name_as_identifier
@@ -583,7 +610,7 @@ module IncidentIo
583
610
  # Calculates hash code according to all attributes.
584
611
  # @return [Integer] Hash code
585
612
  def hash
586
- [annotations, categories, color, created_at, description, dynamic_resource_parameter, engine_resource_type, estimated_count, icon, id, is_editable, is_team_type, last_synced_at, name, owning_team_ids, ranked, registry_type, required_integrations, schema, source_repo_url, type_name, updated_at, use_name_as_identifier].hash
613
+ [annotations, categories, color, created_at, description, dynamic_resource_parameter, engine_resource_type, estimated_count, icon, id, is_editable, is_team_type, last_synced_at, name, owning_team_ids, ranked, registry_type, required_integrations, schema, source_repo_url, supports_custom_aliases, type_name, updated_at, use_name_as_identifier].hash
587
614
  end
588
615
 
589
616
  # Builds the object from hash
@@ -21,6 +21,9 @@ module IncidentIo
21
21
  # Values of this entry
22
22
  attr_accessor :attribute_values
23
23
 
24
+ # Aliases your organisation has added to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Syncs keep them, and they are also listed in aliases. When you update an entry, omit this or send null to keep its current custom aliases, send an empty list to clear them, or send a list to replace them.
25
+ attr_accessor :custom_aliases
26
+
24
27
  # An optional alternative ID for this entry, which is ensured to be unique for the type
25
28
  attr_accessor :external_id
26
29
 
@@ -38,6 +41,7 @@ module IncidentIo
38
41
  {
39
42
  :'aliases' => :'aliases',
40
43
  :'attribute_values' => :'attribute_values',
44
+ :'custom_aliases' => :'custom_aliases',
41
45
  :'external_id' => :'external_id',
42
46
  :'name' => :'name',
43
47
  :'rank' => :'rank',
@@ -60,6 +64,7 @@ module IncidentIo
60
64
  {
61
65
  :'aliases' => :'Array<String>',
62
66
  :'attribute_values' => :'Hash<String, CatalogEngineParamBindingPayloadV3>',
67
+ :'custom_aliases' => :'Array<String>',
63
68
  :'external_id' => :'String',
64
69
  :'name' => :'String',
65
70
  :'rank' => :'Integer',
@@ -103,6 +108,12 @@ module IncidentIo
103
108
  self.attribute_values = nil
104
109
  end
105
110
 
111
+ if attributes.key?(:'custom_aliases')
112
+ if (value = attributes[:'custom_aliases']).is_a?(Array)
113
+ self.custom_aliases = value
114
+ end
115
+ end
116
+
106
117
  if attributes.key?(:'external_id')
107
118
  self.external_id = attributes[:'external_id']
108
119
  end
@@ -176,6 +187,7 @@ module IncidentIo
176
187
  self.class == o.class &&
177
188
  aliases == o.aliases &&
178
189
  attribute_values == o.attribute_values &&
190
+ custom_aliases == o.custom_aliases &&
179
191
  external_id == o.external_id &&
180
192
  name == o.name &&
181
193
  rank == o.rank &&
@@ -191,7 +203,7 @@ module IncidentIo
191
203
  # Calculates hash code according to all attributes.
192
204
  # @return [Integer] Hash code
193
205
  def hash
194
- [aliases, attribute_values, external_id, name, rank, update_attributes].hash
206
+ [aliases, attribute_values, custom_aliases, external_id, name, rank, update_attributes].hash
195
207
  end
196
208
 
197
209
  # Builds the object from hash
@@ -22,6 +22,9 @@ module IncidentIo
22
22
  # The attribute values to apply to this entry
23
23
  attr_accessor :attribute_values
24
24
 
25
+ # Aliases your organisation adds to an entry of a catalog type that incident.io syncs, such as a schedule or escalation path, which you can't change aliases on directly. Omit this or send null to keep the entry's current custom aliases, send an empty list to clear them, or send a list to replace them. Only available on catalog types where supports_custom_aliases is true.
26
+ attr_accessor :custom_aliases
27
+
25
28
  # ID of the relevant catalog entry
26
29
  attr_accessor :entry_id
27
30
 
@@ -39,6 +42,7 @@ module IncidentIo
39
42
  {
40
43
  :'aliases' => :'aliases',
41
44
  :'attribute_values' => :'attribute_values',
45
+ :'custom_aliases' => :'custom_aliases',
42
46
  :'entry_id' => :'entry_id',
43
47
  :'external_id' => :'external_id',
44
48
  :'name' => :'name',
@@ -61,6 +65,7 @@ module IncidentIo
61
65
  {
62
66
  :'aliases' => :'Array<String>',
63
67
  :'attribute_values' => :'Hash<String, CatalogEngineParamBindingPayloadV3>',
68
+ :'custom_aliases' => :'Array<String>',
64
69
  :'entry_id' => :'String',
65
70
  :'external_id' => :'String',
66
71
  :'name' => :'String',
@@ -104,6 +109,12 @@ module IncidentIo
104
109
  self.attribute_values = nil
105
110
  end
106
111
 
112
+ if attributes.key?(:'custom_aliases')
113
+ if (value = attributes[:'custom_aliases']).is_a?(Array)
114
+ self.custom_aliases = value
115
+ end
116
+ end
117
+
107
118
  if attributes.key?(:'entry_id')
108
119
  self.entry_id = attributes[:'entry_id']
109
120
  else
@@ -175,6 +186,7 @@ module IncidentIo
175
186
  self.class == o.class &&
176
187
  aliases == o.aliases &&
177
188
  attribute_values == o.attribute_values &&
189
+ custom_aliases == o.custom_aliases &&
178
190
  entry_id == o.entry_id &&
179
191
  external_id == o.external_id &&
180
192
  name == o.name &&
@@ -190,7 +202,7 @@ module IncidentIo
190
202
  # Calculates hash code according to all attributes.
191
203
  # @return [Integer] Hash code
192
204
  def hash
193
- [aliases, attribute_values, entry_id, external_id, name, rank].hash
205
+ [aliases, attribute_values, custom_aliases, entry_id, external_id, name, rank].hash
194
206
  end
195
207
 
196
208
  # Builds the object from hash
@@ -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.40.0"
7
+ VERSION = "2.41.0"
8
8
  end
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.40.0
4
+ version: 2.41.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - incident.io