Skip to content

Commit 14fb4a4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 421a819 of spec repo
1 parent b802f97 commit 14fb4a4

File tree

12 files changed

+359
-433
lines changed

12 files changed

+359
-433
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.5.1.dev2",
7-
"regenerated": "2021-11-16 14:52:10.367581",
8-
"spec_repo_commit": "8abcff4"
7+
"regenerated": "2021-11-16 18:54:22.631115",
8+
"spec_repo_commit": "421a819"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-11-16 14:52:10.389163",
13-
"spec_repo_commit": "8abcff4"
12+
"regenerated": "2021-11-16 18:54:22.648986",
13+
"spec_repo_commit": "421a819"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9191,17 +9191,24 @@ components:
91919191
type: boolean
91929192
name:
91939193
description: The name of the step.
9194+
example: Example step name
91949195
type: string
91959196
request:
91969197
$ref: '#/components/schemas/SyntheticsTestRequest'
91979198
subtype:
91989199
$ref: '#/components/schemas/SyntheticsAPIStepSubtype'
9200+
required:
9201+
- assertions
9202+
- request
9203+
- name
9204+
- subtype
91999205
type: object
92009206
SyntheticsAPIStepSubtype:
92019207
description: The subtype of the Synthetic multistep API test step, currently
92029208
only supporting `http`.
92039209
enum:
92049210
- http
9211+
example: http
92059212
type: string
92069213
x-enum-varnames:
92079214
- HTTP
@@ -9230,7 +9237,7 @@ components:
92309237
type: integer
92319238
name:
92329239
description: Name of the test.
9233-
example: Test name
9240+
example: Example test name
92349241
type: string
92359242
options:
92369243
$ref: '#/components/schemas/SyntheticsTestOptions'
@@ -9253,6 +9260,12 @@ components:
92539260
type: array
92549261
type:
92559262
$ref: '#/components/schemas/SyntheticsAPITestType'
9263+
required:
9264+
- name
9265+
- config
9266+
- locations
9267+
- options
9268+
- type
92569269
type: object
92579270
SyntheticsAPITestConfig:
92589271
description: Configuration object for a Synthetic API test.
@@ -9626,6 +9639,8 @@ components:
96269639
$ref: '#/components/schemas/SyntheticsBrowserTestConfig'
96279640
locations:
96289641
description: Array of locations used to run the test.
9642+
example:
9643+
- example-location
96299644
items:
96309645
description: A location from which the test was run.
96319646
type: string
@@ -9642,6 +9657,7 @@ components:
96429657
type: integer
96439658
name:
96449659
description: Name of the test.
9660+
example: Example test name
96459661
type: string
96469662
options:
96479663
$ref: '#/components/schemas/SyntheticsTestOptions'
@@ -9665,7 +9681,11 @@ components:
96659681
type:
96669682
$ref: '#/components/schemas/SyntheticsBrowserTestType'
96679683
required:
9668-
- message
9684+
- config
9685+
- locations
9686+
- name
9687+
- options
9688+
- type
96699689
type: object
96709690
SyntheticsBrowserTestConfig:
96719691
description: Configuration object for a Synthetic browser test.

api/v1/datadog/docs/SyntheticsAPIStep.md

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
Name | Type | Description | Notes
66
---- | ---- | ----------- | ------
77
**AllowFailure** | Pointer to **bool** | Determines whether or not to continue with test if this step fails. | [optional]
8-
**Assertions** | Pointer to [**[]SyntheticsAssertion**](SyntheticsAssertion.md) | Array of assertions used for the test. | [optional] [default to []]
8+
**Assertions** | [**[]SyntheticsAssertion**](SyntheticsAssertion.md) | Array of assertions used for the test. | [default to []]
99
**ExtractedValues** | Pointer to [**[]SyntheticsParsingOptions**](SyntheticsParsingOptions.md) | Array of values to parse and save as variables from the response. | [optional]
1010
**IsCritical** | Pointer to **bool** | Determines whether or not to consider the entire test as failed if this step fails. Can be used only if `allowFailure` is `true`. | [optional]
11-
**Name** | Pointer to **string** | The name of the step. | [optional]
12-
**Request** | Pointer to [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional]
13-
**Subtype** | Pointer to [**SyntheticsAPIStepSubtype**](SyntheticsAPIStepSubtype.md) | | [optional]
11+
**Name** | **string** | The name of the step. |
12+
**Request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | |
13+
**Subtype** | [**SyntheticsAPIStepSubtype**](SyntheticsAPIStepSubtype.md) | |
1414

1515
## Methods
1616

1717
### NewSyntheticsAPIStep
1818

19-
`func NewSyntheticsAPIStep() *SyntheticsAPIStep`
19+
`func NewSyntheticsAPIStep(assertions []SyntheticsAssertion, name string, request SyntheticsTestRequest, subtype SyntheticsAPIStepSubtype) *SyntheticsAPIStep`
2020

2121
NewSyntheticsAPIStep instantiates a new SyntheticsAPIStep object.
2222
This constructor will assign default values to properties that have it defined,
@@ -75,11 +75,6 @@ and a boolean to check if the value has been set.
7575

7676
SetAssertions sets Assertions field to given value.
7777

78-
### HasAssertions
79-
80-
`func (o *SyntheticsAPIStep) HasAssertions() bool`
81-
82-
HasAssertions returns a boolean if a field has been set.
8378

8479
### GetExtractedValues
8580

@@ -150,11 +145,6 @@ and a boolean to check if the value has been set.
150145

151146
SetName sets Name field to given value.
152147

153-
### HasName
154-
155-
`func (o *SyntheticsAPIStep) HasName() bool`
156-
157-
HasName returns a boolean if a field has been set.
158148

159149
### GetRequest
160150

@@ -175,11 +165,6 @@ and a boolean to check if the value has been set.
175165

176166
SetRequest sets Request field to given value.
177167

178-
### HasRequest
179-
180-
`func (o *SyntheticsAPIStep) HasRequest() bool`
181-
182-
HasRequest returns a boolean if a field has been set.
183168

184169
### GetSubtype
185170

@@ -200,11 +185,6 @@ and a boolean to check if the value has been set.
200185

201186
SetSubtype sets Subtype field to given value.
202187

203-
### HasSubtype
204-
205-
`func (o *SyntheticsAPIStep) HasSubtype() bool`
206-
207-
HasSubtype returns a boolean if a field has been set.
208188

209189

210190
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

api/v1/datadog/docs/SyntheticsAPITest.md

Lines changed: 6 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44

55
Name | Type | Description | Notes
66
---- | ---- | ----------- | ------
7-
**Config** | Pointer to [**SyntheticsAPITestConfig**](SyntheticsAPITestConfig.md) | | [optional]
8-
**Locations** | Pointer to **[]string** | Array of locations used to run the test. | [optional]
7+
**Config** | [**SyntheticsAPITestConfig**](SyntheticsAPITestConfig.md) | |
8+
**Locations** | **[]string** | Array of locations used to run the test. |
99
**Message** | Pointer to **string** | Notification message associated with the test. | [optional]
1010
**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] [readonly]
11-
**Name** | Pointer to **string** | Name of the test. | [optional]
12-
**Options** | Pointer to [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional]
11+
**Name** | **string** | Name of the test. |
12+
**Options** | [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | |
1313
**PublicId** | Pointer to **string** | The public ID for the test. | [optional] [readonly]
1414
**Status** | Pointer to [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional]
1515
**Subtype** | Pointer to [**SyntheticsTestDetailsSubType**](SyntheticsTestDetailsSubType.md) | | [optional]
1616
**Tags** | Pointer to **[]string** | Array of tags attached to the test. | [optional]
17-
**Type** | Pointer to [**SyntheticsAPITestType**](SyntheticsAPITestType.md) | | [optional] [default to SYNTHETICSAPITESTTYPE_API]
17+
**Type** | [**SyntheticsAPITestType**](SyntheticsAPITestType.md) | | [default to SYNTHETICSAPITESTTYPE_API]
1818

1919
## Methods
2020

2121
### NewSyntheticsAPITest
2222

23-
`func NewSyntheticsAPITest() *SyntheticsAPITest`
23+
`func NewSyntheticsAPITest(config SyntheticsAPITestConfig, locations []string, name string, options SyntheticsTestOptions, type_ SyntheticsAPITestType) *SyntheticsAPITest`
2424

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

5555
SetConfig sets Config field to given value.
5656

57-
### HasConfig
58-
59-
`func (o *SyntheticsAPITest) HasConfig() bool`
60-
61-
HasConfig returns a boolean if a field has been set.
6257

6358
### GetLocations
6459

@@ -79,11 +74,6 @@ and a boolean to check if the value has been set.
7974

8075
SetLocations sets Locations field to given value.
8176

82-
### HasLocations
83-
84-
`func (o *SyntheticsAPITest) HasLocations() bool`
85-
86-
HasLocations returns a boolean if a field has been set.
8777

8878
### GetMessage
8979

@@ -154,11 +144,6 @@ and a boolean to check if the value has been set.
154144

155145
SetName sets Name field to given value.
156146

157-
### HasName
158-
159-
`func (o *SyntheticsAPITest) HasName() bool`
160-
161-
HasName returns a boolean if a field has been set.
162147

163148
### GetOptions
164149

@@ -179,11 +164,6 @@ and a boolean to check if the value has been set.
179164

180165
SetOptions sets Options field to given value.
181166

182-
### HasOptions
183-
184-
`func (o *SyntheticsAPITest) HasOptions() bool`
185-
186-
HasOptions returns a boolean if a field has been set.
187167

188168
### GetPublicId
189169

@@ -304,11 +284,6 @@ and a boolean to check if the value has been set.
304284

305285
SetType sets Type field to given value.
306286

307-
### HasType
308-
309-
`func (o *SyntheticsAPITest) HasType() bool`
310-
311-
HasType returns a boolean if a field has been set.
312287

313288

314289
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

api/v1/datadog/docs/SyntheticsApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ import (
196196
func main() {
197197
ctx := datadog.NewDefaultContext(context.Background())
198198

199-
body := *datadog.NewSyntheticsAPITest() // SyntheticsAPITest | Details of the test to create.
199+
body := *datadog.NewSyntheticsAPITest(*datadog.NewSyntheticsAPITestConfig(), []string{"Locations_example"}, "Example test name", *datadog.NewSyntheticsTestOptions(), datadog.SyntheticsAPITestType("api")) // SyntheticsAPITest | Details of the test to create.
200200

201201
configuration := datadog.NewConfiguration()
202202

@@ -266,7 +266,7 @@ import (
266266
func main() {
267267
ctx := datadog.NewDefaultContext(context.Background())
268268

269-
body := *datadog.NewSyntheticsBrowserTest("Message_example") // SyntheticsBrowserTest | Details of the test to create.
269+
body := *datadog.NewSyntheticsBrowserTest(*datadog.NewSyntheticsBrowserTestConfig([]datadog.SyntheticsAssertion{datadog.SyntheticsAssertion{SyntheticsAssertionJSONPathTarget: datadog.NewSyntheticsAssertionJSONPathTarget(datadog.SyntheticsAssertionJSONPathOperator("validatesJSONPath"), datadog.SyntheticsAssertionType("body"))}}, *datadog.NewSyntheticsTestRequest()), []string{"Locations_example"}, "Example test name", *datadog.NewSyntheticsTestOptions(), datadog.SyntheticsBrowserTestType("browser")) // SyntheticsBrowserTest | Details of the test to create.
270270

271271
configuration := datadog.NewConfiguration()
272272

@@ -1683,7 +1683,7 @@ func main() {
16831683
ctx := datadog.NewDefaultContext(context.Background())
16841684

16851685
publicId := "publicId_example" // string | The public ID of the test to get details from.
1686-
body := *datadog.NewSyntheticsAPITest() // SyntheticsAPITest | New test details to be saved.
1686+
body := *datadog.NewSyntheticsAPITest(*datadog.NewSyntheticsAPITestConfig(), []string{"Locations_example"}, "Example test name", *datadog.NewSyntheticsTestOptions(), datadog.SyntheticsAPITestType("api")) // SyntheticsAPITest | New test details to be saved.
16871687

16881688
configuration := datadog.NewConfiguration()
16891689

@@ -1755,7 +1755,7 @@ func main() {
17551755
ctx := datadog.NewDefaultContext(context.Background())
17561756

17571757
publicId := "publicId_example" // string | The public ID of the test to get details from.
1758-
body := *datadog.NewSyntheticsBrowserTest("Message_example") // SyntheticsBrowserTest | New test details to be saved.
1758+
body := *datadog.NewSyntheticsBrowserTest(*datadog.NewSyntheticsBrowserTestConfig([]datadog.SyntheticsAssertion{datadog.SyntheticsAssertion{SyntheticsAssertionJSONPathTarget: datadog.NewSyntheticsAssertionJSONPathTarget(datadog.SyntheticsAssertionJSONPathOperator("validatesJSONPath"), datadog.SyntheticsAssertionType("body"))}}, *datadog.NewSyntheticsTestRequest()), []string{"Locations_example"}, "Example test name", *datadog.NewSyntheticsTestOptions(), datadog.SyntheticsBrowserTestType("browser")) // SyntheticsBrowserTest | New test details to be saved.
17591759

17601760
configuration := datadog.NewConfiguration()
17611761

api/v1/datadog/docs/SyntheticsBrowserTest.md

Lines changed: 12 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44

55
Name | Type | Description | Notes
66
---- | ---- | ----------- | ------
7-
**Config** | Pointer to [**SyntheticsBrowserTestConfig**](SyntheticsBrowserTestConfig.md) | | [optional]
8-
**Locations** | Pointer to **[]string** | Array of locations used to run the test. | [optional]
9-
**Message** | **string** | Notification message associated with the test. Message can either be text or an empty string. |
7+
**Config** | [**SyntheticsBrowserTestConfig**](SyntheticsBrowserTestConfig.md) | |
8+
**Locations** | **[]string** | Array of locations used to run the test. |
9+
**Message** | Pointer to **string** | Notification message associated with the test. Message can either be text or an empty string. | [optional]
1010
**MonitorId** | Pointer to **int64** | The associated monitor ID. | [optional] [readonly]
11-
**Name** | Pointer to **string** | Name of the test. | [optional]
12-
**Options** | Pointer to [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | | [optional]
11+
**Name** | **string** | Name of the test. |
12+
**Options** | [**SyntheticsTestOptions**](SyntheticsTestOptions.md) | |
1313
**PublicId** | Pointer to **string** | The public ID of the test. | [optional] [readonly]
1414
**Status** | Pointer to [**SyntheticsTestPauseStatus**](SyntheticsTestPauseStatus.md) | | [optional]
1515
**Steps** | Pointer to [**[]SyntheticsStep**](SyntheticsStep.md) | The steps of the test. | [optional]
1616
**Tags** | Pointer to **[]string** | Array of tags attached to the test. | [optional]
17-
**Type** | Pointer to [**SyntheticsBrowserTestType**](SyntheticsBrowserTestType.md) | | [optional] [default to SYNTHETICSBROWSERTESTTYPE_BROWSER]
17+
**Type** | [**SyntheticsBrowserTestType**](SyntheticsBrowserTestType.md) | | [default to SYNTHETICSBROWSERTESTTYPE_BROWSER]
1818

1919
## Methods
2020

2121
### NewSyntheticsBrowserTest
2222

23-
`func NewSyntheticsBrowserTest(message string) *SyntheticsBrowserTest`
23+
`func NewSyntheticsBrowserTest(config SyntheticsBrowserTestConfig, locations []string, name string, options SyntheticsTestOptions, type_ SyntheticsBrowserTestType) *SyntheticsBrowserTest`
2424

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

5555
SetConfig sets Config field to given value.
5656

57-
### HasConfig
58-
59-
`func (o *SyntheticsBrowserTest) HasConfig() bool`
60-
61-
HasConfig returns a boolean if a field has been set.
6257

6358
### GetLocations
6459

@@ -79,11 +74,6 @@ and a boolean to check if the value has been set.
7974

8075
SetLocations sets Locations field to given value.
8176

82-
### HasLocations
83-
84-
`func (o *SyntheticsBrowserTest) HasLocations() bool`
85-
86-
HasLocations returns a boolean if a field has been set.
8777

8878
### GetMessage
8979

@@ -104,6 +94,11 @@ and a boolean to check if the value has been set.
10494

10595
SetMessage sets Message field to given value.
10696

97+
### HasMessage
98+
99+
`func (o *SyntheticsBrowserTest) HasMessage() bool`
100+
101+
HasMessage returns a boolean if a field has been set.
107102

108103
### GetMonitorId
109104

@@ -149,11 +144,6 @@ and a boolean to check if the value has been set.
149144

150145
SetName sets Name field to given value.
151146

152-
### HasName
153-
154-
`func (o *SyntheticsBrowserTest) HasName() bool`
155-
156-
HasName returns a boolean if a field has been set.
157147

158148
### GetOptions
159149

@@ -174,11 +164,6 @@ and a boolean to check if the value has been set.
174164

175165
SetOptions sets Options field to given value.
176166

177-
### HasOptions
178-
179-
`func (o *SyntheticsBrowserTest) HasOptions() bool`
180-
181-
HasOptions returns a boolean if a field has been set.
182167

183168
### GetPublicId
184169

@@ -299,11 +284,6 @@ and a boolean to check if the value has been set.
299284

300285
SetType sets Type field to given value.
301286

302-
### HasType
303-
304-
`func (o *SyntheticsBrowserTest) HasType() bool`
305-
306-
HasType returns a boolean if a field has been set.
307287

308288

309289
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

0 commit comments

Comments
 (0)