diff --git a/.apigentools-info b/.apigentools-info index bde48cf05dfc..598989d3536d 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-04 16:55:51.112810", - "spec_repo_commit": "da94868e" + "regenerated": "2025-04-04 20:19:34.024681", + "spec_repo_commit": "3909ab62" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2025-04-04 16:55:51.129680", - "spec_repo_commit": "da94868e" + "regenerated": "2025-04-04 20:19:34.040447", + "spec_repo_commit": "3909ab62" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 65222d02bfa7..87935c5f60bf 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -654,8 +654,8 @@ components: type: string ResourceID: description: 'Identifier, formatted as `type:id`. Supported types: `connection`, - `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, - `app-builder-app`, `connection`, `connection-group`.' + `dashboard`, `integration-account`, `integration-webhook`, `notebook`, `reference-table`, + `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`.' example: dashboard:abc-def-ghi in: path name: resource_id @@ -45734,6 +45734,10 @@ paths: - Dashboards: `dashboard` + - Integration Accounts: `integration-account` + + - Integration Webhooks: `integration-webhook` + - Notebooks: `notebook` - Powerpacks: `powerpack` @@ -45769,6 +45773,10 @@ paths: Dashboards | `viewer`, `editor` + Integration Accounts | `viewer`, `editor` + + Integration Webhooks | `viewer`, `editor` + Notebooks | `viewer`, `editor` Powerpacks | `viewer`, `editor` diff --git a/lib/datadog_api_client/v2/api/restriction_policies_api.rb b/lib/datadog_api_client/v2/api/restriction_policies_api.rb index df303b291b05..b088a31df80b 100644 --- a/lib/datadog_api_client/v2/api/restriction_policies_api.rb +++ b/lib/datadog_api_client/v2/api/restriction_policies_api.rb @@ -35,7 +35,7 @@ def delete_restriction_policy(resource_id, opts = {}) # # Deletes the restriction policy associated with a specified resource. # - # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`. + # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`. # @param opts [Hash] the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_restriction_policy_with_http_info(resource_id, opts = {}) @@ -100,7 +100,7 @@ def get_restriction_policy(resource_id, opts = {}) # # Retrieves the restriction policy associated with a specified resource. # - # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`. + # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`. # @param opts [Hash] the optional parameters # @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers def get_restriction_policy_with_http_info(resource_id, opts = {}) @@ -168,6 +168,8 @@ def update_restriction_policy(resource_id, body, opts = {}) # #### Supported resources # Restriction policies can be applied to the following resources: # - Dashboards: `dashboard` + # - Integration Accounts: `integration-account` + # - Integration Webhooks: `integration-webhook` # - Notebooks: `notebook` # - Powerpacks: `powerpack` # - Reference Tables: `reference-table` @@ -186,6 +188,8 @@ def update_restriction_policy(resource_id, body, opts = {}) # Resource Type | Supported Relations # ----------------------------|-------------------------- # Dashboards | `viewer`, `editor` + # Integration Accounts | `viewer`, `editor` + # Integration Webhooks | `viewer`, `editor` # Notebooks | `viewer`, `editor` # Powerpacks | `viewer`, `editor` # Security Rules | `viewer`, `editor` @@ -200,7 +204,7 @@ def update_restriction_policy(resource_id, body, opts = {}) # Connections | `viewer`, `resolver`, `editor` # Connection Groups | `viewer`, `editor` # - # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`. + # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `integration-account`, `integration-webhook`, `notebook`, `reference-table`, `security-rule`, `slo`, `workflow`, `app-builder-app`, `connection`, `connection-group`. # @param body [RestrictionPolicyUpdateRequest] Restriction policy payload # @param opts [Hash] the optional parameters # @option opts [Boolean] :allow_self_lockout Allows admins (users with the `user_access_manage` permission) to remove their own access from the resource if set to `true`. By default, this is set to `false`, preventing admins from locking themselves out.