Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
18 changes: 18 additions & 0 deletions data/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -7065,6 +7068,9 @@ components:
- greaterEquals
- lowerEquals
- matchRegex
- between
- isEmpty
- notIsEmpty
type: string
x-enum-varnames:
- EQUALS
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions docs/v1/SyntheticsAPITestResultShortResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -12,6 +13,7 @@
require 'datadog_api_client/v1'

instance = DatadogAPIClient::V1::SyntheticsAPITestResultShortResult.new(
passed: null,
timings: null
)
```
Expand Down
4 changes: 4 additions & 0 deletions docs/v1/SyntheticsTestOptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |

Expand All @@ -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
)
Expand Down
2 changes: 2 additions & 0 deletions docs/v1/SyntheticsTestRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -36,6 +40,7 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'passed' => :'Boolean',
:'timings' => :'SyntheticsTiming'
}
end
Expand All @@ -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
Expand All @@ -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

Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions lib/datadog_api_client/v1/models/synthetics_check_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
22 changes: 21 additions & 1 deletion lib/datadog_api_client/v1/models/synthetics_test_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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'
}
Expand All @@ -69,10 +77,12 @@ def self.openapi_types
:'accept_self_signed' => :'Boolean',
:'allow_insecure' => :'Boolean',
:'device_ids' => :'Array<SyntheticsDeviceID>',
:'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'
}
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
12 changes: 11 additions & 1 deletion lib/datadog_api_client/v1/models/synthetics_test_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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',
Expand All @@ -81,6 +85,7 @@ def self.openapi_types
:'headers' => :'Hash<String, String>',
:'host' => :'String',
:'method' => :'HTTPMethod',
:'no_saving_response_body' => :'Boolean',
:'port' => :'Integer',
:'query' => :'Object',
:'timeout' => :'Float',
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 &&
Expand All @@ -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
Expand Down