@@ -28,17 +28,17 @@ type Networkconnection struct {
28
28
}
29
29
30
30
type Advancedsettings struct {
31
- Authentication `json:"authentication"`
31
+ Authentication * Authentication `json:"authentication"`
32
32
Cookiesv2 []Cookiesv2 `json:"cookies"`
33
33
BrowserHeaders []BrowserHeaders `json:"headers,omitempty"`
34
34
HostOverrides []HostOverrides `json:"hostOverrides,omitempty"`
35
35
UserAgent string `json:"userAgent,omitempty"`
36
- Verifycertificates bool `json:"verifyCertificates,omitempty "`
36
+ Verifycertificates bool `json:"verifyCertificates"`
37
37
}
38
38
39
39
type Authentication struct {
40
- Password string `json:"password"`
41
- Username string `json:"username"`
40
+ Password string `json:"password,omitempty "`
41
+ Username string `json:"username,omitempty "`
42
42
}
43
43
44
44
type Cookiesv2 struct {
@@ -100,14 +100,14 @@ type Device struct {
100
100
101
101
type Requests struct {
102
102
Configuration `json:"configuration,omitempty"`
103
- Setup []Setup `json:"setup,omitempty "`
104
- Validations []Validations `json:"validations,omitempty "`
103
+ Setup []Setup `json:"setup"`
104
+ Validations []Validations `json:"validations"`
105
105
}
106
106
107
107
type Configuration struct {
108
108
Body string `json:"body"`
109
- Headers `json:"headers,omitempty "`
110
- Name string `json:"name,omitempty "`
109
+ Headers `json:"headers"`
110
+ Name string `json:"name"`
111
111
RequestMethod string `json:"requestMethod,omitempty"`
112
112
URL string `json:"url,omitempty"`
113
113
}
@@ -260,34 +260,40 @@ type PortCheckV2Input struct {
260
260
261
261
type HttpCheckV2Response struct {
262
262
Test struct {
263
- ID int `json:"id"`
264
- Name string `json:"name"`
265
- Active bool `json:"active"`
266
- Frequency int `json:"frequency"`
267
- SchedulingStrategy string `json:"schedulingStrategy"`
268
- CreatedAt time.Time `json:"createdAt,omitempty"`
269
- UpdatedAt time.Time `json:"updatedAt,omitempty"`
270
- LocationIds []string `json:"locationIds"`
271
- Type string `json:"type"`
272
- URL string `json:"url"`
273
- RequestMethod string `json:"requestMethod"`
274
- Body string `json:"body,omitempty"`
275
- HttpHeaders []HttpHeaders `json:"headers,omitempty"`
263
+ ID int `json:"id"`
264
+ Name string `json:"name"`
265
+ Active bool `json:"active"`
266
+ Frequency int `json:"frequency"`
267
+ SchedulingStrategy string `json:"schedulingStrategy"`
268
+ CreatedAt time.Time `json:"createdAt,omitempty"`
269
+ UpdatedAt time.Time `json:"updatedAt,omitempty"`
270
+ LocationIds []string `json:"locationIds"`
271
+ Type string `json:"type"`
272
+ URL string `json:"url"`
273
+ RequestMethod string `json:"requestMethod"`
274
+ Body string `json:"body,omitempty"`
275
+ Authentication * Authentication `json:"authentication"`
276
+ UserAgent string `json:"userAgent,omitempty"`
277
+ Verifycertificates bool `json:"verifyCertificates"`
278
+ HttpHeaders []HttpHeaders `json:"headers,omitempty"`
276
279
} `json:"test"`
277
280
}
278
281
279
282
type HttpCheckV2Input struct {
280
283
Test struct {
281
- Name string `json:"name"`
282
- Type string `json:"type"`
283
- URL string `json:"url"`
284
- LocationIds []string `json:"locationIds"`
285
- Frequency int `json:"frequency"`
286
- SchedulingStrategy string `json:"schedulingStrategy"`
287
- Active bool `json:"active"`
288
- RequestMethod string `json:"requestMethod"`
289
- Body string `json:"body,omitempty"`
290
- HttpHeaders []HttpHeaders `json:"headers,omitempty"`
284
+ Name string `json:"name"`
285
+ Type string `json:"type"`
286
+ URL string `json:"url"`
287
+ LocationIds []string `json:"locationIds"`
288
+ Frequency int `json:"frequency"`
289
+ SchedulingStrategy string `json:"schedulingStrategy"`
290
+ Active bool `json:"active"`
291
+ RequestMethod string `json:"requestMethod"`
292
+ Body string `json:"body,omitempty"`
293
+ Authentication * Authentication `json:"authentication"`
294
+ UserAgent string `json:"userAgent,omitempty"`
295
+ Verifycertificates bool `json:"verifyCertificates"`
296
+ HttpHeaders []HttpHeaders `json:"headers,omitempty"`
291
297
} `json:"test"`
292
298
}
293
299
@@ -305,7 +311,7 @@ type ApiCheckV2Input struct {
305
311
306
312
type ApiCheckV2Response struct {
307
313
Test struct {
308
- Active bool `json:"active,omitempty "`
314
+ Active bool `json:"active"`
309
315
Createdat time.Time `json:"createdAt"`
310
316
Device `json:"device,omitempty"`
311
317
Frequency int `json:"frequency,omitempty"`
@@ -330,7 +336,7 @@ type BrowserCheckV2Input struct {
330
336
Frequency int `json:"frequency"`
331
337
Schedulingstrategy string `json:"schedulingStrategy"`
332
338
Active bool `json:"active"`
333
- Advancedsettings `json:"advancedSettings"`
339
+ Advancedsettings `json:"advancedSettings,omitempty "`
334
340
} `json:"test"`
335
341
}
336
342
0 commit comments