From 4ee961cf7aab99d01501a3d9efa171ba59231631 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Fri, 28 Jun 2024 08:53:39 +0000 Subject: [PATCH] Regenerate client from commit c873724a of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v2/openapi.yaml | 8 ++++++-- lib/datadog_api_client/v2/api/restriction_policies_api.rb | 8 +++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 6084932e4634..7d8f43c3fa46 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-06-27 17:06:14.233742", - "spec_repo_commit": "5ebef994" + "regenerated": "2024-06-28 08:53:16.557458", + "spec_repo_commit": "c873724a" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-06-27 17:06:14.251551", - "spec_repo_commit": "5ebef994" + "regenerated": "2024-06-28 08:53:16.574864", + "spec_repo_commit": "c873724a" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 0a3339c1540f..5e079f52c40f 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -428,7 +428,7 @@ components: type: string ResourceID: description: 'Identifier, formatted as `type:id`. Supported types: `connection`, - `dashboard`, `notebook`, `security-rule`, `slo`.' + `dashboard`, `notebook`, `security-rule`, `slo`, `suppression-rule`.' example: dashboard:abc-def-ghi in: path name: resource_id @@ -31454,6 +31454,8 @@ paths: - Service Level Objectives: `slo` + - Suppression Rules: `suppression-rule` + #### Supported relations for resources @@ -31469,7 +31471,9 @@ paths: Security Rules | `viewer`, `editor` - Service Level Objectives | `viewer`, `editor`' + Service Level Objectives | `viewer`, `editor` + + Suppression Rules | `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 e7440497b668..6edc5d99ccd6 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`, `security-rule`, `slo`. + # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`, `suppression-rule`. # @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`, `security-rule`, `slo`. + # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`, `suppression-rule`. # @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 = {}) @@ -172,6 +172,7 @@ def update_restriction_policy(resource_id, body, opts = {}) # - Powerpacks: `powerpack` # - Security Rules: `security-rule` # - Service Level Objectives: `slo` + # - Suppression Rules: `suppression-rule` # # #### Supported relations for resources # Resource Type | Supported Relations @@ -181,8 +182,9 @@ def update_restriction_policy(resource_id, body, opts = {}) # Powerpacks | `viewer`, `editor` # Security Rules | `viewer`, `editor` # Service Level Objectives | `viewer`, `editor` + # Suppression Rules | `viewer`, `editor` # - # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`. + # @param resource_id [String] Identifier, formatted as `type:id`. Supported types: `connection`, `dashboard`, `notebook`, `security-rule`, `slo`, `suppression-rule`. # @param body [RestrictionPolicyUpdateRequest] Restriction policy payload # @param opts [Hash] the optional parameters # @return [Array<(RestrictionPolicyResponse, Integer, Hash)>] RestrictionPolicyResponse data, response status code and response headers