Skip to content

Commit 85d055a

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b76ec20 of spec repo
1 parent 8ca27b2 commit 85d055a

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30806,6 +30806,9 @@ components:
3080630806
properties:
3080730807
rateLimit:
3080830808
$ref: '#/components/schemas/TriggerRateLimit'
30809+
version:
30810+
description: Version of the incident trigger.
30811+
type: string
3080930812
type: object
3081030813
IncidentTriggerWrapper:
3081130814
description: Schema for an Incident-based trigger.

src/main/java/com/datadog/api/client/v2/model/IncidentTrigger.java

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,20 @@
2020
* Trigger a workflow from an Incident. For automatic triggering a handle must be configured and the
2121
* workflow must be published.
2222
*/
23-
@JsonPropertyOrder({IncidentTrigger.JSON_PROPERTY_RATE_LIMIT})
23+
@JsonPropertyOrder({
24+
IncidentTrigger.JSON_PROPERTY_RATE_LIMIT,
25+
IncidentTrigger.JSON_PROPERTY_VERSION
26+
})
2427
@jakarta.annotation.Generated(
2528
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
2629
public class IncidentTrigger {
2730
@JsonIgnore public boolean unparsed = false;
2831
public static final String JSON_PROPERTY_RATE_LIMIT = "rateLimit";
2932
private TriggerRateLimit rateLimit;
3033

34+
public static final String JSON_PROPERTY_VERSION = "version";
35+
private String version;
36+
3137
public IncidentTrigger rateLimit(TriggerRateLimit rateLimit) {
3238
this.rateLimit = rateLimit;
3339
this.unparsed |= rateLimit.unparsed;
@@ -50,6 +56,27 @@ public void setRateLimit(TriggerRateLimit rateLimit) {
5056
this.rateLimit = rateLimit;
5157
}
5258

59+
public IncidentTrigger version(String version) {
60+
this.version = version;
61+
return this;
62+
}
63+
64+
/**
65+
* Version of the incident trigger.
66+
*
67+
* @return version
68+
*/
69+
@jakarta.annotation.Nullable
70+
@JsonProperty(JSON_PROPERTY_VERSION)
71+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
72+
public String getVersion() {
73+
return version;
74+
}
75+
76+
public void setVersion(String version) {
77+
this.version = version;
78+
}
79+
5380
/**
5481
* A container for additional, undeclared properties. This is a holder for any undeclared
5582
* properties as specified with the 'additionalProperties' keyword in the OAS document.
@@ -107,19 +134,21 @@ public boolean equals(Object o) {
107134
}
108135
IncidentTrigger incidentTrigger = (IncidentTrigger) o;
109136
return Objects.equals(this.rateLimit, incidentTrigger.rateLimit)
137+
&& Objects.equals(this.version, incidentTrigger.version)
110138
&& Objects.equals(this.additionalProperties, incidentTrigger.additionalProperties);
111139
}
112140

113141
@Override
114142
public int hashCode() {
115-
return Objects.hash(rateLimit, additionalProperties);
143+
return Objects.hash(rateLimit, version, additionalProperties);
116144
}
117145

118146
@Override
119147
public String toString() {
120148
StringBuilder sb = new StringBuilder();
121149
sb.append("class IncidentTrigger {\n");
122150
sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n");
151+
sb.append(" version: ").append(toIndentedString(version)).append("\n");
123152
sb.append(" additionalProperties: ")
124153
.append(toIndentedString(additionalProperties))
125154
.append("\n");

0 commit comments

Comments
 (0)