From baed9931a28a45a923bcc24185c9cb298790301c Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 2 Jul 2024 18:50:55 +0000 Subject: [PATCH] Regenerate client from commit fae9d797 of spec repo --- .apigentools-info | 8 ++++---- .generator/schemas/v1/openapi.yaml | 7 +++++++ features/v1/synthetics.feature | 4 ++-- .../v1/models/synthetics_delete_tests_payload.rb | 13 ++++++++++++- 4 files changed, 25 insertions(+), 7 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 1cb78cae9096..d371f367f243 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-07-02 18:17:49.729268", - "spec_repo_commit": "464f0cec" + "regenerated": "2024-07-02 18:50:31.571748", + "spec_repo_commit": "fae9d797" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-07-02 18:17:49.747072", - "spec_repo_commit": "464f0cec" + "regenerated": "2024-07-02 18:50:31.591802", + "spec_repo_commit": "fae9d797" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index 990574180128..749e1885306d 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -14944,6 +14944,13 @@ components: to delete.' properties: + force_delete_dependencies: + description: 'Delete the Synthetic test even if it''s referenced by other + resources + + (for example, SLOs and composite monitors).' + example: false + type: boolean public_ids: description: An array of Synthetic test IDs you want to delete. example: [] diff --git a/features/v1/synthetics.feature b/features/v1/synthetics.feature index a3e3e317d7cb..4fbd51367d29 100644 --- a/features/v1/synthetics.feature +++ b/features/v1/synthetics.feature @@ -269,14 +269,14 @@ Feature: Synthetics @generated @skip @team:DataDog/synthetics-ct Scenario: Delete tests returns "- JSON format is wrong" response Given new "DeleteTests" request - And body with value {"public_ids": []} + And body with value {"force_delete_dependencies": false, "public_ids": []} When the request is sent Then the response status is 400 - JSON format is wrong @generated @skip @team:DataDog/synthetics-ct Scenario: Delete tests returns "- Tests to be deleted can't be found" response Given new "DeleteTests" request - And body with value {"public_ids": []} + And body with value {"force_delete_dependencies": false, "public_ids": []} When the request is sent Then the response status is 404 - Tests to be deleted can't be found diff --git a/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb b/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb index f1ffcf9bea20..c202ac5df338 100644 --- a/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb +++ b/lib/datadog_api_client/v1/models/synthetics_delete_tests_payload.rb @@ -22,6 +22,10 @@ module DatadogAPIClient::V1 class SyntheticsDeleteTestsPayload include BaseGenericModel + # Delete the Synthetic test even if it's referenced by other resources + # (for example, SLOs and composite monitors). + attr_accessor :force_delete_dependencies + # An array of Synthetic test IDs you want to delete. attr_accessor :public_ids @@ -29,6 +33,7 @@ class SyntheticsDeleteTestsPayload # @!visibility private def self.attribute_map { + :'force_delete_dependencies' => :'force_delete_dependencies', :'public_ids' => :'public_ids' } end @@ -37,6 +42,7 @@ def self.attribute_map # @!visibility private def self.openapi_types { + :'force_delete_dependencies' => :'Boolean', :'public_ids' => :'Array' } end @@ -57,6 +63,10 @@ def initialize(attributes = {}) h[k.to_sym] = v } + if attributes.key?(:'force_delete_dependencies') + self.force_delete_dependencies = attributes[:'force_delete_dependencies'] + end + if attributes.key?(:'public_ids') if (value = attributes[:'public_ids']).is_a?(Array) self.public_ids = value @@ -70,6 +80,7 @@ def initialize(attributes = {}) def ==(o) return true if self.equal?(o) self.class == o.class && + force_delete_dependencies == o.force_delete_dependencies && public_ids == o.public_ids end @@ -77,7 +88,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [public_ids].hash + [force_delete_dependencies, public_ids].hash end end end