diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 96018843d06..892532128f0 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/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java b/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java index de1aa6c3bfd..be7870fce27 100644 --- a/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java +++ b/src/main/java/com/datadog/api/client/v2/api/CloudCostManagementApi.java @@ -7828,7 +7828,9 @@ public ApiResponse listCostGCPUsageCostConfigsWithH * * @return OCIConfigsResponse * @throws ApiException if fails to make API call + * @deprecated */ + @Deprecated public OCIConfigsResponse listCostOCIConfigs() throws ApiException { return listCostOCIConfigsWithHttpInfo().getData(); } @@ -7839,7 +7841,9 @@ public OCIConfigsResponse listCostOCIConfigs() throws ApiException { *

See {@link #listCostOCIConfigsWithHttpInfoAsync}. * * @return CompletableFuture<OCIConfigsResponse> + * @deprecated */ + @Deprecated public CompletableFuture listCostOCIConfigsAsync() { return listCostOCIConfigsWithHttpInfoAsync() .thenApply( @@ -7849,7 +7853,10 @@ public CompletableFuture listCostOCIConfigsAsync() { } /** - * List the OCI configs. + * Note: This endpoint is deprecated. View OCI accounts in Cloud Cost Settings in + * the Datadog web application instead. + * + *

List the OCI configs. * * @return ApiResponse<OCIConfigsResponse> * @throws ApiException if fails to make API call @@ -7861,7 +7868,10 @@ public CompletableFuture listCostOCIConfigsAsync() { * 403 Forbidden - * 429 Too many requests - * + * + * @deprecated */ + @Deprecated public ApiResponse listCostOCIConfigsWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -7895,7 +7905,9 @@ public ApiResponse listCostOCIConfigsWithHttpInfo() throws A *

See {@link #listCostOCIConfigsWithHttpInfo}. * * @return CompletableFuture<ApiResponse<OCIConfigsResponse>> + * @deprecated */ + @Deprecated public CompletableFuture> listCostOCIConfigsWithHttpInfoAsync() { Object localVarPostBody = null; // create path and map variables diff --git a/src/test/resources/generated-test/test-server b/src/test/resources/generated-test/test-server index 899230cbccd..a7224b2c64c 100755 --- a/src/test/resources/generated-test/test-server +++ b/src/test/resources/generated-test/test-server @@ -16,7 +16,7 @@ import re import tempfile import threading import uuid -from datetime import datetime, timezone +from datetime import UTC, datetime from http import HTTPStatus from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer from pathlib import Path @@ -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,7 @@ def _slug(value: str) -> str: def _now_iso() -> str: - return datetime.now(timezone.utc).isoformat().replace("+00:00", "Z") + return datetime.now(UTC).isoformat().replace("+00:00", "Z") def _read_json(path: Path) -> dict[str, Any]: