incident_io_api 4.4.0 → 4.5.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: 6c94010a30cdf346d38c38fbf489db60a82f510f08d6864229e5a0b4c1923485
4
- data.tar.gz: 116b7da09c94583e01b576fab68463c644ad72e42b18d3322f208bfcc291d1a1
3
+ metadata.gz: 629a0e17e26a7976f8ed5b402371f3ae6b8f1ae0dcaf3276f5ce59dba36b5e43
4
+ data.tar.gz: 508c7b31b8c5fad2c2070904c8b9c1b6207df1537ddb9a3c6301fefa28bf7901
5
5
  SHA512:
6
- metadata.gz: d2fadfb74cde2b89ed03eaf1202bf6be513da4ce25c3d8a3a15086d9a962be5b2b4033652b1db5be7d7bc466ebd784833471165a94a7c4c72cc60b4d314847e9
7
- data.tar.gz: 8aee8c0c6288ec757f548179ef5202615ac42e66b0a2115929d0019a5d00b190a1882a96b788f7a7a3f7719a361b240c0b3d4ac3d63b9625f508c3c647274236
6
+ metadata.gz: 19b6dd51af37ea0ded42aa1e1610cb8283e5ac8ba2abe85cb8c736382711213a0db02177ee2b07dbddb6fa00b54157bbffa49252f4d5096b9dfc85bfefac66a1
7
+ data.tar.gz: e24945e4834a7d3fccec0961b2c6426171265117a8d5c7674fbcfc945f3fad1111fcc26a02aece66845a55474a2f69f0dd8096b237409a3dc56e642d31117a4e
@@ -163,7 +163,7 @@ module IncidentIo
163
163
  end
164
164
 
165
165
  # ListNotificationRules Users V2
166
- # List notification rules for a user. Rules define how and when a user is notified for on-call pages. Only includes high_urgency and low_urgency rules; shift_changes rules are not returned.
166
+ # List notification rules for a user. Rules define how and when a user is notified for on-call pages. Each rule applies to pages at one interruption level, high or low. Only includes rules for pages; shift_changes rules are not returned.
167
167
  # @param user_id [String] The ID of the user whose notification rules you want to list.
168
168
  # @param [Hash] opts the optional parameters
169
169
  # @return [UsersListNotificationRulesResultV2]
@@ -173,7 +173,7 @@ module IncidentIo
173
173
  end
174
174
 
175
175
  # ListNotificationRules Users V2
176
- # List notification rules for a user. Rules define how and when a user is notified for on-call pages. Only includes high_urgency and low_urgency rules; shift_changes rules are not returned.
176
+ # List notification rules for a user. Rules define how and when a user is notified for on-call pages. Each rule applies to pages at one interruption level, high or low. Only includes rules for pages; shift_changes rules are not returned.
177
177
  # @param user_id [String] The ID of the user whose notification rules you want to list.
178
178
  # @param [Hash] opts the optional parameters
179
179
  # @return [Array<(UsersListNotificationRulesResultV2, Integer, Hash)>] UsersListNotificationRulesResultV2 data, response status code and response headers
@@ -23,6 +23,9 @@ module IncidentIo
23
23
  # Unique identifier for this notification rule
24
24
  attr_accessor :id
25
25
 
26
+ # The interruption level of the pages this rule applies to: high or low. Known values: `high`, `low`
27
+ attr_accessor :interruption_level
28
+
26
29
  attr_accessor :method_target
27
30
 
28
31
  # The high-level type of notification method. Phone rules include phone details that distinguish SMS from voice calls. Known values: `app`, `email`, `microsoft_teams`, `phone`, `slack`, `whatsapp_message`
@@ -30,7 +33,7 @@ module IncidentIo
30
33
 
31
34
  attr_accessor :phone
32
35
 
33
- # The urgency level this rule applies to Known values: `high_urgency`, `low_urgency`
36
+ # Deprecated: use interruption_level, which always has the same value. Known values: `high_urgency`, `low_urgency`
34
37
  attr_accessor :rule_type
35
38
 
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -39,6 +42,7 @@ module IncidentIo
39
42
  :'app' => :'app',
40
43
  :'delay_seconds' => :'delay_seconds',
41
44
  :'id' => :'id',
45
+ :'interruption_level' => :'interruption_level',
42
46
  :'method_target' => :'method_target',
43
47
  :'method_type' => :'method_type',
44
48
  :'phone' => :'phone',
@@ -62,6 +66,7 @@ module IncidentIo
62
66
  :'app' => :'OnCallNotificationRuleAppDetailsPublicV2',
63
67
  :'delay_seconds' => :'Integer',
64
68
  :'id' => :'String',
69
+ :'interruption_level' => :'String',
65
70
  :'method_target' => :'OnCallNotificationRuleMethodTargetPublicV2',
66
71
  :'method_type' => :'String',
67
72
  :'phone' => :'OnCallNotificationRulePhoneDetailsPublicV2',
@@ -105,6 +110,12 @@ module IncidentIo
105
110
  self.id = nil
106
111
  end
107
112
 
113
+ if attributes.key?(:'interruption_level')
114
+ self.interruption_level = attributes[:'interruption_level']
115
+ else
116
+ self.interruption_level = nil
117
+ end
118
+
108
119
  if attributes.key?(:'method_target')
109
120
  self.method_target = attributes[:'method_target']
110
121
  else
@@ -145,6 +156,10 @@ module IncidentIo
145
156
  invalid_properties.push('invalid value for "id", id cannot be nil.')
146
157
  end
147
158
 
159
+ if @interruption_level.nil?
160
+ invalid_properties.push('invalid value for "interruption_level", interruption_level cannot be nil.')
161
+ end
162
+
148
163
  if @method_target.nil?
149
164
  invalid_properties.push('invalid value for "method_target", method_target cannot be nil.')
150
165
  end
@@ -167,6 +182,7 @@ module IncidentIo
167
182
  return false if !@delay_seconds.nil? && @delay_seconds > 1200
168
183
  return false if !@delay_seconds.nil? && @delay_seconds < 0
169
184
  return false if @id.nil?
185
+ return false if @interruption_level.nil?
170
186
  return false if @method_target.nil?
171
187
  return false if @method_type.nil?
172
188
  return false if @rule_type.nil?
@@ -201,6 +217,16 @@ module IncidentIo
201
217
  @id = id
202
218
  end
203
219
 
220
+ # Custom attribute writer method with validation
221
+ # @param [Object] interruption_level Value to be assigned
222
+ def interruption_level=(interruption_level)
223
+ if interruption_level.nil?
224
+ fail ArgumentError, 'interruption_level cannot be nil'
225
+ end
226
+
227
+ @interruption_level = interruption_level
228
+ end
229
+
204
230
  # Custom attribute writer method with validation
205
231
  # @param [Object] method_target Value to be assigned
206
232
  def method_target=(method_target)
@@ -239,6 +265,7 @@ module IncidentIo
239
265
  app == o.app &&
240
266
  delay_seconds == o.delay_seconds &&
241
267
  id == o.id &&
268
+ interruption_level == o.interruption_level &&
242
269
  method_target == o.method_target &&
243
270
  method_type == o.method_type &&
244
271
  phone == o.phone &&
@@ -254,7 +281,7 @@ module IncidentIo
254
281
  # Calculates hash code according to all attributes.
255
282
  # @return [Integer] Hash code
256
283
  def hash
257
- [app, delay_seconds, id, method_target, method_type, phone, rule_type].hash
284
+ [app, delay_seconds, id, interruption_level, method_target, method_type, phone, rule_type].hash
258
285
  end
259
286
 
260
287
  # 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 = "4.4.0"
7
+ VERSION = "4.5.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: 4.4.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - incident.io