Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-26 09:49:58.313925",
"spec_repo_commit": "abcc1ed"
"regenerated": "2021-03-29 13:59:41.507485",
"spec_repo_commit": "2f79ff1"
},
"v2": {
"apigentools_version": "1.4.1.dev6",
"regenerated": "2021-03-26 09:50:40.992252",
"spec_repo_commit": "abcc1ed"
"regenerated": "2021-03-29 14:00:32.407265",
"spec_repo_commit": "2f79ff1"
}
}
}
1 change: 1 addition & 0 deletions api_docs/v1/SyntheticsAPITestResultShortResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Result of the last API test run.

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


Expand Down
6 changes: 6 additions & 0 deletions api_docs/v1/SyntheticsCheckType.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,11 @@

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

* `BETWEEN` (value: `"between"`)

* `IS_EMPTY` (value: `"isEmpty"`)

* `NOT_IS_EMPTY` (value: `"notIsEmpty"`)



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

Expand Down
1 change: 1 addition & 0 deletions api_docs/v1/SyntheticsTestRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**headers** | **Map<String, String>** | Headers to include when performing the test. | [optional]
**host** | **String** | Host name to perform the test with. | [optional]
**method** | **HTTPMethod** | | [optional]
**noSavingResponseBody** | **Boolean** | Determines whether or not to save the response body. | [optional]
**port** | **Long** | Port to use when performing the test. | [optional]
**query** | **Object** | Query to use for the test. | [optional]
**timeout** | **Double** | Timeout in seconds for the test. | [optional]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,40 @@

/** Result of the last API test run. */
@ApiModel(description = "Result of the last API test run.")
@JsonPropertyOrder({SyntheticsAPITestResultShortResult.JSON_PROPERTY_TIMINGS})
@JsonPropertyOrder({
SyntheticsAPITestResultShortResult.JSON_PROPERTY_PASSED,
SyntheticsAPITestResultShortResult.JSON_PROPERTY_TIMINGS
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SyntheticsAPITestResultShortResult {
public static final String JSON_PROPERTY_PASSED = "passed";
private Boolean passed;

public static final String JSON_PROPERTY_TIMINGS = "timings";
private SyntheticsTiming timings;

public SyntheticsAPITestResultShortResult passed(Boolean passed) {
this.passed = passed;
return this;
}

/**
* Describes if the test run has passed or failed.
*
* @return passed
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "Describes if the test run has passed or failed.")
@JsonProperty(JSON_PROPERTY_PASSED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getPassed() {
return passed;
}

public void setPassed(Boolean passed) {
this.passed = passed;
}

public SyntheticsAPITestResultShortResult timings(SyntheticsTiming timings) {
this.timings = timings;
return this;
Expand Down Expand Up @@ -58,18 +86,20 @@ public boolean equals(Object o) {
}
SyntheticsAPITestResultShortResult syntheticsAPITestResultShortResult =
(SyntheticsAPITestResultShortResult) o;
return Objects.equals(this.timings, syntheticsAPITestResultShortResult.timings);
return Objects.equals(this.passed, syntheticsAPITestResultShortResult.passed)
&& Objects.equals(this.timings, syntheticsAPITestResultShortResult.timings);
}

@Override
public int hashCode() {
return Objects.hash(timings);
return Objects.hash(passed, timings);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SyntheticsAPITestResultShortResult {\n");
sb.append(" passed: ").append(toIndentedString(passed)).append("\n");
sb.append(" timings: ").append(toIndentedString(timings)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,13 @@ public enum SyntheticsCheckType {

LOWER_EQUALS("lowerEquals"),

MATCH_REGEX("matchRegex");
MATCH_REGEX("matchRegex"),

BETWEEN("between"),

IS_EMPTY("isEmpty"),

NOT_IS_EMPTY("notIsEmpty");

private String value;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
SyntheticsTestOptions.JSON_PROPERTY_ACCEPT_SELF_SIGNED,
SyntheticsTestOptions.JSON_PROPERTY_ALLOW_INSECURE,
SyntheticsTestOptions.JSON_PROPERTY_DEVICE_IDS,
SyntheticsTestOptions.JSON_PROPERTY_DISABLE_CORS,
SyntheticsTestOptions.JSON_PROPERTY_FOLLOW_REDIRECTS,
SyntheticsTestOptions.JSON_PROPERTY_MIN_FAILURE_DURATION,
SyntheticsTestOptions.JSON_PROPERTY_MIN_LOCATION_FAILED,
SyntheticsTestOptions.JSON_PROPERTY_MONITOR_OPTIONS,
SyntheticsTestOptions.JSON_PROPERTY_NO_SCREENSHOT,
SyntheticsTestOptions.JSON_PROPERTY_RETRY,
SyntheticsTestOptions.JSON_PROPERTY_TICK_EVERY
})
Expand All @@ -43,6 +45,9 @@ public class SyntheticsTestOptions {
public static final String JSON_PROPERTY_DEVICE_IDS = "device_ids";
private List<SyntheticsDeviceID> deviceIds = null;

public static final String JSON_PROPERTY_DISABLE_CORS = "disableCors";
private Boolean disableCors;

public static final String JSON_PROPERTY_FOLLOW_REDIRECTS = "follow_redirects";
private Boolean followRedirects;

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

public static final String JSON_PROPERTY_NO_SCREENSHOT = "noScreenshot";
private Boolean noScreenshot;

public static final String JSON_PROPERTY_RETRY = "retry";
private SyntheticsTestOptionsRetry retry;

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

public SyntheticsTestOptions disableCors(Boolean disableCors) {
this.disableCors = disableCors;
return this;
}

/**
* Whether or not to disable CORS mechanism.
*
* @return disableCors
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "Whether or not to disable CORS mechanism.")
@JsonProperty(JSON_PROPERTY_DISABLE_CORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getDisableCors() {
return disableCors;
}

public void setDisableCors(Boolean disableCors) {
this.disableCors = disableCors;
}

public SyntheticsTestOptions followRedirects(Boolean followRedirects) {
this.followRedirects = followRedirects;
return this;
Expand Down Expand Up @@ -225,6 +255,28 @@ public void setMonitorOptions(SyntheticsTestOptionsMonitorOptions monitorOptions
this.monitorOptions = monitorOptions;
}

public SyntheticsTestOptions noScreenshot(Boolean noScreenshot) {
this.noScreenshot = noScreenshot;
return this;
}

/**
* Prevents saving screenshots of the steps.
*
* @return noScreenshot
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "Prevents saving screenshots of the steps.")
@JsonProperty(JSON_PROPERTY_NO_SCREENSHOT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getNoScreenshot() {
return noScreenshot;
}

public void setNoScreenshot(Boolean noScreenshot) {
this.noScreenshot = noScreenshot;
}

public SyntheticsTestOptions retry(SyntheticsTestOptionsRetry retry) {
this.retry = retry;
return this;
Expand Down Expand Up @@ -282,10 +334,12 @@ public boolean equals(Object o) {
return Objects.equals(this.acceptSelfSigned, syntheticsTestOptions.acceptSelfSigned)
&& Objects.equals(this.allowInsecure, syntheticsTestOptions.allowInsecure)
&& Objects.equals(this.deviceIds, syntheticsTestOptions.deviceIds)
&& Objects.equals(this.disableCors, syntheticsTestOptions.disableCors)
&& Objects.equals(this.followRedirects, syntheticsTestOptions.followRedirects)
&& Objects.equals(this.minFailureDuration, syntheticsTestOptions.minFailureDuration)
&& Objects.equals(this.minLocationFailed, syntheticsTestOptions.minLocationFailed)
&& Objects.equals(this.monitorOptions, syntheticsTestOptions.monitorOptions)
&& Objects.equals(this.noScreenshot, syntheticsTestOptions.noScreenshot)
&& Objects.equals(this.retry, syntheticsTestOptions.retry)
&& Objects.equals(this.tickEvery, syntheticsTestOptions.tickEvery);
}
Expand All @@ -296,10 +350,12 @@ public int hashCode() {
acceptSelfSigned,
allowInsecure,
deviceIds,
disableCors,
followRedirects,
minFailureDuration,
minLocationFailed,
monitorOptions,
noScreenshot,
retry,
tickEvery);
}
Expand All @@ -311,10 +367,12 @@ public String toString() {
sb.append(" acceptSelfSigned: ").append(toIndentedString(acceptSelfSigned)).append("\n");
sb.append(" allowInsecure: ").append(toIndentedString(allowInsecure)).append("\n");
sb.append(" deviceIds: ").append(toIndentedString(deviceIds)).append("\n");
sb.append(" disableCors: ").append(toIndentedString(disableCors)).append("\n");
sb.append(" followRedirects: ").append(toIndentedString(followRedirects)).append("\n");
sb.append(" minFailureDuration: ").append(toIndentedString(minFailureDuration)).append("\n");
sb.append(" minLocationFailed: ").append(toIndentedString(minLocationFailed)).append("\n");
sb.append(" monitorOptions: ").append(toIndentedString(monitorOptions)).append("\n");
sb.append(" noScreenshot: ").append(toIndentedString(noScreenshot)).append("\n");
sb.append(" retry: ").append(toIndentedString(retry)).append("\n");
sb.append(" tickEvery: ").append(toIndentedString(tickEvery)).append("\n");
sb.append("}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
SyntheticsTestRequest.JSON_PROPERTY_HEADERS,
SyntheticsTestRequest.JSON_PROPERTY_HOST,
SyntheticsTestRequest.JSON_PROPERTY_METHOD,
SyntheticsTestRequest.JSON_PROPERTY_NO_SAVING_RESPONSE_BODY,
SyntheticsTestRequest.JSON_PROPERTY_PORT,
SyntheticsTestRequest.JSON_PROPERTY_QUERY,
SyntheticsTestRequest.JSON_PROPERTY_TIMEOUT,
Expand Down Expand Up @@ -57,6 +58,9 @@ public class SyntheticsTestRequest {
public static final String JSON_PROPERTY_METHOD = "method";
private HTTPMethod method;

public static final String JSON_PROPERTY_NO_SAVING_RESPONSE_BODY = "noSavingResponseBody";
private Boolean noSavingResponseBody;

public static final String JSON_PROPERTY_PORT = "port";
private Long port;

Expand Down Expand Up @@ -231,6 +235,28 @@ public void setMethod(HTTPMethod method) {
this.method = method;
}

public SyntheticsTestRequest noSavingResponseBody(Boolean noSavingResponseBody) {
this.noSavingResponseBody = noSavingResponseBody;
return this;
}

/**
* Determines whether or not to save the response body.
*
* @return noSavingResponseBody
*/
@javax.annotation.Nullable
@ApiModelProperty(value = "Determines whether or not to save the response body.")
@JsonProperty(JSON_PROPERTY_NO_SAVING_RESPONSE_BODY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getNoSavingResponseBody() {
return noSavingResponseBody;
}

public void setNoSavingResponseBody(Boolean noSavingResponseBody) {
this.noSavingResponseBody = noSavingResponseBody;
}

public SyntheticsTestRequest port(Long port) {
this.port = port;
return this;
Expand Down Expand Up @@ -336,6 +362,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.headers, syntheticsTestRequest.headers)
&& Objects.equals(this.host, syntheticsTestRequest.host)
&& Objects.equals(this.method, syntheticsTestRequest.method)
&& Objects.equals(this.noSavingResponseBody, syntheticsTestRequest.noSavingResponseBody)
&& Objects.equals(this.port, syntheticsTestRequest.port)
&& Objects.equals(this.query, syntheticsTestRequest.query)
&& Objects.equals(this.timeout, syntheticsTestRequest.timeout)
Expand All @@ -345,7 +372,18 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
basicAuth, body, certificate, dnsServer, headers, host, method, port, query, timeout, url);
basicAuth,
body,
certificate,
dnsServer,
headers,
host,
method,
noSavingResponseBody,
port,
query,
timeout,
url);
}

@Override
Expand All @@ -359,6 +397,9 @@ public String toString() {
sb.append(" headers: ").append(toIndentedString(headers)).append("\n");
sb.append(" host: ").append(toIndentedString(host)).append("\n");
sb.append(" method: ").append(toIndentedString(method)).append("\n");
sb.append(" noSavingResponseBody: ")
.append(toIndentedString(noSavingResponseBody))
.append("\n");
sb.append(" port: ").append(toIndentedString(port)).append("\n");
sb.append(" query: ").append(toIndentedString(query)).append("\n");
sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n");
Expand Down
Loading