Skip to content

Commit b5256bc

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1eb0ccb of spec repo
1 parent 7a7b395 commit b5256bc

6 files changed

Lines changed: 9 additions & 33 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128602,9 +128602,6 @@ paths:
128602128602
summary: Create or replace a budget's custom forecast
128603128603
tags:
128604128604
- Cloud Cost Management
128605-
x-unstable: |-
128606-
**Note**: This endpoint is in preview and is subject to change.
128607-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
128608128605
/api/v2/cost/budget/validate:
128609128606
post:
128610128607
description: Validate a budget configuration without creating or modifying it
@@ -128798,9 +128795,6 @@ paths:
128798128795
summary: Delete a budget's custom forecast
128799128796
tags:
128800128797
- Cloud Cost Management
128801-
x-unstable: |-
128802-
**Note**: This endpoint is in preview and is subject to change.
128803-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
128804128798
get:
128805128799
description: Get the custom forecast for a budget.
128806128800
operationId: GetCustomForecast
@@ -128848,9 +128842,6 @@ paths:
128848128842
summary: Get a budget's custom forecast
128849128843
tags:
128850128844
- Cloud Cost Management
128851-
x-unstable: |-
128852-
**Note**: This endpoint is in preview and is subject to change.
128853-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).
128854128845
/api/v2/cost/budgets:
128855128846
get:
128856128847
description: List budgets.

examples/v2/cloud-cost-management/DeleteCustomForecast.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi
77

88
configuration = Configuration()
9-
configuration.unstable_operations["delete_custom_forecast"] = True
109
with ApiClient(configuration) as api_client:
1110
api_instance = CloudCostManagementApi(api_client)
1211
api_instance.delete_custom_forecast(

examples/v2/cloud-cost-management/GetCustomForecast.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from datadog_api_client.v2.api.cloud_cost_management_api import CloudCostManagementApi
77

88
configuration = Configuration()
9-
configuration.unstable_operations["get_custom_forecast"] = True
109
with ApiClient(configuration) as api_client:
1110
api_instance = CloudCostManagementApi(api_client)
1211
response = api_instance.get_custom_forecast(

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
)
3737

3838
configuration = Configuration()
39-
configuration.unstable_operations["upsert_custom_forecast"] = True
4039
with ApiClient(configuration) as api_client:
4140
api_instance = CloudCostManagementApi(api_client)
4241
response = api_instance.upsert_custom_forecast(body=body)

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,6 @@ def __init__(
479479
"v2.get_code_coverage_branch_summary": False,
480480
"v2.get_code_coverage_commit_summary": False,
481481
"v2.get_rule_based_view": False,
482-
"v2.delete_custom_forecast": False,
483482
"v2.get_commitments_commitment_list": False,
484483
"v2.get_commitments_coverage_scalar": False,
485484
"v2.get_commitments_coverage_timeseries": False,
@@ -490,15 +489,13 @@ def __init__(
490489
"v2.get_commitments_utilization_timeseries": False,
491490
"v2.get_cost_anomaly": False,
492491
"v2.get_cost_tag_metadata_currency": False,
493-
"v2.get_custom_forecast": False,
494492
"v2.list_cost_anomalies": False,
495493
"v2.list_cost_tag_key_sources": False,
496494
"v2.list_cost_tag_metadata": False,
497495
"v2.list_cost_tag_metadata_metrics": False,
498496
"v2.list_cost_tag_metadata_months": False,
499497
"v2.list_cost_tag_metadata_orchestrators": False,
500498
"v2.search_cost_recommendations": False,
501-
"v2.upsert_custom_forecast": False,
502499
"v2.create_ownership_feedback": False,
503500
"v2.get_ownership_evidence": False,
504501
"v2.get_ownership_inference": False,

tests/v2/features/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

0 commit comments

Comments
 (0)