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
5 changes: 5 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17343,6 +17343,11 @@ components:
description: Allows loading insecure content for an HTTP request in an API
test.
type: boolean
blockedRequestPatterns:
description: Array of URL patterns to block.
items:
type: string
type: array
checkCertificateRevocation:
description: For SSL tests, whether or not the test should fail on revoked
certificate in stapled OCSP.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
@JsonPropertyOrder({
SyntheticsTestOptions.JSON_PROPERTY_ACCEPT_SELF_SIGNED,
SyntheticsTestOptions.JSON_PROPERTY_ALLOW_INSECURE,
SyntheticsTestOptions.JSON_PROPERTY_BLOCKED_REQUEST_PATTERNS,
SyntheticsTestOptions.JSON_PROPERTY_CHECK_CERTIFICATE_REVOCATION,
SyntheticsTestOptions.JSON_PROPERTY_CI,
SyntheticsTestOptions.JSON_PROPERTY_DEVICE_IDS,
Expand Down Expand Up @@ -56,6 +57,9 @@ public class SyntheticsTestOptions {
public static final String JSON_PROPERTY_ALLOW_INSECURE = "allow_insecure";
private Boolean allowInsecure;

public static final String JSON_PROPERTY_BLOCKED_REQUEST_PATTERNS = "blockedRequestPatterns";
private List<String> blockedRequestPatterns = null;

public static final String JSON_PROPERTY_CHECK_CERTIFICATE_REVOCATION =
"checkCertificateRevocation";
private Boolean checkCertificateRevocation;
Expand Down Expand Up @@ -170,6 +174,35 @@ public void setAllowInsecure(Boolean allowInsecure) {
this.allowInsecure = allowInsecure;
}

public SyntheticsTestOptions blockedRequestPatterns(List<String> blockedRequestPatterns) {
this.blockedRequestPatterns = blockedRequestPatterns;
return this;
}

public SyntheticsTestOptions addBlockedRequestPatternsItem(String blockedRequestPatternsItem) {
if (this.blockedRequestPatterns == null) {
this.blockedRequestPatterns = new ArrayList<>();
}
this.blockedRequestPatterns.add(blockedRequestPatternsItem);
return this;
}

/**
* Array of URL patterns to block.
*
* @return blockedRequestPatterns
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BLOCKED_REQUEST_PATTERNS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getBlockedRequestPatterns() {
return blockedRequestPatterns;
}

public void setBlockedRequestPatterns(List<String> blockedRequestPatterns) {
this.blockedRequestPatterns = blockedRequestPatterns;
}

public SyntheticsTestOptions checkCertificateRevocation(Boolean checkCertificateRevocation) {
this.checkCertificateRevocation = checkCertificateRevocation;
return this;
Expand Down Expand Up @@ -754,6 +787,7 @@ public boolean equals(Object o) {
SyntheticsTestOptions syntheticsTestOptions = (SyntheticsTestOptions) o;
return Objects.equals(this.acceptSelfSigned, syntheticsTestOptions.acceptSelfSigned)
&& Objects.equals(this.allowInsecure, syntheticsTestOptions.allowInsecure)
&& Objects.equals(this.blockedRequestPatterns, syntheticsTestOptions.blockedRequestPatterns)
&& Objects.equals(
this.checkCertificateRevocation, syntheticsTestOptions.checkCertificateRevocation)
&& Objects.equals(this.ci, syntheticsTestOptions.ci)
Expand Down Expand Up @@ -790,6 +824,7 @@ public int hashCode() {
return Objects.hash(
acceptSelfSigned,
allowInsecure,
blockedRequestPatterns,
checkCertificateRevocation,
ci,
deviceIds,
Expand Down Expand Up @@ -822,6 +857,9 @@ public String toString() {
sb.append("class SyntheticsTestOptions {\n");
sb.append(" acceptSelfSigned: ").append(toIndentedString(acceptSelfSigned)).append("\n");
sb.append(" allowInsecure: ").append(toIndentedString(allowInsecure)).append("\n");
sb.append(" blockedRequestPatterns: ")
.append(toIndentedString(blockedRequestPatterns))
.append("\n");
sb.append(" checkCertificateRevocation: ")
.append(toIndentedString(checkCertificateRevocation))
.append("\n");
Expand Down
Loading