diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 4d2fffc0cf47..95ab4f831686 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/lib/datadog_api_client/v2/models/team_routing_rules_request_rule.rb b/lib/datadog_api_client/v2/models/team_routing_rules_request_rule.rb index 96634dd2f255..7078677f954a 100644 --- a/lib/datadog_api_client/v2/models/team_routing_rules_request_rule.rb +++ b/lib/datadog_api_client/v2/models/team_routing_rules_request_rule.rb @@ -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 @@ -43,6 +47,7 @@ class TeamRoutingRulesRequestRule def self.attribute_map { :'actions' => :'actions', + :'id' => :'id', :'policy_id' => :'policy_id', :'query' => :'query', :'time_restriction' => :'time_restriction', @@ -55,6 +60,7 @@ def self.attribute_map def self.openapi_types { :'actions' => :'Array', + :'id' => :'String', :'policy_id' => :'String', :'query' => :'String', :'time_restriction' => :'TimeRestrictions', @@ -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 @@ -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 && @@ -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