diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 8e53877feb3..2f6f2099338 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -1667,7 +1667,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`, `network-path-config`. + Identifier, formatted as `type:id`. Supported types: `dashboard`, `canvas`, `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 @@ -193736,6 +193736,7 @@ paths: #### Supported resources Restriction policies can be applied to the following resources: - Dashboards: `dashboard` + - Dashboard Canvases: `canvas` - Integration Services: `integration-service` - Integration Webhooks: `integration-webhook` - Notebooks: `notebook` @@ -193768,6 +193769,7 @@ paths: Resource Type | Supported Relations ----------------------------|-------------------------- Dashboards | `viewer`, `editor` + Dashboard Canvases | `viewer`, `editor` Integration Services | `viewer`, `editor` Integration Webhooks | `viewer`, `editor` Notebooks | `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 c76491c777b..18a7391f5f5 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,14 +51,15 @@ public void setApiClient(ApiClient apiClient) { *

See {@link #deleteRestrictionPolicyWithHttpInfo}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @throws ApiException if fails to make API call @@ -73,14 +74,15 @@ public void deleteRestrictionPolicy(String resourceId) throws ApiException { *

See {@link #deleteRestrictionPolicyWithHttpInfoAsync}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @return CompletableFuture @@ -97,14 +99,15 @@ public CompletableFuture deleteRestrictionPolicyAsync(String resourceId) { * Deletes the restriction policy associated with a specified resource. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @return ApiResponse<Void> @@ -162,14 +165,15 @@ public ApiResponse deleteRestrictionPolicyWithHttpInfo(String resourceId) *

See {@link #deleteRestrictionPolicyWithHttpInfo}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @return CompletableFuture<ApiResponse<Void>> @@ -228,14 +232,15 @@ public CompletableFuture> deleteRestrictionPolicyWithHttpInfoA *

See {@link #getRestrictionPolicyWithHttpInfo}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @return RestrictionPolicyResponse @@ -251,14 +256,15 @@ public RestrictionPolicyResponse getRestrictionPolicy(String resourceId) throws *

See {@link #getRestrictionPolicyWithHttpInfoAsync}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @return CompletableFuture<RestrictionPolicyResponse> @@ -275,14 +281,15 @@ public CompletableFuture getRestrictionPolicyAsync(St * Retrieves the restriction policy associated with a specified resource. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @return ApiResponse<RestrictionPolicyResponse> @@ -340,14 +347,15 @@ public ApiResponse getRestrictionPolicyWithHttpInfo(S *

See {@link #getRestrictionPolicyWithHttpInfo}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @return CompletableFuture<ApiResponse<RestrictionPolicyResponse>> @@ -425,14 +433,15 @@ public UpdateRestrictionPolicyOptionalParameters allowSelfLockout(Boolean allowS *

See {@link #updateRestrictionPolicyWithHttpInfo}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @param body Restriction policy payload (required) @@ -452,14 +461,15 @@ resourceId, body, new UpdateRestrictionPolicyOptionalParameters()) *

See {@link #updateRestrictionPolicyWithHttpInfoAsync}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @param body Restriction policy payload (required) @@ -481,14 +491,15 @@ resourceId, body, new UpdateRestrictionPolicyOptionalParameters()) *

See {@link #updateRestrictionPolicyWithHttpInfo}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @param body Restriction policy payload (required) @@ -510,14 +521,15 @@ public RestrictionPolicyResponse updateRestrictionPolicy( *

See {@link #updateRestrictionPolicyWithHttpInfoAsync}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @param body Restriction policy payload (required) @@ -541,57 +553,58 @@ public CompletableFuture updateRestrictionPolicyAsync *

Supported resources

* *

Restriction policies can be applied to the following resources: - Dashboards: - * 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 - - * On-Call Schedules: on-call-schedule - On-Call Escalation Policies: - * 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 - - * Network Path Configs: network-path-config + * dashboard - Dashboard Canvases: canvas - 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 - On-Call Schedules: on-call-schedule - On-Call Escalation + * Policies: 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 - Network Path Configs: network-path-config * *

Supported relations for resources

* *

Resource Type | Supported Relations ----------------------------|-------------------------- - * 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 On-Call - * Schedules | viewer, overrider, editor On-Call Escalation - * Policies | viewer, editor On-Call Team Routing Rules | viewer - * , editor Logs Pipelines | viewer, processors_editor - * , editor Case Management Projects | viewer, contributor - * , manager Monitor Notification Rules | viewer, editor - * Status Pages | viewer, responder, manager - * Feature Flags | viewer, contributor, editor Network Path - * Configs | viewer, editor + * Dashboards | viewer, editor Dashboard Canvases | 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 On-Call Schedules | viewer, overrider, + * editor On-Call Escalation Policies | viewer, editor + * On-Call Team Routing Rules | viewer, editor Logs Pipelines | + * viewer, processors_editor, editor Case Management Projects | + * viewer, contributor, manager Monitor Notification Rules + * | viewer, editor Status Pages | viewer, responder + * , manager Feature Flags | viewer, contributor, + * editor Network Path Configs | viewer, editor * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @param body Restriction policy payload (required) @@ -665,14 +678,15 @@ public ApiResponse updateRestrictionPolicyWithHttpInf *

See {@link #updateRestrictionPolicyWithHttpInfo}. * * @param resourceId 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, + * dashboard, canvas, 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. (required) * @param body Restriction policy payload (required)