diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 2c0f436fe34..d299fd1460b 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -20419,6 +20419,7 @@ components: - times type: object CompletionCondition: + additionalProperties: false description: The definition of `CompletionCondition` object. properties: operand1: @@ -20462,6 +20463,7 @@ components: - OPERATOR_IS_EMPTY - OPERATOR_IS_NOT_EMPTY CompletionGate: + additionalProperties: false description: Used to create conditions before running subsequent actions. properties: completionCondition: @@ -36028,6 +36030,7 @@ components: type: integer type: object ErrorHandler: + additionalProperties: false description: Used to handle errors in an action. properties: fallbackStepName: @@ -51951,6 +51954,7 @@ components: name: description: The `InputSchemaParameters` `name`. example: "" + minLength: 1 type: string type: $ref: "#/components/schemas/InputSchemaParametersType" @@ -78536,11 +78540,13 @@ components: properties: branchName: description: The `OutboundEdge` `branchName`. - example: "" + example: main + minLength: 1 type: string nextStepName: description: The `OutboundEdge` `nextStepName`. - example: "" + example: Step2 + minLength: 1 type: string required: - nextStepName @@ -79690,6 +79696,7 @@ components: name: description: The `Parameter` `name`. example: "" + minLength: 1 type: string value: description: The `Parameter` `value`. @@ -84923,6 +84930,7 @@ components: - attributes type: object ReadinessGate: + additionalProperties: false description: Used to merge multiple branches into a single branch. properties: thresholdType: @@ -87404,6 +87412,7 @@ components: - data type: object RetryStrategy: + additionalProperties: false description: The definition of `RetryStrategy` object. properties: kind: @@ -87412,6 +87421,7 @@ components: $ref: "#/components/schemas/RetryStrategyLinear" required: - kind + - linear type: object RetryStrategyKind: description: The definition of `RetryStrategyKind` object. @@ -87422,17 +87432,21 @@ components: x-enum-varnames: - RETRY_STRATEGY_LINEAR RetryStrategyLinear: + additionalProperties: false description: The definition of `RetryStrategyLinear` object. properties: interval: description: The `RetryStrategyLinear` `interval`. The expected format is the number of seconds ending with an s. For example, 1 day is 86400s example: "" + pattern: ^[1-9][0-9]*s$ type: string maxRetries: description: The `RetryStrategyLinear` `maxRetries`. - example: 0.0 - format: double - type: number + example: 0 + format: int32 + maximum: 2147483647 + minimum: 0 + type: integer required: - interval - maxRetries @@ -103966,7 +103980,7 @@ components: type: string type: object Spec: - description: The spec defines what the workflow does. + description: A complete Workflow Automation definition, including its triggers, steps, and connections. properties: annotations: description: "A list of annotations used in the workflow. These are like sticky notes for your workflow!" @@ -104084,11 +104098,12 @@ components: - type type: object StartStepNames: - description: "A list of steps that run first after a trigger fires." + description: "Names of existing workflow steps that run first after a trigger fires." example: - "" items: description: The `StartStepNames` `items`. + minLength: 1 type: string type: array State: @@ -105364,6 +105379,7 @@ components: actionId: description: The unique identifier of an action. example: "" + minLength: 1 type: string completionGate: $ref: "#/components/schemas/CompletionGate" @@ -105380,9 +105396,10 @@ components: name: description: Name of the step. example: "" + minLength: 1 type: string outboundEdges: - description: A list of subsequent actions to run. + description: A list of subsequent actions to run. This list is empty for a terminal step. items: $ref: "#/components/schemas/OutboundEdge" type: array @@ -105398,7 +105415,9 @@ components: - actionId type: object StepDisplay: - description: The definition of `StepDisplay` object. + description: |- + The position of a step on the workflow canvas. Omit `display` from every step to use + automatic layout, or provide it for every step to preserve a manual layout. properties: bounds: $ref: "#/components/schemas/StepDisplayBounds" @@ -119151,7 +119170,7 @@ components: startStepNames: $ref: "#/components/schemas/StartStepNames" workflowTrigger: - description: "Trigger a workflow from the Datadog UI. Only required if no other trigger exists." + description: "Trigger a workflow from the Datadog UI. When present, this must be the workflow's only trigger." type: object required: - workflowTrigger diff --git a/src/main/java/com/datadog/api/client/v2/model/APITriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/APITriggerWrapper.java index 481cc99ee69..7c082c48732 100644 --- a/src/main/java/com/datadog/api/client/v2/model/APITriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/APITriggerWrapper.java @@ -81,7 +81,7 @@ public APITriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/AppTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/AppTriggerWrapper.java index 8956433728c..7e36d07ec49 100644 --- a/src/main/java/com/datadog/api/client/v2/model/AppTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/AppTriggerWrapper.java @@ -76,7 +76,7 @@ public AppTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CaseTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/CaseTriggerWrapper.java index 4f06b462792..8d8e23705f6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CaseTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/CaseTriggerWrapper.java @@ -82,7 +82,7 @@ public CaseTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ChangeEventTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/ChangeEventTriggerWrapper.java index 87fc51dd5c9..7f0387b0ef3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ChangeEventTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/ChangeEventTriggerWrapper.java @@ -77,7 +77,7 @@ public ChangeEventTriggerWrapper addStartStepNamesItem(String startStepNamesItem } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/CompletionCondition.java b/src/main/java/com/datadog/api/client/v2/model/CompletionCondition.java index 8d977b029c7..18547f2daa4 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CompletionCondition.java +++ b/src/main/java/com/datadog/api/client/v2/model/CompletionCondition.java @@ -6,15 +6,11 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; /** The definition of CompletionCondition object. */ @@ -113,52 +109,6 @@ public void setOperator(CompletionConditionOperator operator) { this.operator = operator; } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return CompletionCondition - */ - @JsonAnySetter - public CompletionCondition putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this CompletionCondition object is equal to o. */ @Override public boolean equals(Object o) { @@ -171,13 +121,12 @@ public boolean equals(Object o) { CompletionCondition completionCondition = (CompletionCondition) o; return Objects.equals(this.operand1, completionCondition.operand1) && Objects.equals(this.operand2, completionCondition.operand2) - && Objects.equals(this.operator, completionCondition.operator) - && Objects.equals(this.additionalProperties, completionCondition.additionalProperties); + && Objects.equals(this.operator, completionCondition.operator); } @Override public int hashCode() { - return Objects.hash(operand1, operand2, operator, additionalProperties); + return Objects.hash(operand1, operand2, operator); } @Override @@ -187,9 +136,6 @@ public String toString() { sb.append(" operand1: ").append(toIndentedString(operand1)).append("\n"); sb.append(" operand2: ").append(toIndentedString(operand2)).append("\n"); sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/CompletionGate.java b/src/main/java/com/datadog/api/client/v2/model/CompletionGate.java index f278c36b92c..c67cec83e81 100644 --- a/src/main/java/com/datadog/api/client/v2/model/CompletionGate.java +++ b/src/main/java/com/datadog/api/client/v2/model/CompletionGate.java @@ -6,15 +6,11 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; /** Used to create conditions before running subsequent actions. */ @@ -94,52 +90,6 @@ public void setRetryStrategy(RetryStrategy retryStrategy) { } } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return CompletionGate - */ - @JsonAnySetter - public CompletionGate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this CompletionGate object is equal to o. */ @Override public boolean equals(Object o) { @@ -151,13 +101,12 @@ public boolean equals(Object o) { } CompletionGate completionGate = (CompletionGate) o; return Objects.equals(this.completionCondition, completionGate.completionCondition) - && Objects.equals(this.retryStrategy, completionGate.retryStrategy) - && Objects.equals(this.additionalProperties, completionGate.additionalProperties); + && Objects.equals(this.retryStrategy, completionGate.retryStrategy); } @Override public int hashCode() { - return Objects.hash(completionCondition, retryStrategy, additionalProperties); + return Objects.hash(completionCondition, retryStrategy); } @Override @@ -168,9 +117,6 @@ public String toString() { .append(toIndentedString(completionCondition)) .append("\n"); sb.append(" retryStrategy: ").append(toIndentedString(retryStrategy)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/DashboardTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/DashboardTriggerWrapper.java index 8b22894b403..6563cc40053 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DashboardTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/DashboardTriggerWrapper.java @@ -77,7 +77,7 @@ public DashboardTriggerWrapper addStartStepNamesItem(String startStepNamesItem) } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/DatabaseMonitoringTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/DatabaseMonitoringTriggerWrapper.java index 2496dbbe398..4acee5c2fea 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DatabaseMonitoringTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/DatabaseMonitoringTriggerWrapper.java @@ -79,7 +79,7 @@ public DatabaseMonitoringTriggerWrapper addStartStepNamesItem(String startStepNa } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/DatastoreTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/DatastoreTriggerWrapper.java index e2555f3c985..728f58bc368 100644 --- a/src/main/java/com/datadog/api/client/v2/model/DatastoreTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/DatastoreTriggerWrapper.java @@ -83,7 +83,7 @@ public DatastoreTriggerWrapper addStartStepNamesItem(String startStepNamesItem) } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ErrorHandler.java b/src/main/java/com/datadog/api/client/v2/model/ErrorHandler.java index b39e6a8db26..7ae105b655e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ErrorHandler.java +++ b/src/main/java/com/datadog/api/client/v2/model/ErrorHandler.java @@ -6,15 +6,11 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; /** Used to handle errors in an action. */ @@ -89,52 +85,6 @@ public void setRetryStrategy(RetryStrategy retryStrategy) { } } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return ErrorHandler - */ - @JsonAnySetter - public ErrorHandler putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this ErrorHandler object is equal to o. */ @Override public boolean equals(Object o) { @@ -146,13 +96,12 @@ public boolean equals(Object o) { } ErrorHandler errorHandler = (ErrorHandler) o; return Objects.equals(this.fallbackStepName, errorHandler.fallbackStepName) - && Objects.equals(this.retryStrategy, errorHandler.retryStrategy) - && Objects.equals(this.additionalProperties, errorHandler.additionalProperties); + && Objects.equals(this.retryStrategy, errorHandler.retryStrategy); } @Override public int hashCode() { - return Objects.hash(fallbackStepName, retryStrategy, additionalProperties); + return Objects.hash(fallbackStepName, retryStrategy); } @Override @@ -161,9 +110,6 @@ public String toString() { sb.append("class ErrorHandler {\n"); sb.append(" fallbackStepName: ").append(toIndentedString(fallbackStepName)).append("\n"); sb.append(" retryStrategy: ").append(toIndentedString(retryStrategy)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/FormTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/FormTriggerWrapper.java index 6155c627807..3cc176d670c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/FormTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/FormTriggerWrapper.java @@ -81,7 +81,7 @@ public FormTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/GithubWebhookTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/GithubWebhookTriggerWrapper.java index 9cacf9da95a..ff80dfb7a2d 100644 --- a/src/main/java/com/datadog/api/client/v2/model/GithubWebhookTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/GithubWebhookTriggerWrapper.java @@ -87,7 +87,7 @@ public GithubWebhookTriggerWrapper addStartStepNamesItem(String startStepNamesIt } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/IncidentTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/IncidentTriggerWrapper.java index 709bea8c4f1..b799aa8bf5e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/IncidentTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/IncidentTriggerWrapper.java @@ -83,7 +83,7 @@ public IncidentTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/MonitorTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/MonitorTriggerWrapper.java index 954ebea9a48..97e8c9b5e8e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/MonitorTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/MonitorTriggerWrapper.java @@ -83,7 +83,7 @@ public MonitorTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/NotebookTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/NotebookTriggerWrapper.java index f54196db148..43e19ea3de3 100644 --- a/src/main/java/com/datadog/api/client/v2/model/NotebookTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/NotebookTriggerWrapper.java @@ -77,7 +77,7 @@ public NotebookTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/OnCallTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/OnCallTriggerWrapper.java index 4282cf48d53..c66b201654e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/OnCallTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/OnCallTriggerWrapper.java @@ -83,7 +83,7 @@ public OnCallTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/ReadinessGate.java b/src/main/java/com/datadog/api/client/v2/model/ReadinessGate.java index 39bb629919e..0f17387669c 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ReadinessGate.java +++ b/src/main/java/com/datadog/api/client/v2/model/ReadinessGate.java @@ -6,15 +6,11 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; /** Used to merge multiple branches into a single branch. */ @@ -60,52 +56,6 @@ public void setThresholdType(ReadinessGateThresholdType thresholdType) { this.thresholdType = thresholdType; } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return ReadinessGate - */ - @JsonAnySetter - public ReadinessGate putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this ReadinessGate object is equal to o. */ @Override public boolean equals(Object o) { @@ -116,13 +66,12 @@ public boolean equals(Object o) { return false; } ReadinessGate readinessGate = (ReadinessGate) o; - return Objects.equals(this.thresholdType, readinessGate.thresholdType) - && Objects.equals(this.additionalProperties, readinessGate.additionalProperties); + return Objects.equals(this.thresholdType, readinessGate.thresholdType); } @Override public int hashCode() { - return Objects.hash(thresholdType, additionalProperties); + return Objects.hash(thresholdType); } @Override @@ -130,9 +79,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ReadinessGate {\n"); sb.append(" thresholdType: ").append(toIndentedString(thresholdType)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RetryStrategy.java b/src/main/java/com/datadog/api/client/v2/model/RetryStrategy.java index 7dd08411292..08a07b9e995 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RetryStrategy.java +++ b/src/main/java/com/datadog/api/client/v2/model/RetryStrategy.java @@ -6,15 +6,11 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; /** The definition of RetryStrategy object. */ @@ -33,9 +29,12 @@ public RetryStrategy() {} @JsonCreator public RetryStrategy( - @JsonProperty(required = true, value = JSON_PROPERTY_KIND) RetryStrategyKind kind) { + @JsonProperty(required = true, value = JSON_PROPERTY_KIND) RetryStrategyKind kind, + @JsonProperty(required = true, value = JSON_PROPERTY_LINEAR) RetryStrategyLinear linear) { this.kind = kind; this.unparsed |= !kind.isValid(); + this.linear = linear; + this.unparsed |= linear.unparsed; } public RetryStrategy kind(RetryStrategyKind kind) { @@ -73,9 +72,8 @@ public RetryStrategy linear(RetryStrategyLinear linear) { * * @return linear */ - @jakarta.annotation.Nullable @JsonProperty(JSON_PROPERTY_LINEAR) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public RetryStrategyLinear getLinear() { return linear; } @@ -87,52 +85,6 @@ public void setLinear(RetryStrategyLinear linear) { } } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return RetryStrategy - */ - @JsonAnySetter - public RetryStrategy putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this RetryStrategy object is equal to o. */ @Override public boolean equals(Object o) { @@ -144,13 +96,12 @@ public boolean equals(Object o) { } RetryStrategy retryStrategy = (RetryStrategy) o; return Objects.equals(this.kind, retryStrategy.kind) - && Objects.equals(this.linear, retryStrategy.linear) - && Objects.equals(this.additionalProperties, retryStrategy.additionalProperties); + && Objects.equals(this.linear, retryStrategy.linear); } @Override public int hashCode() { - return Objects.hash(kind, linear, additionalProperties); + return Objects.hash(kind, linear); } @Override @@ -159,9 +110,6 @@ public String toString() { sb.append("class RetryStrategy {\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" linear: ").append(toIndentedString(linear)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/RetryStrategyLinear.java b/src/main/java/com/datadog/api/client/v2/model/RetryStrategyLinear.java index 82a12d1dd6c..4375eba1646 100644 --- a/src/main/java/com/datadog/api/client/v2/model/RetryStrategyLinear.java +++ b/src/main/java/com/datadog/api/client/v2/model/RetryStrategyLinear.java @@ -6,15 +6,11 @@ package com.datadog.api.client.v2.model; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import java.util.HashMap; -import java.util.Map; import java.util.Objects; /** The definition of RetryStrategyLinear object. */ @@ -30,14 +26,14 @@ public class RetryStrategyLinear { private String interval; public static final String JSON_PROPERTY_MAX_RETRIES = "maxRetries"; - private Double maxRetries; + private Integer maxRetries; public RetryStrategyLinear() {} @JsonCreator public RetryStrategyLinear( @JsonProperty(required = true, value = JSON_PROPERTY_INTERVAL) String interval, - @JsonProperty(required = true, value = JSON_PROPERTY_MAX_RETRIES) Double maxRetries) { + @JsonProperty(required = true, value = JSON_PROPERTY_MAX_RETRIES) Integer maxRetries) { this.interval = interval; this.maxRetries = maxRetries; } @@ -63,72 +59,26 @@ public void setInterval(String interval) { this.interval = interval; } - public RetryStrategyLinear maxRetries(Double maxRetries) { + public RetryStrategyLinear maxRetries(Integer maxRetries) { this.maxRetries = maxRetries; return this; } /** - * The RetryStrategyLinear maxRetries. + * The RetryStrategyLinear maxRetries. minimum: 0 maximum: 2147483647 * * @return maxRetries */ @JsonProperty(JSON_PROPERTY_MAX_RETRIES) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Double getMaxRetries() { + public Integer getMaxRetries() { return maxRetries; } - public void setMaxRetries(Double maxRetries) { + public void setMaxRetries(Integer maxRetries) { this.maxRetries = maxRetries; } - /** - * A container for additional, undeclared properties. This is a holder for any undeclared - * properties as specified with the 'additionalProperties' keyword in the OAS document. - */ - private Map additionalProperties; - - /** - * Set the additional (undeclared) property with the specified name and value. If the property - * does not already exist, create it otherwise replace it. - * - * @param key The arbitrary key to set - * @param value The associated value - * @return RetryStrategyLinear - */ - @JsonAnySetter - public RetryStrategyLinear putAdditionalProperty(String key, Object value) { - if (this.additionalProperties == null) { - this.additionalProperties = new HashMap(); - } - this.additionalProperties.put(key, value); - return this; - } - - /** - * Return the additional (undeclared) property. - * - * @return The additional properties - */ - @JsonAnyGetter - public Map getAdditionalProperties() { - return additionalProperties; - } - - /** - * Return the additional (undeclared) property with the specified name. - * - * @param key The arbitrary key to get - * @return The specific additional property for the given key - */ - public Object getAdditionalProperty(String key) { - if (this.additionalProperties == null) { - return null; - } - return this.additionalProperties.get(key); - } - /** Return true if this RetryStrategyLinear object is equal to o. */ @Override public boolean equals(Object o) { @@ -140,13 +90,12 @@ public boolean equals(Object o) { } RetryStrategyLinear retryStrategyLinear = (RetryStrategyLinear) o; return Objects.equals(this.interval, retryStrategyLinear.interval) - && Objects.equals(this.maxRetries, retryStrategyLinear.maxRetries) - && Objects.equals(this.additionalProperties, retryStrategyLinear.additionalProperties); + && Objects.equals(this.maxRetries, retryStrategyLinear.maxRetries); } @Override public int hashCode() { - return Objects.hash(interval, maxRetries, additionalProperties); + return Objects.hash(interval, maxRetries); } @Override @@ -155,9 +104,6 @@ public String toString() { sb.append("class RetryStrategyLinear {\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" maxRetries: ").append(toIndentedString(maxRetries)).append("\n"); - sb.append(" additionalProperties: ") - .append(toIndentedString(additionalProperties)) - .append("\n"); sb.append('}'); return sb.toString(); } diff --git a/src/main/java/com/datadog/api/client/v2/model/ScheduleTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/ScheduleTriggerWrapper.java index 8312784b531..5005521659e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ScheduleTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/ScheduleTriggerWrapper.java @@ -82,7 +82,7 @@ public ScheduleTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/SecurityTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/SecurityTriggerWrapper.java index f181bc2ccb2..6bcbaab7e46 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SecurityTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/SecurityTriggerWrapper.java @@ -83,7 +83,7 @@ public SecurityTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/SelfServiceTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/SelfServiceTriggerWrapper.java index 9cbbbb9fd68..adf94634bcc 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SelfServiceTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/SelfServiceTriggerWrapper.java @@ -77,7 +77,7 @@ public SelfServiceTriggerWrapper addStartStepNamesItem(String startStepNamesItem } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/SlackTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/SlackTriggerWrapper.java index d58b3894f05..2187fa0d2c7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SlackTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/SlackTriggerWrapper.java @@ -76,7 +76,7 @@ public SlackTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/SoftwareCatalogTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/SoftwareCatalogTriggerWrapper.java index 38621a3ed89..831fad4db64 100644 --- a/src/main/java/com/datadog/api/client/v2/model/SoftwareCatalogTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/SoftwareCatalogTriggerWrapper.java @@ -77,7 +77,7 @@ public SoftwareCatalogTriggerWrapper addStartStepNamesItem(String startStepNames } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ diff --git a/src/main/java/com/datadog/api/client/v2/model/Spec.java b/src/main/java/com/datadog/api/client/v2/model/Spec.java index b7195a7aa86..424e95f2fe7 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Spec.java +++ b/src/main/java/com/datadog/api/client/v2/model/Spec.java @@ -18,7 +18,7 @@ import java.util.Map; import java.util.Objects; -/** The spec defines what the workflow does. */ +/** A complete Workflow Automation definition, including its triggers, steps, and connections. */ @JsonPropertyOrder({ Spec.JSON_PROPERTY_ANNOTATIONS, Spec.JSON_PROPERTY_CONNECTION_ENVS, diff --git a/src/main/java/com/datadog/api/client/v2/model/Step.java b/src/main/java/com/datadog/api/client/v2/model/Step.java index 4f972b46c1c..12ff8ae5bf0 100644 --- a/src/main/java/com/datadog/api/client/v2/model/Step.java +++ b/src/main/java/com/datadog/api/client/v2/model/Step.java @@ -145,7 +145,8 @@ public Step display(StepDisplay display) { } /** - * The definition of StepDisplay object. + * The position of a step on the workflow canvas. Omit display from every step to use + * automatic layout, or provide it for every step to preserve a manual layout. * * @return display */ @@ -243,7 +244,7 @@ public Step addOutboundEdgesItem(OutboundEdge outboundEdgesItem) { } /** - * A list of subsequent actions to run. + * A list of subsequent actions to run. This list is empty for a terminal step. * * @return outboundEdges */ diff --git a/src/main/java/com/datadog/api/client/v2/model/StepDisplay.java b/src/main/java/com/datadog/api/client/v2/model/StepDisplay.java index 67bf5cd577b..bbb2defb442 100644 --- a/src/main/java/com/datadog/api/client/v2/model/StepDisplay.java +++ b/src/main/java/com/datadog/api/client/v2/model/StepDisplay.java @@ -16,7 +16,10 @@ import java.util.Map; import java.util.Objects; -/** The definition of StepDisplay object. */ +/** + * The position of a step on the workflow canvas. Omit display from every step to use + * automatic layout, or provide it for every step to preserve a manual layout. + */ @JsonPropertyOrder({StepDisplay.JSON_PROPERTY_BOUNDS}) @jakarta.annotation.Generated( value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") diff --git a/src/main/java/com/datadog/api/client/v2/model/WorkflowDataAttributes.java b/src/main/java/com/datadog/api/client/v2/model/WorkflowDataAttributes.java index 8eb3913e8ee..e5a6dfd73ec 100644 --- a/src/main/java/com/datadog/api/client/v2/model/WorkflowDataAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/WorkflowDataAttributes.java @@ -153,7 +153,7 @@ public WorkflowDataAttributes spec(Spec spec) { } /** - * The spec defines what the workflow does. + * A complete Workflow Automation definition, including its triggers, steps, and connections. * * @return spec */ diff --git a/src/main/java/com/datadog/api/client/v2/model/WorkflowDataUpdateAttributes.java b/src/main/java/com/datadog/api/client/v2/model/WorkflowDataUpdateAttributes.java index a806ec34fec..a9846a513a5 100644 --- a/src/main/java/com/datadog/api/client/v2/model/WorkflowDataUpdateAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/WorkflowDataUpdateAttributes.java @@ -142,7 +142,7 @@ public WorkflowDataUpdateAttributes spec(Spec spec) { } /** - * The spec defines what the workflow does. + * A complete Workflow Automation definition, including its triggers, steps, and connections. * * @return spec */ diff --git a/src/main/java/com/datadog/api/client/v2/model/WorkflowListItemAttributes.java b/src/main/java/com/datadog/api/client/v2/model/WorkflowListItemAttributes.java index 3901d504eb8..42879f4abd6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/WorkflowListItemAttributes.java +++ b/src/main/java/com/datadog/api/client/v2/model/WorkflowListItemAttributes.java @@ -145,7 +145,7 @@ public WorkflowListItemAttributes spec(Spec spec) { } /** - * The spec defines what the workflow does. + * A complete Workflow Automation definition, including its triggers, steps, and connections. * * @return spec */ diff --git a/src/main/java/com/datadog/api/client/v2/model/WorkflowTriggerWrapper.java b/src/main/java/com/datadog/api/client/v2/model/WorkflowTriggerWrapper.java index 563c23ac1f5..fd408d488e2 100644 --- a/src/main/java/com/datadog/api/client/v2/model/WorkflowTriggerWrapper.java +++ b/src/main/java/com/datadog/api/client/v2/model/WorkflowTriggerWrapper.java @@ -57,7 +57,7 @@ public WorkflowTriggerWrapper addStartStepNamesItem(String startStepNamesItem) { } /** - * A list of steps that run first after a trigger fires. + * Names of existing workflow steps that run first after a trigger fires. * * @return startStepNames */ @@ -78,7 +78,7 @@ public WorkflowTriggerWrapper workflowTrigger(Object workflowTrigger) { } /** - * Trigger a workflow from the Datadog UI. Only required if no other trigger exists. + * Trigger a workflow from the Datadog UI. When present, this must be the workflow's only trigger. * * @return workflowTrigger */