File tree 5 files changed +19
-10
lines changed
lib/datadog_api_client/v1/models
5 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 4
4
"spec_versions": {
5
5
"v1": {
6
6
"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 "
9
9
},
10
10
"v2": {
11
11
"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 "
14
14
}
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -6747,7 +6747,9 @@ components:
6747
6747
type: string
6748
6748
type: array
6749
6749
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: ''
6751
6753
type: string
6752
6754
monitor_id:
6753
6755
description: The associated monitor ID.
@@ -6776,6 +6778,8 @@ components:
6776
6778
type: array
6777
6779
type:
6778
6780
$ref: '#/components/schemas/SyntheticsBrowserTestType'
6781
+ required:
6782
+ - message
6779
6783
type: object
6780
6784
SyntheticsBrowserTestConfig:
6781
6785
description: Configuration object for a Synthetic browser test.
Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ DatadogAPIClient::V1.configure do |config|
286
286
end
287
287
288
288
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.
290
290
291
291
begin
292
292
# Create a browser test
@@ -1671,7 +1671,7 @@ end
1671
1671
1672
1672
api_instance = DatadogAPIClient ::V1 ::SyntheticsApi .new
1673
1673
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.
1675
1675
1676
1676
begin
1677
1677
# Edit a browser test
Original file line number Diff line number Diff line change 6
6
| ---- | ---- | ----------- | ----- |
7
7
| ** config** | [ ** SyntheticsBrowserTestConfig** ] ( SyntheticsBrowserTestConfig.md ) | | [ optional] |
8
8
| ** locations** | ** Array< ; String> ; ** | 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. | |
10
10
| ** monitor_id** | ** Integer** | The associated monitor ID. | [ optional] |
11
11
| ** name** | ** String** | Name of the test. | [ optional] |
12
12
| ** options** | [ ** SyntheticsTestOptions** ] ( SyntheticsTestOptions.md ) | | [ optional] |
@@ -24,7 +24,7 @@ require 'datadog_api_client/v1'
24
24
instance = DatadogAPIClient ::V1 ::SyntheticsBrowserTest .new (
25
25
config: null,
26
26
locations: null,
27
- message: null ,
27
+ message: ,
28
28
monitor_id: null,
29
29
name: null,
30
30
options: null,
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class SyntheticsBrowserTest
24
24
# Array of locations used to run the test.
25
25
attr_accessor :locations
26
26
27
- # Notification message associated with the test.
27
+ # Notification message associated with the test. Message can either be text or an empty string.
28
28
attr_accessor :message
29
29
30
30
# The associated monitor ID.
@@ -165,12 +165,17 @@ def initialize(attributes = {})
165
165
# @return Array for valid properties with the reasons
166
166
def list_invalid_properties
167
167
invalid_properties = Array . new
168
+ if @message . nil?
169
+ invalid_properties . push ( 'invalid value for "message", message cannot be nil.' )
170
+ end
171
+
168
172
invalid_properties
169
173
end
170
174
171
175
# Check to see if the all the properties in the model are valid
172
176
# @return true if the model is valid
173
177
def valid?
178
+ return false if @message . nil?
174
179
true
175
180
end
176
181
You can’t perform that action at this time.
0 commit comments