From c4059ca9422b28e027f499669e0d4f4ac1eb01fd Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 5 Nov 2024 20:17:44 +0000 Subject: [PATCH] Regenerate client from commit 1a56bfda of spec repo --- .apigentools-info | 8 +-- .generator/schemas/v1/openapi.yaml | 9 ++- .../api/client/v1/model/SyntheticsStep.java | 67 ++++++++++++++++++- 3 files changed, 77 insertions(+), 7 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 0aa396256dc..05a1b84456d 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.6.6", - "regenerated": "2024-11-05 15:05:46.030608", - "spec_repo_commit": "8d63eae4" + "regenerated": "2024-11-05 20:16:09.973906", + "spec_repo_commit": "1a56bfda" }, "v2": { "apigentools_version": "1.6.6", - "regenerated": "2024-11-05 15:05:46.050333", - "spec_repo_commit": "8d63eae4" + "regenerated": "2024-11-05 20:16:09.992732", + "spec_repo_commit": "1a56bfda" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index ce466a1c5dc..1b7f2ce9877 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -16227,6 +16227,13 @@ components: allowFailure: description: A boolean set to allow this step to fail. type: boolean + alwaysExecute: + description: A boolean set to always execute this step even if the previous + step failed or was skipped. + type: boolean + exitIfSucceed: + description: A boolean set to exit the test if the step succeeds. + type: boolean isCritical: description: A boolean to use in addition to `allowFailure` to determine if the test should be marked as failed when the step fails. @@ -16235,7 +16242,7 @@ components: description: The name of the step. type: string noScreenshot: - description: A boolean set to not take a screenshot for the step. + description: A boolean set to skip taking a screenshot for the step. type: boolean params: description: The parameters of the step. diff --git a/src/main/java/com/datadog/api/client/v1/model/SyntheticsStep.java b/src/main/java/com/datadog/api/client/v1/model/SyntheticsStep.java index dcf9d8ce078..c17793c9870 100644 --- a/src/main/java/com/datadog/api/client/v1/model/SyntheticsStep.java +++ b/src/main/java/com/datadog/api/client/v1/model/SyntheticsStep.java @@ -19,6 +19,8 @@ /** The steps used in a Synthetic browser test. */ @JsonPropertyOrder({ SyntheticsStep.JSON_PROPERTY_ALLOW_FAILURE, + SyntheticsStep.JSON_PROPERTY_ALWAYS_EXECUTE, + SyntheticsStep.JSON_PROPERTY_EXIT_IF_SUCCEED, SyntheticsStep.JSON_PROPERTY_IS_CRITICAL, SyntheticsStep.JSON_PROPERTY_NAME, SyntheticsStep.JSON_PROPERTY_NO_SCREENSHOT, @@ -33,6 +35,12 @@ public class SyntheticsStep { public static final String JSON_PROPERTY_ALLOW_FAILURE = "allowFailure"; private Boolean allowFailure; + public static final String JSON_PROPERTY_ALWAYS_EXECUTE = "alwaysExecute"; + private Boolean alwaysExecute; + + public static final String JSON_PROPERTY_EXIT_IF_SUCCEED = "exitIfSucceed"; + private Boolean exitIfSucceed; + public static final String JSON_PROPERTY_IS_CRITICAL = "isCritical"; private Boolean isCritical; @@ -72,6 +80,48 @@ public void setAllowFailure(Boolean allowFailure) { this.allowFailure = allowFailure; } + public SyntheticsStep alwaysExecute(Boolean alwaysExecute) { + this.alwaysExecute = alwaysExecute; + return this; + } + + /** + * A boolean set to always execute this step even if the previous step failed or was skipped. + * + * @return alwaysExecute + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ALWAYS_EXECUTE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getAlwaysExecute() { + return alwaysExecute; + } + + public void setAlwaysExecute(Boolean alwaysExecute) { + this.alwaysExecute = alwaysExecute; + } + + public SyntheticsStep exitIfSucceed(Boolean exitIfSucceed) { + this.exitIfSucceed = exitIfSucceed; + return this; + } + + /** + * A boolean set to exit the test if the step succeeds. + * + * @return exitIfSucceed + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_EXIT_IF_SUCCEED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Boolean getExitIfSucceed() { + return exitIfSucceed; + } + + public void setExitIfSucceed(Boolean exitIfSucceed) { + this.exitIfSucceed = exitIfSucceed; + } + public SyntheticsStep isCritical(Boolean isCritical) { this.isCritical = isCritical; return this; @@ -121,7 +171,7 @@ public SyntheticsStep noScreenshot(Boolean noScreenshot) { } /** - * A boolean set to not take a screenshot for the step. + * A boolean set to skip taking a screenshot for the step. * * @return noScreenshot */ @@ -260,6 +310,8 @@ public boolean equals(Object o) { } SyntheticsStep syntheticsStep = (SyntheticsStep) o; return Objects.equals(this.allowFailure, syntheticsStep.allowFailure) + && Objects.equals(this.alwaysExecute, syntheticsStep.alwaysExecute) + && Objects.equals(this.exitIfSucceed, syntheticsStep.exitIfSucceed) && Objects.equals(this.isCritical, syntheticsStep.isCritical) && Objects.equals(this.name, syntheticsStep.name) && Objects.equals(this.noScreenshot, syntheticsStep.noScreenshot) @@ -272,7 +324,16 @@ public boolean equals(Object o) { @Override public int hashCode() { return Objects.hash( - allowFailure, isCritical, name, noScreenshot, params, timeout, type, additionalProperties); + allowFailure, + alwaysExecute, + exitIfSucceed, + isCritical, + name, + noScreenshot, + params, + timeout, + type, + additionalProperties); } @Override @@ -280,6 +341,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class SyntheticsStep {\n"); sb.append(" allowFailure: ").append(toIndentedString(allowFailure)).append("\n"); + sb.append(" alwaysExecute: ").append(toIndentedString(alwaysExecute)).append("\n"); + sb.append(" exitIfSucceed: ").append(toIndentedString(exitIfSucceed)).append("\n"); sb.append(" isCritical: ").append(toIndentedString(isCritical)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" noScreenshot: ").append(toIndentedString(noScreenshot)).append("\n");