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
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53833,6 +53833,10 @@ components:
OnCallTrigger:
description: "Trigger a workflow from an On-Call Page or On-Call Handover. For automatic triggering a handle must be configured and the workflow must be published."
properties:
handle:
description: "The handle used to reference this trigger from On-Call. Required for automatic triggering."
example: ""
type: string
rateLimit:
$ref: "#/components/schemas/TriggerRateLimit"
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,38 @@
* Trigger a workflow from an On-Call Page or On-Call Handover. For automatic triggering a handle
* must be configured and the workflow must be published.
*/
@JsonPropertyOrder({OnCallTrigger.JSON_PROPERTY_RATE_LIMIT})
@JsonPropertyOrder({OnCallTrigger.JSON_PROPERTY_HANDLE, OnCallTrigger.JSON_PROPERTY_RATE_LIMIT})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class OnCallTrigger {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_HANDLE = "handle";
private String handle;

public static final String JSON_PROPERTY_RATE_LIMIT = "rateLimit";
private TriggerRateLimit rateLimit;

public OnCallTrigger handle(String handle) {
this.handle = handle;
return this;
}

/**
* The handle used to reference this trigger from On-Call. Required for automatic triggering.
*
* @return handle
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_HANDLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getHandle() {
return handle;
}

public void setHandle(String handle) {
this.handle = handle;
}

public OnCallTrigger rateLimit(TriggerRateLimit rateLimit) {
this.rateLimit = rateLimit;
this.unparsed |= rateLimit.unparsed;
Expand Down Expand Up @@ -106,19 +130,21 @@ public boolean equals(Object o) {
return false;
}
OnCallTrigger onCallTrigger = (OnCallTrigger) o;
return Objects.equals(this.rateLimit, onCallTrigger.rateLimit)
return Objects.equals(this.handle, onCallTrigger.handle)
&& Objects.equals(this.rateLimit, onCallTrigger.rateLimit)
&& Objects.equals(this.additionalProperties, onCallTrigger.additionalProperties);
}

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

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