Skip to content

Commit f35960b

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2f79ff1 of spec repo
1 parent 7c91f67 commit f35960b

File tree

10 files changed

+172
-9
lines changed

10 files changed

+172
-9
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-26 09:49:58.313925",
8-
"spec_repo_commit": "abcc1ed"
7+
"regenerated": "2021-03-29 13:59:41.507485",
8+
"spec_repo_commit": "2f79ff1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev6",
12-
"regenerated": "2021-03-26 09:50:40.992252",
13-
"spec_repo_commit": "abcc1ed"
12+
"regenerated": "2021-03-29 14:00:32.407265",
13+
"spec_repo_commit": "2f79ff1"
1414
}
1515
}
1616
}

api_docs/v1/SyntheticsAPITestResultShortResult.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Result of the last API test run.
88

99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11+
**passed** | **Boolean** | Describes if the test run has passed or failed. | [optional]
1112
**timings** | [**SyntheticsTiming**](SyntheticsTiming.md) | | [optional]
1213

1314

api_docs/v1/SyntheticsCheckType.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,11 @@
2727

2828
* `MATCH_REGEX` (value: `"matchRegex"`)
2929

30+
* `BETWEEN` (value: `"between"`)
31+
32+
* `IS_EMPTY` (value: `"isEmpty"`)
33+
34+
* `NOT_IS_EMPTY` (value: `"notIsEmpty"`)
35+
3036

3137

api_docs/v1/SyntheticsTestOptions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ Name | Type | Description | Notes
1111
**acceptSelfSigned** | **Boolean** | For SSL test, whether or not the test should allow self signed certificates. | [optional]
1212
**allowInsecure** | **Boolean** | Allows loading insecure content for an HTTP request. | [optional]
1313
**deviceIds** | **List<SyntheticsDeviceID>** | For browser test, array with the different device IDs used to run the test. | [optional]
14+
**disableCors** | **Boolean** | Whether or not to disable CORS mechanism. | [optional]
1415
**followRedirects** | **Boolean** | For API HTTP test, whether or not the test should follow redirects. | [optional]
1516
**minFailureDuration** | **Long** | Minimum amount of time in failure required to trigger an alert. | [optional]
1617
**minLocationFailed** | **Long** | Minimum number of locations in failure required to trigger an alert. | [optional]
1718
**monitorOptions** | [**SyntheticsTestOptionsMonitorOptions**](SyntheticsTestOptionsMonitorOptions.md) | | [optional]
19+
**noScreenshot** | **Boolean** | Prevents saving screenshots of the steps. | [optional]
1820
**retry** | [**SyntheticsTestOptionsRetry**](SyntheticsTestOptionsRetry.md) | | [optional]
1921
**tickEvery** | **SyntheticsTickInterval** | | [optional]
2022

api_docs/v1/SyntheticsTestRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
1515
**headers** | **Map<String, String>** | Headers to include when performing the test. | [optional]
1616
**host** | **String** | Host name to perform the test with. | [optional]
1717
**method** | **HTTPMethod** | | [optional]
18+
**noSavingResponseBody** | **Boolean** | Determines whether or not to save the response body. | [optional]
1819
**port** | **Long** | Port to use when performing the test. | [optional]
1920
**query** | **Object** | Query to use for the test. | [optional]
2021
**timeout** | **Double** | Timeout in seconds for the test. | [optional]

src/main/java/com/datadog/api/v1/client/model/SyntheticsAPITestResultShortResult.java

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,40 @@
1919

2020
/** Result of the last API test run. */
2121
@ApiModel(description = "Result of the last API test run.")
22-
@JsonPropertyOrder({SyntheticsAPITestResultShortResult.JSON_PROPERTY_TIMINGS})
22+
@JsonPropertyOrder({
23+
SyntheticsAPITestResultShortResult.JSON_PROPERTY_PASSED,
24+
SyntheticsAPITestResultShortResult.JSON_PROPERTY_TIMINGS
25+
})
2326
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
2427
public class SyntheticsAPITestResultShortResult {
28+
public static final String JSON_PROPERTY_PASSED = "passed";
29+
private Boolean passed;
30+
2531
public static final String JSON_PROPERTY_TIMINGS = "timings";
2632
private SyntheticsTiming timings;
2733

34+
public SyntheticsAPITestResultShortResult passed(Boolean passed) {
35+
this.passed = passed;
36+
return this;
37+
}
38+
39+
/**
40+
* Describes if the test run has passed or failed.
41+
*
42+
* @return passed
43+
*/
44+
@javax.annotation.Nullable
45+
@ApiModelProperty(value = "Describes if the test run has passed or failed.")
46+
@JsonProperty(JSON_PROPERTY_PASSED)
47+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
48+
public Boolean getPassed() {
49+
return passed;
50+
}
51+
52+
public void setPassed(Boolean passed) {
53+
this.passed = passed;
54+
}
55+
2856
public SyntheticsAPITestResultShortResult timings(SyntheticsTiming timings) {
2957
this.timings = timings;
3058
return this;
@@ -58,18 +86,20 @@ public boolean equals(Object o) {
5886
}
5987
SyntheticsAPITestResultShortResult syntheticsAPITestResultShortResult =
6088
(SyntheticsAPITestResultShortResult) o;
61-
return Objects.equals(this.timings, syntheticsAPITestResultShortResult.timings);
89+
return Objects.equals(this.passed, syntheticsAPITestResultShortResult.passed)
90+
&& Objects.equals(this.timings, syntheticsAPITestResultShortResult.timings);
6291
}
6392

6493
@Override
6594
public int hashCode() {
66-
return Objects.hash(timings);
95+
return Objects.hash(passed, timings);
6796
}
6897

6998
@Override
7099
public String toString() {
71100
StringBuilder sb = new StringBuilder();
72101
sb.append("class SyntheticsAPITestResultShortResult {\n");
102+
sb.append(" passed: ").append(toIndentedString(passed)).append("\n");
73103
sb.append(" timings: ").append(toIndentedString(timings)).append("\n");
74104
sb.append("}");
75105
return sb.toString();

src/main/java/com/datadog/api/v1/client/model/SyntheticsCheckType.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,13 @@ public enum SyntheticsCheckType {
3535

3636
LOWER_EQUALS("lowerEquals"),
3737

38-
MATCH_REGEX("matchRegex");
38+
MATCH_REGEX("matchRegex"),
39+
40+
BETWEEN("between"),
41+
42+
IS_EMPTY("isEmpty"),
43+
44+
NOT_IS_EMPTY("notIsEmpty");
3945

4046
private String value;
4147

src/main/java/com/datadog/api/v1/client/model/SyntheticsTestOptions.java

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@
2525
SyntheticsTestOptions.JSON_PROPERTY_ACCEPT_SELF_SIGNED,
2626
SyntheticsTestOptions.JSON_PROPERTY_ALLOW_INSECURE,
2727
SyntheticsTestOptions.JSON_PROPERTY_DEVICE_IDS,
28+
SyntheticsTestOptions.JSON_PROPERTY_DISABLE_CORS,
2829
SyntheticsTestOptions.JSON_PROPERTY_FOLLOW_REDIRECTS,
2930
SyntheticsTestOptions.JSON_PROPERTY_MIN_FAILURE_DURATION,
3031
SyntheticsTestOptions.JSON_PROPERTY_MIN_LOCATION_FAILED,
3132
SyntheticsTestOptions.JSON_PROPERTY_MONITOR_OPTIONS,
33+
SyntheticsTestOptions.JSON_PROPERTY_NO_SCREENSHOT,
3234
SyntheticsTestOptions.JSON_PROPERTY_RETRY,
3335
SyntheticsTestOptions.JSON_PROPERTY_TICK_EVERY
3436
})
@@ -43,6 +45,9 @@ public class SyntheticsTestOptions {
4345
public static final String JSON_PROPERTY_DEVICE_IDS = "device_ids";
4446
private List<SyntheticsDeviceID> deviceIds = null;
4547

48+
public static final String JSON_PROPERTY_DISABLE_CORS = "disableCors";
49+
private Boolean disableCors;
50+
4651
public static final String JSON_PROPERTY_FOLLOW_REDIRECTS = "follow_redirects";
4752
private Boolean followRedirects;
4853

@@ -55,6 +60,9 @@ public class SyntheticsTestOptions {
5560
public static final String JSON_PROPERTY_MONITOR_OPTIONS = "monitor_options";
5661
private SyntheticsTestOptionsMonitorOptions monitorOptions;
5762

63+
public static final String JSON_PROPERTY_NO_SCREENSHOT = "noScreenshot";
64+
private Boolean noScreenshot;
65+
5866
public static final String JSON_PROPERTY_RETRY = "retry";
5967
private SyntheticsTestOptionsRetry retry;
6068

@@ -137,6 +145,28 @@ public void setDeviceIds(List<SyntheticsDeviceID> deviceIds) {
137145
this.deviceIds = deviceIds;
138146
}
139147

148+
public SyntheticsTestOptions disableCors(Boolean disableCors) {
149+
this.disableCors = disableCors;
150+
return this;
151+
}
152+
153+
/**
154+
* Whether or not to disable CORS mechanism.
155+
*
156+
* @return disableCors
157+
*/
158+
@javax.annotation.Nullable
159+
@ApiModelProperty(value = "Whether or not to disable CORS mechanism.")
160+
@JsonProperty(JSON_PROPERTY_DISABLE_CORS)
161+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
162+
public Boolean getDisableCors() {
163+
return disableCors;
164+
}
165+
166+
public void setDisableCors(Boolean disableCors) {
167+
this.disableCors = disableCors;
168+
}
169+
140170
public SyntheticsTestOptions followRedirects(Boolean followRedirects) {
141171
this.followRedirects = followRedirects;
142172
return this;
@@ -225,6 +255,28 @@ public void setMonitorOptions(SyntheticsTestOptionsMonitorOptions monitorOptions
225255
this.monitorOptions = monitorOptions;
226256
}
227257

258+
public SyntheticsTestOptions noScreenshot(Boolean noScreenshot) {
259+
this.noScreenshot = noScreenshot;
260+
return this;
261+
}
262+
263+
/**
264+
* Prevents saving screenshots of the steps.
265+
*
266+
* @return noScreenshot
267+
*/
268+
@javax.annotation.Nullable
269+
@ApiModelProperty(value = "Prevents saving screenshots of the steps.")
270+
@JsonProperty(JSON_PROPERTY_NO_SCREENSHOT)
271+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
272+
public Boolean getNoScreenshot() {
273+
return noScreenshot;
274+
}
275+
276+
public void setNoScreenshot(Boolean noScreenshot) {
277+
this.noScreenshot = noScreenshot;
278+
}
279+
228280
public SyntheticsTestOptions retry(SyntheticsTestOptionsRetry retry) {
229281
this.retry = retry;
230282
return this;
@@ -282,10 +334,12 @@ public boolean equals(Object o) {
282334
return Objects.equals(this.acceptSelfSigned, syntheticsTestOptions.acceptSelfSigned)
283335
&& Objects.equals(this.allowInsecure, syntheticsTestOptions.allowInsecure)
284336
&& Objects.equals(this.deviceIds, syntheticsTestOptions.deviceIds)
337+
&& Objects.equals(this.disableCors, syntheticsTestOptions.disableCors)
285338
&& Objects.equals(this.followRedirects, syntheticsTestOptions.followRedirects)
286339
&& Objects.equals(this.minFailureDuration, syntheticsTestOptions.minFailureDuration)
287340
&& Objects.equals(this.minLocationFailed, syntheticsTestOptions.minLocationFailed)
288341
&& Objects.equals(this.monitorOptions, syntheticsTestOptions.monitorOptions)
342+
&& Objects.equals(this.noScreenshot, syntheticsTestOptions.noScreenshot)
289343
&& Objects.equals(this.retry, syntheticsTestOptions.retry)
290344
&& Objects.equals(this.tickEvery, syntheticsTestOptions.tickEvery);
291345
}
@@ -296,10 +350,12 @@ public int hashCode() {
296350
acceptSelfSigned,
297351
allowInsecure,
298352
deviceIds,
353+
disableCors,
299354
followRedirects,
300355
minFailureDuration,
301356
minLocationFailed,
302357
monitorOptions,
358+
noScreenshot,
303359
retry,
304360
tickEvery);
305361
}
@@ -311,10 +367,12 @@ public String toString() {
311367
sb.append(" acceptSelfSigned: ").append(toIndentedString(acceptSelfSigned)).append("\n");
312368
sb.append(" allowInsecure: ").append(toIndentedString(allowInsecure)).append("\n");
313369
sb.append(" deviceIds: ").append(toIndentedString(deviceIds)).append("\n");
370+
sb.append(" disableCors: ").append(toIndentedString(disableCors)).append("\n");
314371
sb.append(" followRedirects: ").append(toIndentedString(followRedirects)).append("\n");
315372
sb.append(" minFailureDuration: ").append(toIndentedString(minFailureDuration)).append("\n");
316373
sb.append(" minLocationFailed: ").append(toIndentedString(minLocationFailed)).append("\n");
317374
sb.append(" monitorOptions: ").append(toIndentedString(monitorOptions)).append("\n");
375+
sb.append(" noScreenshot: ").append(toIndentedString(noScreenshot)).append("\n");
318376
sb.append(" retry: ").append(toIndentedString(retry)).append("\n");
319377
sb.append(" tickEvery: ").append(toIndentedString(tickEvery)).append("\n");
320378
sb.append("}");

src/main/java/com/datadog/api/v1/client/model/SyntheticsTestRequest.java

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
SyntheticsTestRequest.JSON_PROPERTY_HEADERS,
3030
SyntheticsTestRequest.JSON_PROPERTY_HOST,
3131
SyntheticsTestRequest.JSON_PROPERTY_METHOD,
32+
SyntheticsTestRequest.JSON_PROPERTY_NO_SAVING_RESPONSE_BODY,
3233
SyntheticsTestRequest.JSON_PROPERTY_PORT,
3334
SyntheticsTestRequest.JSON_PROPERTY_QUERY,
3435
SyntheticsTestRequest.JSON_PROPERTY_TIMEOUT,
@@ -57,6 +58,9 @@ public class SyntheticsTestRequest {
5758
public static final String JSON_PROPERTY_METHOD = "method";
5859
private HTTPMethod method;
5960

61+
public static final String JSON_PROPERTY_NO_SAVING_RESPONSE_BODY = "noSavingResponseBody";
62+
private Boolean noSavingResponseBody;
63+
6064
public static final String JSON_PROPERTY_PORT = "port";
6165
private Long port;
6266

@@ -231,6 +235,28 @@ public void setMethod(HTTPMethod method) {
231235
this.method = method;
232236
}
233237

238+
public SyntheticsTestRequest noSavingResponseBody(Boolean noSavingResponseBody) {
239+
this.noSavingResponseBody = noSavingResponseBody;
240+
return this;
241+
}
242+
243+
/**
244+
* Determines whether or not to save the response body.
245+
*
246+
* @return noSavingResponseBody
247+
*/
248+
@javax.annotation.Nullable
249+
@ApiModelProperty(value = "Determines whether or not to save the response body.")
250+
@JsonProperty(JSON_PROPERTY_NO_SAVING_RESPONSE_BODY)
251+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
252+
public Boolean getNoSavingResponseBody() {
253+
return noSavingResponseBody;
254+
}
255+
256+
public void setNoSavingResponseBody(Boolean noSavingResponseBody) {
257+
this.noSavingResponseBody = noSavingResponseBody;
258+
}
259+
234260
public SyntheticsTestRequest port(Long port) {
235261
this.port = port;
236262
return this;
@@ -336,6 +362,7 @@ public boolean equals(Object o) {
336362
&& Objects.equals(this.headers, syntheticsTestRequest.headers)
337363
&& Objects.equals(this.host, syntheticsTestRequest.host)
338364
&& Objects.equals(this.method, syntheticsTestRequest.method)
365+
&& Objects.equals(this.noSavingResponseBody, syntheticsTestRequest.noSavingResponseBody)
339366
&& Objects.equals(this.port, syntheticsTestRequest.port)
340367
&& Objects.equals(this.query, syntheticsTestRequest.query)
341368
&& Objects.equals(this.timeout, syntheticsTestRequest.timeout)
@@ -345,7 +372,18 @@ public boolean equals(Object o) {
345372
@Override
346373
public int hashCode() {
347374
return Objects.hash(
348-
basicAuth, body, certificate, dnsServer, headers, host, method, port, query, timeout, url);
375+
basicAuth,
376+
body,
377+
certificate,
378+
dnsServer,
379+
headers,
380+
host,
381+
method,
382+
noSavingResponseBody,
383+
port,
384+
query,
385+
timeout,
386+
url);
349387
}
350388

351389
@Override
@@ -359,6 +397,9 @@ public String toString() {
359397
sb.append(" headers: ").append(toIndentedString(headers)).append("\n");
360398
sb.append(" host: ").append(toIndentedString(host)).append("\n");
361399
sb.append(" method: ").append(toIndentedString(method)).append("\n");
400+
sb.append(" noSavingResponseBody: ")
401+
.append(toIndentedString(noSavingResponseBody))
402+
.append("\n");
362403
sb.append(" port: ").append(toIndentedString(port)).append("\n");
363404
sb.append(" query: ").append(toIndentedString(query)).append("\n");
364405
sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n");

0 commit comments

Comments
 (0)