Skip to content

Commit 611b37e

Browse files
algolia-botraed667
andcommitted
feat(specs): add (optional) _automaticInsights to search result (generated)
algolia/api-clients-automation#3688 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Raed <[email protected]>
1 parent 2f3dafd commit 611b37e

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

lib/algolia/models/recommend/recommendations_results.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ class RecommendationsResults
7575
# Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
7676
attr_accessor :query_id
7777

78+
# Whether automatic events collection is enabled for the application.
79+
attr_accessor :_automatic_insights
80+
7881
# Page of search results to retrieve.
7982
attr_accessor :page
8083

@@ -116,6 +119,7 @@ def self.attribute_map
116119
:server_used => :serverUsed,
117120
:user_data => :userData,
118121
:query_id => :queryID,
122+
:_automatic_insights => :_automaticInsights,
119123
:page => :page,
120124
:nb_hits => :nbHits,
121125
:nb_pages => :nbPages,
@@ -156,6 +160,7 @@ def self.types_mapping
156160
:server_used => :"String",
157161
:user_data => :"Object",
158162
:query_id => :"String",
163+
:_automatic_insights => :"Boolean",
159164
:page => :"Integer",
160165
:nb_hits => :"Integer",
161166
:nb_pages => :"Integer",
@@ -305,6 +310,10 @@ def initialize(attributes = {})
305310
self.query_id = attributes[:query_id]
306311
end
307312

313+
if attributes.key?(:_automatic_insights)
314+
self._automatic_insights = attributes[:_automatic_insights]
315+
end
316+
308317
if attributes.key?(:page)
309318
self.page = attributes[:page]
310319
else
@@ -428,6 +437,7 @@ def ==(other)
428437
server_used == other.server_used &&
429438
user_data == other.user_data &&
430439
query_id == other.query_id &&
440+
_automatic_insights == other._automatic_insights &&
431441
page == other.page &&
432442
nb_hits == other.nb_hits &&
433443
nb_pages == other.nb_pages &&
@@ -469,6 +479,7 @@ def hash
469479
server_used,
470480
user_data,
471481
query_id,
482+
_automatic_insights,
472483
page,
473484
nb_hits,
474485
nb_pages,

lib/algolia/models/search/browse_response.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ class BrowseResponse
7575
# Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
7676
attr_accessor :query_id
7777

78+
# Whether automatic events collection is enabled for the application.
79+
attr_accessor :_automatic_insights
80+
7881
# Page of search results to retrieve.
7982
attr_accessor :page
8083

@@ -126,6 +129,7 @@ def self.attribute_map
126129
:server_used => :serverUsed,
127130
:user_data => :userData,
128131
:query_id => :queryID,
132+
:_automatic_insights => :_automaticInsights,
129133
:page => :page,
130134
:nb_hits => :nbHits,
131135
:nb_pages => :nbPages,
@@ -169,6 +173,7 @@ def self.types_mapping
169173
:server_used => :"String",
170174
:user_data => :"Object",
171175
:query_id => :"String",
176+
:_automatic_insights => :"Boolean",
172177
:page => :"Integer",
173178
:nb_hits => :"Integer",
174179
:nb_pages => :"Integer",
@@ -322,6 +327,10 @@ def initialize(attributes = {})
322327
self.query_id = attributes[:query_id]
323328
end
324329

330+
if attributes.key?(:_automatic_insights)
331+
self._automatic_insights = attributes[:_automatic_insights]
332+
end
333+
325334
if attributes.key?(:page)
326335
self.page = attributes[:page]
327336
end
@@ -453,6 +462,7 @@ def ==(other)
453462
server_used == other.server_used &&
454463
user_data == other.user_data &&
455464
query_id == other.query_id &&
465+
_automatic_insights == other._automatic_insights &&
456466
page == other.page &&
457467
nb_hits == other.nb_hits &&
458468
nb_pages == other.nb_pages &&
@@ -497,6 +507,7 @@ def hash
497507
server_used,
498508
user_data,
499509
query_id,
510+
_automatic_insights,
500511
page,
501512
nb_hits,
502513
nb_pages,

lib/algolia/models/search/search_response.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ class SearchResponse
7575
# Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
7676
attr_accessor :query_id
7777

78+
# Whether automatic events collection is enabled for the application.
79+
attr_accessor :_automatic_insights
80+
7881
# Page of search results to retrieve.
7982
attr_accessor :page
8083

@@ -125,6 +128,7 @@ def self.attribute_map
125128
:server_used => :serverUsed,
126129
:user_data => :userData,
127130
:query_id => :queryID,
131+
:_automatic_insights => :_automaticInsights,
128132
:page => :page,
129133
:nb_hits => :nbHits,
130134
:nb_pages => :nbPages,
@@ -167,6 +171,7 @@ def self.types_mapping
167171
:server_used => :"String",
168172
:user_data => :"Object",
169173
:query_id => :"String",
174+
:_automatic_insights => :"Boolean",
170175
:page => :"Integer",
171176
:nb_hits => :"Integer",
172177
:nb_pages => :"Integer",
@@ -305,6 +310,10 @@ def initialize(attributes = {})
305310
self.query_id = attributes[:query_id]
306311
end
307312

313+
if attributes.key?(:_automatic_insights)
314+
self._automatic_insights = attributes[:_automatic_insights]
315+
end
316+
308317
if attributes.key?(:page)
309318
self.page = attributes[:page]
310319
else
@@ -444,6 +453,7 @@ def ==(other)
444453
server_used == other.server_used &&
445454
user_data == other.user_data &&
446455
query_id == other.query_id &&
456+
_automatic_insights == other._automatic_insights &&
447457
page == other.page &&
448458
nb_hits == other.nb_hits &&
449459
nb_pages == other.nb_pages &&
@@ -487,6 +497,7 @@ def hash
487497
server_used,
488498
user_data,
489499
query_id,
500+
_automatic_insights,
490501
page,
491502
nb_hits,
492503
nb_pages,

0 commit comments

Comments
 (0)