Skip to content

Commit 3484bb3

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Audit and fix existing CCM endpoint OpenAPI spec for custom costs, aws config, azure config, and gcp config (#2768)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 4e2e2a8 commit 3484bb3

File tree

35 files changed

+367
-112
lines changed

35 files changed

+367
-112
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "8001cbb",
3-
"generated": "2025-08-13 20:27:33.480"
2+
"spec_repo_commit": "b434599",
3+
"generated": "2025-08-13 22:15:57.446"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 55 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ components:
221221
name: cloud_account_id
222222
required: true
223223
schema:
224-
type: string
224+
format: int64
225+
type: integer
225226
CloudWorkloadSecurityAgentRuleID:
226227
description: The ID of the Agent rule
227228
example: 3b5-v82-ns6
@@ -4500,8 +4501,7 @@ components:
45004501
$ref: '#/components/schemas/AwsCURConfigAttributes'
45014502
id:
45024503
description: The ID of the AWS CUR config.
4503-
format: int64
4504-
type: integer
4504+
type: string
45054505
type:
45064506
$ref: '#/components/schemas/AwsCURConfigType'
45074507
required:
@@ -4642,9 +4642,6 @@ components:
46424642
description: The region the bucket is located in.
46434643
example: us-east-1
46444644
type: string
4645-
is_enabled:
4646-
description: Whether or not the Cloud Cost Management account is enabled.
4647-
type: boolean
46484645
months:
46494646
description: The month of the report.
46504647
format: int32
@@ -5136,8 +5133,7 @@ components:
51365133
type: string
51375134
id:
51385135
description: The ID of the Azure config.
5139-
format: int64
5140-
type: integer
5136+
type: string
51415137
months:
51425138
deprecated: true
51435139
description: The number of months the report has been backfilled.
@@ -5187,8 +5183,7 @@ components:
51875183
$ref: '#/components/schemas/AzureUCConfigPairAttributes'
51885184
id:
51895185
description: The ID of Cloud Cost Management account.
5190-
format: int64
5191-
type: integer
5186+
type: string
51925187
type:
51935188
$ref: '#/components/schemas/AzureUCConfigPairType'
51945189
required:
@@ -5205,8 +5200,7 @@ components:
52055200
type: array
52065201
id:
52075202
description: The ID of the Azure config pair.
5208-
format: int64
5209-
type: integer
5203+
type: string
52105204
required:
52115205
- configs
52125206
type: object
@@ -49730,13 +49724,44 @@ paths:
4973049724
get:
4973149725
description: List the Custom Costs files.
4973249726
operationId: ListCustomCostsFiles
49727+
parameters:
49728+
- description: Page number for pagination
49729+
in: query
49730+
name: page[number]
49731+
schema:
49732+
format: int64
49733+
type: integer
49734+
- description: Page size for pagination
49735+
in: query
49736+
name: page[size]
49737+
schema:
49738+
default: 100
49739+
format: int64
49740+
type: integer
49741+
- description: Filter by file status
49742+
in: query
49743+
name: filter[status]
49744+
schema:
49745+
type: string
49746+
- description: Sort key with optional descending prefix
49747+
in: query
49748+
name: sort
49749+
schema:
49750+
default: created_at
49751+
type: string
4973349752
responses:
4973449753
'200':
4973549754
content:
4973649755
application/json:
4973749756
schema:
4973849757
$ref: '#/components/schemas/CustomCostsFileListResponse'
4973949758
description: OK
49759+
'400':
49760+
content:
49761+
application/json:
49762+
schema:
49763+
$ref: '#/components/schemas/APIErrorResponse'
49764+
description: Bad Request
4974049765
'403':
4974149766
content:
4974249767
application/json:
@@ -49769,6 +49794,12 @@ paths:
4976949794
schema:
4977049795
$ref: '#/components/schemas/CustomCostsFileUploadResponse'
4977149796
description: Accepted
49797+
'400':
49798+
content:
49799+
application/json:
49800+
schema:
49801+
$ref: '#/components/schemas/APIErrorResponse'
49802+
description: Bad Request
4977249803
'403':
4977349804
content:
4977449805
application/json:
@@ -49800,6 +49831,12 @@ paths:
4980049831
schema:
4980149832
$ref: '#/components/schemas/APIErrorResponse'
4980249833
description: Forbidden
49834+
'404':
49835+
content:
49836+
application/json:
49837+
schema:
49838+
$ref: '#/components/schemas/APIErrorResponse'
49839+
description: Not Found
4980349840
'429':
4980449841
$ref: '#/components/responses/TooManyRequestsResponse'
4980549842
security:
@@ -49828,6 +49865,12 @@ paths:
4982849865
schema:
4982949866
$ref: '#/components/schemas/APIErrorResponse'
4983049867
description: Forbidden
49868+
'404':
49869+
content:
49870+
application/json:
49871+
schema:
49872+
$ref: '#/components/schemas/APIErrorResponse'
49873+
description: Not Found
4983149874
'429':
4983249875
$ref: '#/components/responses/TooManyRequestsResponse'
4983349876
security:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
with ApiClient(configuration) as api_client:
1010
api_instance = CloudCostManagementApi(api_client)
1111
api_instance.delete_cost_awscur_config(
12-
cloud_account_id="100",
12+
cloud_account_id=100,
1313
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
with ApiClient(configuration) as api_client:
1010
api_instance = CloudCostManagementApi(api_client)
1111
api_instance.delete_cost_azure_uc_config(
12-
cloud_account_id="100",
12+
cloud_account_id=100,
1313
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
with ApiClient(configuration) as api_client:
1010
api_instance = CloudCostManagementApi(api_client)
1111
api_instance.delete_cost_gcp_usage_cost_config(
12-
cloud_account_id="100",
12+
cloud_account_id=100,
1313
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
configuration = Configuration()
2222
with ApiClient(configuration) as api_client:
2323
api_instance = CloudCostManagementApi(api_client)
24-
response = api_instance.update_cost_awscur_config(cloud_account_id="100", body=body)
24+
response = api_instance.update_cost_awscur_config(cloud_account_id=100, body=body)
2525

2626
print(response)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
configuration = Configuration()
2222
with ApiClient(configuration) as api_client:
2323
api_instance = CloudCostManagementApi(api_client)
24-
response = api_instance.update_cost_azure_uc_configs(cloud_account_id="100", body=body)
24+
response = api_instance.update_cost_azure_uc_configs(cloud_account_id=100, body=body)
2525

2626
print(response)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@
2323
configuration = Configuration()
2424
with ApiClient(configuration) as api_client:
2525
api_instance = CloudCostManagementApi(api_client)
26-
response = api_instance.update_cost_gcp_usage_cost_config(cloud_account_id="100", body=body)
26+
response = api_instance.update_cost_gcp_usage_cost_config(cloud_account_id=100, body=body)
2727

2828
print(response)

0 commit comments

Comments
 (0)