diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 698ab6060c1d..6b561bc69c2d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -37230,6 +37230,15 @@ components: description: Search query following the event search syntax. example: "service:orders-* AND @language:go" type: string + states: + description: Filter issues by state. Multiple values are combined with OR logic. + example: + - "OPEN" + - "ACKNOWLEDGED" + items: + $ref: "#/components/schemas/IssueState" + maxItems: 20 + type: array team_ids: description: Filter issues by team IDs. Multiple values are combined with OR logic. example: diff --git a/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb b/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb index 5c05851eab51..ba0fc098297e 100644 --- a/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb +++ b/lib/datadog_api_client/v2/models/issues_search_request_data_attributes.rb @@ -36,6 +36,9 @@ class IssuesSearchRequestDataAttributes # Search query following the event search syntax. attr_reader :query + # Filter issues by state. Multiple values are combined with OR logic. + attr_reader :states + # Filter issues by team IDs. Multiple values are combined with OR logic. attr_reader :team_ids @@ -56,6 +59,7 @@ def self.attribute_map :'order_by' => :'order_by', :'persona' => :'persona', :'query' => :'query', + :'states' => :'states', :'team_ids' => :'team_ids', :'to' => :'to', :'track' => :'track' @@ -71,6 +75,7 @@ def self.openapi_types :'order_by' => :'IssuesSearchRequestDataAttributesOrderBy', :'persona' => :'IssuesSearchRequestDataAttributesPersona', :'query' => :'String', + :'states' => :'Array', :'team_ids' => :'Array', :'to' => :'Integer', :'track' => :'IssuesSearchRequestDataAttributesTrack' @@ -117,6 +122,12 @@ def initialize(attributes = {}) self.query = attributes[:'query'] end + if attributes.key?(:'states') + if (value = attributes[:'states']).is_a?(Array) + self.states = value + end + end + if attributes.key?(:'team_ids') if (value = attributes[:'team_ids']).is_a?(Array) self.team_ids = value @@ -139,6 +150,7 @@ def valid? return false if !@assignee_ids.nil? && @assignee_ids.length > 50 return false if @from.nil? return false if @query.nil? + return false if !@states.nil? && @states.length > 20 return false if !@team_ids.nil? && @team_ids.length > 50 return false if @to.nil? true @@ -174,6 +186,16 @@ def query=(query) @query = query end + # Custom attribute writer method with validation + # @param states [Object] Object to be assigned + # @!visibility private + def states=(states) + if !states.nil? && states.length > 20 + fail ArgumentError, 'invalid value for "states", number of items must be less than or equal to 20.' + end + @states = states + end + # Custom attribute writer method with validation # @param team_ids [Object] Object to be assigned # @!visibility private @@ -225,6 +247,7 @@ def ==(o) order_by == o.order_by && persona == o.persona && query == o.query && + states == o.states && team_ids == o.team_ids && to == o.to && track == o.track && @@ -235,7 +258,7 @@ def ==(o) # @return [Integer] Hash code # @!visibility private def hash - [assignee_ids, from, order_by, persona, query, team_ids, to, track, additional_properties].hash + [assignee_ids, from, order_by, persona, query, states, team_ids, to, track, additional_properties].hash end end end