incident_io_api 2.73.0 → 4.0.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: c5ce33d312219d3ade27c4af707b42dc1520a329d422a8a352db04b39e435920
4
- data.tar.gz: '08e1ba30605931e700c65c8bd0d49a42a2b20c43fdccb7f137e91bb30c07382c'
3
+ metadata.gz: 21f59c9fefd9cf26baa7eda449da3cccc634d8b183391d41b0138883b1e10c78
4
+ data.tar.gz: c9b21d19226cfa1c5cbd71ae3c8712032e1ea9a224ecb431c08317c304abc696
5
5
  SHA512:
6
- metadata.gz: cb58cd902fe2ad7d9435b49fbbe768a9d952de545ce4983e5d589e5cb26f33426782a87fd79419583af9902f450ae9ca91db92b916e1f43d5a54567c761c258f
7
- data.tar.gz: 2b6b9130184b6725fa311f054967fe0be7f94c750d1f2a44f3a4a59894acce1d2f8b27cdef375c9643914b8e8949d7c46d8a216084a5f7eab0790ae5948e931a
6
+ metadata.gz: 0d3ab6100efd5b89c48dcb9db48c0f54628fdc7421834160796efb98e7ce14b9cadae5d728b01c55a3514ac1d29e203acb278266bf16ad9b1fb45629a0863811
7
+ data.tar.gz: cbeb61f1308067f164a9dcc5f61a7eaaca6fb74cd8da0649b26355f81cd9eb5c95b5db1d4c6954cf4c28d291f58bc250d104c9476da945f6c336f847cfaba561
@@ -0,0 +1,361 @@
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 'cgi'
14
+
15
+ module IncidentIo
16
+ class EscalationPathsV2Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create Escalation Paths V2
23
+ # Create an escalation path. An escalation path is a series of steps that describe how a page should be escalated, represented as graph, supporting conditional branches based on alert priority and working intervals. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
24
+ # @param escalation_paths_create_payload_v2 [EscalationPathsCreatePayloadV2]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [EscalationPathsCreateResultV2]
27
+ def escalation_paths_v2_create(escalation_paths_create_payload_v2, opts = {})
28
+ data, _status_code, _headers = escalation_paths_v2_create_with_http_info(escalation_paths_create_payload_v2, opts)
29
+ data
30
+ end
31
+
32
+ # Create Escalation Paths V2
33
+ # Create an escalation path. An escalation path is a series of steps that describe how a page should be escalated, represented as graph, supporting conditional branches based on alert priority and working intervals. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
34
+ # @param escalation_paths_create_payload_v2 [EscalationPathsCreatePayloadV2]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(EscalationPathsCreateResultV2, Integer, Hash)>] EscalationPathsCreateResultV2 data, response status code and response headers
37
+ def escalation_paths_v2_create_with_http_info(escalation_paths_create_payload_v2, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: EscalationPathsV2Api.escalation_paths_v2_create ...'
40
+ end
41
+ # verify the required parameter 'escalation_paths_create_payload_v2' is set
42
+ if @api_client.config.client_side_validation && escalation_paths_create_payload_v2.nil?
43
+ fail ArgumentError, "Missing the required parameter 'escalation_paths_create_payload_v2' when calling EscalationPathsV2Api.escalation_paths_v2_create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/v2/escalation_paths'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
55
+ # HTTP header 'Content-Type'
56
+ content_type = @api_client.select_header_content_type(['application/json'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
60
+
61
+ # form parameters
62
+ form_params = opts[:form_params] || {}
63
+
64
+ # http body (model)
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(escalation_paths_create_payload_v2)
66
+
67
+ # return_type
68
+ return_type = opts[:debug_return_type] || 'EscalationPathsCreateResultV2'
69
+
70
+ # auth_names
71
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
72
+
73
+ new_options = opts.merge(
74
+ :operation => :"EscalationPathsV2Api.escalation_paths_v2_create",
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names,
80
+ :return_type => return_type
81
+ )
82
+
83
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ if @api_client.config.debugging
85
+ @api_client.config.logger.debug "API called: EscalationPathsV2Api#escalation_paths_v2_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ end
87
+ return data, status_code, headers
88
+ end
89
+
90
+ # Destroy Escalation Paths V2
91
+ # Archives an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
92
+ # @param id [String] Unique identifier for this escalation path.
93
+ # @param [Hash] opts the optional parameters
94
+ # @return [nil]
95
+ def escalation_paths_v2_destroy(id, opts = {})
96
+ escalation_paths_v2_destroy_with_http_info(id, opts)
97
+ nil
98
+ end
99
+
100
+ # Destroy Escalation Paths V2
101
+ # Archives an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
102
+ # @param id [String] Unique identifier for this escalation path.
103
+ # @param [Hash] opts the optional parameters
104
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
105
+ def escalation_paths_v2_destroy_with_http_info(id, opts = {})
106
+ if @api_client.config.debugging
107
+ @api_client.config.logger.debug 'Calling API: EscalationPathsV2Api.escalation_paths_v2_destroy ...'
108
+ end
109
+ # verify the required parameter 'id' is set
110
+ if @api_client.config.client_side_validation && id.nil?
111
+ fail ArgumentError, "Missing the required parameter 'id' when calling EscalationPathsV2Api.escalation_paths_v2_destroy"
112
+ end
113
+ # resource path
114
+ local_var_path = '/v2/escalation_paths/{id}'.sub('{id}', CGI.escape(id.to_s))
115
+
116
+ # query parameters
117
+ query_params = opts[:query_params] || {}
118
+
119
+ # header parameters
120
+ header_params = opts[:header_params] || {}
121
+ # HTTP header 'Accept' (if needed)
122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
123
+
124
+ # form parameters
125
+ form_params = opts[:form_params] || {}
126
+
127
+ # http body (model)
128
+ post_body = opts[:debug_body]
129
+
130
+ # return_type
131
+ return_type = opts[:debug_return_type]
132
+
133
+ # auth_names
134
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
135
+
136
+ new_options = opts.merge(
137
+ :operation => :"EscalationPathsV2Api.escalation_paths_v2_destroy",
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => return_type
144
+ )
145
+
146
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug "API called: EscalationPathsV2Api#escalation_paths_v2_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ end
150
+ return data, status_code, headers
151
+ end
152
+
153
+ # List Escalation Paths V2
154
+ # List all escalation paths in your account. An escalation path is a series of steps that describe how a page should be escalated, represented as a graph, supporting conditional branches based on alert priority and working intervals.
155
+ # @param [Hash] opts the optional parameters
156
+ # @option opts [Integer] :page_size Integer number of records to return (default to 25)
157
+ # @option opts [String] :after An record&#39;s ID. This endpoint will return a list of records after this ID in relation to the API response order.
158
+ # @return [EscalationPathsListResultV2]
159
+ def escalation_paths_v2_list(opts = {})
160
+ data, _status_code, _headers = escalation_paths_v2_list_with_http_info(opts)
161
+ data
162
+ end
163
+
164
+ # List Escalation Paths V2
165
+ # List all escalation paths in your account. An escalation path is a series of steps that describe how a page should be escalated, represented as a graph, supporting conditional branches based on alert priority and working intervals.
166
+ # @param [Hash] opts the optional parameters
167
+ # @option opts [Integer] :page_size Integer number of records to return (default to 25)
168
+ # @option opts [String] :after An record&#39;s ID. This endpoint will return a list of records after this ID in relation to the API response order.
169
+ # @return [Array<(EscalationPathsListResultV2, Integer, Hash)>] EscalationPathsListResultV2 data, response status code and response headers
170
+ def escalation_paths_v2_list_with_http_info(opts = {})
171
+ if @api_client.config.debugging
172
+ @api_client.config.logger.debug 'Calling API: EscalationPathsV2Api.escalation_paths_v2_list ...'
173
+ end
174
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 25
175
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling EscalationPathsV2Api.escalation_paths_v2_list, must be smaller than or equal to 25.'
176
+ end
177
+
178
+ if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
179
+ fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling EscalationPathsV2Api.escalation_paths_v2_list, must be greater than or equal to 1.'
180
+ end
181
+
182
+ # resource path
183
+ local_var_path = '/v2/escalation_paths'
184
+
185
+ # query parameters
186
+ query_params = opts[:query_params] || {}
187
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
188
+ query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
189
+
190
+ # header parameters
191
+ header_params = opts[:header_params] || {}
192
+ # HTTP header 'Accept' (if needed)
193
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
194
+
195
+ # form parameters
196
+ form_params = opts[:form_params] || {}
197
+
198
+ # http body (model)
199
+ post_body = opts[:debug_body]
200
+
201
+ # return_type
202
+ return_type = opts[:debug_return_type] || 'EscalationPathsListResultV2'
203
+
204
+ # auth_names
205
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
206
+
207
+ new_options = opts.merge(
208
+ :operation => :"EscalationPathsV2Api.escalation_paths_v2_list",
209
+ :header_params => header_params,
210
+ :query_params => query_params,
211
+ :form_params => form_params,
212
+ :body => post_body,
213
+ :auth_names => auth_names,
214
+ :return_type => return_type
215
+ )
216
+
217
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
218
+ if @api_client.config.debugging
219
+ @api_client.config.logger.debug "API called: EscalationPathsV2Api#escalation_paths_v2_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
220
+ end
221
+ return data, status_code, headers
222
+ end
223
+
224
+ # Show Escalation Paths V2
225
+ # Show an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
226
+ # @param id [String] Unique identifier for this escalation path.
227
+ # @param [Hash] opts the optional parameters
228
+ # @return [EscalationPathsShowResultV2]
229
+ def escalation_paths_v2_show(id, opts = {})
230
+ data, _status_code, _headers = escalation_paths_v2_show_with_http_info(id, opts)
231
+ data
232
+ end
233
+
234
+ # Show Escalation Paths V2
235
+ # Show an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
236
+ # @param id [String] Unique identifier for this escalation path.
237
+ # @param [Hash] opts the optional parameters
238
+ # @return [Array<(EscalationPathsShowResultV2, Integer, Hash)>] EscalationPathsShowResultV2 data, response status code and response headers
239
+ def escalation_paths_v2_show_with_http_info(id, opts = {})
240
+ if @api_client.config.debugging
241
+ @api_client.config.logger.debug 'Calling API: EscalationPathsV2Api.escalation_paths_v2_show ...'
242
+ end
243
+ # verify the required parameter 'id' is set
244
+ if @api_client.config.client_side_validation && id.nil?
245
+ fail ArgumentError, "Missing the required parameter 'id' when calling EscalationPathsV2Api.escalation_paths_v2_show"
246
+ end
247
+ # resource path
248
+ local_var_path = '/v2/escalation_paths/{id}'.sub('{id}', CGI.escape(id.to_s))
249
+
250
+ # query parameters
251
+ query_params = opts[:query_params] || {}
252
+
253
+ # header parameters
254
+ header_params = opts[:header_params] || {}
255
+ # HTTP header 'Accept' (if needed)
256
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
257
+
258
+ # form parameters
259
+ form_params = opts[:form_params] || {}
260
+
261
+ # http body (model)
262
+ post_body = opts[:debug_body]
263
+
264
+ # return_type
265
+ return_type = opts[:debug_return_type] || 'EscalationPathsShowResultV2'
266
+
267
+ # auth_names
268
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
269
+
270
+ new_options = opts.merge(
271
+ :operation => :"EscalationPathsV2Api.escalation_paths_v2_show",
272
+ :header_params => header_params,
273
+ :query_params => query_params,
274
+ :form_params => form_params,
275
+ :body => post_body,
276
+ :auth_names => auth_names,
277
+ :return_type => return_type
278
+ )
279
+
280
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
281
+ if @api_client.config.debugging
282
+ @api_client.config.logger.debug "API called: EscalationPathsV2Api#escalation_paths_v2_show\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
283
+ end
284
+ return data, status_code, headers
285
+ end
286
+
287
+ # Update Escalation Paths V2
288
+ # Updates an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
289
+ # @param id [String] Unique identifier for this escalation path.
290
+ # @param escalation_paths_update_payload_v2 [EscalationPathsUpdatePayloadV2]
291
+ # @param [Hash] opts the optional parameters
292
+ # @return [EscalationPathsUpdateResultV2]
293
+ def escalation_paths_v2_update(id, escalation_paths_update_payload_v2, opts = {})
294
+ data, _status_code, _headers = escalation_paths_v2_update_with_http_info(id, escalation_paths_update_payload_v2, opts)
295
+ data
296
+ end
297
+
298
+ # Update Escalation Paths V2
299
+ # Updates an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
300
+ # @param id [String] Unique identifier for this escalation path.
301
+ # @param escalation_paths_update_payload_v2 [EscalationPathsUpdatePayloadV2]
302
+ # @param [Hash] opts the optional parameters
303
+ # @return [Array<(EscalationPathsUpdateResultV2, Integer, Hash)>] EscalationPathsUpdateResultV2 data, response status code and response headers
304
+ def escalation_paths_v2_update_with_http_info(id, escalation_paths_update_payload_v2, opts = {})
305
+ if @api_client.config.debugging
306
+ @api_client.config.logger.debug 'Calling API: EscalationPathsV2Api.escalation_paths_v2_update ...'
307
+ end
308
+ # verify the required parameter 'id' is set
309
+ if @api_client.config.client_side_validation && id.nil?
310
+ fail ArgumentError, "Missing the required parameter 'id' when calling EscalationPathsV2Api.escalation_paths_v2_update"
311
+ end
312
+ # verify the required parameter 'escalation_paths_update_payload_v2' is set
313
+ if @api_client.config.client_side_validation && escalation_paths_update_payload_v2.nil?
314
+ fail ArgumentError, "Missing the required parameter 'escalation_paths_update_payload_v2' when calling EscalationPathsV2Api.escalation_paths_v2_update"
315
+ end
316
+ # resource path
317
+ local_var_path = '/v2/escalation_paths/{id}'.sub('{id}', CGI.escape(id.to_s))
318
+
319
+ # query parameters
320
+ query_params = opts[:query_params] || {}
321
+
322
+ # header parameters
323
+ header_params = opts[:header_params] || {}
324
+ # HTTP header 'Accept' (if needed)
325
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
326
+ # HTTP header 'Content-Type'
327
+ content_type = @api_client.select_header_content_type(['application/json'])
328
+ if !content_type.nil?
329
+ header_params['Content-Type'] = content_type
330
+ end
331
+
332
+ # form parameters
333
+ form_params = opts[:form_params] || {}
334
+
335
+ # http body (model)
336
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(escalation_paths_update_payload_v2)
337
+
338
+ # return_type
339
+ return_type = opts[:debug_return_type] || 'EscalationPathsUpdateResultV2'
340
+
341
+ # auth_names
342
+ auth_names = opts[:debug_auth_names] || ['BearerAuth']
343
+
344
+ new_options = opts.merge(
345
+ :operation => :"EscalationPathsV2Api.escalation_paths_v2_update",
346
+ :header_params => header_params,
347
+ :query_params => query_params,
348
+ :form_params => form_params,
349
+ :body => post_body,
350
+ :auth_names => auth_names,
351
+ :return_type => return_type
352
+ )
353
+
354
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
355
+ if @api_client.config.debugging
356
+ @api_client.config.logger.debug "API called: EscalationPathsV2Api#escalation_paths_v2_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
357
+ end
358
+ return data, status_code, headers
359
+ end
360
+ end
361
+ end
@@ -224,137 +224,6 @@ module IncidentIo
224
224
  return data, status_code, headers
225
225
  end
226
226
 
227
- # CreatePath Escalations V2
228
- # Create an escalation path. An escalation path is a series of steps that describe how a page should be escalated, represented as graph, supporting conditional branches based on alert priority and working intervals. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
229
- # @param escalations_create_path_payload_v2 [EscalationsCreatePathPayloadV2]
230
- # @param [Hash] opts the optional parameters
231
- # @return [EscalationsCreatePathResultV2]
232
- def escalations_v2_create_path(escalations_create_path_payload_v2, opts = {})
233
- data, _status_code, _headers = escalations_v2_create_path_with_http_info(escalations_create_path_payload_v2, opts)
234
- data
235
- end
236
-
237
- # CreatePath Escalations V2
238
- # Create an escalation path. An escalation path is a series of steps that describe how a page should be escalated, represented as graph, supporting conditional branches based on alert priority and working intervals. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
239
- # @param escalations_create_path_payload_v2 [EscalationsCreatePathPayloadV2]
240
- # @param [Hash] opts the optional parameters
241
- # @return [Array<(EscalationsCreatePathResultV2, Integer, Hash)>] EscalationsCreatePathResultV2 data, response status code and response headers
242
- def escalations_v2_create_path_with_http_info(escalations_create_path_payload_v2, opts = {})
243
- if @api_client.config.debugging
244
- @api_client.config.logger.debug 'Calling API: EscalationsV2Api.escalations_v2_create_path ...'
245
- end
246
- # verify the required parameter 'escalations_create_path_payload_v2' is set
247
- if @api_client.config.client_side_validation && escalations_create_path_payload_v2.nil?
248
- fail ArgumentError, "Missing the required parameter 'escalations_create_path_payload_v2' when calling EscalationsV2Api.escalations_v2_create_path"
249
- end
250
- # resource path
251
- local_var_path = '/v2/escalation_paths'
252
-
253
- # query parameters
254
- query_params = opts[:query_params] || {}
255
-
256
- # header parameters
257
- header_params = opts[:header_params] || {}
258
- # HTTP header 'Accept' (if needed)
259
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
260
- # HTTP header 'Content-Type'
261
- content_type = @api_client.select_header_content_type(['application/json'])
262
- if !content_type.nil?
263
- header_params['Content-Type'] = content_type
264
- end
265
-
266
- # form parameters
267
- form_params = opts[:form_params] || {}
268
-
269
- # http body (model)
270
- post_body = opts[:debug_body] || @api_client.object_to_http_body(escalations_create_path_payload_v2)
271
-
272
- # return_type
273
- return_type = opts[:debug_return_type] || 'EscalationsCreatePathResultV2'
274
-
275
- # auth_names
276
- auth_names = opts[:debug_auth_names] || ['BearerAuth']
277
-
278
- new_options = opts.merge(
279
- :operation => :"EscalationsV2Api.escalations_v2_create_path",
280
- :header_params => header_params,
281
- :query_params => query_params,
282
- :form_params => form_params,
283
- :body => post_body,
284
- :auth_names => auth_names,
285
- :return_type => return_type
286
- )
287
-
288
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
289
- if @api_client.config.debugging
290
- @api_client.config.logger.debug "API called: EscalationsV2Api#escalations_v2_create_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
291
- end
292
- return data, status_code, headers
293
- end
294
-
295
- # DestroyPath Escalations V2
296
- # Archives an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
297
- # @param id [String] Unique identifier for this escalation path.
298
- # @param [Hash] opts the optional parameters
299
- # @return [nil]
300
- def escalations_v2_destroy_path(id, opts = {})
301
- escalations_v2_destroy_path_with_http_info(id, opts)
302
- nil
303
- end
304
-
305
- # DestroyPath Escalations V2
306
- # Archives an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
307
- # @param id [String] Unique identifier for this escalation path.
308
- # @param [Hash] opts the optional parameters
309
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
310
- def escalations_v2_destroy_path_with_http_info(id, opts = {})
311
- if @api_client.config.debugging
312
- @api_client.config.logger.debug 'Calling API: EscalationsV2Api.escalations_v2_destroy_path ...'
313
- end
314
- # verify the required parameter 'id' is set
315
- if @api_client.config.client_side_validation && id.nil?
316
- fail ArgumentError, "Missing the required parameter 'id' when calling EscalationsV2Api.escalations_v2_destroy_path"
317
- end
318
- # resource path
319
- local_var_path = '/v2/escalation_paths/{id}'.sub('{id}', CGI.escape(id.to_s))
320
-
321
- # query parameters
322
- query_params = opts[:query_params] || {}
323
-
324
- # header parameters
325
- header_params = opts[:header_params] || {}
326
- # HTTP header 'Accept' (if needed)
327
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
328
-
329
- # form parameters
330
- form_params = opts[:form_params] || {}
331
-
332
- # http body (model)
333
- post_body = opts[:debug_body]
334
-
335
- # return_type
336
- return_type = opts[:debug_return_type]
337
-
338
- # auth_names
339
- auth_names = opts[:debug_auth_names] || ['BearerAuth']
340
-
341
- new_options = opts.merge(
342
- :operation => :"EscalationsV2Api.escalations_v2_destroy_path",
343
- :header_params => header_params,
344
- :query_params => query_params,
345
- :form_params => form_params,
346
- :body => post_body,
347
- :auth_names => auth_names,
348
- :return_type => return_type
349
- )
350
-
351
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
352
- if @api_client.config.debugging
353
- @api_client.config.logger.debug "API called: EscalationsV2Api#escalations_v2_destroy_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
354
- end
355
- return data, status_code, headers
356
- end
357
-
358
227
  # List Escalations V2
359
228
  # List all escalations for your account. This endpoint supports a number of filters, which can help find escalations matching certain criteria. Note that: - Filters may be used together, and the result will be escalations that match all filters. - All query parameters must be URI encoded. To use this API, you will need an API key with the \"View data\" or \"Create and manage on-call resources\" permission. ### By escalation_path Find all escalations that escalated to escalation path with id=ABC: curl --get 'https://api.incident.io/v2/escalations' \\ --data 'escalation_path[one_of]=ABC' ### By status Find all escalations with a current status of \"triggered\": curl --get 'https://api.incident.io/v2/escalations' \\ --data 'status[one_of]=triggered' Possible values are \"pending\", \"triggered\", \"acked\", \"resolved\", \"expired\" and \"cancelled\". Escalations are in \"pending\" when they are in a grace period when the related alert has been grouped in an incident. ### By alert Find all escalations that were created by alert with id=ABC: curl --get 'https://api.incident.io/v2/escalations' \\ --data 'alert[one_of]=ABC' ### By incident Find all escalations related to incident with id=ABC: curl --get 'https://api.incident.io/v2/escalations' \\ --data 'incident[one_of]=ABC' An escalation is related to an incident if it is linked to that incident directly, if it is attached to one of the incident's alerts, or if it triggered one of those alerts (which is what happens when someone pages by calling in, and that call raises the alert). To find everything that is not related to an incident, use \"not_in\": curl --get 'https://api.incident.io/v2/escalations' \\ --data 'incident[not_in]=ABC' ### By created_at and updated_at Find all escalations that follow specified date parameters for created_at and updated_at fields. Possible values are \"gte\" (greater than or equal to), \"lte\" (less than or equal to), and \"date_range\" (between two dates). For example, to find all escalations updated after 2025-01-01: curl --get 'https://api.incident.io/v2/escalations' \\ --data 'updated_at[gte]=2025-01-01' To find all escalations created between 2025-01-01 and 2025-01-31: curl --get 'https://api.incident.io/v2/escalations' \\ --data 'created_at[date_range]=2025-01-01~2025-01-31'
360
229
  # @param [Hash] opts the optional parameters
@@ -447,77 +316,6 @@ module IncidentIo
447
316
  return data, status_code, headers
448
317
  end
449
318
 
450
- # ListPaths Escalations V2
451
- # List all escalation paths in your account. An escalation path is a series of steps that describe how a page should be escalated, represented as a graph, supporting conditional branches based on alert priority and working intervals.
452
- # @param [Hash] opts the optional parameters
453
- # @option opts [Integer] :page_size Integer number of records to return (default to 25)
454
- # @option opts [String] :after An record&#39;s ID. This endpoint will return a list of records after this ID in relation to the API response order.
455
- # @return [EscalationsListPathsResultV2]
456
- def escalations_v2_list_paths(opts = {})
457
- data, _status_code, _headers = escalations_v2_list_paths_with_http_info(opts)
458
- data
459
- end
460
-
461
- # ListPaths Escalations V2
462
- # List all escalation paths in your account. An escalation path is a series of steps that describe how a page should be escalated, represented as a graph, supporting conditional branches based on alert priority and working intervals.
463
- # @param [Hash] opts the optional parameters
464
- # @option opts [Integer] :page_size Integer number of records to return (default to 25)
465
- # @option opts [String] :after An record&#39;s ID. This endpoint will return a list of records after this ID in relation to the API response order.
466
- # @return [Array<(EscalationsListPathsResultV2, Integer, Hash)>] EscalationsListPathsResultV2 data, response status code and response headers
467
- def escalations_v2_list_paths_with_http_info(opts = {})
468
- if @api_client.config.debugging
469
- @api_client.config.logger.debug 'Calling API: EscalationsV2Api.escalations_v2_list_paths ...'
470
- end
471
- if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] > 25
472
- fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling EscalationsV2Api.escalations_v2_list_paths, must be smaller than or equal to 25.'
473
- end
474
-
475
- if @api_client.config.client_side_validation && !opts[:'page_size'].nil? && opts[:'page_size'] < 1
476
- fail ArgumentError, 'invalid value for "opts[:"page_size"]" when calling EscalationsV2Api.escalations_v2_list_paths, must be greater than or equal to 1.'
477
- end
478
-
479
- # resource path
480
- local_var_path = '/v2/escalation_paths'
481
-
482
- # query parameters
483
- query_params = opts[:query_params] || {}
484
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
485
- query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
486
-
487
- # header parameters
488
- header_params = opts[:header_params] || {}
489
- # HTTP header 'Accept' (if needed)
490
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
491
-
492
- # form parameters
493
- form_params = opts[:form_params] || {}
494
-
495
- # http body (model)
496
- post_body = opts[:debug_body]
497
-
498
- # return_type
499
- return_type = opts[:debug_return_type] || 'EscalationsListPathsResultV2'
500
-
501
- # auth_names
502
- auth_names = opts[:debug_auth_names] || ['BearerAuth']
503
-
504
- new_options = opts.merge(
505
- :operation => :"EscalationsV2Api.escalations_v2_list_paths",
506
- :header_params => header_params,
507
- :query_params => query_params,
508
- :form_params => form_params,
509
- :body => post_body,
510
- :auth_names => auth_names,
511
- :return_type => return_type
512
- )
513
-
514
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
515
- if @api_client.config.debugging
516
- @api_client.config.logger.debug "API called: EscalationsV2Api#escalations_v2_list_paths\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
517
- end
518
- return data, status_code, headers
519
- end
520
-
521
319
  # ReassignEscalation Escalations V2
522
320
  # Reassign an escalation to a different escalation path or set of users. Use this when a page reached the wrong people. Reassigning creates a new escalation aimed at the targets you give, linked back to the original, and carries over the original's title, description, priority, incident and alert so the page stays attached to the same alert and acknowledgements keep grouping under it. You must provide either an escalation_path_id OR user_ids, but not both. Both name incident.io escalation paths and users, so an escalation cannot be reassigned to an external escalator such as PagerDuty or Opsgenie. By default the original escalation is resolved, so the first targets stop being paged. Pass resolve_original=false to leave it running alongside the new one. Resolving the original additionally needs the \"escalations.respond\" permission, since it stops a page someone else may be responding to. An escalation can only be reassigned once: calling this again for the same escalation is rejected. Retrying a request whose response you never saw is safe in the sense that matters — a reassignment that already happened is never repeated, so nobody is paged twice — but the retry is rejected rather than returning the escalation the first call created, so keep the ID from the original response. To use this API, you will need an API key with the \"Create and manage escalations\" permission. The reassignment is attributed to the key; to attribute it to one of your users instead, set the X-Incident-User header, which needs the \"api_keys.act_on_behalf_of_users\" scope and no team permissions on the key. If your API key's permissions are scoped to teams, the escalation you're reassigning must be owned by one of those teams, and you can only reassign via an escalation path one of them owns. Reassigning directly to user_ids needs the permission at the account level, because an escalation aimed at a person has no owning team.
523
321
  # @param escalation_id [String] The ID of the escalation to reassign
@@ -728,142 +526,5 @@ module IncidentIo
728
526
  end
729
527
  return data, status_code, headers
730
528
  end
731
-
732
- # ShowPath Escalations V2
733
- # Show an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
734
- # @param id [String] Unique identifier for this escalation path.
735
- # @param [Hash] opts the optional parameters
736
- # @return [EscalationsShowPathResultV2]
737
- def escalations_v2_show_path(id, opts = {})
738
- data, _status_code, _headers = escalations_v2_show_path_with_http_info(id, opts)
739
- data
740
- end
741
-
742
- # ShowPath Escalations V2
743
- # Show an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
744
- # @param id [String] Unique identifier for this escalation path.
745
- # @param [Hash] opts the optional parameters
746
- # @return [Array<(EscalationsShowPathResultV2, Integer, Hash)>] EscalationsShowPathResultV2 data, response status code and response headers
747
- def escalations_v2_show_path_with_http_info(id, opts = {})
748
- if @api_client.config.debugging
749
- @api_client.config.logger.debug 'Calling API: EscalationsV2Api.escalations_v2_show_path ...'
750
- end
751
- # verify the required parameter 'id' is set
752
- if @api_client.config.client_side_validation && id.nil?
753
- fail ArgumentError, "Missing the required parameter 'id' when calling EscalationsV2Api.escalations_v2_show_path"
754
- end
755
- # resource path
756
- local_var_path = '/v2/escalation_paths/{id}'.sub('{id}', CGI.escape(id.to_s))
757
-
758
- # query parameters
759
- query_params = opts[:query_params] || {}
760
-
761
- # header parameters
762
- header_params = opts[:header_params] || {}
763
- # HTTP header 'Accept' (if needed)
764
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
765
-
766
- # form parameters
767
- form_params = opts[:form_params] || {}
768
-
769
- # http body (model)
770
- post_body = opts[:debug_body]
771
-
772
- # return_type
773
- return_type = opts[:debug_return_type] || 'EscalationsShowPathResultV2'
774
-
775
- # auth_names
776
- auth_names = opts[:debug_auth_names] || ['BearerAuth']
777
-
778
- new_options = opts.merge(
779
- :operation => :"EscalationsV2Api.escalations_v2_show_path",
780
- :header_params => header_params,
781
- :query_params => query_params,
782
- :form_params => form_params,
783
- :body => post_body,
784
- :auth_names => auth_names,
785
- :return_type => return_type
786
- )
787
-
788
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
789
- if @api_client.config.debugging
790
- @api_client.config.logger.debug "API called: EscalationsV2Api#escalations_v2_show_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
791
- end
792
- return data, status_code, headers
793
- end
794
-
795
- # UpdatePath Escalations V2
796
- # Updates an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
797
- # @param id [String] Unique identifier for this escalation path.
798
- # @param escalations_update_path_payload_v2 [EscalationsUpdatePathPayloadV2]
799
- # @param [Hash] opts the optional parameters
800
- # @return [EscalationsUpdatePathResultV2]
801
- def escalations_v2_update_path(id, escalations_update_path_payload_v2, opts = {})
802
- data, _status_code, _headers = escalations_v2_update_path_with_http_info(id, escalations_update_path_payload_v2, opts)
803
- data
804
- end
805
-
806
- # UpdatePath Escalations V2
807
- # Updates an escalation path. We recommend you create escalation paths in the incident.io dashboard where our path builder makes it easy to use conditions and visualise the path.
808
- # @param id [String] Unique identifier for this escalation path.
809
- # @param escalations_update_path_payload_v2 [EscalationsUpdatePathPayloadV2]
810
- # @param [Hash] opts the optional parameters
811
- # @return [Array<(EscalationsUpdatePathResultV2, Integer, Hash)>] EscalationsUpdatePathResultV2 data, response status code and response headers
812
- def escalations_v2_update_path_with_http_info(id, escalations_update_path_payload_v2, opts = {})
813
- if @api_client.config.debugging
814
- @api_client.config.logger.debug 'Calling API: EscalationsV2Api.escalations_v2_update_path ...'
815
- end
816
- # verify the required parameter 'id' is set
817
- if @api_client.config.client_side_validation && id.nil?
818
- fail ArgumentError, "Missing the required parameter 'id' when calling EscalationsV2Api.escalations_v2_update_path"
819
- end
820
- # verify the required parameter 'escalations_update_path_payload_v2' is set
821
- if @api_client.config.client_side_validation && escalations_update_path_payload_v2.nil?
822
- fail ArgumentError, "Missing the required parameter 'escalations_update_path_payload_v2' when calling EscalationsV2Api.escalations_v2_update_path"
823
- end
824
- # resource path
825
- local_var_path = '/v2/escalation_paths/{id}'.sub('{id}', CGI.escape(id.to_s))
826
-
827
- # query parameters
828
- query_params = opts[:query_params] || {}
829
-
830
- # header parameters
831
- header_params = opts[:header_params] || {}
832
- # HTTP header 'Accept' (if needed)
833
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
834
- # HTTP header 'Content-Type'
835
- content_type = @api_client.select_header_content_type(['application/json'])
836
- if !content_type.nil?
837
- header_params['Content-Type'] = content_type
838
- end
839
-
840
- # form parameters
841
- form_params = opts[:form_params] || {}
842
-
843
- # http body (model)
844
- post_body = opts[:debug_body] || @api_client.object_to_http_body(escalations_update_path_payload_v2)
845
-
846
- # return_type
847
- return_type = opts[:debug_return_type] || 'EscalationsUpdatePathResultV2'
848
-
849
- # auth_names
850
- auth_names = opts[:debug_auth_names] || ['BearerAuth']
851
-
852
- new_options = opts.merge(
853
- :operation => :"EscalationsV2Api.escalations_v2_update_path",
854
- :header_params => header_params,
855
- :query_params => query_params,
856
- :form_params => form_params,
857
- :body => post_body,
858
- :auth_names => auth_names,
859
- :return_type => return_type
860
- )
861
-
862
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
863
- if @api_client.config.debugging
864
- @api_client.config.logger.debug "API called: EscalationsV2Api#escalations_v2_update_path\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
865
- end
866
- return data, status_code, headers
867
- end
868
529
  end
869
530
  end
@@ -14,26 +14,31 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IncidentIo
17
- class RBACRoleV2 < ApiModelBase
18
- # Description of the purpose for the RBAC role
17
+ # An access group is a named group of users. Access grants give a group its privileges, and every member of the group gets them. Every organisation has base groups (Owner, Admin and Standard), which can be listed and granted privileges but not changed or deleted. Membership is managed in the dashboard or through SCIM, not through this API.
18
+ class AccessGroupV2 < ApiModelBase
19
+ # Optional description of who belongs in this group
19
20
  attr_accessor :description
20
21
 
21
- # Unique identifier of the RBAC role
22
+ # Unique identifier for this access group
22
23
  attr_accessor :id
23
24
 
24
- # Name of the RBAC role
25
+ # Human-readable name, unique within the organisation
25
26
  attr_accessor :name
26
27
 
27
- # Unique human-readable slug for the RBAC role
28
+ # Stable identifier, unique within the organisation. Base groups use owner, admin and standard. Generated from the name when omitted on create, and cannot be changed later.
28
29
  attr_accessor :slug
29
30
 
31
+ # base for the groups every organisation has, which cannot be changed or deleted, or custom for groups you create Known values: `base`, `custom`
32
+ attr_accessor :type
33
+
30
34
  # Attribute mapping from ruby-style variable name to JSON key.
31
35
  def self.attribute_map
32
36
  {
33
37
  :'description' => :'description',
34
38
  :'id' => :'id',
35
39
  :'name' => :'name',
36
- :'slug' => :'slug'
40
+ :'slug' => :'slug',
41
+ :'type' => :'type'
37
42
  }
38
43
  end
39
44
 
@@ -53,7 +58,8 @@ module IncidentIo
53
58
  :'description' => :'String',
54
59
  :'id' => :'String',
55
60
  :'name' => :'String',
56
- :'slug' => :'String'
61
+ :'slug' => :'String',
62
+ :'type' => :'String'
57
63
  }
58
64
  end
59
65
 
@@ -67,14 +73,14 @@ module IncidentIo
67
73
  # @param [Hash] attributes Model attributes in the form of hash
68
74
  def initialize(attributes = {})
69
75
  if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::RBACRoleV2` initialize method"
76
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::AccessGroupV2` initialize method"
71
77
  end
72
78
 
73
79
  # check to see if the attribute exists and convert string to symbol for hash key
74
80
  acceptable_attribute_map = self.class.acceptable_attribute_map
75
81
  attributes = attributes.each_with_object({}) { |(k, v), h|
76
82
  if (!acceptable_attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::RBACRoleV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::AccessGroupV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
84
  end
79
85
  h[k.to_sym] = v
80
86
  }
@@ -100,6 +106,12 @@ module IncidentIo
100
106
  else
101
107
  self.slug = nil
102
108
  end
109
+
110
+ if attributes.key?(:'type')
111
+ self.type = attributes[:'type']
112
+ else
113
+ self.type = nil
114
+ end
103
115
  end
104
116
 
105
117
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -119,6 +131,10 @@ module IncidentIo
119
131
  invalid_properties.push('invalid value for "slug", slug cannot be nil.')
120
132
  end
121
133
 
134
+ if @type.nil?
135
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
136
+ end
137
+
122
138
  invalid_properties
123
139
  end
124
140
 
@@ -129,6 +145,7 @@ module IncidentIo
129
145
  return false if @id.nil?
130
146
  return false if @name.nil?
131
147
  return false if @slug.nil?
148
+ return false if @type.nil?
132
149
  true
133
150
  end
134
151
 
@@ -162,6 +179,16 @@ module IncidentIo
162
179
  @slug = slug
163
180
  end
164
181
 
182
+ # Custom attribute writer method with validation
183
+ # @param [Object] type Value to be assigned
184
+ def type=(type)
185
+ if type.nil?
186
+ fail ArgumentError, 'type cannot be nil'
187
+ end
188
+
189
+ @type = type
190
+ end
191
+
165
192
  # Checks equality by comparing each attribute.
166
193
  # @param [Object] Object to be compared
167
194
  def ==(o)
@@ -170,7 +197,8 @@ module IncidentIo
170
197
  description == o.description &&
171
198
  id == o.id &&
172
199
  name == o.name &&
173
- slug == o.slug
200
+ slug == o.slug &&
201
+ type == o.type
174
202
  end
175
203
 
176
204
  # @see the `==` method
@@ -182,7 +210,7 @@ module IncidentIo
182
210
  # Calculates hash code according to all attributes.
183
211
  # @return [Integer] Hash code
184
212
  def hash
185
- [description, id, name, slug].hash
213
+ [description, id, name, slug, type].hash
186
214
  end
187
215
 
188
216
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IncidentIo
17
- class EscalationsCreatePathPayloadV2 < ApiModelBase
17
+ class EscalationPathsCreatePayloadV2 < ApiModelBase
18
18
  # Whether this path carries its own nodes, or is built from an escalation path template. Known values: `standalone`, `templated`
19
19
  attr_accessor :kind
20
20
 
@@ -86,14 +86,14 @@ module IncidentIo
86
86
  # @param [Hash] attributes Model attributes in the form of hash
87
87
  def initialize(attributes = {})
88
88
  if (!attributes.is_a?(Hash))
89
- fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationsCreatePathPayloadV2` initialize method"
89
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationPathsCreatePayloadV2` initialize method"
90
90
  end
91
91
 
92
92
  # check to see if the attribute exists and convert string to symbol for hash key
93
93
  acceptable_attribute_map = self.class.acceptable_attribute_map
94
94
  attributes = attributes.each_with_object({}) { |(k, v), h|
95
95
  if (!acceptable_attribute_map.key?(k.to_sym))
96
- fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationsCreatePathPayloadV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
96
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationPathsCreatePayloadV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
97
97
  end
98
98
  h[k.to_sym] = v
99
99
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IncidentIo
17
- class EscalationsUpdatePathResultV2 < ApiModelBase
17
+ class EscalationPathsCreateResultV2 < ApiModelBase
18
18
  attr_accessor :escalation_path
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -51,14 +51,14 @@ module IncidentIo
51
51
  # @param [Hash] attributes Model attributes in the form of hash
52
52
  def initialize(attributes = {})
53
53
  if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationsUpdatePathResultV2` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationPathsCreateResultV2` initialize method"
55
55
  end
56
56
 
57
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
58
  acceptable_attribute_map = self.class.acceptable_attribute_map
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
60
  if (!acceptable_attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationsUpdatePathResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationPathsCreateResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
62
  end
63
63
  h[k.to_sym] = v
64
64
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IncidentIo
17
- class EscalationsListPathsResultV2 < ApiModelBase
17
+ class EscalationPathsListResultV2 < ApiModelBase
18
18
  attr_accessor :escalation_paths
19
19
 
20
20
  attr_accessor :pagination_meta
@@ -55,14 +55,14 @@ module IncidentIo
55
55
  # @param [Hash] attributes Model attributes in the form of hash
56
56
  def initialize(attributes = {})
57
57
  if (!attributes.is_a?(Hash))
58
- fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationsListPathsResultV2` initialize method"
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationPathsListResultV2` initialize method"
59
59
  end
60
60
 
61
61
  # check to see if the attribute exists and convert string to symbol for hash key
62
62
  acceptable_attribute_map = self.class.acceptable_attribute_map
63
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
64
  if (!acceptable_attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationsListPathsResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationPathsListResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
66
  end
67
67
  h[k.to_sym] = v
68
68
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IncidentIo
17
- class EscalationsShowPathResultV2 < ApiModelBase
17
+ class EscalationPathsShowResultV2 < ApiModelBase
18
18
  attr_accessor :escalation_path
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -51,14 +51,14 @@ module IncidentIo
51
51
  # @param [Hash] attributes Model attributes in the form of hash
52
52
  def initialize(attributes = {})
53
53
  if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationsShowPathResultV2` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationPathsShowResultV2` initialize method"
55
55
  end
56
56
 
57
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
58
  acceptable_attribute_map = self.class.acceptable_attribute_map
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
60
  if (!acceptable_attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationsShowPathResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationPathsShowResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
62
  end
63
63
  h[k.to_sym] = v
64
64
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IncidentIo
17
- class EscalationsUpdatePathPayloadV2 < ApiModelBase
17
+ class EscalationPathsUpdatePayloadV2 < ApiModelBase
18
18
  # Whether this path carries its own nodes, or is built from an escalation path template. Known values: `standalone`, `templated`
19
19
  attr_accessor :kind
20
20
 
@@ -86,14 +86,14 @@ module IncidentIo
86
86
  # @param [Hash] attributes Model attributes in the form of hash
87
87
  def initialize(attributes = {})
88
88
  if (!attributes.is_a?(Hash))
89
- fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationsUpdatePathPayloadV2` initialize method"
89
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationPathsUpdatePayloadV2` initialize method"
90
90
  end
91
91
 
92
92
  # check to see if the attribute exists and convert string to symbol for hash key
93
93
  acceptable_attribute_map = self.class.acceptable_attribute_map
94
94
  attributes = attributes.each_with_object({}) { |(k, v), h|
95
95
  if (!acceptable_attribute_map.key?(k.to_sym))
96
- fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationsUpdatePathPayloadV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
96
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationPathsUpdatePayloadV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
97
97
  end
98
98
  h[k.to_sym] = v
99
99
  }
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module IncidentIo
17
- class EscalationsCreatePathResultV2 < ApiModelBase
17
+ class EscalationPathsUpdateResultV2 < ApiModelBase
18
18
  attr_accessor :escalation_path
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -51,14 +51,14 @@ module IncidentIo
51
51
  # @param [Hash] attributes Model attributes in the form of hash
52
52
  def initialize(attributes = {})
53
53
  if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationsCreatePathResultV2` initialize method"
54
+ fail ArgumentError, "The input argument (attributes) must be a hash in `IncidentIo::EscalationPathsUpdateResultV2` initialize method"
55
55
  end
56
56
 
57
57
  # check to see if the attribute exists and convert string to symbol for hash key
58
58
  acceptable_attribute_map = self.class.acceptable_attribute_map
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h|
60
60
  if (!acceptable_attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationsCreatePathResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `IncidentIo::EscalationPathsUpdateResultV2`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
62
  end
63
63
  h[k.to_sym] = v
64
64
  }
@@ -24,7 +24,7 @@ module IncidentIo
24
24
  # The ID of the resource that this relates to
25
25
  attr_accessor :resource_id
26
26
 
27
- # Known values: `access_grant`, `access_group`, `alert_grouping_preference`, `alert_route`, `alert_rule`, `alert_source`, `api_key`, `incident_form`, `incident_template`, `escalation_path`, `escalation_path_template`, `policy`, `schedule`, `schedule_sync_target`, `schedule_sync_rule`, `secret`, `status_page_component`, `status_page_structure`, `team_grouping_preference`, `workflow`
27
+ # Known values: `access_grant`, `access_group`, `alert_grouping_preference`, `alert_route`, `alert_rule`, `alert_source`, `api_key`, `incident_form`, `incident_template`, `escalation_path`, `escalation_path_template`, `policy`, `schedule`, `schedule_sync_target`, `schedule_sync_rule`, `secret`, `status_page_component`, `status_page_component_property`, `status_page_component_property_option`, `status_page_structure`, `team_grouping_preference`, `workflow`
28
28
  attr_accessor :resource_type
29
29
 
30
30
  # The url of the external repository where this resource is managed (if there is one)
@@ -21,7 +21,7 @@ module IncidentIo
21
21
  # The ID of the resource that this relates to
22
22
  attr_accessor :resource_id
23
23
 
24
- # The type of the related resource Known values: `access_grant`, `access_group`, `alert_grouping_preference`, `alert_route`, `alert_rule`, `alert_source`, `api_key`, `incident_form`, `incident_template`, `escalation_path`, `escalation_path_template`, `policy`, `schedule`, `schedule_sync_target`, `schedule_sync_rule`, `secret`, `status_page_component`, `status_page_structure`, `team_grouping_preference`, `workflow`
24
+ # The type of the related resource Known values: `access_grant`, `access_group`, `alert_grouping_preference`, `alert_route`, `alert_rule`, `alert_source`, `api_key`, `incident_form`, `incident_template`, `escalation_path`, `escalation_path_template`, `policy`, `schedule`, `schedule_sync_target`, `schedule_sync_rule`, `secret`, `status_page_component`, `status_page_component_property`, `status_page_component_property_option`, `status_page_structure`, `team_grouping_preference`, `workflow`
25
25
  attr_accessor :resource_type
26
26
 
27
27
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -17,6 +17,7 @@ module IncidentIo
17
17
  class UserWithRolesV2 < ApiModelBase
18
18
  attr_accessor :base_role
19
19
 
20
+ # The custom access groups the user is in
20
21
  attr_accessor :custom_roles
21
22
 
22
23
  # Email address of the user.
@@ -67,8 +68,8 @@ module IncidentIo
67
68
  # Attribute type mapping.
68
69
  def self.openapi_types
69
70
  {
70
- :'base_role' => :'RBACRoleV2',
71
- :'custom_roles' => :'Array<RBACRoleV2>',
71
+ :'base_role' => :'AccessGroupV2',
72
+ :'custom_roles' => :'Array<AccessGroupV2>',
72
73
  :'email' => :'String',
73
74
  :'id' => :'String',
74
75
  :'is_active' => :'Boolean',
@@ -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.73.0"
7
+ VERSION = "4.0.0"
8
8
  end
data/lib/incident_io.rb CHANGED
@@ -34,6 +34,7 @@ IncidentIo.autoload :APIKeysRotateResultV1, 'incident_io/models/api_keys_rotate_
34
34
  IncidentIo.autoload :APIKeysShowResultV1, 'incident_io/models/api_keys_show_result_v1'
35
35
  IncidentIo.autoload :APIKeysUpdatePayloadV1, 'incident_io/models/api_keys_update_payload_v1'
36
36
  IncidentIo.autoload :APIKeysUpdateResultV1, 'incident_io/models/api_keys_update_result_v1'
37
+ IncidentIo.autoload :AccessGroupV2, 'incident_io/models/access_group_v2'
37
38
  IncidentIo.autoload :ActionV1, 'incident_io/models/action_v1'
38
39
  IncidentIo.autoload :ActionV2, 'incident_io/models/action_v2'
39
40
  IncidentIo.autoload :ActionV3, 'incident_io/models/action_v3'
@@ -950,6 +951,12 @@ IncidentIo.autoload :EscalationPathTemplatesShowResultV2, 'incident_io/models/es
950
951
  IncidentIo.autoload :EscalationPathTemplatesUpdatePayloadV2, 'incident_io/models/escalation_path_templates_update_payload_v2'
951
952
  IncidentIo.autoload :EscalationPathTemplatesUpdateResultV2, 'incident_io/models/escalation_path_templates_update_result_v2'
952
953
  IncidentIo.autoload :EscalationPathV2, 'incident_io/models/escalation_path_v2'
954
+ IncidentIo.autoload :EscalationPathsCreatePayloadV2, 'incident_io/models/escalation_paths_create_payload_v2'
955
+ IncidentIo.autoload :EscalationPathsCreateResultV2, 'incident_io/models/escalation_paths_create_result_v2'
956
+ IncidentIo.autoload :EscalationPathsListResultV2, 'incident_io/models/escalation_paths_list_result_v2'
957
+ IncidentIo.autoload :EscalationPathsShowResultV2, 'incident_io/models/escalation_paths_show_result_v2'
958
+ IncidentIo.autoload :EscalationPathsUpdatePayloadV2, 'incident_io/models/escalation_paths_update_payload_v2'
959
+ IncidentIo.autoload :EscalationPathsUpdateResultV2, 'incident_io/models/escalation_paths_update_result_v2'
953
960
  IncidentIo.autoload :EscalationPriorityV2, 'incident_io/models/escalation_priority_v2'
954
961
  IncidentIo.autoload :EscalationRespondSnoozeDetailsPayloadV2, 'incident_io/models/escalation_respond_snooze_details_payload_v2'
955
962
  IncidentIo.autoload :EscalationUserResponseOptionsV2, 'incident_io/models/escalation_user_response_options_v2'
@@ -957,19 +964,13 @@ IncidentIo.autoload :EscalationV2, 'incident_io/models/escalation_v2'
957
964
  IncidentIo.autoload :EscalationWithStatusChangeV2, 'incident_io/models/escalation_with_status_change_v2'
958
965
  IncidentIo.autoload :EscalationsCheckEscalationPermissionsPayloadV2, 'incident_io/models/escalations_check_escalation_permissions_payload_v2'
959
966
  IncidentIo.autoload :EscalationsCheckEscalationPermissionsResultV2, 'incident_io/models/escalations_check_escalation_permissions_result_v2'
960
- IncidentIo.autoload :EscalationsCreatePathPayloadV2, 'incident_io/models/escalations_create_path_payload_v2'
961
- IncidentIo.autoload :EscalationsCreatePathResultV2, 'incident_io/models/escalations_create_path_result_v2'
962
967
  IncidentIo.autoload :EscalationsCreatePayloadV2, 'incident_io/models/escalations_create_payload_v2'
963
968
  IncidentIo.autoload :EscalationsCreateResultV2, 'incident_io/models/escalations_create_result_v2'
964
- IncidentIo.autoload :EscalationsListPathsResultV2, 'incident_io/models/escalations_list_paths_result_v2'
965
969
  IncidentIo.autoload :EscalationsListResultV2, 'incident_io/models/escalations_list_result_v2'
966
970
  IncidentIo.autoload :EscalationsReassignEscalationPayloadV2, 'incident_io/models/escalations_reassign_escalation_payload_v2'
967
971
  IncidentIo.autoload :EscalationsReassignEscalationResultV2, 'incident_io/models/escalations_reassign_escalation_result_v2'
968
972
  IncidentIo.autoload :EscalationsRespondEscalationPayloadV2, 'incident_io/models/escalations_respond_escalation_payload_v2'
969
- IncidentIo.autoload :EscalationsShowPathResultV2, 'incident_io/models/escalations_show_path_result_v2'
970
973
  IncidentIo.autoload :EscalationsShowResultV2, 'incident_io/models/escalations_show_result_v2'
971
- IncidentIo.autoload :EscalationsUpdatePathPayloadV2, 'incident_io/models/escalations_update_path_payload_v2'
972
- IncidentIo.autoload :EscalationsUpdatePathResultV2, 'incident_io/models/escalations_update_path_result_v2'
973
974
  IncidentIo.autoload :ExpressionBranchPayloadV2, 'incident_io/models/expression_branch_payload_v2'
974
975
  IncidentIo.autoload :ExpressionBranchPayloadV3, 'incident_io/models/expression_branch_payload_v3'
975
976
  IncidentIo.autoload :ExpressionBranchV2, 'incident_io/models/expression_branch_v2'
@@ -1297,7 +1298,6 @@ IncidentIo.autoload :PostmortemDocumentsShowContentResultV1, 'incident_io/models
1297
1298
  IncidentIo.autoload :PostmortemDocumentsShowResultV1, 'incident_io/models/postmortem_documents_show_result_v1'
1298
1299
  IncidentIo.autoload :PostmortemDocumentsUpdateStatusPayloadV1, 'incident_io/models/postmortem_documents_update_status_payload_v1'
1299
1300
  IncidentIo.autoload :PostmortemDocumentsUpdateStatusResultV1, 'incident_io/models/postmortem_documents_update_status_result_v1'
1300
- IncidentIo.autoload :RBACRoleV2, 'incident_io/models/rbac_role_v2'
1301
1301
  IncidentIo.autoload :RetrospectiveIncidentOptionsV2, 'incident_io/models/retrospective_incident_options_v2'
1302
1302
  IncidentIo.autoload :ReturnsMetaV2, 'incident_io/models/returns_meta_v2'
1303
1303
  IncidentIo.autoload :ReturnsMetaV3, 'incident_io/models/returns_meta_v3'
@@ -1550,6 +1550,7 @@ IncidentIo.autoload :CustomFieldOptionsV1Api, 'incident_io/api/custom_field_opti
1550
1550
  IncidentIo.autoload :CustomFieldsV1Api, 'incident_io/api/custom_fields_v1_api'
1551
1551
  IncidentIo.autoload :CustomFieldsV2Api, 'incident_io/api/custom_fields_v2_api'
1552
1552
  IncidentIo.autoload :EscalationPathTemplatesV2Api, 'incident_io/api/escalation_path_templates_v2_api'
1553
+ IncidentIo.autoload :EscalationPathsV2Api, 'incident_io/api/escalation_paths_v2_api'
1553
1554
  IncidentIo.autoload :EscalationsV2Api, 'incident_io/api/escalations_v2_api'
1554
1555
  IncidentIo.autoload :FollowUpsV2Api, 'incident_io/api/follow_ups_v2_api'
1555
1556
  IncidentIo.autoload :FollowUpsV3Api, 'incident_io/api/follow_ups_v3_api'
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.73.0
4
+ version: 4.0.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-11-24 00:00:00.000000000 Z
11
+ date: 2026-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -98,6 +98,7 @@ files:
98
98
  - lib/incident_io/api/custom_fields_v1_api.rb
99
99
  - lib/incident_io/api/custom_fields_v2_api.rb
100
100
  - lib/incident_io/api/escalation_path_templates_v2_api.rb
101
+ - lib/incident_io/api/escalation_paths_v2_api.rb
101
102
  - lib/incident_io/api/escalations_v2_api.rb
102
103
  - lib/incident_io/api/follow_ups_v2_api.rb
103
104
  - lib/incident_io/api/follow_ups_v3_api.rb
@@ -149,6 +150,7 @@ files:
149
150
  - lib/incident_io/configuration.rb
150
151
  - lib/incident_io/deprecation.rb
151
152
  - lib/incident_io/errors.rb
153
+ - lib/incident_io/models/access_group_v2.rb
152
154
  - lib/incident_io/models/action_v1.rb
153
155
  - lib/incident_io/models/action_v2.rb
154
156
  - lib/incident_io/models/action_v3.rb
@@ -1078,6 +1080,12 @@ files:
1078
1080
  - lib/incident_io/models/escalation_path_templates_update_payload_v2.rb
1079
1081
  - lib/incident_io/models/escalation_path_templates_update_result_v2.rb
1080
1082
  - lib/incident_io/models/escalation_path_v2.rb
1083
+ - lib/incident_io/models/escalation_paths_create_payload_v2.rb
1084
+ - lib/incident_io/models/escalation_paths_create_result_v2.rb
1085
+ - lib/incident_io/models/escalation_paths_list_result_v2.rb
1086
+ - lib/incident_io/models/escalation_paths_show_result_v2.rb
1087
+ - lib/incident_io/models/escalation_paths_update_payload_v2.rb
1088
+ - lib/incident_io/models/escalation_paths_update_result_v2.rb
1081
1089
  - lib/incident_io/models/escalation_priority_v2.rb
1082
1090
  - lib/incident_io/models/escalation_respond_snooze_details_payload_v2.rb
1083
1091
  - lib/incident_io/models/escalation_user_response_options_v2.rb
@@ -1085,19 +1093,13 @@ files:
1085
1093
  - lib/incident_io/models/escalation_with_status_change_v2.rb
1086
1094
  - lib/incident_io/models/escalations_check_escalation_permissions_payload_v2.rb
1087
1095
  - lib/incident_io/models/escalations_check_escalation_permissions_result_v2.rb
1088
- - lib/incident_io/models/escalations_create_path_payload_v2.rb
1089
- - lib/incident_io/models/escalations_create_path_result_v2.rb
1090
1096
  - lib/incident_io/models/escalations_create_payload_v2.rb
1091
1097
  - lib/incident_io/models/escalations_create_result_v2.rb
1092
- - lib/incident_io/models/escalations_list_paths_result_v2.rb
1093
1098
  - lib/incident_io/models/escalations_list_result_v2.rb
1094
1099
  - lib/incident_io/models/escalations_reassign_escalation_payload_v2.rb
1095
1100
  - lib/incident_io/models/escalations_reassign_escalation_result_v2.rb
1096
1101
  - lib/incident_io/models/escalations_respond_escalation_payload_v2.rb
1097
- - lib/incident_io/models/escalations_show_path_result_v2.rb
1098
1102
  - lib/incident_io/models/escalations_show_result_v2.rb
1099
- - lib/incident_io/models/escalations_update_path_payload_v2.rb
1100
- - lib/incident_io/models/escalations_update_path_result_v2.rb
1101
1103
  - lib/incident_io/models/expression_branch_payload_v2.rb
1102
1104
  - lib/incident_io/models/expression_branch_payload_v3.rb
1103
1105
  - lib/incident_io/models/expression_branch_v2.rb
@@ -1425,7 +1427,6 @@ files:
1425
1427
  - lib/incident_io/models/postmortem_documents_show_result_v1.rb
1426
1428
  - lib/incident_io/models/postmortem_documents_update_status_payload_v1.rb
1427
1429
  - lib/incident_io/models/postmortem_documents_update_status_result_v1.rb
1428
- - lib/incident_io/models/rbac_role_v2.rb
1429
1430
  - lib/incident_io/models/retrospective_incident_options_v2.rb
1430
1431
  - lib/incident_io/models/returns_meta_v2.rb
1431
1432
  - lib/incident_io/models/returns_meta_v3.rb