Skip to content

Commit

Permalink
Browser Test message required (#803)
Browse files Browse the repository at this point in the history
* Make messsage property required

* Regenerate client from commit 34cf37f of spec repo

Co-authored-by: Jiri Kuncar <jiri.kuncar@gmail.com>
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 <packages@datadoghq.com>
  • Loading branch information
3 people authored Mar 23, 2021
1 parent 9798d29 commit 4179acd
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 37 deletions.
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-23 09:32:41.597034",
"spec_repo_commit": "c679afc"
"regenerated": "2021-03-23 10:51:41.342590",
"spec_repo_commit": "34cf37f"
},
"v2": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-03-23 09:32:49.272303",
"spec_repo_commit": "c679afc"
"regenerated": "2021-03-23 10:51:49.967652",
"spec_repo_commit": "34cf37f"
}
}
}
8 changes: 6 additions & 2 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16549,7 +16549,7 @@ components:
locations:
- locations
- locations
message: message
message: ""
type: browser
config:
request:
Expand Down Expand Up @@ -16607,7 +16607,9 @@ components:
type: string
type: array
message:
description: Notification message associated with the test.
description: Notification message associated with the test. Message can
either be text or an empty string.
example: ""
type: string
monitor_id:
description: The associated monitor ID.
Expand Down Expand Up @@ -16636,6 +16638,8 @@ components:
type: array
type:
$ref: '#/components/schemas/SyntheticsBrowserTestType'
required:
- message
type: object
SyntheticsBrowserTestConfig:
description: Configuration object for a Synthetic browser test.
Expand Down
4 changes: 2 additions & 2 deletions api/v1/datadog/docs/SyntheticsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func main() {
)
}

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

configuration := datadog.NewConfiguration()

Expand Down Expand Up @@ -2018,7 +2018,7 @@ func main() {
}

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

configuration := datadog.NewConfiguration()

Expand Down
9 changes: 2 additions & 7 deletions api/v1/datadog/docs/SyntheticsBrowserTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Config** | Pointer to [**SyntheticsBrowserTestConfig**](SyntheticsBrowserTestConfig.md) | | [optional]
**Locations** | Pointer to **[]string** | Array of locations used to run the test. | [optional]
**Message** | Pointer to **string** | Notification message associated with the test. | [optional]
**Message** | **string** | Notification message associated with the test. Message can either be text or an empty string. |
**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional]
**Name** | Pointer to **string** | Name of the test. | [optional]
**Options** | Pointer to [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional]
Expand All @@ -20,7 +20,7 @@ Name | Type | Description | Notes

### NewSyntheticsBrowserTest

`func NewSyntheticsBrowserTest() *SyntheticsBrowserTest`
`func NewSyntheticsBrowserTest(message string, ) *SyntheticsBrowserTest`

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

SetMessage sets Message field to given value.

### HasMessage

`func (o *SyntheticsBrowserTest) HasMessage() bool`

HasMessage returns a boolean if a field has been set.

### GetMonitorId

Expand Down
35 changes: 14 additions & 21 deletions api/v1/datadog/model_synthetics_browser_test_.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/api/v1/datadog/api_synthetics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ func getTestSyntheticsBrowser(ctx context.Context, t *testing.T) datadog.Synthet
},
},
Locations: &[]string{"aws:us-east-2"},
Message: datadog.PtrString("Go client testing Synthetics Browser test - this is message"),
Message: "Go client testing Synthetics Browser test - this is message",
Name: tests.UniqueEntityName(ctx, t),
Options: &datadog.SyntheticsTestOptions{
AcceptSelfSigned: datadog.PtrBool(false),
Expand Down

0 comments on commit 4179acd

Please sign in to comment.