Skip to content

Commit 0a227b7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Delete api/v2/cost/aws_related_accounts from spec (#2232)
* Regenerate client from commit 63c441b2 of spec repo * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 16e4483 commit 0a227b7

14 files changed

+4
-426
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 16:03:55.015635",
8-
"spec_repo_commit": "a11da7b5"
7+
"regenerated": "2024-10-31 16:41:34.646210",
8+
"spec_repo_commit": "63c441b2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-31 16:03:55.037697",
13-
"spec_repo_commit": "a11da7b5"
12+
"regenerated": "2024-10-31 16:41:34.664132",
13+
"spec_repo_commit": "63c441b2"
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:
@@ -28974,53 +28931,6 @@ paths:
2897428931
operator: OR
2897528932
permissions:
2897628933
- cloud_cost_management_write
28977-
/api/v2/cost/aws_related_accounts:
28978-
get:
28979-
deprecated: true
28980-
description: List the AWS accounts in an organization by calling 'organizations:ListAccounts'
28981-
from the specified management account.
28982-
operationId: ListAWSRelatedAccounts
28983-
parameters:
28984-
- description: The ID of the management account to filter by.
28985-
example: '123456789123'
28986-
in: query
28987-
name: filter[management_account_id]
28988-
required: true
28989-
schema:
28990-
type: string
28991-
responses:
28992-
'200':
28993-
content:
28994-
application/json:
28995-
schema:
28996-
$ref: '#/components/schemas/AWSRelatedAccountsResponse'
28997-
description: OK
28998-
'400':
28999-
content:
29000-
application/json:
29001-
schema:
29002-
$ref: '#/components/schemas/APIErrorResponse'
29003-
description: Bad Request
29004-
'403':
29005-
content:
29006-
application/json:
29007-
schema:
29008-
$ref: '#/components/schemas/APIErrorResponse'
29009-
description: Forbidden
29010-
'429':
29011-
$ref: '#/components/responses/TooManyRequestsResponse'
29012-
security:
29013-
- apiKeyAuth: []
29014-
appKeyAuth: []
29015-
- AuthZ:
29016-
- cloud_cost_management_read
29017-
summary: List related AWS accounts
29018-
tags:
29019-
- Cloud Cost Management
29020-
x-permission:
29021-
operator: OR
29022-
permissions:
29023-
- cloud_cost_management_read
2902428934
/api/v2/cost/azure_uc_config:
2902528935
get:
2902628936
description: List the Azure configs.

docs/datadog_api_client.v2.model.rst

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -571,34 +571,6 @@ datadog\_api\_client.v2.model.aws\_cur\_configs\_response module
571571
:members:
572572
:show-inheritance:
573573

574-
datadog\_api\_client.v2.model.aws\_related\_account module
575-
----------------------------------------------------------
576-
577-
.. automodule:: datadog_api_client.v2.model.aws_related_account
578-
:members:
579-
:show-inheritance:
580-
581-
datadog\_api\_client.v2.model.aws\_related\_account\_attributes module
582-
----------------------------------------------------------------------
583-
584-
.. automodule:: datadog_api_client.v2.model.aws_related_account_attributes
585-
:members:
586-
:show-inheritance:
587-
588-
datadog\_api\_client.v2.model.aws\_related\_account\_type module
589-
----------------------------------------------------------------
590-
591-
.. automodule:: datadog_api_client.v2.model.aws_related_account_type
592-
:members:
593-
:show-inheritance:
594-
595-
datadog\_api\_client.v2.model.aws\_related\_accounts\_response module
596-
---------------------------------------------------------------------
597-
598-
.. automodule:: datadog_api_client.v2.model.aws_related_accounts_response
599-
:members:
600-
:show-inheritance:
601-
602574
datadog\_api\_client.v2.model.azure\_uc\_config module
603575
------------------------------------------------------
604576

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

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

src/datadog_api_client/v2/api/cloud_cost_management_api.py

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44
from __future__ import annotations
55

66
from typing import Any, Dict, List
7-
import warnings
87

98
from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint
109
from datadog_api_client.configuration import Configuration
1110
from datadog_api_client.v2.model.aws_cur_configs_response import AwsCURConfigsResponse
1211
from datadog_api_client.v2.model.aws_cur_config_response import AwsCURConfigResponse
1312
from datadog_api_client.v2.model.aws_cur_config_post_request import AwsCURConfigPostRequest
1413
from datadog_api_client.v2.model.aws_cur_config_patch_request import AwsCURConfigPatchRequest
15-
from datadog_api_client.v2.model.aws_related_accounts_response import AWSRelatedAccountsResponse
1614
from datadog_api_client.v2.model.azure_uc_configs_response import AzureUCConfigsResponse
1715
from datadog_api_client.v2.model.azure_uc_config_pairs_response import AzureUCConfigPairsResponse
1816
from datadog_api_client.v2.model.azure_uc_config_post_request import AzureUCConfigPostRequest
@@ -182,29 +180,6 @@ def __init__(self, api_client=None):
182180
api_client=api_client,
183181
)
184182

185-
self._list_aws_related_accounts_endpoint = _Endpoint(
186-
settings={
187-
"response_type": (AWSRelatedAccountsResponse,),
188-
"auth": ["apiKeyAuth", "appKeyAuth", "AuthZ"],
189-
"endpoint_path": "/api/v2/cost/aws_related_accounts",
190-
"operation_id": "list_aws_related_accounts",
191-
"http_method": "GET",
192-
"version": "v2",
193-
},
194-
params_map={
195-
"filter_management_account_id": {
196-
"required": True,
197-
"openapi_types": (str,),
198-
"attribute": "filter[management_account_id]",
199-
"location": "query",
200-
},
201-
},
202-
headers_map={
203-
"accept": ["application/json"],
204-
},
205-
api_client=api_client,
206-
)
207-
208183
self._list_cost_awscur_configs_endpoint = _Endpoint(
209184
settings={
210185
"response_type": (AwsCURConfigsResponse,),
@@ -438,24 +413,6 @@ def get_custom_costs_file(
438413

439414
return self._get_custom_costs_file_endpoint.call_with_http_info(**kwargs)
440415

441-
def list_aws_related_accounts(
442-
self,
443-
filter_management_account_id: str,
444-
) -> AWSRelatedAccountsResponse:
445-
"""List related AWS accounts. **Deprecated**.
446-
447-
List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the specified management account.
448-
449-
:param filter_management_account_id: The ID of the management account to filter by.
450-
:type filter_management_account_id: str
451-
:rtype: AWSRelatedAccountsResponse
452-
"""
453-
kwargs: Dict[str, Any] = {}
454-
kwargs["filter_management_account_id"] = filter_management_account_id
455-
456-
warnings.warn("list_aws_related_accounts is deprecated", DeprecationWarning, stacklevel=2)
457-
return self._list_aws_related_accounts_endpoint.call_with_http_info(**kwargs)
458-
459416
def list_cost_awscur_configs(
460417
self,
461418
) -> AwsCURConfigsResponse:

src/datadog_api_client/v2/model/aws_related_account.py

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

src/datadog_api_client/v2/model/aws_related_account_attributes.py

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

src/datadog_api_client/v2/model/aws_related_account_type.py

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

0 commit comments

Comments
 (0)