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
7 changes: 4 additions & 3 deletions features/generated-test/test-server
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down 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,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]:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10749,6 +10749,8 @@ export class CloudCostManagementApi {
}

/**
* **Note**: This endpoint is deprecated. View OCI accounts in Cloud Cost Settings in the Datadog web application instead.
*
* List the OCI configs.
* @param param The request object
*/
Expand Down
Loading