From 8e73158d82fdbbf5df5ca77b39c26fe2f7b438cf Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Thu, 24 Sep 2026 11:48:48 +0000 Subject: [PATCH] Regenerate client from commit 20014b8 of spec repo --- .generator/schemas/v2/openapi.yaml | 5 +++ .../v2/model/TeamRoutingRulesRequestRule.java | 31 ++++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4d2fffc0cf4..95ab4f83168 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -121575,6 +121575,11 @@ components: items: $ref: "#/components/schemas/RoutingRuleAction" type: array + id: + description: |- + Specifies the unique identifier of an existing routing rule to update. + If omitted, a new routing rule is created. + type: string policy_id: description: Identifies the policy to be applied when this routing rule matches. type: string diff --git a/src/main/java/com/datadog/api/client/v2/model/TeamRoutingRulesRequestRule.java b/src/main/java/com/datadog/api/client/v2/model/TeamRoutingRulesRequestRule.java index fa01b253695..50765d84c98 100644 --- a/src/main/java/com/datadog/api/client/v2/model/TeamRoutingRulesRequestRule.java +++ b/src/main/java/com/datadog/api/client/v2/model/TeamRoutingRulesRequestRule.java @@ -21,6 +21,7 @@ /** Defines an individual routing rule item that contains the rule data for the request. */ @JsonPropertyOrder({ TeamRoutingRulesRequestRule.JSON_PROPERTY_ACTIONS, + TeamRoutingRulesRequestRule.JSON_PROPERTY_ID, TeamRoutingRulesRequestRule.JSON_PROPERTY_POLICY_ID, TeamRoutingRulesRequestRule.JSON_PROPERTY_QUERY, TeamRoutingRulesRequestRule.JSON_PROPERTY_TIME_RESTRICTION, @@ -33,6 +34,9 @@ public class TeamRoutingRulesRequestRule { public static final String JSON_PROPERTY_ACTIONS = "actions"; private List actions = null; + public static final String JSON_PROPERTY_ID = "id"; + private String id; + public static final String JSON_PROPERTY_POLICY_ID = "policy_id"; private String policyId; @@ -85,6 +89,28 @@ public void setActions(List actions) { } } + public TeamRoutingRulesRequestRule id(String id) { + this.id = id; + return this; + } + + /** + * Specifies the unique identifier of an existing routing rule to update. If omitted, a new + * routing rule is created. + * + * @return id + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + public TeamRoutingRulesRequestRule policyId(String policyId) { this.policyId = policyId; return this; @@ -236,6 +262,7 @@ public boolean equals(Object o) { } TeamRoutingRulesRequestRule teamRoutingRulesRequestRule = (TeamRoutingRulesRequestRule) o; return Objects.equals(this.actions, teamRoutingRulesRequestRule.actions) + && Objects.equals(this.id, teamRoutingRulesRequestRule.id) && Objects.equals(this.policyId, teamRoutingRulesRequestRule.policyId) && Objects.equals(this.query, teamRoutingRulesRequestRule.query) && Objects.equals(this.timeRestriction, teamRoutingRulesRequestRule.timeRestriction) @@ -246,7 +273,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(actions, policyId, query, timeRestriction, urgency, additionalProperties); + return Objects.hash( + actions, id, policyId, query, timeRestriction, urgency, additionalProperties); } @Override @@ -254,6 +282,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TeamRoutingRulesRequestRule {\n"); sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" policyId: ").append(toIndentedString(policyId)).append("\n"); sb.append(" query: ").append(toIndentedString(query)).append("\n"); sb.append(" timeRestriction: ").append(toIndentedString(timeRestriction)).append("\n");