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:55.097621",
"spec_repo_commit": "a11da7b5"
"regenerated": "2024-10-31 16:41:41.024770",
"spec_repo_commit": "63c441b2"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-10-31 16:03:55.116103",
"spec_repo_commit": "a11da7b5"
"regenerated": "2024-10-31 16:41:41.042740",
"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

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions examples/v2/cloud-cost-management/ListAWSRelatedAccounts.rb

This file was deleted.

3 changes: 0 additions & 3 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1093,9 +1093,6 @@
"cloud_account_id" => "String",
"body" => "AwsCURConfigPatchRequest",
},
"v2.ListAWSRelatedAccounts" => {
"filter_management_account_id" => "String",
},
"v2.CreateCostAzureUCConfigs" => {
"body" => "AzureUCConfigPostRequest",
},
Expand Down
15 changes: 0 additions & 15 deletions features/v2/cloud_cost_management.feature
Original file line number Diff line number Diff line change
Expand Up @@ -148,21 +148,6 @@ Feature: Cloud Cost Management
When the request is sent
Then the response status is 200 OK

@generated @skip @team:Datadog/cloud-cost-management
Scenario: List related AWS accounts returns "Bad Request" response
Given new "ListAWSRelatedAccounts" request
And request contains "filter[management_account_id]" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@replay-only @team:Datadog/cloud-cost-management
Scenario: List related AWS accounts returns "OK" response
Given new "ListAWSRelatedAccounts" request
And request contains "filter[management_account_id]" parameter with value "123456789123"
When the request is sent
Then the response status is 200 OK
And the response "data[0].attributes.name" is equal to "test_name"

@replay-only @team:Datadog/cloud-cost-management
Scenario: Update Cloud Cost Management AWS CUR config returns "OK" response
Given new "UpdateCostAWSCURConfig" request
Expand Down
6 changes: 0 additions & 6 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -414,12 +414,6 @@
"type": "idempotent"
}
},
"ListAWSRelatedAccounts": {
"tag": "Cloud Cost Management",
"undo": {
"type": "safe"
}
},
"ListCostAzureUCConfigs": {
"tag": "Cloud Cost Management",
"undo": {
Expand Down
4 changes: 0 additions & 4 deletions lib/datadog_api_client/inflector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -988,10 +988,6 @@ def overrides
"v2.aws_cur_config_response" => "AwsCURConfigResponse",
"v2.aws_cur_configs_response" => "AwsCURConfigsResponse",
"v2.aws_cur_config_type" => "AwsCURConfigType",
"v2.aws_related_account" => "AWSRelatedAccount",
"v2.aws_related_account_attributes" => "AWSRelatedAccountAttributes",
"v2.aws_related_accounts_response" => "AWSRelatedAccountsResponse",
"v2.aws_related_account_type" => "AWSRelatedAccountType",
"v2.azure_uc_config" => "AzureUCConfig",
"v2.azure_uc_config_pair" => "AzureUCConfigPair",
"v2.azure_uc_config_pair_attributes" => "AzureUCConfigPairAttributes",
Expand Down
69 changes: 0 additions & 69 deletions lib/datadog_api_client/v2/api/cloud_cost_management_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -477,75 +477,6 @@ def get_custom_costs_file_with_http_info(file_id, opts = {})
return data, status_code, headers
end

# List related AWS accounts.
#
# @see #list_aws_related_accounts_with_http_info
def list_aws_related_accounts(filter_management_account_id, opts = {})
data, _status_code, _headers = list_aws_related_accounts_with_http_info(filter_management_account_id, opts)
data
end

# List related AWS accounts.
#
# List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the specified management account.
#
# @deprecated This API is deprecated.
#
# @param filter_management_account_id [String] The ID of the management account to filter by.
# @param opts [Hash] the optional parameters
# @return [Array<(AWSRelatedAccountsResponse, Integer, Hash)>] AWSRelatedAccountsResponse data, response status code and response headers
def list_aws_related_accounts_with_http_info(filter_management_account_id, opts = {})
warn "[DEPRECATION] `ListAWSRelatedAccounts` is deprecated."

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_aws_related_accounts ...'
end
# verify the required parameter 'filter_management_account_id' is set
if @api_client.config.client_side_validation && filter_management_account_id.nil?
fail ArgumentError, "Missing the required parameter 'filter_management_account_id' when calling CloudCostManagementAPI.list_aws_related_accounts"
end
# resource path
local_var_path = '/api/v2/cost/aws_related_accounts'

# query parameters
query_params = opts[:query_params] || {}
query_params[:'filter[management_account_id]'] = filter_management_account_id

# header parameters
header_params = opts[:header_params] || {}
# HTTP header 'Accept' (if needed)
header_params['Accept'] = @api_client.select_header_accept(['application/json'])

# form parameters
form_params = opts[:form_params] || {}

# http body (model)
post_body = opts[:debug_body]

# return_type
return_type = opts[:debug_return_type] || 'AWSRelatedAccountsResponse'

# auth_names
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]

new_options = opts.merge(
:operation => :list_aws_related_accounts,
:header_params => header_params,
:query_params => query_params,
:form_params => form_params,
:body => post_body,
:auth_names => auth_names,
:return_type => return_type,
:api_version => "V2"
)

data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
if @api_client.config.debugging
@api_client.config.logger.debug "API called: CloudCostManagementAPI#list_aws_related_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
end
return data, status_code, headers
end

# List Cloud Cost Management AWS CUR configs.
#
# @see #list_cost_awscur_configs_with_http_info
Expand Down
Loading
Loading