Skip to content

Commit 357841c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Delete api/v2/cost/aws_related_accounts from spec (#2544)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent fca6add commit 357841c

File tree

12 files changed

+4
-908
lines changed

12 files changed

+4
-908
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.333672",
8-
"spec_repo_commit": "a11da7b5"
7+
"regenerated": "2024-10-31 16:41:33.862946",
8+
"spec_repo_commit": "63c441b2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-31 16:03:59.352181",
13-
"spec_repo_commit": "a11da7b5"
12+
"regenerated": "2024-10-31 16:41:33.881242",
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.

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

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

src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java

Lines changed: 0 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import com.datadog.api.client.ApiException;
55
import com.datadog.api.client.ApiResponse;
66
import com.datadog.api.client.Pair;
7-
import com.datadog.api.client.v2.model.AWSRelatedAccountsResponse;
87
import com.datadog.api.client.v2.model.AwsCURConfigPatchRequest;
98
import com.datadog.api.client.v2.model.AwsCURConfigPostRequest;
109
import com.datadog.api.client.v2.model.AwsCURConfigResponse;
@@ -982,161 +981,6 @@ public ApiResponse<CustomCostsFileGetResponse> getCustomCostsFileWithHttpInfo(St
982981
new GenericType<CustomCostsFileGetResponse>() {});
983982
}
984983

985-
/**
986-
* List related AWS accounts.
987-
*
988-
* <p>See {@link #listAWSRelatedAccountsWithHttpInfo}.
989-
*
990-
* @param filterManagementAccountId The ID of the management account to filter by. (required)
991-
* @return AWSRelatedAccountsResponse
992-
* @throws ApiException if fails to make API call
993-
* @deprecated
994-
*/
995-
@Deprecated
996-
public AWSRelatedAccountsResponse listAWSRelatedAccounts(String filterManagementAccountId)
997-
throws ApiException {
998-
return listAWSRelatedAccountsWithHttpInfo(filterManagementAccountId).getData();
999-
}
1000-
1001-
/**
1002-
* List related AWS accounts.
1003-
*
1004-
* <p>See {@link #listAWSRelatedAccountsWithHttpInfoAsync}.
1005-
*
1006-
* @param filterManagementAccountId The ID of the management account to filter by. (required)
1007-
* @return CompletableFuture&lt;AWSRelatedAccountsResponse&gt;
1008-
* @deprecated
1009-
*/
1010-
@Deprecated
1011-
public CompletableFuture<AWSRelatedAccountsResponse> listAWSRelatedAccountsAsync(
1012-
String filterManagementAccountId) {
1013-
return listAWSRelatedAccountsWithHttpInfoAsync(filterManagementAccountId)
1014-
.thenApply(
1015-
response -> {
1016-
return response.getData();
1017-
});
1018-
}
1019-
1020-
/**
1021-
* List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the
1022-
* specified management account.
1023-
*
1024-
* @param filterManagementAccountId The ID of the management account to filter by. (required)
1025-
* @return ApiResponse&lt;AWSRelatedAccountsResponse&gt;
1026-
* @throws ApiException if fails to make API call
1027-
* @http.response.details
1028-
* <table border="1">
1029-
* <caption>Response details</caption>
1030-
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
1031-
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
1032-
* <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
1033-
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
1034-
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
1035-
* </table>
1036-
*
1037-
* @deprecated
1038-
*/
1039-
@Deprecated
1040-
public ApiResponse<AWSRelatedAccountsResponse> listAWSRelatedAccountsWithHttpInfo(
1041-
String filterManagementAccountId) throws ApiException {
1042-
Object localVarPostBody = null;
1043-
1044-
// verify the required parameter 'filterManagementAccountId' is set
1045-
if (filterManagementAccountId == null) {
1046-
throw new ApiException(
1047-
400,
1048-
"Missing the required parameter 'filterManagementAccountId' when calling"
1049-
+ " listAWSRelatedAccounts");
1050-
}
1051-
// create path and map variables
1052-
String localVarPath = "/api/v2/cost/aws_related_accounts";
1053-
1054-
List<Pair> localVarQueryParams = new ArrayList<Pair>();
1055-
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
1056-
1057-
localVarQueryParams.addAll(
1058-
apiClient.parameterToPairs("", "filter[management_account_id]", filterManagementAccountId));
1059-
1060-
Invocation.Builder builder =
1061-
apiClient.createBuilder(
1062-
"v2.CloudCostManagementApi.listAWSRelatedAccounts",
1063-
localVarPath,
1064-
localVarQueryParams,
1065-
localVarHeaderParams,
1066-
new HashMap<String, String>(),
1067-
new String[] {"application/json"},
1068-
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
1069-
return apiClient.invokeAPI(
1070-
"GET",
1071-
builder,
1072-
localVarHeaderParams,
1073-
new String[] {},
1074-
localVarPostBody,
1075-
new HashMap<String, Object>(),
1076-
false,
1077-
new GenericType<AWSRelatedAccountsResponse>() {});
1078-
}
1079-
1080-
/**
1081-
* List related AWS accounts.
1082-
*
1083-
* <p>See {@link #listAWSRelatedAccountsWithHttpInfo}.
1084-
*
1085-
* @param filterManagementAccountId The ID of the management account to filter by. (required)
1086-
* @return CompletableFuture&lt;ApiResponse&lt;AWSRelatedAccountsResponse&gt;&gt;
1087-
* @deprecated
1088-
*/
1089-
@Deprecated
1090-
public CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>>
1091-
listAWSRelatedAccountsWithHttpInfoAsync(String filterManagementAccountId) {
1092-
Object localVarPostBody = null;
1093-
1094-
// verify the required parameter 'filterManagementAccountId' is set
1095-
if (filterManagementAccountId == null) {
1096-
CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>> result = new CompletableFuture<>();
1097-
result.completeExceptionally(
1098-
new ApiException(
1099-
400,
1100-
"Missing the required parameter 'filterManagementAccountId' when calling"
1101-
+ " listAWSRelatedAccounts"));
1102-
return result;
1103-
}
1104-
// create path and map variables
1105-
String localVarPath = "/api/v2/cost/aws_related_accounts";
1106-
1107-
List<Pair> localVarQueryParams = new ArrayList<Pair>();
1108-
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
1109-
1110-
localVarQueryParams.addAll(
1111-
apiClient.parameterToPairs("", "filter[management_account_id]", filterManagementAccountId));
1112-
1113-
Invocation.Builder builder;
1114-
try {
1115-
builder =
1116-
apiClient.createBuilder(
1117-
"v2.CloudCostManagementApi.listAWSRelatedAccounts",
1118-
localVarPath,
1119-
localVarQueryParams,
1120-
localVarHeaderParams,
1121-
new HashMap<String, String>(),
1122-
new String[] {"application/json"},
1123-
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
1124-
} catch (ApiException ex) {
1125-
CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>> result = new CompletableFuture<>();
1126-
result.completeExceptionally(ex);
1127-
return result;
1128-
}
1129-
return apiClient.invokeAPIAsync(
1130-
"GET",
1131-
builder,
1132-
localVarHeaderParams,
1133-
new String[] {},
1134-
localVarPostBody,
1135-
new HashMap<String, Object>(),
1136-
false,
1137-
new GenericType<AWSRelatedAccountsResponse>() {});
1138-
}
1139-
1140984
/**
1141985
* List Cloud Cost Management AWS CUR configs.
1142986
*

0 commit comments

Comments
 (0)