Skip to content

Commit 4179acd

Browse files
api-clients-generation-pipeline[bot]jirikuncarci.datadog-api-spec
authored
Browser Test message required (DataDog#803)
* Make messsage property required * Regenerate client from commit 34cf37f of spec repo Co-authored-by: Jiri Kuncar <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 9798d29 commit 4179acd

File tree

6 files changed

+29
-37
lines changed

6 files changed

+29
-37
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
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:32:41.597034",
8-
"spec_repo_commit": "c679afc"
7+
"regenerated": "2021-03-23 10:51:41.342590",
8+
"spec_repo_commit": "34cf37f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-03-23 09:32:49.272303",
13-
"spec_repo_commit": "c679afc"
12+
"regenerated": "2021-03-23 10:51:49.967652",
13+
"spec_repo_commit": "34cf37f"
1414
}
1515
}
1616
}

api/v1/datadog/api/openapi.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16549,7 +16549,7 @@ components:
1654916549
locations:
1655016550
- locations
1655116551
- locations
16552-
message: message
16552+
message: ""
1655316553
type: browser
1655416554
config:
1655516555
request:
@@ -16607,7 +16607,9 @@ components:
1660716607
type: string
1660816608
type: array
1660916609
message:
16610-
description: Notification message associated with the test.
16610+
description: Notification message associated with the test. Message can
16611+
either be text or an empty string.
16612+
example: ""
1661116613
type: string
1661216614
monitor_id:
1661316615
description: The associated monitor ID.
@@ -16636,6 +16638,8 @@ components:
1663616638
type: array
1663716639
type:
1663816640
$ref: '#/components/schemas/SyntheticsBrowserTestType'
16641+
required:
16642+
- message
1663916643
type: object
1664016644
SyntheticsBrowserTestConfig:
1664116645
description: Configuration object for a Synthetic browser test.

api/v1/datadog/docs/SyntheticsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ func main() {
345345
)
346346
}
347347

348-
body := *datadog.NewSyntheticsBrowserTest() // SyntheticsBrowserTest | Details of the test to create.
348+
body := *datadog.NewSyntheticsBrowserTest("Message_example") // SyntheticsBrowserTest | Details of the test to create.
349349

350350
configuration := datadog.NewConfiguration()
351351

@@ -2018,7 +2018,7 @@ func main() {
20182018
}
20192019

20202020
publicId := "publicId_example" // string | The public ID of the test to get details from.
2021-
body := *datadog.NewSyntheticsBrowserTest() // SyntheticsBrowserTest | New test details to be saved.
2021+
body := *datadog.NewSyntheticsBrowserTest("Message_example") // SyntheticsBrowserTest | New test details to be saved.
20222022

20232023
configuration := datadog.NewConfiguration()
20242024

api/v1/datadog/docs/SyntheticsBrowserTest.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**Config** | Pointer to [**SyntheticsBrowserTestConfig**](SyntheticsBrowserTestConfig.md) | | [optional]
88
**Locations** | Pointer to **[]string** | Array of locations used to run the test. | [optional]
9-
**Message** | Pointer to **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
**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional]
1111
**Name** | Pointer to **string** | Name of the test. | [optional]
1212
**Options** | Pointer to [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
2020

2121
### NewSyntheticsBrowserTest
2222

23-
`func NewSyntheticsBrowserTest() *SyntheticsBrowserTest`
23+
`func NewSyntheticsBrowserTest(message string, ) *SyntheticsBrowserTest`
2424

2525
NewSyntheticsBrowserTest instantiates a new SyntheticsBrowserTest object
2626
This constructor will assign default values to properties that have it defined,
@@ -104,11 +104,6 @@ and a boolean to check if the value has been set.
104104

105105
SetMessage sets Message field to given value.
106106

107-
### HasMessage
108-
109-
`func (o *SyntheticsBrowserTest) HasMessage() bool`
110-
111-
HasMessage returns a boolean if a field has been set.
112107

113108
### GetMonitorId
114109

api/v1/datadog/model_synthetics_browser_test_.go

Lines changed: 14 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/api/v1/datadog/api_synthetics_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ func getTestSyntheticsBrowser(ctx context.Context, t *testing.T) datadog.Synthet
321321
},
322322
},
323323
Locations: &[]string{"aws:us-east-2"},
324-
Message: datadog.PtrString("Go client testing Synthetics Browser test - this is message"),
324+
Message: "Go client testing Synthetics Browser test - this is message",
325325
Name: tests.UniqueEntityName(ctx, t),
326326
Options: &datadog.SyntheticsTestOptions{
327327
AcceptSelfSigned: datadog.PtrBool(false),

0 commit comments

Comments
 (0)