From 76c4e69d99243a8f05b0feb8607a3eb1df0cfa7c Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 27 Aug 2024 08:15:46 +0000 Subject: [PATCH] Regenerate client from commit f621bf7a 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 c603ed95fff..98982523b74 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-26 18:14:52.742428", - "spec_repo_commit": "0857d88a" + "regenerated": "2024-08-27 08:15:20.379098", + "spec_repo_commit": "f621bf7a" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-08-26 18:14:52.760097", - "spec_repo_commit": "0857d88a" + "regenerated": "2024-08-27 08:15:20.397373", + "spec_repo_commit": "f621bf7a" } } } \ No newline at end of file diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 6ae1f6937e9..7e04f98e6d2 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -442,7 +442,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 @@ -32720,6 +32720,8 @@ paths: - Monitors: `monitor` + - Suppression Rules: `suppression-rule` + #### Supported relations for resources @@ -32743,7 +32745,9 @@ paths: Synthetic Private Locations | `viewer`, `editor` - Monitors | `viewer`, `editor`' + Monitors | `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 88c7068d702..db0006a121b 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 = {}) @@ -176,6 +176,7 @@ def update_restriction_policy(resource_id, body, opts = {}) # - Synthetic Tests: `synthetics-test` # - Synthetic Private Locations: `synthetics-private-location` # - Monitors: `monitor` + # - Suppression Rules: `suppression-rule` # # #### Supported relations for resources # Resource Type | Supported Relations @@ -189,8 +190,9 @@ def update_restriction_policy(resource_id, body, opts = {}) # Synthetic Tests | `viewer`, `editor` # Synthetic Private Locations | `viewer`, `editor` # Monitors | `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