Skip to content

Commit e17eaa0

Browse files
committed
fix(specs): multiple clients fixes (generated)
algolia/api-clients-automation#3971 Co-authored-by: algolia-bot <[email protected]>
1 parent 42b593f commit e17eaa0

File tree

7 files changed

+41
-6
lines changed

7 files changed

+41
-6
lines changed

lib/algolia/models/abtesting/ab_test_configuration.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def initialize(attributes = {})
6868

6969
if attributes.key?(:outliers)
7070
self.outliers = attributes[:outliers]
71-
else
72-
self.outliers = nil
7371
end
7472

7573
if attributes.key?(:empty_search)

lib/algolia/models/abtesting/variant.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,6 @@ def initialize(attributes = {})
201201

202202
if attributes.key?(:description)
203203
self.description = attributes[:description]
204-
else
205-
self.description = nil
206204
end
207205

208206
if attributes.key?(:estimated_sample_size)

lib/algolia/models/recommend/recommendations_results.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class RecommendationsResults
2020

2121
attr_accessor :exhaustive
2222

23+
# Rules applied to the query.
24+
attr_accessor :applied_rules
25+
2326
# See the `facetsCount` field of the `exhaustive` object in the response.
2427
attr_accessor :exhaustive_facets_count
2528

@@ -100,6 +103,7 @@ def self.attribute_map
100103
:around_lat_lng => :aroundLatLng,
101104
:automatic_radius => :automaticRadius,
102105
:exhaustive => :exhaustive,
106+
:applied_rules => :appliedRules,
103107
:exhaustive_facets_count => :exhaustiveFacetsCount,
104108
:exhaustive_nb_hits => :exhaustiveNbHits,
105109
:exhaustive_typo => :exhaustiveTypo,
@@ -141,6 +145,7 @@ def self.types_mapping
141145
:around_lat_lng => :"String",
142146
:automatic_radius => :"String",
143147
:exhaustive => :"Exhaustive",
148+
:applied_rules => :"Array<Object>",
144149
:exhaustive_facets_count => :"Boolean",
145150
:exhaustive_nb_hits => :"Boolean",
146151
:exhaustive_typo => :"Boolean",
@@ -228,6 +233,12 @@ def initialize(attributes = {})
228233
self.exhaustive = attributes[:exhaustive]
229234
end
230235

236+
if attributes.key?(:applied_rules)
237+
if (value = attributes[:applied_rules]).is_a?(Array)
238+
self.applied_rules = value
239+
end
240+
end
241+
231242
if attributes.key?(:exhaustive_facets_count)
232243
self.exhaustive_facets_count = attributes[:exhaustive_facets_count]
233244
end
@@ -349,6 +360,7 @@ def ==(other)
349360
around_lat_lng == other.around_lat_lng &&
350361
automatic_radius == other.automatic_radius &&
351362
exhaustive == other.exhaustive &&
363+
applied_rules == other.applied_rules &&
352364
exhaustive_facets_count == other.exhaustive_facets_count &&
353365
exhaustive_nb_hits == other.exhaustive_nb_hits &&
354366
exhaustive_typo == other.exhaustive_typo &&
@@ -391,6 +403,7 @@ def hash
391403
around_lat_lng,
392404
automatic_radius,
393405
exhaustive,
406+
applied_rules,
394407
exhaustive_facets_count,
395408
exhaustive_nb_hits,
396409
exhaustive_typo,

lib/algolia/models/search/browse_response.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class BrowseResponse
2020

2121
attr_accessor :exhaustive
2222

23+
# Rules applied to the query.
24+
attr_accessor :applied_rules
25+
2326
# See the `facetsCount` field of the `exhaustive` object in the response.
2427
attr_accessor :exhaustive_facets_count
2528

@@ -110,6 +113,7 @@ def self.attribute_map
110113
:around_lat_lng => :aroundLatLng,
111114
:automatic_radius => :automaticRadius,
112115
:exhaustive => :exhaustive,
116+
:applied_rules => :appliedRules,
113117
:exhaustive_facets_count => :exhaustiveFacetsCount,
114118
:exhaustive_nb_hits => :exhaustiveNbHits,
115119
:exhaustive_typo => :exhaustiveTypo,
@@ -154,6 +158,7 @@ def self.types_mapping
154158
:around_lat_lng => :"String",
155159
:automatic_radius => :"String",
156160
:exhaustive => :"Exhaustive",
161+
:applied_rules => :"Array<Object>",
157162
:exhaustive_facets_count => :"Boolean",
158163
:exhaustive_nb_hits => :"Boolean",
159164
:exhaustive_typo => :"Boolean",
@@ -245,6 +250,12 @@ def initialize(attributes = {})
245250
self.exhaustive = attributes[:exhaustive]
246251
end
247252

253+
if attributes.key?(:applied_rules)
254+
if (value = attributes[:applied_rules]).is_a?(Array)
255+
self.applied_rules = value
256+
end
257+
end
258+
248259
if attributes.key?(:exhaustive_facets_count)
249260
self.exhaustive_facets_count = attributes[:exhaustive_facets_count]
250261
end
@@ -382,6 +393,7 @@ def ==(other)
382393
around_lat_lng == other.around_lat_lng &&
383394
automatic_radius == other.automatic_radius &&
384395
exhaustive == other.exhaustive &&
396+
applied_rules == other.applied_rules &&
385397
exhaustive_facets_count == other.exhaustive_facets_count &&
386398
exhaustive_nb_hits == other.exhaustive_nb_hits &&
387399
exhaustive_typo == other.exhaustive_typo &&
@@ -427,6 +439,7 @@ def hash
427439
around_lat_lng,
428440
automatic_radius,
429441
exhaustive,
442+
applied_rules,
430443
exhaustive_facets_count,
431444
exhaustive_nb_hits,
432445
exhaustive_typo,

lib/algolia/models/search/get_api_key_response.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def initialize(attributes = {})
113113

114114
if attributes.key?(:value)
115115
self.value = attributes[:value]
116+
else
117+
self.value = nil
116118
end
117119

118120
if attributes.key?(:created_at)

lib/algolia/models/search/get_objects_response.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ def initialize(attributes = {})
6262
if (value = attributes[:results]).is_a?(Array)
6363
self.results = value
6464
end
65-
else
66-
self.results = nil
6765
end
6866
end
6967

lib/algolia/models/search/search_response.rb

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class SearchResponse
2020

2121
attr_accessor :exhaustive
2222

23+
# Rules applied to the query.
24+
attr_accessor :applied_rules
25+
2326
# See the `facetsCount` field of the `exhaustive` object in the response.
2427
attr_accessor :exhaustive_facets_count
2528

@@ -109,6 +112,7 @@ def self.attribute_map
109112
:around_lat_lng => :aroundLatLng,
110113
:automatic_radius => :automaticRadius,
111114
:exhaustive => :exhaustive,
115+
:applied_rules => :appliedRules,
112116
:exhaustive_facets_count => :exhaustiveFacetsCount,
113117
:exhaustive_nb_hits => :exhaustiveNbHits,
114118
:exhaustive_typo => :exhaustiveTypo,
@@ -152,6 +156,7 @@ def self.types_mapping
152156
:around_lat_lng => :"String",
153157
:automatic_radius => :"String",
154158
:exhaustive => :"Exhaustive",
159+
:applied_rules => :"Array<Object>",
155160
:exhaustive_facets_count => :"Boolean",
156161
:exhaustive_nb_hits => :"Boolean",
157162
:exhaustive_typo => :"Boolean",
@@ -228,6 +233,12 @@ def initialize(attributes = {})
228233
self.exhaustive = attributes[:exhaustive]
229234
end
230235

236+
if attributes.key?(:applied_rules)
237+
if (value = attributes[:applied_rules]).is_a?(Array)
238+
self.applied_rules = value
239+
end
240+
end
241+
231242
if attributes.key?(:exhaustive_facets_count)
232243
self.exhaustive_facets_count = attributes[:exhaustive_facets_count]
233244
end
@@ -365,6 +376,7 @@ def ==(other)
365376
around_lat_lng == other.around_lat_lng &&
366377
automatic_radius == other.automatic_radius &&
367378
exhaustive == other.exhaustive &&
379+
applied_rules == other.applied_rules &&
368380
exhaustive_facets_count == other.exhaustive_facets_count &&
369381
exhaustive_nb_hits == other.exhaustive_nb_hits &&
370382
exhaustive_typo == other.exhaustive_typo &&
@@ -409,6 +421,7 @@ def hash
409421
around_lat_lng,
410422
automatic_radius,
411423
exhaustive,
424+
applied_rules,
412425
exhaustive_facets_count,
413426
exhaustive_nb_hits,
414427
exhaustive_typo,

0 commit comments

Comments
 (0)