Skip to content

Commit 2e3d842

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 025f88b of spec repo (DataDog#3588)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 580752e commit 2e3d842

7 files changed

Lines changed: 9 additions & 57 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129641,9 +129641,6 @@ paths:
129641129641
summary: Create or replace a budget's custom forecast
129642129642
tags:
129643129643
- Cloud Cost Management
129644-
x-unstable: |-
129645-
**Note**: This endpoint is in preview and is subject to change.
129646-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
129647129644
/api/v2/cost/budget/validate:
129648129645
post:
129649129646
description: Validate a budget configuration without creating or modifying it
@@ -129837,9 +129834,6 @@ paths:
129837129834
summary: Delete a budget's custom forecast
129838129835
tags:
129839129836
- Cloud Cost Management
129840-
x-unstable: |-
129841-
**Note**: This endpoint is in preview and is subject to change.
129842-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
129843129837
get:
129844129838
description: Get the custom forecast for a budget.
129845129839
operationId: GetCustomForecast
@@ -129887,9 +129881,6 @@ paths:
129887129881
summary: Get a budget's custom forecast
129888129882
tags:
129889129883
- Cloud Cost Management
129890-
x-unstable: |-
129891-
**Note**: This endpoint is in preview and is subject to change.
129892-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
129893129884
/api/v2/cost/budgets:
129894129885
get:
129895129886
description: List budgets.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Delete a budget's custom forecast returns "No Content" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.delete_custom_forecast".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
85
api_instance.delete_custom_forecast("budget_id")
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Get a budget's custom forecast returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.get_custom_forecast".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
85
p api_instance.get_custom_forecast("budget_id")

examples/v2/cloud-cost-management/UpsertCustomForecast.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Create or replace a budget's custom forecast returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.upsert_custom_forecast".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
85

96
body = DatadogAPIClient::V2::CustomForecastUpsertRequest.new({

features/v2/cloud_cost_management.feature

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -69,24 +69,21 @@ Feature: Cloud Cost Management
6969

7070
@generated @skip @team:DataDog/cloud-cost-management
7171
Scenario: Create or replace a budget's custom forecast returns "Bad Request" response
72-
Given operation "UpsertCustomForecast" enabled
73-
And new "UpsertCustomForecast" request
72+
Given new "UpsertCustomForecast" request
7473
And body with value {"data": {"attributes": {"budget_uid": "00000000-0000-0000-0000-000000000001", "entries": [{"amount": 400, "month": 202501, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}]}, "id": "", "type": "custom_forecast"}}
7574
When the request is sent
7675
Then the response status is 400 Bad Request
7776

7877
@generated @skip @team:DataDog/cloud-cost-management
7978
Scenario: Create or replace a budget's custom forecast returns "Not Found" response
80-
Given operation "UpsertCustomForecast" enabled
81-
And new "UpsertCustomForecast" request
79+
Given new "UpsertCustomForecast" request
8280
And body with value {"data": {"attributes": {"budget_uid": "00000000-0000-0000-0000-000000000001", "entries": [{"amount": 400, "month": 202501, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}]}, "id": "", "type": "custom_forecast"}}
8381
When the request is sent
8482
Then the response status is 404 Not Found
8583

8684
@generated @skip @team:DataDog/cloud-cost-management
8785
Scenario: Create or replace a budget's custom forecast returns "OK" response
88-
Given operation "UpsertCustomForecast" enabled
89-
And new "UpsertCustomForecast" request
86+
Given new "UpsertCustomForecast" request
9087
And body with value {"data": {"attributes": {"budget_uid": "00000000-0000-0000-0000-000000000001", "entries": [{"amount": 400, "month": 202501, "tag_filters": [{"tag_key": "service", "tag_value": "ec2"}]}]}, "id": "", "type": "custom_forecast"}}
9188
When the request is sent
9289
Then the response status is 200 OK
@@ -237,24 +234,21 @@ Feature: Cloud Cost Management
237234

238235
@generated @skip @team:DataDog/cloud-cost-management
239236
Scenario: Delete a budget's custom forecast returns "Bad Request" response
240-
Given operation "DeleteCustomForecast" enabled
241-
And new "DeleteCustomForecast" request
237+
Given new "DeleteCustomForecast" request
242238
And request contains "budget_id" parameter from "REPLACE.ME"
243239
When the request is sent
244240
Then the response status is 400 Bad Request
245241

246242
@generated @skip @team:DataDog/cloud-cost-management
247243
Scenario: Delete a budget's custom forecast returns "No Content" response
248-
Given operation "DeleteCustomForecast" enabled
249-
And new "DeleteCustomForecast" request
244+
Given new "DeleteCustomForecast" request
250245
And request contains "budget_id" parameter from "REPLACE.ME"
251246
When the request is sent
252247
Then the response status is 204 No Content
253248

254249
@generated @skip @team:DataDog/cloud-cost-management
255250
Scenario: Delete a budget's custom forecast returns "Not Found" response
256-
Given operation "DeleteCustomForecast" enabled
257-
And new "DeleteCustomForecast" request
251+
Given new "DeleteCustomForecast" request
258252
And request contains "budget_id" parameter from "REPLACE.ME"
259253
When the request is sent
260254
Then the response status is 404 Not Found
@@ -377,24 +371,21 @@ Feature: Cloud Cost Management
377371

378372
@generated @skip @team:DataDog/cloud-cost-management
379373
Scenario: Get a budget's custom forecast returns "Bad Request" response
380-
Given operation "GetCustomForecast" enabled
381-
And new "GetCustomForecast" request
374+
Given new "GetCustomForecast" request
382375
And request contains "budget_id" parameter from "REPLACE.ME"
383376
When the request is sent
384377
Then the response status is 400 Bad Request
385378

386379
@generated @skip @team:DataDog/cloud-cost-management
387380
Scenario: Get a budget's custom forecast returns "Not Found" response
388-
Given operation "GetCustomForecast" enabled
389-
And new "GetCustomForecast" request
381+
Given new "GetCustomForecast" request
390382
And request contains "budget_id" parameter from "REPLACE.ME"
391383
When the request is sent
392384
Then the response status is 404 Not Found
393385

394386
@generated @skip @team:DataDog/cloud-cost-management
395387
Scenario: Get a budget's custom forecast returns "OK" response
396-
Given operation "GetCustomForecast" enabled
397-
And new "GetCustomForecast" request
388+
Given new "GetCustomForecast" request
398389
And request contains "budget_id" parameter from "REPLACE.ME"
399390
When the request is sent
400391
Then the response status is 200 OK

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ def initialize
430430
"v2.get_code_coverage_branch_summary": false,
431431
"v2.get_code_coverage_commit_summary": false,
432432
"v2.get_rule_based_view": false,
433-
"v2.delete_custom_forecast": false,
434433
"v2.get_commitments_commitment_list": false,
435434
"v2.get_commitments_coverage_scalar": false,
436435
"v2.get_commitments_coverage_timeseries": false,
@@ -441,15 +440,13 @@ def initialize
441440
"v2.get_commitments_utilization_timeseries": false,
442441
"v2.get_cost_anomaly": false,
443442
"v2.get_cost_tag_metadata_currency": false,
444-
"v2.get_custom_forecast": false,
445443
"v2.list_cost_anomalies": false,
446444
"v2.list_cost_tag_key_sources": false,
447445
"v2.list_cost_tag_metadata": false,
448446
"v2.list_cost_tag_metadata_metrics": false,
449447
"v2.list_cost_tag_metadata_months": false,
450448
"v2.list_cost_tag_metadata_orchestrators": false,
451449
"v2.search_cost_recommendations": false,
452-
"v2.upsert_custom_forecast": false,
453450
"v2.create_ownership_feedback": false,
454451
"v2.get_ownership_evidence": false,
455452
"v2.get_ownership_inference": false,

lib/datadog_api_client/v2/api/cloud_cost_management_api.rb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -843,12 +843,6 @@ def delete_custom_forecast(budget_id, opts = {})
843843
# @param opts [Hash] the optional parameters
844844
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
845845
def delete_custom_forecast_with_http_info(budget_id, opts = {})
846-
unstable_enabled = @api_client.config.unstable_operations["v2.delete_custom_forecast".to_sym]
847-
if unstable_enabled
848-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_custom_forecast")
849-
else
850-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_custom_forecast"))
851-
end
852846

853847
if @api_client.config.debugging
854848
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.delete_custom_forecast ...'
@@ -2585,12 +2579,6 @@ def get_custom_forecast(budget_id, opts = {})
25852579
# @param opts [Hash] the optional parameters
25862580
# @return [Array<(CustomForecastResponse, Integer, Hash)>] CustomForecastResponse data, response status code and response headers
25872581
def get_custom_forecast_with_http_info(budget_id, opts = {})
2588-
unstable_enabled = @api_client.config.unstable_operations["v2.get_custom_forecast".to_sym]
2589-
if unstable_enabled
2590-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.get_custom_forecast")
2591-
else
2592-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.get_custom_forecast"))
2593-
end
25942582

25952583
if @api_client.config.debugging
25962584
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.get_custom_forecast ...'
@@ -4874,12 +4862,6 @@ def upsert_custom_forecast(body, opts = {})
48744862
# @param opts [Hash] the optional parameters
48754863
# @return [Array<(CustomForecastResponse, Integer, Hash)>] CustomForecastResponse data, response status code and response headers
48764864
def upsert_custom_forecast_with_http_info(body, opts = {})
4877-
unstable_enabled = @api_client.config.unstable_operations["v2.upsert_custom_forecast".to_sym]
4878-
if unstable_enabled
4879-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.upsert_custom_forecast")
4880-
else
4881-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.upsert_custom_forecast"))
4882-
end
48834865

48844866
if @api_client.config.debugging
48854867
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.upsert_custom_forecast ...'

0 commit comments

Comments
 (0)