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 @@ -24,6 +24,10 @@ class TeamRoutingRulesRequestRule
# Specifies the list of actions to perform when the routing rule is matched.
attr_accessor :actions

# Specifies the unique identifier of an existing routing rule to update.
# If omitted, a new routing rule is created.
attr_accessor :id

# Identifies the policy to be applied when this routing rule matches.
attr_accessor :policy_id

Expand All @@ -43,6 +47,7 @@ class TeamRoutingRulesRequestRule
def self.attribute_map
{
:'actions' => :'actions',
:'id' => :'id',
:'policy_id' => :'policy_id',
:'query' => :'query',
:'time_restriction' => :'time_restriction',
Expand All @@ -55,6 +60,7 @@ def self.attribute_map
def self.openapi_types
{
:'actions' => :'Array<RoutingRuleAction>',
:'id' => :'String',
:'policy_id' => :'String',
:'query' => :'String',
:'time_restriction' => :'TimeRestrictions',
Expand Down Expand Up @@ -86,6 +92,10 @@ def initialize(attributes = {})
end
end

if attributes.key?(:'id')
self.id = attributes[:'id']
end

if attributes.key?(:'policy_id')
self.policy_id = attributes[:'policy_id']
end
Expand Down Expand Up @@ -130,6 +140,7 @@ def ==(o)
return true if self.equal?(o)
self.class == o.class &&
actions == o.actions &&
id == o.id &&
policy_id == o.policy_id &&
query == o.query &&
time_restriction == o.time_restriction &&
Expand All @@ -141,7 +152,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[actions, policy_id, query, time_restriction, urgency, additional_properties].hash
[actions, id, policy_id, query, time_restriction, urgency, additional_properties].hash
end
end
end
Loading