From ac5481f3e8950352ca0977f13096606dc7e67ee8 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 28 Jul 2025 19:55:59 +0000 Subject: [PATCH] Regenerate client from commit df31e44 of spec repo --- .generated-info | 4 +- .generator/schemas/v2/openapi.yaml | 13 +- .../client/v2/api/RestrictionPoliciesApi.java | 202 ++++++++---------- 3 files changed, 99 insertions(+), 120 deletions(-) diff --git a/.generated-info b/.generated-info index 45a0b9a64e6..a998655492f 100644 --- a/.generated-info +++ b/.generated-info @@ -1,4 +1,4 @@ { - "spec_repo_commit": "0fe80dc", - "generated": "2025-07-28 18:49:36.074" + "spec_repo_commit": "df31e44", + "generated": "2025-07-28 19:55:58.809" } diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index ecc0d67048b..c26c8055f82 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -763,11 +763,10 @@ components: schema: type: string ResourceID: - description: 'Identifier, formatted as `type:id`. Supported types: `connection`, - `dashboard`, `integration-account`, `integration-service`, `integration-webhook`, - `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, - `connection`, `connection-group`, `rum-application`, `cross-org-connection`, - `spreadsheet`.' + description: 'Identifier, formatted as `type:id`. Supported types: `dashboard`, + `integration-service`, `integration-webhook`, `notebook`, `reference-table`, + `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`, + `rum-application`, `cross-org-connection`, `spreadsheet`.' example: dashboard:abc-def-ghi in: path name: resource_id @@ -57515,8 +57514,6 @@ paths: - Dashboards: `dashboard` - - Integration Accounts: `integration-account` - - Integration Services: `integration-service` - Integration Webhooks: `integration-webhook` @@ -57562,8 +57559,6 @@ paths: Dashboards | `viewer`, `editor` - Integration Accounts | `viewer`, `editor` - Integration Services | `viewer`, `editor` Integration Webhooks | `viewer`, `editor` 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 381dcf0df56..892c9ae357e 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 @@ -51,12 +51,11 @@ public void setApiClient(ApiClient apiClient) { *

See {@link #deleteRestrictionPolicyWithHttpInfo}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @throws ApiException if fails to make API call */ public void deleteRestrictionPolicy(String resourceId) throws ApiException { @@ -69,12 +68,11 @@ public void deleteRestrictionPolicy(String resourceId) throws ApiException { *

See {@link #deleteRestrictionPolicyWithHttpInfoAsync}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @return CompletableFuture */ public CompletableFuture deleteRestrictionPolicyAsync(String resourceId) { @@ -89,12 +87,11 @@ public CompletableFuture deleteRestrictionPolicyAsync(String resourceId) { * Deletes the restriction policy associated with a specified resource. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -150,12 +147,11 @@ public ApiResponse deleteRestrictionPolicyWithHttpInfo(String resourceId) *

See {@link #deleteRestrictionPolicyWithHttpInfo}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @return CompletableFuture<ApiResponse<Void>> */ public CompletableFuture> deleteRestrictionPolicyWithHttpInfoAsync( @@ -212,12 +208,11 @@ public CompletableFuture> deleteRestrictionPolicyWithHttpInfoA *

See {@link #getRestrictionPolicyWithHttpInfo}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @return RestrictionPolicyResponse * @throws ApiException if fails to make API call */ @@ -231,12 +226,11 @@ public RestrictionPolicyResponse getRestrictionPolicy(String resourceId) throws *

See {@link #getRestrictionPolicyWithHttpInfoAsync}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @return CompletableFuture<RestrictionPolicyResponse> */ public CompletableFuture getRestrictionPolicyAsync(String resourceId) { @@ -251,12 +245,11 @@ public CompletableFuture getRestrictionPolicyAsync(St * Retrieves the restriction policy associated with a specified resource. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @return ApiResponse<RestrictionPolicyResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -312,12 +305,11 @@ public ApiResponse getRestrictionPolicyWithHttpInfo(S *

See {@link #getRestrictionPolicyWithHttpInfo}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @return CompletableFuture<ApiResponse<RestrictionPolicyResponse>> */ public CompletableFuture> @@ -393,12 +385,11 @@ public UpdateRestrictionPolicyOptionalParameters allowSelfLockout(Boolean allowS *

See {@link #updateRestrictionPolicyWithHttpInfo}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @param body Restriction policy payload (required) * @return RestrictionPolicyResponse * @throws ApiException if fails to make API call @@ -416,12 +407,11 @@ resourceId, body, new UpdateRestrictionPolicyOptionalParameters()) *

See {@link #updateRestrictionPolicyWithHttpInfoAsync}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @param body Restriction policy payload (required) * @return CompletableFuture<RestrictionPolicyResponse> */ @@ -441,12 +431,11 @@ resourceId, body, new UpdateRestrictionPolicyOptionalParameters()) *

See {@link #updateRestrictionPolicyWithHttpInfo}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @param body Restriction policy payload (required) * @param parameters Optional parameters for the request. * @return RestrictionPolicyResponse @@ -466,12 +455,11 @@ public RestrictionPolicyResponse updateRestrictionPolicy( *

See {@link #updateRestrictionPolicyWithHttpInfoAsync}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @param body Restriction policy payload (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<RestrictionPolicyResponse> @@ -493,43 +481,40 @@ public CompletableFuture updateRestrictionPolicyAsync *

Supported resources

* *

Restriction policies can be applied to the following resources: - Dashboards: - * dashboard - Integration Accounts: integration-account - Integration - * Services: integration-service - Integration Webhooks: integration-webhook - * - Notebooks: notebook - Powerpacks: powerpack - Reference - * Tables: reference-table - Security Rules: security-rule - Service - * Level Objectives: slo - Synthetic Global Variables: - * synthetics-global-variable - Synthetic Tests: synthetics-test - Synthetic - * Private Locations: synthetics-private-location - Monitors: monitor - - * Workflows: workflow - App Builder Apps: app-builder-app - - * Connections: connection - Connection Groups: connection-group - RUM - * Applications: rum-application - Cross Org Connections: cross-org-connection - * - Spreadsheets: spreadsheet + * dashboard - Integration Services: integration-service - Integration + * Webhooks: integration-webhook - Notebooks: notebook - Powerpacks: + * powerpack - Reference Tables: reference-table - Security Rules: + * security-rule - Service Level Objectives: slo - Synthetic Global + * Variables: synthetics-global-variable - Synthetic Tests: synthetics-test + * - Synthetic Private Locations: synthetics-private-location - Monitors: + * monitor - Workflows: workflow - App Builder Apps: + * app-builder-app - Connections: connection - Connection Groups: + * connection-group - RUM Applications: rum-application - Cross Org + * Connections: cross-org-connection - Spreadsheets: spreadsheet * *

Supported relations for resources

* *

Resource Type | Supported Relations ----------------------------|-------------------------- - * Dashboards | viewer, editor Integration Accounts | viewer - * , editor Integration Services | viewer, editor - * Integration Webhooks | viewer, editor Notebooks | viewer - * , editor Powerpacks | viewer, editor Security Rules | - * viewer, editor Service Level Objectives | viewer, - * editor Synthetic Global Variables | viewer, editor Synthetic - * Tests | viewer, editor Synthetic Private Locations | viewer - * , editor Monitors | viewer, editor Reference - * Tables | viewer, editor Workflows | viewer, runner - * , editor App Builder Apps | viewer, editor - * Connections | viewer, resolver, editor Connection Groups - * | viewer, editor RUM Application | viewer, editor - * Cross Org Connections | viewer, editor Spreadsheets | - * viewer, editor + * Dashboards | viewer, editor Integration Services | viewer + * , editor Integration Webhooks | viewer, editor + * Notebooks | viewer, editor Powerpacks | viewer, + * editor Security Rules | viewer, editor Service Level + * Objectives | viewer, editor Synthetic Global Variables | viewer + * , editor Synthetic Tests | viewer, editor + * Synthetic Private Locations | viewer, editor Monitors | viewer + * , editor Reference Tables | viewer, editor + * Workflows | viewer, runner, editor App Builder Apps | + * viewer, editor Connections | viewer, resolver + * , editor Connection Groups | viewer, editor RUM + * Application | viewer, editor Cross Org Connections | viewer + * , editor Spreadsheets | viewer, editor * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @param body Restriction policy payload (required) * @param parameters Optional parameters for the request. * @return ApiResponse<RestrictionPolicyResponse> @@ -601,12 +586,11 @@ public ApiResponse updateRestrictionPolicyWithHttpInf *

See {@link #updateRestrictionPolicyWithHttpInfo}. * * @param resourceId Identifier, formatted as type:id. Supported types: - * connection, dashboard, integration-account, - * integration-service, integration-webhook, notebook, - * reference-table, security-rule, slo, workflow - * , app-builder-app, connection, connection-group, - * rum-application, cross-org-connection, spreadsheet. - * (required) + * dashboard, integration-service, integration-webhook, + * notebook, reference-table, security-rule, slo + * , workflow, app-builder-app, connection, + * connection-group, rum-application, cross-org-connection + * , spreadsheet. (required) * @param body Restriction policy payload (required) * @param parameters Optional parameters for the request. * @return CompletableFuture<ApiResponse<RestrictionPolicyResponse>>