diff --git a/.apigentools-info b/.apigentools-info index e89b250b56..69e8f9f341 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-07-18 19:18:03.897221", - "spec_repo_commit": "8f19ff48" + "regenerated": "2024-07-18 19:52:50.738768", + "spec_repo_commit": "17f1aa28" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-07-18 19:18:03.925200", - "spec_repo_commit": "8f19ff48" + "regenerated": "2024-07-18 19:52:50.755789", + "spec_repo_commit": "17f1aa28" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ca66c985ec..5a45584024 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -26026,6 +26026,7 @@ paths: - Cloud Cost Management /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 diff --git a/src/datadog_api_client/v2/api/cloud_cost_management_api.py b/src/datadog_api_client/v2/api/cloud_cost_management_api.py index 514432d063..bc8f692176 100644 --- a/src/datadog_api_client/v2/api/cloud_cost_management_api.py +++ b/src/datadog_api_client/v2/api/cloud_cost_management_api.py @@ -4,6 +4,7 @@ from __future__ import annotations from typing import Any, Dict +import warnings from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint from datadog_api_client.configuration import Configuration @@ -320,7 +321,7 @@ def list_aws_related_accounts( self, filter_management_account_id: str, ) -> AWSRelatedAccountsResponse: - """List related AWS accounts. + """List related AWS accounts. **Deprecated**. List the AWS accounts in an organization by calling 'organizations:ListAccounts' from the specified management account. @@ -331,6 +332,7 @@ def list_aws_related_accounts( kwargs: Dict[str, Any] = {} kwargs["filter_management_account_id"] = filter_management_account_id + warnings.warn("list_aws_related_accounts is deprecated", DeprecationWarning, stacklevel=2) return self._list_aws_related_accounts_endpoint.call_with_http_info(**kwargs) def list_cost_awscur_configs(