Skip to content
Open
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
3 changes: 3 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30806,6 +30806,9 @@ components:
properties:
rateLimit:
$ref: '#/components/schemas/TriggerRateLimit'
version:
description: Version of the incident trigger.
type: string
type: object
IncidentTriggerWrapper:
description: Schema for an Incident-based trigger.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,20 @@
* Trigger a workflow from an Incident. For automatic triggering a handle must be configured and the
* workflow must be published.
*/
@JsonPropertyOrder({IncidentTrigger.JSON_PROPERTY_RATE_LIMIT})
@JsonPropertyOrder({
IncidentTrigger.JSON_PROPERTY_RATE_LIMIT,
IncidentTrigger.JSON_PROPERTY_VERSION
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class IncidentTrigger {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_RATE_LIMIT = "rateLimit";
private TriggerRateLimit rateLimit;

public static final String JSON_PROPERTY_VERSION = "version";
private String version;

public IncidentTrigger rateLimit(TriggerRateLimit rateLimit) {
this.rateLimit = rateLimit;
this.unparsed |= rateLimit.unparsed;
Expand All @@ -50,6 +56,27 @@ public void setRateLimit(TriggerRateLimit rateLimit) {
this.rateLimit = rateLimit;
}

public IncidentTrigger version(String version) {
this.version = version;
return this;
}

/**
* Version of the incident trigger.
*
* @return version
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_VERSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getVersion() {
return version;
}

public void setVersion(String version) {
this.version = version;
}

/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
Expand Down Expand Up @@ -107,19 +134,21 @@ public boolean equals(Object o) {
}
IncidentTrigger incidentTrigger = (IncidentTrigger) o;
return Objects.equals(this.rateLimit, incidentTrigger.rateLimit)
&& Objects.equals(this.version, incidentTrigger.version)
&& Objects.equals(this.additionalProperties, incidentTrigger.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(rateLimit, additionalProperties);
return Objects.hash(rateLimit, version, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class IncidentTrigger {\n");
sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.append("\n");
Expand Down
Loading