Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-31 16:03:59.333672",
"spec_repo_commit": "a11da7b5"
"regenerated": "2024-10-31 16:41:33.862946",
"spec_repo_commit": "63c441b2"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-31 16:03:59.352181",
"spec_repo_commit": "a11da7b5"
"regenerated": "2024-10-31 16:41:33.881242",
"spec_repo_commit": "63c441b2"
}
}
}
90 changes: 0 additions & 90 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -976,49 +976,6 @@ components:
type: string
x-enum-varnames:
- API_KEYS
AWSRelatedAccount:
description: AWS related account.
properties:
attributes:
$ref: '#/components/schemas/AWSRelatedAccountAttributes'
id:
description: The AWS account ID.
example: '123456789123'
type: string
type:
$ref: '#/components/schemas/AWSRelatedAccountType'
required:
- id
- type
type: object
AWSRelatedAccountAttributes:
description: Attributes for an AWS related account.
properties:
has_datadog_integration:
description: Whether or not the AWS account has a Datadog integration.
type: boolean
name:
description: The name of the AWS account.
type: string
type: object
AWSRelatedAccountType:
default: aws_account
description: Type of AWS related account.
enum:
- aws_account
example: aws_account
type: string
x-enum-varnames:
- AWS_ACCOUNT
AWSRelatedAccountsResponse:
description: List of AWS related accounts.
properties:
data:
description: An AWS related account.
items:
$ref: '#/components/schemas/AWSRelatedAccount'
type: array
type: object
ActiveBillingDimensionsAttributes:
description: List of active billing dimensions.
properties:
Expand Down Expand Up @@ -28974,53 +28931,6 @@ paths:
operator: OR
permissions:
- cloud_cost_management_write
/api/v2/cost/aws_related_accounts:
get:
deprecated: true
description: List the AWS accounts in an organization by calling 'organizations:ListAccounts'
from the specified management account.
operationId: ListAWSRelatedAccounts
parameters:
- description: The ID of the management account to filter by.
example: '123456789123'
in: query
name: filter[management_account_id]
required: true
schema:
type: string
responses:
'200':
content:
application/json:
schema:
$ref: '#/components/schemas/AWSRelatedAccountsResponse'
description: OK
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Bad Request
'403':
content:
application/json:
schema:
$ref: '#/components/schemas/APIErrorResponse'
description: Forbidden
'429':
$ref: '#/components/responses/TooManyRequestsResponse'
security:
- apiKeyAuth: []
appKeyAuth: []
- AuthZ:
- cloud_cost_management_read
summary: List related AWS accounts
tags:
- Cloud Cost Management
x-permission:
operator: OR
permissions:
- cloud_cost_management_read
/api/v2/cost/azure_uc_config:
get:
description: List the Azure configs.
Expand Down
24 changes: 0 additions & 24 deletions examples/v2/cloud-cost-management/ListAWSRelatedAccounts.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.datadog.api.client.ApiException;
import com.datadog.api.client.ApiResponse;
import com.datadog.api.client.Pair;
import com.datadog.api.client.v2.model.AWSRelatedAccountsResponse;
import com.datadog.api.client.v2.model.AwsCURConfigPatchRequest;
import com.datadog.api.client.v2.model.AwsCURConfigPostRequest;
import com.datadog.api.client.v2.model.AwsCURConfigResponse;
Expand Down Expand Up @@ -982,161 +981,6 @@ public ApiResponse<CustomCostsFileGetResponse> getCustomCostsFileWithHttpInfo(St
new GenericType<CustomCostsFileGetResponse>() {});
}

/**
* List related AWS accounts.
*
* <p>See {@link #listAWSRelatedAccountsWithHttpInfo}.
*
* @param filterManagementAccountId The ID of the management account to filter by. (required)
* @return AWSRelatedAccountsResponse
* @throws ApiException if fails to make API call
* @deprecated
*/
@Deprecated
public AWSRelatedAccountsResponse listAWSRelatedAccounts(String filterManagementAccountId)
throws ApiException {
return listAWSRelatedAccountsWithHttpInfo(filterManagementAccountId).getData();
}

/**
* List related AWS accounts.
*
* <p>See {@link #listAWSRelatedAccountsWithHttpInfoAsync}.
*
* @param filterManagementAccountId The ID of the management account to filter by. (required)
* @return CompletableFuture&lt;AWSRelatedAccountsResponse&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<AWSRelatedAccountsResponse> listAWSRelatedAccountsAsync(
String filterManagementAccountId) {
return listAWSRelatedAccountsWithHttpInfoAsync(filterManagementAccountId)
.thenApply(
response -> {
return response.getData();
});
}

/**
* List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the
* specified management account.
*
* @param filterManagementAccountId The ID of the management account to filter by. (required)
* @return ApiResponse&lt;AWSRelatedAccountsResponse&gt;
* @throws ApiException if fails to make API call
* @http.response.details
* <table border="1">
* <caption>Response details</caption>
* <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
* <tr><td> 200 </td><td> OK </td><td> - </td></tr>
* <tr><td> 400 </td><td> Bad Request </td><td> - </td></tr>
* <tr><td> 403 </td><td> Forbidden </td><td> - </td></tr>
* <tr><td> 429 </td><td> Too many requests </td><td> - </td></tr>
* </table>
*
* @deprecated
*/
@Deprecated
public ApiResponse<AWSRelatedAccountsResponse> listAWSRelatedAccountsWithHttpInfo(
String filterManagementAccountId) throws ApiException {
Object localVarPostBody = null;

// verify the required parameter 'filterManagementAccountId' is set
if (filterManagementAccountId == null) {
throw new ApiException(
400,
"Missing the required parameter 'filterManagementAccountId' when calling"
+ " listAWSRelatedAccounts");
}
// create path and map variables
String localVarPath = "/api/v2/cost/aws_related_accounts";

List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();

localVarQueryParams.addAll(
apiClient.parameterToPairs("", "filter[management_account_id]", filterManagementAccountId));

Invocation.Builder builder =
apiClient.createBuilder(
"v2.CloudCostManagementApi.listAWSRelatedAccounts",
localVarPath,
localVarQueryParams,
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
return apiClient.invokeAPI(
"GET",
builder,
localVarHeaderParams,
new String[] {},
localVarPostBody,
new HashMap<String, Object>(),
false,
new GenericType<AWSRelatedAccountsResponse>() {});
}

/**
* List related AWS accounts.
*
* <p>See {@link #listAWSRelatedAccountsWithHttpInfo}.
*
* @param filterManagementAccountId The ID of the management account to filter by. (required)
* @return CompletableFuture&lt;ApiResponse&lt;AWSRelatedAccountsResponse&gt;&gt;
* @deprecated
*/
@Deprecated
public CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>>
listAWSRelatedAccountsWithHttpInfoAsync(String filterManagementAccountId) {
Object localVarPostBody = null;

// verify the required parameter 'filterManagementAccountId' is set
if (filterManagementAccountId == null) {
CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>> result = new CompletableFuture<>();
result.completeExceptionally(
new ApiException(
400,
"Missing the required parameter 'filterManagementAccountId' when calling"
+ " listAWSRelatedAccounts"));
return result;
}
// create path and map variables
String localVarPath = "/api/v2/cost/aws_related_accounts";

List<Pair> localVarQueryParams = new ArrayList<Pair>();
Map<String, String> localVarHeaderParams = new HashMap<String, String>();

localVarQueryParams.addAll(
apiClient.parameterToPairs("", "filter[management_account_id]", filterManagementAccountId));

Invocation.Builder builder;
try {
builder =
apiClient.createBuilder(
"v2.CloudCostManagementApi.listAWSRelatedAccounts",
localVarPath,
localVarQueryParams,
localVarHeaderParams,
new HashMap<String, String>(),
new String[] {"application/json"},
new String[] {"AuthZ", "apiKeyAuth", "appKeyAuth"});
} catch (ApiException ex) {
CompletableFuture<ApiResponse<AWSRelatedAccountsResponse>> result = new CompletableFuture<>();
result.completeExceptionally(ex);
return result;
}
return apiClient.invokeAPIAsync(
"GET",
builder,
localVarHeaderParams,
new String[] {},
localVarPostBody,
new HashMap<String, Object>(),
false,
new GenericType<AWSRelatedAccountsResponse>() {});
}

/**
* List Cloud Cost Management AWS CUR configs.
*
Expand Down
Loading
Loading