Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down
6 changes: 4 additions & 2 deletions tests/generated-test/test-server
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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]:
Expand Down
Loading