Skip to content

Commit 2d548c5

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2ab87b5f of spec repo
1 parent 98e3a64 commit 2d548c5

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-28 23:07:46.686658",
8-
"spec_repo_commit": "4251a422"
7+
"regenerated": "2024-10-30 13:03:12.940792",
8+
"spec_repo_commit": "2ab87b5f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-28 23:07:46.704767",
13-
"spec_repo_commit": "4251a422"
12+
"regenerated": "2024-10-30 13:03:12.958760",
13+
"spec_repo_commit": "2ab87b5f"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -969,49 +969,6 @@ components:
969969
type: string
970970
x-enum-varnames:
971971
- API_KEYS
972-
AWSRelatedAccount:
973-
description: AWS related account.
974-
properties:
975-
attributes:
976-
$ref: '#/components/schemas/AWSRelatedAccountAttributes'
977-
id:
978-
description: The AWS account ID.
979-
example: '123456789123'
980-
type: string
981-
type:
982-
$ref: '#/components/schemas/AWSRelatedAccountType'
983-
required:
984-
- id
985-
- type
986-
type: object
987-
AWSRelatedAccountAttributes:
988-
description: Attributes for an AWS related account.
989-
properties:
990-
has_datadog_integration:
991-
description: Whether or not the AWS account has a Datadog integration.
992-
type: boolean
993-
name:
994-
description: The name of the AWS account.
995-
type: string
996-
type: object
997-
AWSRelatedAccountType:
998-
default: aws_account
999-
description: Type of AWS related account.
1000-
enum:
1001-
- aws_account
1002-
example: aws_account
1003-
type: string
1004-
x-enum-varnames:
1005-
- AWS_ACCOUNT
1006-
AWSRelatedAccountsResponse:
1007-
description: List of AWS related accounts.
1008-
properties:
1009-
data:
1010-
description: An AWS related account.
1011-
items:
1012-
$ref: '#/components/schemas/AWSRelatedAccount'
1013-
type: array
1014-
type: object
1015972
ActiveBillingDimensionsAttributes:
1016973
description: List of active billing dimensions.
1017974
properties:
@@ -28527,53 +28484,6 @@ paths:
2852728484
operator: OR
2852828485
permissions:
2852928486
- cloud_cost_management_write
28530-
/api/v2/cost/aws_related_accounts:
28531-
get:
28532-
deprecated: true
28533-
description: List the AWS accounts in an organization by calling 'organizations:ListAccounts'
28534-
from the specified management account.
28535-
operationId: ListAWSRelatedAccounts
28536-
parameters:
28537-
- description: The ID of the management account to filter by.
28538-
example: '123456789123'
28539-
in: query
28540-
name: filter[management_account_id]
28541-
required: true
28542-
schema:
28543-
type: string
28544-
responses:
28545-
'200':
28546-
content:
28547-
application/json:
28548-
schema:
28549-
$ref: '#/components/schemas/AWSRelatedAccountsResponse'
28550-
description: OK
28551-
'400':
28552-
content:
28553-
application/json:
28554-
schema:
28555-
$ref: '#/components/schemas/APIErrorResponse'
28556-
description: Bad Request
28557-
'403':
28558-
content:
28559-
application/json:
28560-
schema:
28561-
$ref: '#/components/schemas/APIErrorResponse'
28562-
description: Forbidden
28563-
'429':
28564-
$ref: '#/components/responses/TooManyRequestsResponse'
28565-
security:
28566-
- apiKeyAuth: []
28567-
appKeyAuth: []
28568-
- AuthZ:
28569-
- cloud_cost_management_read
28570-
summary: List related AWS accounts
28571-
tags:
28572-
- Cloud Cost Management
28573-
x-permission:
28574-
operator: OR
28575-
permissions:
28576-
- cloud_cost_management_read
2857728487
/api/v2/cost/azure_uc_config:
2857828488
get:
2857928489
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)