Skip to content

Commit

Permalink
feat(specs): add (optional) _automaticInsights to search result (gene…
Browse files Browse the repository at this point in the history
…rated)

algolia/api-clients-automation#3688

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Raed <[email protected]>
  • Loading branch information
algolia-bot and raed667 committed Sep 11, 2024
1 parent 2f3dafd commit 611b37e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/algolia/models/recommend/recommendations_results.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ class RecommendationsResults
# Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
attr_accessor :query_id

# Whether automatic events collection is enabled for the application.
attr_accessor :_automatic_insights

# Page of search results to retrieve.
attr_accessor :page

Expand Down Expand Up @@ -116,6 +119,7 @@ def self.attribute_map
:server_used => :serverUsed,
:user_data => :userData,
:query_id => :queryID,
:_automatic_insights => :_automaticInsights,
:page => :page,
:nb_hits => :nbHits,
:nb_pages => :nbPages,
Expand Down Expand Up @@ -156,6 +160,7 @@ def self.types_mapping
:server_used => :"String",
:user_data => :"Object",
:query_id => :"String",
:_automatic_insights => :"Boolean",
:page => :"Integer",
:nb_hits => :"Integer",
:nb_pages => :"Integer",
Expand Down Expand Up @@ -305,6 +310,10 @@ def initialize(attributes = {})
self.query_id = attributes[:query_id]
end

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

if attributes.key?(:page)
self.page = attributes[:page]
else
Expand Down Expand Up @@ -428,6 +437,7 @@ def ==(other)
server_used == other.server_used &&
user_data == other.user_data &&
query_id == other.query_id &&
_automatic_insights == other._automatic_insights &&
page == other.page &&
nb_hits == other.nb_hits &&
nb_pages == other.nb_pages &&
Expand Down Expand Up @@ -469,6 +479,7 @@ def hash
server_used,
user_data,
query_id,
_automatic_insights,
page,
nb_hits,
nb_pages,
Expand Down
11 changes: 11 additions & 0 deletions lib/algolia/models/search/browse_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ class BrowseResponse
# Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
attr_accessor :query_id

# Whether automatic events collection is enabled for the application.
attr_accessor :_automatic_insights

# Page of search results to retrieve.
attr_accessor :page

Expand Down Expand Up @@ -126,6 +129,7 @@ def self.attribute_map
:server_used => :serverUsed,
:user_data => :userData,
:query_id => :queryID,
:_automatic_insights => :_automaticInsights,
:page => :page,
:nb_hits => :nbHits,
:nb_pages => :nbPages,
Expand Down Expand Up @@ -169,6 +173,7 @@ def self.types_mapping
:server_used => :"String",
:user_data => :"Object",
:query_id => :"String",
:_automatic_insights => :"Boolean",
:page => :"Integer",
:nb_hits => :"Integer",
:nb_pages => :"Integer",
Expand Down Expand Up @@ -322,6 +327,10 @@ def initialize(attributes = {})
self.query_id = attributes[:query_id]
end

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

if attributes.key?(:page)
self.page = attributes[:page]
end
Expand Down Expand Up @@ -453,6 +462,7 @@ def ==(other)
server_used == other.server_used &&
user_data == other.user_data &&
query_id == other.query_id &&
_automatic_insights == other._automatic_insights &&
page == other.page &&
nb_hits == other.nb_hits &&
nb_pages == other.nb_pages &&
Expand Down Expand Up @@ -497,6 +507,7 @@ def hash
server_used,
user_data,
query_id,
_automatic_insights,
page,
nb_hits,
nb_pages,
Expand Down
11 changes: 11 additions & 0 deletions lib/algolia/models/search/search_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ class SearchResponse
# Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
attr_accessor :query_id

# Whether automatic events collection is enabled for the application.
attr_accessor :_automatic_insights

# Page of search results to retrieve.
attr_accessor :page

Expand Down Expand Up @@ -125,6 +128,7 @@ def self.attribute_map
:server_used => :serverUsed,
:user_data => :userData,
:query_id => :queryID,
:_automatic_insights => :_automaticInsights,
:page => :page,
:nb_hits => :nbHits,
:nb_pages => :nbPages,
Expand Down Expand Up @@ -167,6 +171,7 @@ def self.types_mapping
:server_used => :"String",
:user_data => :"Object",
:query_id => :"String",
:_automatic_insights => :"Boolean",
:page => :"Integer",
:nb_hits => :"Integer",
:nb_pages => :"Integer",
Expand Down Expand Up @@ -305,6 +310,10 @@ def initialize(attributes = {})
self.query_id = attributes[:query_id]
end

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

if attributes.key?(:page)
self.page = attributes[:page]
else
Expand Down Expand Up @@ -444,6 +453,7 @@ def ==(other)
server_used == other.server_used &&
user_data == other.user_data &&
query_id == other.query_id &&
_automatic_insights == other._automatic_insights &&
page == other.page &&
nb_hits == other.nb_hits &&
nb_pages == other.nb_pages &&
Expand Down Expand Up @@ -487,6 +497,7 @@ def hash
server_used,
user_data,
query_id,
_automatic_insights,
page,
nb_hits,
nb_pages,
Expand Down

0 comments on commit 611b37e

Please sign in to comment.