diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 96018843d0..892532128f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -141466,7 +141466,11 @@ paths: - cloud_cost_management_write /api/v2/cost/oci_config: get: - description: List the OCI configs. + deprecated: true + description: |- + **Note**: This endpoint is deprecated. View OCI accounts in Cloud Cost Settings in the Datadog web application instead. + + List the OCI configs. operationId: ListCostOCIConfigs responses: "200": @@ -141507,6 +141511,7 @@ paths: operator: OR permissions: - cloud_cost_management_read + x-sunset: "2027-01-01" /api/v2/cost/recommendations: post: description: List cost recommendations matching a filter, with pagination and sorting. 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 f5922c4530..42dd615b58 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, List, Union +import warnings from datadog_api_client.api_client import ApiClient, Endpoint as _Endpoint from datadog_api_client.configuration import Configuration @@ -3046,13 +3047,16 @@ def list_cost_gcp_usage_cost_configs( def list_cost_oci_configs( self, ) -> OCIConfigsResponse: - """List Cloud Cost Management OCI configs. + """List Cloud Cost Management OCI configs. **Deprecated**. + + **Note** : This endpoint is deprecated. View OCI accounts in Cloud Cost Settings in the Datadog web application instead. List the OCI configs. :rtype: OCIConfigsResponse """ kwargs: Dict[str, Any] = {} + warnings.warn("list_cost_oci_configs is deprecated", DeprecationWarning, stacklevel=2) return self._list_cost_oci_configs_endpoint.call_with_http_info(**kwargs) def list_cost_tag_descriptions( diff --git a/tests/generated-test/test-server b/tests/generated-test/test-server index 899230cbcc..417fcc086c 100755 --- a/tests/generated-test/test-server +++ b/tests/generated-test/test-server @@ -435,7 +435,8 @@ def _json_contains(actual: Any, expected: Any) -> bool: return all(key in actual and _json_contains(actual[key], value) for key, value in expected.items()) if isinstance(expected, list) and isinstance(actual, list): return len(expected) == len(actual) and all( - _json_contains(actual_item, expected_item) for actual_item, expected_item in zip(actual, expected) + _json_contains(actual_item, expected_item) + for actual_item, expected_item in zip(actual, expected, strict=False) ) return actual == expected @@ -460,7 +461,8 @@ def _slug(value: str) -> str: def _now_iso() -> str: - return datetime.now(timezone.utc).isoformat().replace("+00:00", "Z") + # datetime.UTC is Python 3.11+; this standalone runtime supports Python 3.10. + return datetime.now(timezone.utc).isoformat().replace("+00:00", "Z") # noqa: UP017 def _read_json(path: Path) -> dict[str, Any]: