Skip to content

Commit c6cfac4

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Regenerate client from commit 34cf37f of spec repo (#254)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent a782b26 commit c6cfac4

File tree

5 files changed

+19
-10
lines changed

5 files changed

+19
-10
lines changed

.apigentools-info

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.4.1.dev6",
7-
"regenerated": "2021-03-23 09:33:03.200376",
8-
"spec_repo_commit": "c679afc"
7+
"regenerated": "2021-03-23 10:51:50.194106",
8+
"spec_repo_commit": "34cf37f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-03-23 09:33:16.636714",
13-
"spec_repo_commit": "c679afc"
12+
"regenerated": "2021-03-23 10:52:03.766338",
13+
"spec_repo_commit": "34cf37f"
1414
}
1515
}
1616
}

data/v1/openapi.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -6747,7 +6747,9 @@ components:
67476747
type: string
67486748
type: array
67496749
message:
6750-
description: Notification message associated with the test.
6750+
description: Notification message associated with the test. Message can
6751+
either be text or an empty string.
6752+
example: ''
67516753
type: string
67526754
monitor_id:
67536755
description: The associated monitor ID.
@@ -6776,6 +6778,8 @@ components:
67766778
type: array
67776779
type:
67786780
$ref: '#/components/schemas/SyntheticsBrowserTestType'
6781+
required:
6782+
- message
67796783
type: object
67806784
SyntheticsBrowserTestConfig:
67816785
description: Configuration object for a Synthetic browser test.

docs/v1/SyntheticsApi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ DatadogAPIClient::V1.configure do |config|
286286
end
287287

288288
api_instance = DatadogAPIClient::V1::SyntheticsApi.new
289-
body = DatadogAPIClient::V1::SyntheticsBrowserTest.new # SyntheticsBrowserTest | Details of the test to create.
289+
body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({message: 'message_example'}) # SyntheticsBrowserTest | Details of the test to create.
290290

291291
begin
292292
# Create a browser test
@@ -1671,7 +1671,7 @@ end
16711671

16721672
api_instance = DatadogAPIClient::V1::SyntheticsApi.new
16731673
public_id = 'public_id_example' # String | The public ID of the test to get details from.
1674-
body = DatadogAPIClient::V1::SyntheticsBrowserTest.new # SyntheticsBrowserTest | New test details to be saved.
1674+
body = DatadogAPIClient::V1::SyntheticsBrowserTest.new({message: 'message_example'}) # SyntheticsBrowserTest | New test details to be saved.
16751675

16761676
begin
16771677
# Edit a browser test

docs/v1/SyntheticsBrowserTest.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
| ---- | ---- | ----------- | ----- |
77
| **config** | [**SyntheticsBrowserTestConfig**](SyntheticsBrowserTestConfig.md) | | [optional] |
88
| **locations** | **Array&lt;String&gt;** | Array of locations used to run the test. | [optional] |
9-
| **message** | **String** | Notification message associated with the test. | [optional] |
9+
| **message** | **String** | Notification message associated with the test. Message can either be text or an empty string. | |
1010
| **monitor_id** | **Integer** | The associated monitor ID. | [optional] |
1111
| **name** | **String** | Name of the test. | [optional] |
1212
| **options** | [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional] |
@@ -24,7 +24,7 @@ require 'datadog_api_client/v1'
2424
instance = DatadogAPIClient::V1::SyntheticsBrowserTest.new(
2525
config: null,
2626
locations: null,
27-
message: null,
27+
message: ,
2828
monitor_id: null,
2929
name: null,
3030
options: null,

lib/datadog_api_client/v1/models/synthetics_browser_test.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class SyntheticsBrowserTest
2424
# Array of locations used to run the test.
2525
attr_accessor :locations
2626

27-
# Notification message associated with the test.
27+
# Notification message associated with the test. Message can either be text or an empty string.
2828
attr_accessor :message
2929

3030
# The associated monitor ID.
@@ -165,12 +165,17 @@ def initialize(attributes = {})
165165
# @return Array for valid properties with the reasons
166166
def list_invalid_properties
167167
invalid_properties = Array.new
168+
if @message.nil?
169+
invalid_properties.push('invalid value for "message", message cannot be nil.')
170+
end
171+
168172
invalid_properties
169173
end
170174

171175
# Check to see if the all the properties in the model are valid
172176
# @return true if the model is valid
173177
def valid?
178+
return false if @message.nil?
174179
true
175180
end
176181

0 commit comments

Comments
 (0)