Skip to content

Commit

Permalink
fix(specs): multiple clients fixes (generated)
Browse files Browse the repository at this point in the history
  • Loading branch information
algolia-bot committed Oct 16, 2024
1 parent 42b593f commit e17eaa0
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 6 deletions.
2 changes: 0 additions & 2 deletions lib/algolia/models/abtesting/ab_test_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ def initialize(attributes = {})

if attributes.key?(:outliers)
self.outliers = attributes[:outliers]
else
self.outliers = nil
end

if attributes.key?(:empty_search)
Expand Down
2 changes: 0 additions & 2 deletions lib/algolia/models/abtesting/variant.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,6 @@ def initialize(attributes = {})

if attributes.key?(:description)
self.description = attributes[:description]
else
self.description = nil
end

if attributes.key?(:estimated_sample_size)
Expand Down
13 changes: 13 additions & 0 deletions lib/algolia/models/recommend/recommendations_results.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class RecommendationsResults

attr_accessor :exhaustive

# Rules applied to the query.
attr_accessor :applied_rules

# See the `facetsCount` field of the `exhaustive` object in the response.
attr_accessor :exhaustive_facets_count

Expand Down Expand Up @@ -100,6 +103,7 @@ def self.attribute_map
:around_lat_lng => :aroundLatLng,
:automatic_radius => :automaticRadius,
:exhaustive => :exhaustive,
:applied_rules => :appliedRules,
:exhaustive_facets_count => :exhaustiveFacetsCount,
:exhaustive_nb_hits => :exhaustiveNbHits,
:exhaustive_typo => :exhaustiveTypo,
Expand Down Expand Up @@ -141,6 +145,7 @@ def self.types_mapping
:around_lat_lng => :"String",
:automatic_radius => :"String",
:exhaustive => :"Exhaustive",
:applied_rules => :"Array<Object>",
:exhaustive_facets_count => :"Boolean",
:exhaustive_nb_hits => :"Boolean",
:exhaustive_typo => :"Boolean",
Expand Down Expand Up @@ -228,6 +233,12 @@ def initialize(attributes = {})
self.exhaustive = attributes[:exhaustive]
end

if attributes.key?(:applied_rules)
if (value = attributes[:applied_rules]).is_a?(Array)
self.applied_rules = value
end
end

if attributes.key?(:exhaustive_facets_count)
self.exhaustive_facets_count = attributes[:exhaustive_facets_count]
end
Expand Down Expand Up @@ -349,6 +360,7 @@ def ==(other)
around_lat_lng == other.around_lat_lng &&
automatic_radius == other.automatic_radius &&
exhaustive == other.exhaustive &&
applied_rules == other.applied_rules &&
exhaustive_facets_count == other.exhaustive_facets_count &&
exhaustive_nb_hits == other.exhaustive_nb_hits &&
exhaustive_typo == other.exhaustive_typo &&
Expand Down Expand Up @@ -391,6 +403,7 @@ def hash
around_lat_lng,
automatic_radius,
exhaustive,
applied_rules,
exhaustive_facets_count,
exhaustive_nb_hits,
exhaustive_typo,
Expand Down
13 changes: 13 additions & 0 deletions lib/algolia/models/search/browse_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class BrowseResponse

attr_accessor :exhaustive

# Rules applied to the query.
attr_accessor :applied_rules

# See the `facetsCount` field of the `exhaustive` object in the response.
attr_accessor :exhaustive_facets_count

Expand Down Expand Up @@ -110,6 +113,7 @@ def self.attribute_map
:around_lat_lng => :aroundLatLng,
:automatic_radius => :automaticRadius,
:exhaustive => :exhaustive,
:applied_rules => :appliedRules,
:exhaustive_facets_count => :exhaustiveFacetsCount,
:exhaustive_nb_hits => :exhaustiveNbHits,
:exhaustive_typo => :exhaustiveTypo,
Expand Down Expand Up @@ -154,6 +158,7 @@ def self.types_mapping
:around_lat_lng => :"String",
:automatic_radius => :"String",
:exhaustive => :"Exhaustive",
:applied_rules => :"Array<Object>",
:exhaustive_facets_count => :"Boolean",
:exhaustive_nb_hits => :"Boolean",
:exhaustive_typo => :"Boolean",
Expand Down Expand Up @@ -245,6 +250,12 @@ def initialize(attributes = {})
self.exhaustive = attributes[:exhaustive]
end

if attributes.key?(:applied_rules)
if (value = attributes[:applied_rules]).is_a?(Array)
self.applied_rules = value
end
end

if attributes.key?(:exhaustive_facets_count)
self.exhaustive_facets_count = attributes[:exhaustive_facets_count]
end
Expand Down Expand Up @@ -382,6 +393,7 @@ def ==(other)
around_lat_lng == other.around_lat_lng &&
automatic_radius == other.automatic_radius &&
exhaustive == other.exhaustive &&
applied_rules == other.applied_rules &&
exhaustive_facets_count == other.exhaustive_facets_count &&
exhaustive_nb_hits == other.exhaustive_nb_hits &&
exhaustive_typo == other.exhaustive_typo &&
Expand Down Expand Up @@ -427,6 +439,7 @@ def hash
around_lat_lng,
automatic_radius,
exhaustive,
applied_rules,
exhaustive_facets_count,
exhaustive_nb_hits,
exhaustive_typo,
Expand Down
2 changes: 2 additions & 0 deletions lib/algolia/models/search/get_api_key_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def initialize(attributes = {})

if attributes.key?(:value)
self.value = attributes[:value]
else
self.value = nil
end

if attributes.key?(:created_at)
Expand Down
2 changes: 0 additions & 2 deletions lib/algolia/models/search/get_objects_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ def initialize(attributes = {})
if (value = attributes[:results]).is_a?(Array)
self.results = value
end
else
self.results = nil
end
end

Expand Down
13 changes: 13 additions & 0 deletions lib/algolia/models/search/search_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class SearchResponse

attr_accessor :exhaustive

# Rules applied to the query.
attr_accessor :applied_rules

# See the `facetsCount` field of the `exhaustive` object in the response.
attr_accessor :exhaustive_facets_count

Expand Down Expand Up @@ -109,6 +112,7 @@ def self.attribute_map
:around_lat_lng => :aroundLatLng,
:automatic_radius => :automaticRadius,
:exhaustive => :exhaustive,
:applied_rules => :appliedRules,
:exhaustive_facets_count => :exhaustiveFacetsCount,
:exhaustive_nb_hits => :exhaustiveNbHits,
:exhaustive_typo => :exhaustiveTypo,
Expand Down Expand Up @@ -152,6 +156,7 @@ def self.types_mapping
:around_lat_lng => :"String",
:automatic_radius => :"String",
:exhaustive => :"Exhaustive",
:applied_rules => :"Array<Object>",
:exhaustive_facets_count => :"Boolean",
:exhaustive_nb_hits => :"Boolean",
:exhaustive_typo => :"Boolean",
Expand Down Expand Up @@ -228,6 +233,12 @@ def initialize(attributes = {})
self.exhaustive = attributes[:exhaustive]
end

if attributes.key?(:applied_rules)
if (value = attributes[:applied_rules]).is_a?(Array)
self.applied_rules = value
end
end

if attributes.key?(:exhaustive_facets_count)
self.exhaustive_facets_count = attributes[:exhaustive_facets_count]
end
Expand Down Expand Up @@ -365,6 +376,7 @@ def ==(other)
around_lat_lng == other.around_lat_lng &&
automatic_radius == other.automatic_radius &&
exhaustive == other.exhaustive &&
applied_rules == other.applied_rules &&
exhaustive_facets_count == other.exhaustive_facets_count &&
exhaustive_nb_hits == other.exhaustive_nb_hits &&
exhaustive_typo == other.exhaustive_typo &&
Expand Down Expand Up @@ -409,6 +421,7 @@ def hash
around_lat_lng,
automatic_radius,
exhaustive,
applied_rules,
exhaustive_facets_count,
exhaustive_nb_hits,
exhaustive_typo,
Expand Down

0 comments on commit e17eaa0

Please sign in to comment.