From 1cf52432ce9b75550a7660b17e0c7fd29738b3e0 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 29 Mar 2021 13:59:14 +0000 Subject: [PATCH] Regenerate client from commit 2f79ff1 of spec repo --- .apigentools-info | 8 +++---- data/v1/openapi.yaml | 18 +++++++++++++++ docs/v1/SyntheticsAPITestResultShortResult.md | 2 ++ docs/v1/SyntheticsTestOptions.md | 4 ++++ docs/v1/SyntheticsTestRequest.md | 2 ++ ...synthetics_api_test_result_short_result.rb | 12 +++++++++- .../v1/models/synthetics_check_type.rb | 3 +++ .../v1/models/synthetics_test_options.rb | 22 ++++++++++++++++++- .../v1/models/synthetics_test_request.rb | 12 +++++++++- 9 files changed, 76 insertions(+), 7 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index fdac20004223..eb44a99ed482 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-03-26 09:49:11.297917", - "spec_repo_commit": "abcc1ed" + "regenerated": "2021-03-29 13:58:57.800936", + "spec_repo_commit": "2f79ff1" }, "v2": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-03-26 09:49:25.367387", - "spec_repo_commit": "abcc1ed" + "regenerated": "2021-03-29 13:59:12.068609", + "spec_repo_commit": "2f79ff1" } } } \ No newline at end of file diff --git a/data/v1/openapi.yaml b/data/v1/openapi.yaml index a37ef7855ede..81d9eff8a789 100644 --- a/data/v1/openapi.yaml +++ b/data/v1/openapi.yaml @@ -6558,6 +6558,9 @@ components: result: description: Result of the last API test run. properties: + passed: + description: Describes if the test run has passed or failed. + type: boolean timings: $ref: '#/components/schemas/SyntheticsTiming' type: object @@ -7065,6 +7068,9 @@ components: - greaterEquals - lowerEquals - matchRegex + - between + - isEmpty + - notIsEmpty type: string x-enum-varnames: - EQUALS @@ -7078,6 +7084,9 @@ components: - GREATER_EQUALS - LOWER_EQUALS - MATCH_REGEX + - BETWEEN + - IS_EMPTY + - NOT_IS_EMPTY SyntheticsConfigVariable: description: Object defining a variable that can be used in your test configuration. properties: @@ -7861,6 +7870,9 @@ components: items: $ref: '#/components/schemas/SyntheticsDeviceID' type: array + disableCors: + description: Whether or not to disable CORS mechanism. + type: boolean follow_redirects: description: For API HTTP test, whether or not the test should follow redirects. type: boolean @@ -7889,6 +7901,9 @@ components: minimum: 0 type: integer type: object + noScreenshot: + description: Prevents saving screenshots of the steps. + type: boolean retry: $ref: '#/components/schemas/SyntheticsTestOptionsRetry' tick_every: @@ -7959,6 +7974,9 @@ components: type: string method: $ref: '#/components/schemas/HTTPMethod' + noSavingResponseBody: + description: Determines whether or not to save the response body. + type: boolean port: description: Port to use when performing the test. format: int64 diff --git a/docs/v1/SyntheticsAPITestResultShortResult.md b/docs/v1/SyntheticsAPITestResultShortResult.md index 76ad5975f42a..36a33f03942e 100644 --- a/docs/v1/SyntheticsAPITestResultShortResult.md +++ b/docs/v1/SyntheticsAPITestResultShortResult.md @@ -4,6 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **passed** | **Boolean** | Describes if the test run has passed or failed. | [optional] | | **timings** | [**SyntheticsTiming**](SyntheticsTiming.md) | | [optional] | ## Example @@ -12,6 +13,7 @@ require 'datadog_api_client/v1' instance = DatadogAPIClient::V1::SyntheticsAPITestResultShortResult.new( + passed: null, timings: null ) ``` diff --git a/docs/v1/SyntheticsTestOptions.md b/docs/v1/SyntheticsTestOptions.md index 4908a8418081..d5103c3575c7 100644 --- a/docs/v1/SyntheticsTestOptions.md +++ b/docs/v1/SyntheticsTestOptions.md @@ -7,10 +7,12 @@ | **accept_self_signed** | **Boolean** | For SSL test, whether or not the test should allow self signed certificates. | [optional] | | **allow_insecure** | **Boolean** | Allows loading insecure content for an HTTP request. | [optional] | | **device_ids** | [**Array<SyntheticsDeviceID>**](SyntheticsDeviceID.md) | For browser test, array with the different device IDs used to run the test. | [optional] | +| **disable_cors** | **Boolean** | Whether or not to disable CORS mechanism. | [optional] | | **follow_redirects** | **Boolean** | For API HTTP test, whether or not the test should follow redirects. | [optional] | | **min_failure_duration** | **Integer** | Minimum amount of time in failure required to trigger an alert. | [optional] | | **min_location_failed** | **Integer** | Minimum number of locations in failure required to trigger an alert. | [optional] | | **monitor_options** | [**SyntheticsTestOptionsMonitorOptions**](SyntheticsTestOptionsMonitorOptions.md) | | [optional] | +| **no_screenshot** | **Boolean** | Prevents saving screenshots of the steps. | [optional] | | **_retry** | [**SyntheticsTestOptionsRetry**](SyntheticsTestOptionsRetry.md) | | [optional] | | **tick_every** | [**SyntheticsTickInterval**](SyntheticsTickInterval.md) | | [optional] | @@ -23,10 +25,12 @@ instance = DatadogAPIClient::V1::SyntheticsTestOptions.new( accept_self_signed: null, allow_insecure: null, device_ids: null, + disable_cors: null, follow_redirects: null, min_failure_duration: null, min_location_failed: null, monitor_options: null, + no_screenshot: null, _retry: null, tick_every: null ) diff --git a/docs/v1/SyntheticsTestRequest.md b/docs/v1/SyntheticsTestRequest.md index d739be6c0ca8..994a6290ff68 100644 --- a/docs/v1/SyntheticsTestRequest.md +++ b/docs/v1/SyntheticsTestRequest.md @@ -11,6 +11,7 @@ | **headers** | **Hash<String, String>** | Headers to include when performing the test. | [optional] | | **host** | **String** | Host name to perform the test with. | [optional] | | **method** | [**HTTPMethod**](HTTPMethod.md) | | [optional] | +| **no_saving_response_body** | **Boolean** | Determines whether or not to save the response body. | [optional] | | **port** | **Integer** | Port to use when performing the test. | [optional] | | **query** | **Object** | Query to use for the test. | [optional] | | **timeout** | **Float** | Timeout in seconds for the test. | [optional] | @@ -29,6 +30,7 @@ instance = DatadogAPIClient::V1::SyntheticsTestRequest.new( headers: null, host: null, method: null, + no_saving_response_body: null, port: null, query: null, timeout: null, diff --git a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb index 599899b33e6b..9a5560e69076 100644 --- a/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb +++ b/lib/datadog_api_client/v1/models/synthetics_api_test_result_short_result.rb @@ -19,11 +19,15 @@ module DatadogAPIClient::V1 # Result of the last API test run. class SyntheticsAPITestResultShortResult + # Describes if the test run has passed or failed. + attr_accessor :passed + attr_accessor :timings # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'passed' => :'passed', :'timings' => :'timings' } end @@ -36,6 +40,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { + :'passed' => :'Boolean', :'timings' => :'SyntheticsTiming' } end @@ -61,6 +66,10 @@ def initialize(attributes = {}) h[k.to_sym] = v } + if attributes.key?(:'passed') + self.passed = attributes[:'passed'] + end + if attributes.key?(:'timings') self.timings = attributes[:'timings'] end @@ -84,6 +93,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + passed == o.passed && timings == o.timings end @@ -96,7 +106,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [timings].hash + [passed, timings].hash end # Builds the object from hash diff --git a/lib/datadog_api_client/v1/models/synthetics_check_type.rb b/lib/datadog_api_client/v1/models/synthetics_check_type.rb index 183c17f9c573..eb08ea00dae0 100644 --- a/lib/datadog_api_client/v1/models/synthetics_check_type.rb +++ b/lib/datadog_api_client/v1/models/synthetics_check_type.rb @@ -29,6 +29,9 @@ class SyntheticsCheckType GREATER_EQUALS = "greaterEquals".freeze LOWER_EQUALS = "lowerEquals".freeze MATCH_REGEX = "matchRegex".freeze + BETWEEN = "between".freeze + IS_EMPTY = "isEmpty".freeze + NOT_IS_EMPTY = "notIsEmpty".freeze # Builds the enum from string # @param [String] The enum value in the form of the string diff --git a/lib/datadog_api_client/v1/models/synthetics_test_options.rb b/lib/datadog_api_client/v1/models/synthetics_test_options.rb index 3f61888c439d..ac9417516e97 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_options.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_options.rb @@ -28,6 +28,9 @@ class SyntheticsTestOptions # For browser test, array with the different device IDs used to run the test. attr_accessor :device_ids + # Whether or not to disable CORS mechanism. + attr_accessor :disable_cors + # For API HTTP test, whether or not the test should follow redirects. attr_accessor :follow_redirects @@ -39,6 +42,9 @@ class SyntheticsTestOptions attr_accessor :monitor_options + # Prevents saving screenshots of the steps. + attr_accessor :no_screenshot + attr_accessor :_retry attr_accessor :tick_every @@ -49,10 +55,12 @@ def self.attribute_map :'accept_self_signed' => :'accept_self_signed', :'allow_insecure' => :'allow_insecure', :'device_ids' => :'device_ids', + :'disable_cors' => :'disableCors', :'follow_redirects' => :'follow_redirects', :'min_failure_duration' => :'min_failure_duration', :'min_location_failed' => :'min_location_failed', :'monitor_options' => :'monitor_options', + :'no_screenshot' => :'noScreenshot', :'_retry' => :'retry', :'tick_every' => :'tick_every' } @@ -69,10 +77,12 @@ def self.openapi_types :'accept_self_signed' => :'Boolean', :'allow_insecure' => :'Boolean', :'device_ids' => :'Array', + :'disable_cors' => :'Boolean', :'follow_redirects' => :'Boolean', :'min_failure_duration' => :'Integer', :'min_location_failed' => :'Integer', :'monitor_options' => :'SyntheticsTestOptionsMonitorOptions', + :'no_screenshot' => :'Boolean', :'_retry' => :'SyntheticsTestOptionsRetry', :'tick_every' => :'SyntheticsTickInterval' } @@ -113,6 +123,10 @@ def initialize(attributes = {}) end end + if attributes.key?(:'disable_cors') + self.disable_cors = attributes[:'disable_cors'] + end + if attributes.key?(:'follow_redirects') self.follow_redirects = attributes[:'follow_redirects'] end @@ -129,6 +143,10 @@ def initialize(attributes = {}) self.monitor_options = attributes[:'monitor_options'] end + if attributes.key?(:'no_screenshot') + self.no_screenshot = attributes[:'no_screenshot'] + end + if attributes.key?(:'_retry') self._retry = attributes[:'_retry'] end @@ -159,10 +177,12 @@ def ==(o) accept_self_signed == o.accept_self_signed && allow_insecure == o.allow_insecure && device_ids == o.device_ids && + disable_cors == o.disable_cors && follow_redirects == o.follow_redirects && min_failure_duration == o.min_failure_duration && min_location_failed == o.min_location_failed && monitor_options == o.monitor_options && + no_screenshot == o.no_screenshot && _retry == o._retry && tick_every == o.tick_every end @@ -176,7 +196,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [accept_self_signed, allow_insecure, device_ids, follow_redirects, min_failure_duration, min_location_failed, monitor_options, _retry, tick_every].hash + [accept_self_signed, allow_insecure, device_ids, disable_cors, follow_redirects, min_failure_duration, min_location_failed, monitor_options, no_screenshot, _retry, tick_every].hash end # Builds the object from hash diff --git a/lib/datadog_api_client/v1/models/synthetics_test_request.rb b/lib/datadog_api_client/v1/models/synthetics_test_request.rb index a51ef885e438..ce8c2518e841 100644 --- a/lib/datadog_api_client/v1/models/synthetics_test_request.rb +++ b/lib/datadog_api_client/v1/models/synthetics_test_request.rb @@ -37,6 +37,9 @@ class SyntheticsTestRequest attr_accessor :method + # Determines whether or not to save the response body. + attr_accessor :no_saving_response_body + # Port to use when performing the test. attr_accessor :port @@ -59,6 +62,7 @@ def self.attribute_map :'headers' => :'headers', :'host' => :'host', :'method' => :'method', + :'no_saving_response_body' => :'noSavingResponseBody', :'port' => :'port', :'query' => :'query', :'timeout' => :'timeout', @@ -81,6 +85,7 @@ def self.openapi_types :'headers' => :'Hash', :'host' => :'String', :'method' => :'HTTPMethod', + :'no_saving_response_body' => :'Boolean', :'port' => :'Integer', :'query' => :'Object', :'timeout' => :'Float', @@ -139,6 +144,10 @@ def initialize(attributes = {}) self.method = attributes[:'method'] end + if attributes.key?(:'no_saving_response_body') + self.no_saving_response_body = attributes[:'no_saving_response_body'] + end + if attributes.key?(:'port') self.port = attributes[:'port'] end @@ -181,6 +190,7 @@ def ==(o) headers == o.headers && host == o.host && method == o.method && + no_saving_response_body == o.no_saving_response_body && port == o.port && query == o.query && timeout == o.timeout && @@ -196,7 +206,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [basic_auth, body, certificate, dns_server, headers, host, method, port, query, timeout, url].hash + [basic_auth, body, certificate, dns_server, headers, host, method, no_saving_response_body, port, query, timeout, url].hash end # Builds the object from hash