Skip to content

Commit 7718fc8

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7e844ca of spec repo
1 parent cfdf05e commit 7718fc8

File tree

4 files changed

+36
-3
lines changed

4 files changed

+36
-3
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": "c38287b",
3-
"generated": "2025-08-15 18:53:32.723"
2+
"spec_repo_commit": "7e844ca",
3+
"generated": "2025-08-15 20:00:45.374"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49517,6 +49517,12 @@ paths:
4951749517
schema:
4951849518
$ref: '#/components/schemas/APIErrorResponse'
4951949519
description: Forbidden
49520+
'404':
49521+
content:
49522+
application/json:
49523+
schema:
49524+
$ref: '#/components/schemas/APIErrorResponse'
49525+
description: Not Found
4952049526
'429':
4952149527
$ref: '#/components/responses/TooManyRequestsResponse'
4952249528
security:
@@ -49669,6 +49675,12 @@ paths:
4966949675
schema:
4967049676
$ref: '#/components/schemas/APIErrorResponse'
4967149677
description: Forbidden
49678+
'404':
49679+
content:
49680+
application/json:
49681+
schema:
49682+
$ref: '#/components/schemas/APIErrorResponse'
49683+
description: Not Found
4967249684
'429':
4967349685
$ref: '#/components/responses/TooManyRequestsResponse'
4967449686
security:

features/v2/cloud_cost_management.feature

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,14 @@ Feature: Cloud Cost Management
267267
When the request is sent
268268
Then the response status is 200 OK
269269

270+
@team:Datadog/cloud-cost-management
271+
Scenario: Update Cloud Cost Management AWS CUR config returns "Not Found" response
272+
Given new "UpdateCostAWSCURConfig" request
273+
And request contains "cloud_account_id" parameter with value 123456789
274+
And body with value {"data": {"attributes": {"account_filters": {"excluded_accounts": ["123456789123", "123456789143"], "include_new_accounts": true, "included_accounts": ["123456789123", "123456789143"]}, "is_enabled": true}, "type": "aws_cur_config_patch_request"}}
275+
When the request is sent
276+
Then the response status is 404 Not Found
277+
270278
@replay-only @team:Datadog/cloud-cost-management
271279
Scenario: Update Cloud Cost Management AWS CUR config returns "OK" response
272280
Given new "UpdateCostAWSCURConfig" request
@@ -284,6 +292,14 @@ Feature: Cloud Cost Management
284292
When the request is sent
285293
Then the response status is 400 Bad Request
286294

295+
@team:Datadog/cloud-cost-management
296+
Scenario: Update Cloud Cost Management Azure config returns "Not Found" response
297+
Given new "UpdateCostAzureUCConfigs" request
298+
And request contains "cloud_account_id" parameter from "REPLACE.ME"
299+
And body with value {"data": {"attributes": {"is_enabled": true}, "type": "azure_uc_config_patch_request"}}
300+
When the request is sent
301+
Then the response status is 404 Not Found
302+
287303
@replay-only @team:Datadog/cloud-cost-management
288304
Scenario: Update Cloud Cost Management Azure config returns "OK" response
289305
Given new "UpdateCostAzureUCConfigs" request

services/cloud_cost_management/src/v2/CloudCostManagementApi.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1860,7 +1860,11 @@ export class CloudCostManagementApiResponseProcessor {
18601860
) as AwsCURConfigsResponse;
18611861
return body;
18621862
}
1863-
if (response.httpStatusCode === 403 || response.httpStatusCode === 429) {
1863+
if (
1864+
response.httpStatusCode === 403 ||
1865+
response.httpStatusCode === 404 ||
1866+
response.httpStatusCode === 429
1867+
) {
18641868
const bodyText = parse(await response.body.text(), contentType);
18651869
let body: APIErrorResponse;
18661870
try {
@@ -1919,6 +1923,7 @@ export class CloudCostManagementApiResponseProcessor {
19191923
if (
19201924
response.httpStatusCode === 400 ||
19211925
response.httpStatusCode === 403 ||
1926+
response.httpStatusCode === 404 ||
19221927
response.httpStatusCode === 429
19231928
) {
19241929
const bodyText = parse(await response.body.text(), contentType);

0 commit comments

Comments
 (0)