Skip to content

Commit b68db02

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2ab87b5f of spec repo
1 parent 19259ec commit b68db02

File tree

14 files changed

+4
-632
lines changed

14 files changed

+4
-632
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:48.631310",
8-
"spec_repo_commit": "4251a422"
7+
"regenerated": "2024-10-30 13:03:26.541063",
8+
"spec_repo_commit": "2ab87b5f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-28 23:07:48.650835",
13-
"spec_repo_commit": "4251a422"
12+
"regenerated": "2024-10-30 13:03:26.559173",
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.

cassettes/features/v2/cloud_cost_management/List-related-AWS-accounts-returns-OK-response.frozen

Lines changed: 0 additions & 1 deletion
This file was deleted.

cassettes/features/v2/cloud_cost_management/List-related-AWS-accounts-returns-OK-response.yml

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

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

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

features/scenarios_model_mapping.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,9 +1093,6 @@
10931093
"cloud_account_id" => "String",
10941094
"body" => "AwsCURConfigPatchRequest",
10951095
},
1096-
"v2.ListAWSRelatedAccounts" => {
1097-
"filter_management_account_id" => "String",
1098-
},
10991096
"v2.CreateCostAzureUCConfigs" => {
11001097
"body" => "AzureUCConfigPostRequest",
11011098
},

features/v2/cloud_cost_management.feature

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -148,21 +148,6 @@ Feature: Cloud Cost Management
148148
When the request is sent
149149
Then the response status is 200 OK
150150

151-
@generated @skip @team:Datadog/cloud-cost-management
152-
Scenario: List related AWS accounts returns "Bad Request" response
153-
Given new "ListAWSRelatedAccounts" request
154-
And request contains "filter[management_account_id]" parameter from "REPLACE.ME"
155-
When the request is sent
156-
Then the response status is 400 Bad Request
157-
158-
@replay-only @team:Datadog/cloud-cost-management
159-
Scenario: List related AWS accounts returns "OK" response
160-
Given new "ListAWSRelatedAccounts" request
161-
And request contains "filter[management_account_id]" parameter with value "123456789123"
162-
When the request is sent
163-
Then the response status is 200 OK
164-
And the response "data[0].attributes.name" is equal to "test_name"
165-
166151
@replay-only @team:Datadog/cloud-cost-management
167152
Scenario: Update Cloud Cost Management AWS CUR config returns "OK" response
168153
Given new "UpdateCostAWSCURConfig" request

features/v2/undo.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -414,12 +414,6 @@
414414
"type": "idempotent"
415415
}
416416
},
417-
"ListAWSRelatedAccounts": {
418-
"tag": "Cloud Cost Management",
419-
"undo": {
420-
"type": "safe"
421-
}
422-
},
423417
"ListCostAzureUCConfigs": {
424418
"tag": "Cloud Cost Management",
425419
"undo": {

lib/datadog_api_client/inflector.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -987,10 +987,6 @@ def overrides
987987
"v2.aws_cur_config_response" => "AwsCURConfigResponse",
988988
"v2.aws_cur_configs_response" => "AwsCURConfigsResponse",
989989
"v2.aws_cur_config_type" => "AwsCURConfigType",
990-
"v2.aws_related_account" => "AWSRelatedAccount",
991-
"v2.aws_related_account_attributes" => "AWSRelatedAccountAttributes",
992-
"v2.aws_related_accounts_response" => "AWSRelatedAccountsResponse",
993-
"v2.aws_related_account_type" => "AWSRelatedAccountType",
994990
"v2.azure_uc_config" => "AzureUCConfig",
995991
"v2.azure_uc_config_pair" => "AzureUCConfigPair",
996992
"v2.azure_uc_config_pair_attributes" => "AzureUCConfigPairAttributes",

lib/datadog_api_client/v2/api/cloud_cost_management_api.rb

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -477,75 +477,6 @@ def get_custom_costs_file_with_http_info(file_id, opts = {})
477477
return data, status_code, headers
478478
end
479479

480-
# List related AWS accounts.
481-
#
482-
# @see #list_aws_related_accounts_with_http_info
483-
def list_aws_related_accounts(filter_management_account_id, opts = {})
484-
data, _status_code, _headers = list_aws_related_accounts_with_http_info(filter_management_account_id, opts)
485-
data
486-
end
487-
488-
# List related AWS accounts.
489-
#
490-
# List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the specified management account.
491-
#
492-
# @deprecated This API is deprecated.
493-
#
494-
# @param filter_management_account_id [String] The ID of the management account to filter by.
495-
# @param opts [Hash] the optional parameters
496-
# @return [Array<(AWSRelatedAccountsResponse, Integer, Hash)>] AWSRelatedAccountsResponse data, response status code and response headers
497-
def list_aws_related_accounts_with_http_info(filter_management_account_id, opts = {})
498-
warn "[DEPRECATION] `ListAWSRelatedAccounts` is deprecated."
499-
500-
if @api_client.config.debugging
501-
@api_client.config.logger.debug 'Calling API: CloudCostManagementAPI.list_aws_related_accounts ...'
502-
end
503-
# verify the required parameter 'filter_management_account_id' is set
504-
if @api_client.config.client_side_validation && filter_management_account_id.nil?
505-
fail ArgumentError, "Missing the required parameter 'filter_management_account_id' when calling CloudCostManagementAPI.list_aws_related_accounts"
506-
end
507-
# resource path
508-
local_var_path = '/api/v2/cost/aws_related_accounts'
509-
510-
# query parameters
511-
query_params = opts[:query_params] || {}
512-
query_params[:'filter[management_account_id]'] = filter_management_account_id
513-
514-
# header parameters
515-
header_params = opts[:header_params] || {}
516-
# HTTP header 'Accept' (if needed)
517-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
518-
519-
# form parameters
520-
form_params = opts[:form_params] || {}
521-
522-
# http body (model)
523-
post_body = opts[:debug_body]
524-
525-
# return_type
526-
return_type = opts[:debug_return_type] || 'AWSRelatedAccountsResponse'
527-
528-
# auth_names
529-
auth_names = opts[:debug_auth_names] || [:apiKeyAuth, :appKeyAuth, :AuthZ]
530-
531-
new_options = opts.merge(
532-
:operation => :list_aws_related_accounts,
533-
:header_params => header_params,
534-
:query_params => query_params,
535-
:form_params => form_params,
536-
:body => post_body,
537-
:auth_names => auth_names,
538-
:return_type => return_type,
539-
:api_version => "V2"
540-
)
541-
542-
data, status_code, headers = @api_client.call_api(Net::HTTP::Get, local_var_path, new_options)
543-
if @api_client.config.debugging
544-
@api_client.config.logger.debug "API called: CloudCostManagementAPI#list_aws_related_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
545-
end
546-
return data, status_code, headers
547-
end
548-
549480
# List Cloud Cost Management AWS CUR configs.
550481
#
551482
# @see #list_cost_awscur_configs_with_http_info

0 commit comments

Comments
 (0)