Skip to content

Commit 5dbc335

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 06ad8e93 of spec repo
1 parent 09b23cc commit 5dbc335

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 15:33:00.389365",
8-
"spec_repo_commit": "a7602fa1"
7+
"regenerated": "2024-10-31 15:57:42.124106",
8+
"spec_repo_commit": "06ad8e93"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-31 15:33:00.408035",
13-
"spec_repo_commit": "a7602fa1"
12+
"regenerated": "2024-10-31 15:57:42.143136",
13+
"spec_repo_commit": "06ad8e93"
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:
@@ -28906,53 +28863,6 @@ paths:
2890628863
operator: OR
2890728864
permissions:
2890828865
- cloud_cost_management_write
28909-
/api/v2/cost/aws_related_accounts:
28910-
get:
28911-
deprecated: true
28912-
description: List the AWS accounts in an organization by calling 'organizations:ListAccounts'
28913-
from the specified management account.
28914-
operationId: ListAWSRelatedAccounts
28915-
parameters:
28916-
- description: The ID of the management account to filter by.
28917-
example: '123456789123'
28918-
in: query
28919-
name: filter[management_account_id]
28920-
required: true
28921-
schema:
28922-
type: string
28923-
responses:
28924-
'200':
28925-
content:
28926-
application/json:
28927-
schema:
28928-
$ref: '#/components/schemas/AWSRelatedAccountsResponse'
28929-
description: OK
28930-
'400':
28931-
content:
28932-
application/json:
28933-
schema:
28934-
$ref: '#/components/schemas/APIErrorResponse'
28935-
description: Bad Request
28936-
'403':
28937-
content:
28938-
application/json:
28939-
schema:
28940-
$ref: '#/components/schemas/APIErrorResponse'
28941-
description: Forbidden
28942-
'429':
28943-
$ref: '#/components/responses/TooManyRequestsResponse'
28944-
security:
28945-
- apiKeyAuth: []
28946-
appKeyAuth: []
28947-
- AuthZ:
28948-
- cloud_cost_management_read
28949-
summary: List related AWS accounts
28950-
tags:
28951-
- Cloud Cost Management
28952-
x-permission:
28953-
operator: OR
28954-
permissions:
28955-
- cloud_cost_management_read
2895628866
/api/v2/cost/azure_uc_config:
2895728867
get:
2895828868
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)