Skip to content
Merged
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
5 changes: 5 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -33,6 +34,9 @@ public class TeamRoutingRulesRequestRule {
public static final String JSON_PROPERTY_ACTIONS = "actions";
private List<RoutingRuleAction> 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;

Expand Down Expand Up @@ -85,6 +89,28 @@ public void setActions(List<RoutingRuleAction> 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;
Expand Down Expand Up @@ -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)
Expand All @@ -246,14 +273,16 @@ 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
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");
Expand Down
Loading