diff --git a/.apigentools-info b/.apigentools-info index edf854374dd3..e50a0d79c30e 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.4", - "regenerated": "2023-03-14 18:05:16.267306", - "spec_repo_commit": "5742ed5d" + "regenerated": "2023-03-15 16:38:16.484727", + "spec_repo_commit": "315984bc" }, "v2": { "apigentools_version": "1.6.4", - "regenerated": "2023-03-14 18:05:16.280132", - "spec_repo_commit": "5742ed5d" + "regenerated": "2023-03-15 16:38:16.503915", + "spec_repo_commit": "315984bc" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index bfb064d81e37..935050152596 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -18105,7 +18105,24 @@ paths: - Security Rules: `security-rule` - - Service Level Objectives: `slo`' + - Service Level Objectives: `slo` + + + #### Supported relations for resources + + Resource Type | Supported Relations + + -------------------------|-------------------------- + + Connections | `viewer`, `editor`, `resolver` + + Dashboards | `viewer`, `editor` + + Notebooks | `viewer`, `editor` + + Security Rules | `viewer`, `editor` + + Service Level Objectives | `viewer`, `editor`' operationId: UpdateRestrictionPolicy parameters: - $ref: '#/components/parameters/ResourceID' 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 bffe07e946cd..ad33ca3f9f49 100644 --- a/lib/datadog_api_client/v2/api/restriction_policies_api.rb +++ b/lib/datadog_api_client/v2/api/restriction_policies_api.rb @@ -173,6 +173,15 @@ def update_restriction_policy(resource_id, body, opts = {}) # - Security Rules: `security-rule` # - Service Level Objectives: `slo` # + # #### Supported relations for resources + # Resource Type | Supported Relations + # -------------------------|-------------------------- + # Connections | `viewer`, `editor`, `resolver` + # Dashboards | `viewer`, `editor` + # Notebooks | `viewer`, `editor` + # Security Rules | `viewer`, `editor` + # Service Level Objectives | `viewer`, `editor` + # # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`. # @param body [RestrictionPolicyUpdateRequest] Restriction policy payload # @param opts [Hash] the optional parameters