diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml
index 96018843d06..5f034e9dbf5 100644
--- a/.generator/schemas/v2/openapi.yaml
+++ b/.generator/schemas/v2/openapi.yaml
@@ -1649,7 +1649,7 @@ components:
type: string
ResourceID:
description: |-
- Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `powerpack`, `reference-table`, `security-rule`, `slo`, `synthetics-global-variable`, `synthetics-test`, `synthetics-private-location`, `monitor`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`, `on-call-escalation-policy`, `on-call-team-routing-rules`, `logs-pipeline`, `case-management-project`, `monitor-notification-rule`, `status-page`, `feature-flag`.
+ Identifier, formatted as `type:id`. Supported types: `dashboard`, `integration-service`, `integration-webhook`, `notebook`, `powerpack`, `reference-table`, `security-rule`, `slo`, `synthetics-global-variable`, `synthetics-test`, `synthetics-private-location`, `monitor`, `workflow`, `app-builder-app`, `connection`, `connection-group`, `rum-application`, `cross-org-connection`, `spreadsheet`, `on-call-schedule`, `on-call-escalation-policy`, `on-call-team-routing-rules`, `logs-pipeline`, `case-management-project`, `monitor-notification-rule`, `status-page`, `feature-flag`, `network-path-config`.
example: "dashboard:abc-def-ghi"
in: path
name: resource_id
@@ -189204,6 +189204,7 @@ paths:
- Monitor Notification Rules: `monitor-notification-rule`
- Status Pages: `status-page`
- Feature Flags: `feature-flag`
+ - Network Path Configs: `network-path-config`
#### Supported relations for resources
Resource Type | Supported Relations
@@ -189235,6 +189236,7 @@ paths:
Monitor Notification Rules | `viewer`, `editor`
Status Pages | `viewer`, `responder`, `manager`
Feature Flags | `viewer`, `contributor`, `editor`
+ Network Path Configs | `viewer`, `editor`
operationId: UpdateRestrictionPolicy
parameters:
- $ref: "#/components/parameters/ResourceID"
diff --git a/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java b/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java
index 3cfefd631c7..c76491c777b 100644
--- a/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java
+++ b/src/main/java/com/datadog/api/client/v2/api/RestrictionPoliciesApi.java
@@ -60,7 +60,7 @@ public void setApiClient(ApiClient apiClient) {
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @throws ApiException if fails to make API call
*/
public void deleteRestrictionPolicy(String resourceId) throws ApiException {
@@ -82,7 +82,7 @@ public void deleteRestrictionPolicy(String resourceId) throws ApiException {
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @return CompletableFuture
*/
public CompletableFuture deleteRestrictionPolicyAsync(String resourceId) {
@@ -106,7 +106,7 @@ public CompletableFuture deleteRestrictionPolicyAsync(String resourceId) {
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @return ApiResponse<Void>
* @throws ApiException if fails to make API call
* @http.response.details
@@ -171,7 +171,7 @@ public ApiResponse deleteRestrictionPolicyWithHttpInfo(String resourceId)
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @return CompletableFuture<ApiResponse<Void>>
*/
public CompletableFuture> deleteRestrictionPolicyWithHttpInfoAsync(
@@ -237,7 +237,7 @@ public CompletableFuture> deleteRestrictionPolicyWithHttpInfoA
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @return RestrictionPolicyResponse
* @throws ApiException if fails to make API call
*/
@@ -260,7 +260,7 @@ public RestrictionPolicyResponse getRestrictionPolicy(String resourceId) throws
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @return CompletableFuture<RestrictionPolicyResponse>
*/
public CompletableFuture getRestrictionPolicyAsync(String resourceId) {
@@ -284,7 +284,7 @@ public CompletableFuture getRestrictionPolicyAsync(St
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @return ApiResponse<RestrictionPolicyResponse>
* @throws ApiException if fails to make API call
* @http.response.details
@@ -349,7 +349,7 @@ public ApiResponse getRestrictionPolicyWithHttpInfo(S
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @return CompletableFuture<ApiResponse<RestrictionPolicyResponse>>
*/
public CompletableFuture>
@@ -434,7 +434,7 @@ public UpdateRestrictionPolicyOptionalParameters allowSelfLockout(Boolean allowS
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
* @return RestrictionPolicyResponse
* @throws ApiException if fails to make API call
@@ -461,7 +461,7 @@ resourceId, body, new UpdateRestrictionPolicyOptionalParameters())
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
* @return CompletableFuture<RestrictionPolicyResponse>
*/
@@ -490,7 +490,7 @@ resourceId, body, new UpdateRestrictionPolicyOptionalParameters())
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
* @param parameters Optional parameters for the request.
* @return RestrictionPolicyResponse
@@ -519,7 +519,7 @@ public RestrictionPolicyResponse updateRestrictionPolicy(
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
* @param parameters Optional parameters for the request.
* @return CompletableFuture<RestrictionPolicyResponse>
@@ -555,7 +555,8 @@ public CompletableFuture updateRestrictionPolicyAsync
* on-call-escalation-policy - On-Call Team Routing Rules: on-call-team-routing-rules
* - Logs Pipelines: logs-pipeline - Case Management Projects:
* case-management-project - Monitor Notification Rules: monitor-notification-rule
- * - Status Pages: status-page - Feature Flags: feature-flag
+ * - Status Pages: status-page - Feature Flags: feature-flag -
+ * Network Path Configs: network-path-config
*
* Supported relations for resources
*
@@ -579,7 +580,8 @@ public CompletableFuture updateRestrictionPolicyAsync
* , editor Case Management Projects | viewer, contributor
* , manager Monitor Notification Rules | viewer, editor
* Status Pages | viewer, responder, manager
- * Feature Flags | viewer, contributor, editor
+ * Feature Flags | viewer, contributor, editor Network Path
+ * Configs | viewer, editor
*
* @param resourceId Identifier, formatted as type:id. Supported types:
* dashboard, integration-service, integration-webhook,
@@ -591,7 +593,7 @@ public CompletableFuture updateRestrictionPolicyAsync
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
* @param parameters Optional parameters for the request.
* @return ApiResponse<RestrictionPolicyResponse>
@@ -672,7 +674,7 @@ public ApiResponse updateRestrictionPolicyWithHttpInf
* spreadsheet, on-call-schedule, on-call-escalation-policy
* , on-call-team-routing-rules, logs-pipeline,
* case-management-project, monitor-notification-rule, status-page
- * , feature-flag. (required)
+ * , feature-flag, network-path-config. (required)
* @param body Restriction policy payload (required)
* @param parameters Optional parameters for the request.
* @return CompletableFuture<ApiResponse<RestrictionPolicyResponse>>
diff --git a/src/test/resources/generated-test/test-server b/src/test/resources/generated-test/test-server
index 899230cbccd..417fcc086cf 100755
--- a/src/test/resources/generated-test/test-server
+++ b/src/test/resources/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]: