Skip to content

Commit 00d37c9

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Delete api/v2/cost/aws_related_accounts from spec (#1883)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e5fa307 commit 00d37c9

File tree

15 files changed

+4
-556
lines changed

15 files changed

+4
-556
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-10-31 16:03:59.641141",
8-
"spec_repo_commit": "a11da7b5"
7+
"regenerated": "2024-10-31 16:41:42.733972",
8+
"spec_repo_commit": "63c441b2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-31 16:03:59.659376",
13-
"spec_repo_commit": "a11da7b5"
12+
"regenerated": "2024-10-31 16:41:42.753030",
13+
"spec_repo_commit": "63c441b2"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -976,49 +976,6 @@ components:
976976
type: string
977977
x-enum-varnames:
978978
- API_KEYS
979-
AWSRelatedAccount:
980-
description: AWS related account.
981-
properties:
982-
attributes:
983-
$ref: '#/components/schemas/AWSRelatedAccountAttributes'
984-
id:
985-
description: The AWS account ID.
986-
example: '123456789123'
987-
type: string
988-
type:
989-
$ref: '#/components/schemas/AWSRelatedAccountType'
990-
required:
991-
- id
992-
- type
993-
type: object
994-
AWSRelatedAccountAttributes:
995-
description: Attributes for an AWS related account.
996-
properties:
997-
has_datadog_integration:
998-
description: Whether or not the AWS account has a Datadog integration.
999-
type: boolean
1000-
name:
1001-
description: The name of the AWS account.
1002-
type: string
1003-
type: object
1004-
AWSRelatedAccountType:
1005-
default: aws_account
1006-
description: Type of AWS related account.
1007-
enum:
1008-
- aws_account
1009-
example: aws_account
1010-
type: string
1011-
x-enum-varnames:
1012-
- AWS_ACCOUNT
1013-
AWSRelatedAccountsResponse:
1014-
description: List of AWS related accounts.
1015-
properties:
1016-
data:
1017-
description: An AWS related account.
1018-
items:
1019-
$ref: '#/components/schemas/AWSRelatedAccount'
1020-
type: array
1021-
type: object
1022979
ActiveBillingDimensionsAttributes:
1023980
description: List of active billing dimensions.
1024981
properties:
@@ -28974,53 +28931,6 @@ paths:
2897428931
operator: OR
2897528932
permissions:
2897628933
- cloud_cost_management_write
28977-
/api/v2/cost/aws_related_accounts:
28978-
get:
28979-
deprecated: true
28980-
description: List the AWS accounts in an organization by calling 'organizations:ListAccounts'
28981-
from the specified management account.
28982-
operationId: ListAWSRelatedAccounts
28983-
parameters:
28984-
- description: The ID of the management account to filter by.
28985-
example: '123456789123'
28986-
in: query
28987-
name: filter[management_account_id]
28988-
required: true
28989-
schema:
28990-
type: string
28991-
responses:
28992-
'200':
28993-
content:
28994-
application/json:
28995-
schema:
28996-
$ref: '#/components/schemas/AWSRelatedAccountsResponse'
28997-
description: OK
28998-
'400':
28999-
content:
29000-
application/json:
29001-
schema:
29002-
$ref: '#/components/schemas/APIErrorResponse'
29003-
description: Bad Request
29004-
'403':
29005-
content:
29006-
application/json:
29007-
schema:
29008-
$ref: '#/components/schemas/APIErrorResponse'
29009-
description: Forbidden
29010-
'429':
29011-
$ref: '#/components/responses/TooManyRequestsResponse'
29012-
security:
29013-
- apiKeyAuth: []
29014-
appKeyAuth: []
29015-
- AuthZ:
29016-
- cloud_cost_management_read
29017-
summary: List related AWS accounts
29018-
tags:
29019-
- Cloud Cost Management
29020-
x-permission:
29021-
operator: OR
29022-
permissions:
29023-
- cloud_cost_management_read
2902428934
/api/v2/cost/azure_uc_config:
2902528935
get:
2902628936
description: List the Azure configs.

cassettes/v2/Cloud-Cost-Management_4135329986/List-related-AWS-accounts-returns-OK-response_2792118991/frozen.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

cassettes/v2/Cloud-Cost-Management_4135329986/List-related-AWS-accounts-returns-OK-response_2792118991/recording.har

Lines changed: 0 additions & 64 deletions
This file was deleted.

examples/v2/cloud-cost-management/ListAWSRelatedAccounts.ts

Lines changed: 0 additions & 21 deletions
This file was deleted.

features/support/scenarios_model_mapping.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3072,13 +3072,6 @@ export const ScenariosModelMappings: {[key: string]: {[key: string]: any}} = {
30723072
},
30733073
"operationResponseType": "AwsCURConfigsResponse",
30743074
},
3075-
"v2.ListAWSRelatedAccounts": {
3076-
"filterManagementAccountId": {
3077-
"type": "string",
3078-
"format": "",
3079-
},
3080-
"operationResponseType": "AWSRelatedAccountsResponse",
3081-
},
30823075
"v2.ListCostAzureUCConfigs": {
30833076
"operationResponseType": "AzureUCConfigsResponse",
30843077
},

features/v2/cloud_cost_management.feature

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -148,21 +148,6 @@ Feature: Cloud Cost Management
148148
When the request is sent
149149
Then the response status is 200 OK
150150

151-
@generated @skip @team:Datadog/cloud-cost-management
152-
Scenario: List related AWS accounts returns "Bad Request" response
153-
Given new "ListAWSRelatedAccounts" request
154-
And request contains "filter[management_account_id]" parameter from "REPLACE.ME"
155-
When the request is sent
156-
Then the response status is 400 Bad Request
157-
158-
@replay-only @team:Datadog/cloud-cost-management
159-
Scenario: List related AWS accounts returns "OK" response
160-
Given new "ListAWSRelatedAccounts" request
161-
And request contains "filter[management_account_id]" parameter with value "123456789123"
162-
When the request is sent
163-
Then the response status is 200 OK
164-
And the response "data[0].attributes.name" is equal to "test_name"
165-
166151
@replay-only @team:Datadog/cloud-cost-management
167152
Scenario: Update Cloud Cost Management AWS CUR config returns "OK" response
168153
Given new "UpdateCostAWSCURConfig" request

features/v2/undo.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,6 @@
414414
"type": "idempotent"
415415
}
416416
},
417-
"ListAWSRelatedAccounts": {
418-
"tag": "Cloud Cost Management",
419-
"undo": {
420-
"type": "safe"
421-
}
422-
},
423417
"ListCostAzureUCConfigs": {
424418
"tag": "Cloud Cost Management",
425419
"undo": {

0 commit comments

Comments
 (0)