@@ -242,6 +242,136 @@ def create_dora_incident_with_http_info(body, opts = {})
242
242
return data , status_code , headers
243
243
end
244
244
245
+ # Delete a deployment event.
246
+ #
247
+ # @see #delete_dora_deployment_with_http_info
248
+ def delete_dora_deployment ( deployment_id , opts = { } )
249
+ delete_dora_deployment_with_http_info ( deployment_id , opts )
250
+ nil
251
+ end
252
+
253
+ # Delete a deployment event.
254
+ #
255
+ # Use this API endpoint to delete a deployment event.
256
+ #
257
+ # @param deployment_id [String] The ID of the deployment event to delete.
258
+ # @param opts [Hash] the optional parameters
259
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
260
+ def delete_dora_deployment_with_http_info ( deployment_id , opts = { } )
261
+
262
+ if @api_client . config . debugging
263
+ @api_client . config . logger . debug 'Calling API: DORAMetricsAPI.delete_dora_deployment ...'
264
+ end
265
+ # verify the required parameter 'deployment_id' is set
266
+ if @api_client . config . client_side_validation && deployment_id . nil?
267
+ fail ArgumentError , "Missing the required parameter 'deployment_id' when calling DORAMetricsAPI.delete_dora_deployment"
268
+ end
269
+ # resource path
270
+ local_var_path = '/api/v2/dora/deployment/{deployment_id}' . sub ( '{deployment_id}' , CGI . escape ( deployment_id . to_s ) . gsub ( '%2F' , '/' ) )
271
+
272
+ # query parameters
273
+ query_params = opts [ :query_params ] || { }
274
+
275
+ # header parameters
276
+ header_params = opts [ :header_params ] || { }
277
+ # HTTP header 'Accept' (if needed)
278
+ header_params [ 'Accept' ] = @api_client . select_header_accept ( [ '*/*' ] )
279
+
280
+ # form parameters
281
+ form_params = opts [ :form_params ] || { }
282
+
283
+ # http body (model)
284
+ post_body = opts [ :debug_body ]
285
+
286
+ # return_type
287
+ return_type = opts [ :debug_return_type ]
288
+
289
+ # auth_names
290
+ auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth ]
291
+
292
+ new_options = opts . merge (
293
+ :operation => :delete_dora_deployment ,
294
+ :header_params => header_params ,
295
+ :query_params => query_params ,
296
+ :form_params => form_params ,
297
+ :body => post_body ,
298
+ :auth_names => auth_names ,
299
+ :return_type => return_type ,
300
+ :api_version => "V2"
301
+ )
302
+
303
+ data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Delete , local_var_path , new_options )
304
+ if @api_client . config . debugging
305
+ @api_client . config . logger . debug "API called: DORAMetricsAPI#delete_dora_deployment\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
306
+ end
307
+ return data , status_code , headers
308
+ end
309
+
310
+ # Delete a failure event.
311
+ #
312
+ # @see #delete_dora_failure_with_http_info
313
+ def delete_dora_failure ( failure_id , opts = { } )
314
+ delete_dora_failure_with_http_info ( failure_id , opts )
315
+ nil
316
+ end
317
+
318
+ # Delete a failure event.
319
+ #
320
+ # Use this API endpoint to delete a failure event.
321
+ #
322
+ # @param failure_id [String] The ID of the failure event to delete.
323
+ # @param opts [Hash] the optional parameters
324
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
325
+ def delete_dora_failure_with_http_info ( failure_id , opts = { } )
326
+
327
+ if @api_client . config . debugging
328
+ @api_client . config . logger . debug 'Calling API: DORAMetricsAPI.delete_dora_failure ...'
329
+ end
330
+ # verify the required parameter 'failure_id' is set
331
+ if @api_client . config . client_side_validation && failure_id . nil?
332
+ fail ArgumentError , "Missing the required parameter 'failure_id' when calling DORAMetricsAPI.delete_dora_failure"
333
+ end
334
+ # resource path
335
+ local_var_path = '/api/v2/dora/failure/{failure_id}' . sub ( '{failure_id}' , CGI . escape ( failure_id . to_s ) . gsub ( '%2F' , '/' ) )
336
+
337
+ # query parameters
338
+ query_params = opts [ :query_params ] || { }
339
+
340
+ # header parameters
341
+ header_params = opts [ :header_params ] || { }
342
+ # HTTP header 'Accept' (if needed)
343
+ header_params [ 'Accept' ] = @api_client . select_header_accept ( [ '*/*' ] )
344
+
345
+ # form parameters
346
+ form_params = opts [ :form_params ] || { }
347
+
348
+ # http body (model)
349
+ post_body = opts [ :debug_body ]
350
+
351
+ # return_type
352
+ return_type = opts [ :debug_return_type ]
353
+
354
+ # auth_names
355
+ auth_names = opts [ :debug_auth_names ] || [ :apiKeyAuth , :appKeyAuth ]
356
+
357
+ new_options = opts . merge (
358
+ :operation => :delete_dora_failure ,
359
+ :header_params => header_params ,
360
+ :query_params => query_params ,
361
+ :form_params => form_params ,
362
+ :body => post_body ,
363
+ :auth_names => auth_names ,
364
+ :return_type => return_type ,
365
+ :api_version => "V2"
366
+ )
367
+
368
+ data , status_code , headers = @api_client . call_api ( Net ::HTTP ::Delete , local_var_path , new_options )
369
+ if @api_client . config . debugging
370
+ @api_client . config . logger . debug "API called: DORAMetricsAPI#delete_dora_failure\n Data: #{ data . inspect } \n Status code: #{ status_code } \n Headers: #{ headers } "
371
+ end
372
+ return data , status_code , headers
373
+ end
374
+
245
375
# Get a deployment event.
246
376
#
247
377
# @see #get_dora_deployment_with_http_info
0 commit comments