algolia 3.30.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +1 -1
- data/CHANGELOG.md +13 -0
- data/Gemfile.lock +1 -1
- data/lib/algolia/api/abtesting_client.rb +0 -44
- data/lib/algolia/api/abtesting_v3_client.rb +0 -47
- data/lib/algolia/api/composition_client.rb +2 -2
- data/lib/algolia/models/ingestion/run_reason_code.rb +4 -2
- data/lib/algolia/models/ingestion/run_status.rb +1 -2
- data/lib/algolia/models/ingestion/source_commercetools.rb +20 -1
- data/lib/algolia/models/ingestion/source_update_commercetools.rb +19 -1
- data/lib/algolia/models/recommend/bought_together_query.rb +13 -4
- data/lib/algolia/models/search/rule.rb +24 -4
- data/lib/algolia/version.rb +1 -1
- metadata +1 -5
- data/lib/algolia/models/abtesting/schedule_ab_test_response.rb +0 -209
- data/lib/algolia/models/abtesting/schedule_ab_tests_request.rb +0 -247
- data/lib/algolia/models/abtesting-v3/schedule_ab_test_response.rb +0 -209
- data/lib/algolia/models/abtesting-v3/schedule_ab_tests_request.rb +0 -270
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c255d57319b4a89c7f379c1dd4d6184e24bc0322065bc1acfb1bf230a99ce4b
|
|
4
|
+
data.tar.gz: 2a8e2644a06777f0b489175007eec0a6df91bdaf5f5d2def88f3d7d5eab7321b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0fee27aa2d004cb4ea2aefe6c963acf90f23a57cfcb1c804e02676f6183154f61b86d0e3ffb8526bc05f624237db6cdc1a7121d3349f852afe605ca2aa3bf86f
|
|
7
|
+
data.tar.gz: 337c9aeafac084f6a76deb8546d5754b4ac3bec073a873adc6e69f95231ffeae8652610d422fc9ae28bd7e7da3e3e550e04ca8357be1dabf50839a5b97c1cc5b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
## [3.32.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.31.0...3.32.0)
|
|
2
|
+
|
|
3
|
+
- [7d189e024](https://github.com/algolia/api-clients-automation/commit/7d189e024) feat(specs): add useImagesObjects property in commercetools source input ([#5586](https://github.com/algolia/api-clients-automation/pull/5586)) by [@sbellone](https://github.com/sbellone/)
|
|
4
|
+
- [ee5542a32](https://github.com/algolia/api-clients-automation/commit/ee5542a32) fix(specs): Add title values to key oneOfs ([#5581](https://github.com/algolia/api-clients-automation/pull/5581)) by [@gazconroy](https://github.com/gazconroy/)
|
|
5
|
+
- [354d28b7c](https://github.com/algolia/api-clients-automation/commit/354d28b7c) fix(specs): update run reason in observability ([#5623](https://github.com/algolia/api-clients-automation/pull/5623)) by [@millotp](https://github.com/millotp/)
|
|
6
|
+
- [ae9ac597f](https://github.com/algolia/api-clients-automation/commit/ae9ac597f) fix(specs): add tags and scope to rules ([#5625](https://github.com/algolia/api-clients-automation/pull/5625)) by [@millotp](https://github.com/millotp/)
|
|
7
|
+
|
|
8
|
+
## [3.31.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.30.0...3.31.0)
|
|
9
|
+
|
|
10
|
+
- [ecfea56dc](https://github.com/algolia/api-clients-automation/commit/ecfea56dc) feat(clients): remove schedule capabilities ([#5552](https://github.com/algolia/api-clients-automation/pull/5552)) by [@cdhawke](https://github.com/cdhawke/)
|
|
11
|
+
- [391059ed9](https://github.com/algolia/api-clients-automation/commit/391059ed9) chore(deps): dependencies 2025-11-03 ([#5553](https://github.com/algolia/api-clients-automation/pull/5553)) by [@algolia-bot](https://github.com/algolia-bot/)
|
|
12
|
+
- [ff4b8f02c](https://github.com/algolia/api-clients-automation/commit/ff4b8f02c) feat(specs): add fallbackParameters to Frequently bought together [RECO-2443] ([#5579](https://github.com/algolia/api-clients-automation/pull/5579)) by [@raed667](https://github.com/raed667/)
|
|
13
|
+
|
|
1
14
|
## [3.30.0](https://github.com/algolia/algoliasearch-client-ruby/compare/3.29.0...3.30.0)
|
|
2
15
|
|
|
3
16
|
- [d9b21b4b1](https://github.com/algolia/api-clients-automation/commit/d9b21b4b1) feat(specs): add `renderingContent` query parameter in Composition API main injection ([#5549](https://github.com/algolia/api-clients-automation/pull/5549)) by [@ClaraMuller](https://github.com/ClaraMuller/)
|
data/Gemfile.lock
CHANGED
|
@@ -476,50 +476,6 @@ module Algolia
|
|
|
476
476
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Abtesting::ListABTestsResponse")
|
|
477
477
|
end
|
|
478
478
|
|
|
479
|
-
# Schedule an A/B test to be started at a later time.
|
|
480
|
-
#
|
|
481
|
-
# Required API Key ACLs:
|
|
482
|
-
# - editSettings
|
|
483
|
-
# @param schedule_ab_tests_request [ScheduleABTestsRequest] (required)
|
|
484
|
-
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
|
485
|
-
# @return [Http::Response] the response
|
|
486
|
-
def schedule_ab_test_with_http_info(schedule_ab_tests_request, request_options = {})
|
|
487
|
-
# verify the required parameter 'schedule_ab_tests_request' is set
|
|
488
|
-
if @api_client.config.client_side_validation && schedule_ab_tests_request.nil?
|
|
489
|
-
raise ArgumentError, "Parameter `schedule_ab_tests_request` is required when calling `schedule_ab_test`."
|
|
490
|
-
end
|
|
491
|
-
|
|
492
|
-
path = "/2/abtests/schedule"
|
|
493
|
-
query_params = {}
|
|
494
|
-
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
|
495
|
-
header_params = {}
|
|
496
|
-
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
|
|
497
|
-
|
|
498
|
-
post_body = request_options[:debug_body] || @api_client.object_to_http_body(schedule_ab_tests_request)
|
|
499
|
-
|
|
500
|
-
new_options = request_options.merge(
|
|
501
|
-
:operation => :"AbtestingClient.schedule_ab_test",
|
|
502
|
-
:header_params => header_params,
|
|
503
|
-
:query_params => query_params,
|
|
504
|
-
:body => post_body,
|
|
505
|
-
:use_read_transporter => false
|
|
506
|
-
)
|
|
507
|
-
|
|
508
|
-
@api_client.call_api(:POST, path, new_options)
|
|
509
|
-
end
|
|
510
|
-
|
|
511
|
-
# Schedule an A/B test to be started at a later time.
|
|
512
|
-
#
|
|
513
|
-
# Required API Key ACLs:
|
|
514
|
-
# - editSettings
|
|
515
|
-
# @param schedule_ab_tests_request [ScheduleABTestsRequest] (required)
|
|
516
|
-
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
|
517
|
-
# @return [ScheduleABTestResponse]
|
|
518
|
-
def schedule_ab_test(schedule_ab_tests_request, request_options = {})
|
|
519
|
-
response = schedule_ab_test_with_http_info(schedule_ab_tests_request, request_options)
|
|
520
|
-
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Abtesting::ScheduleABTestResponse")
|
|
521
|
-
end
|
|
522
|
-
|
|
523
479
|
# Stops an A/B test by its ID. You can't restart stopped A/B tests.
|
|
524
480
|
#
|
|
525
481
|
# Required API Key ACLs:
|
|
@@ -543,53 +543,6 @@ module Algolia
|
|
|
543
543
|
@api_client.deserialize(response.body, request_options[:debug_return_type] || "AbtestingV3::ListABTestsResponse")
|
|
544
544
|
end
|
|
545
545
|
|
|
546
|
-
# Schedule an A/B test to be started at a later time.
|
|
547
|
-
#
|
|
548
|
-
# Required API Key ACLs:
|
|
549
|
-
# - editSettings
|
|
550
|
-
# @param schedule_ab_tests_request [ScheduleABTestsRequest] (required)
|
|
551
|
-
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
|
552
|
-
# @return [Http::Response] the response
|
|
553
|
-
def schedule_ab_test_with_http_info(schedule_ab_tests_request, request_options = {})
|
|
554
|
-
# verify the required parameter 'schedule_ab_tests_request' is set
|
|
555
|
-
if @api_client.config.client_side_validation && schedule_ab_tests_request.nil?
|
|
556
|
-
raise ArgumentError, "Parameter `schedule_ab_tests_request` is required when calling `schedule_ab_test`."
|
|
557
|
-
end
|
|
558
|
-
|
|
559
|
-
path = "/3/abtests/schedule"
|
|
560
|
-
query_params = {}
|
|
561
|
-
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
|
|
562
|
-
header_params = {}
|
|
563
|
-
header_params = header_params.merge(request_options[:header_params]) unless request_options[:header_params].nil?
|
|
564
|
-
|
|
565
|
-
post_body = request_options[:debug_body] || @api_client.object_to_http_body(schedule_ab_tests_request)
|
|
566
|
-
|
|
567
|
-
new_options = request_options.merge(
|
|
568
|
-
:operation => :"AbtestingV3Client.schedule_ab_test",
|
|
569
|
-
:header_params => header_params,
|
|
570
|
-
:query_params => query_params,
|
|
571
|
-
:body => post_body,
|
|
572
|
-
:use_read_transporter => false
|
|
573
|
-
)
|
|
574
|
-
|
|
575
|
-
@api_client.call_api(:POST, path, new_options)
|
|
576
|
-
end
|
|
577
|
-
|
|
578
|
-
# Schedule an A/B test to be started at a later time.
|
|
579
|
-
#
|
|
580
|
-
# Required API Key ACLs:
|
|
581
|
-
# - editSettings
|
|
582
|
-
# @param schedule_ab_tests_request [ScheduleABTestsRequest] (required)
|
|
583
|
-
# @param request_options: The request options to send along with the query, they will be merged with the transporter base parameters (headers, query params, timeouts, etc.). (optional)
|
|
584
|
-
# @return [ScheduleABTestResponse]
|
|
585
|
-
def schedule_ab_test(schedule_ab_tests_request, request_options = {})
|
|
586
|
-
response = schedule_ab_test_with_http_info(schedule_ab_tests_request, request_options)
|
|
587
|
-
@api_client.deserialize(
|
|
588
|
-
response.body,
|
|
589
|
-
request_options[:debug_return_type] || "AbtestingV3::ScheduleABTestResponse"
|
|
590
|
-
)
|
|
591
|
-
end
|
|
592
|
-
|
|
593
546
|
# Stops an A/B test by its ID. You can't restart stopped A/B tests.
|
|
594
547
|
#
|
|
595
548
|
# Required API Key ACLs:
|
|
@@ -595,7 +595,7 @@ module Algolia
|
|
|
595
595
|
)
|
|
596
596
|
end
|
|
597
597
|
|
|
598
|
-
#
|
|
598
|
+
# Update and insert a composition in the current Algolia application.
|
|
599
599
|
#
|
|
600
600
|
# Required API Key ACLs:
|
|
601
601
|
# - editSettings
|
|
@@ -635,7 +635,7 @@ module Algolia
|
|
|
635
635
|
@api_client.call_api(:PUT, path, new_options)
|
|
636
636
|
end
|
|
637
637
|
|
|
638
|
-
#
|
|
638
|
+
# Update and insert a composition in the current Algolia application.
|
|
639
639
|
#
|
|
640
640
|
# Required API Key ACLs:
|
|
641
641
|
# - editSettings
|
|
@@ -9,15 +9,17 @@ module Algolia
|
|
|
9
9
|
module Ingestion
|
|
10
10
|
class RunReasonCode
|
|
11
11
|
INTERNAL = "internal".freeze
|
|
12
|
+
CANCELLED = "cancelled".freeze
|
|
12
13
|
CRITICAL = "critical".freeze
|
|
13
14
|
NO_EVENTS = "no_events".freeze
|
|
14
15
|
TOO_MANY_ERRORS = "too_many_errors".freeze
|
|
16
|
+
LACKING_EVENTS = "lacking_events".freeze
|
|
15
17
|
OK = "ok".freeze
|
|
16
|
-
DISCARDED = "discarded".freeze
|
|
17
18
|
BLOCKING = "blocking".freeze
|
|
19
|
+
IDLE = "idle".freeze
|
|
18
20
|
|
|
19
21
|
def self.all_vars
|
|
20
|
-
@all_vars ||= [INTERNAL, CRITICAL, NO_EVENTS, TOO_MANY_ERRORS, OK,
|
|
22
|
+
@all_vars ||= [INTERNAL, CANCELLED, CRITICAL, NO_EVENTS, TOO_MANY_ERRORS, LACKING_EVENTS, OK, BLOCKING, IDLE].freeze
|
|
21
23
|
end
|
|
22
24
|
|
|
23
25
|
# Builds the enum from string
|
|
@@ -10,12 +10,11 @@ module Algolia
|
|
|
10
10
|
class RunStatus
|
|
11
11
|
CREATED = "created".freeze
|
|
12
12
|
STARTED = "started".freeze
|
|
13
|
-
IDLED = "idled".freeze
|
|
14
13
|
FINISHED = "finished".freeze
|
|
15
14
|
SKIPPED = "skipped".freeze
|
|
16
15
|
|
|
17
16
|
def self.all_vars
|
|
18
|
-
@all_vars ||= [CREATED, STARTED,
|
|
17
|
+
@all_vars ||= [CREATED, STARTED, FINISHED, SKIPPED].freeze
|
|
19
18
|
end
|
|
20
19
|
|
|
21
20
|
# Builds the enum from string
|
|
@@ -24,6 +24,9 @@ module Algolia
|
|
|
24
24
|
# Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
|
|
25
25
|
attr_accessor :product_query_predicate
|
|
26
26
|
|
|
27
|
+
# When set to true, the connector indexes objects with all images attributes instead of only the URLs.
|
|
28
|
+
attr_accessor :use_images_objects
|
|
29
|
+
|
|
27
30
|
attr_accessor :custom_fields
|
|
28
31
|
|
|
29
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -35,6 +38,7 @@ module Algolia
|
|
|
35
38
|
:project_key => :projectKey,
|
|
36
39
|
:fallback_is_in_stock_value => :fallbackIsInStockValue,
|
|
37
40
|
:product_query_predicate => :productQueryPredicate,
|
|
41
|
+
:use_images_objects => :useImagesObjects,
|
|
38
42
|
:custom_fields => :customFields
|
|
39
43
|
}
|
|
40
44
|
end
|
|
@@ -55,6 +59,7 @@ module Algolia
|
|
|
55
59
|
:project_key => :"String",
|
|
56
60
|
:fallback_is_in_stock_value => :"Boolean",
|
|
57
61
|
:product_query_predicate => :"String",
|
|
62
|
+
:use_images_objects => :"Boolean",
|
|
58
63
|
:custom_fields => :"CommercetoolsCustomFields"
|
|
59
64
|
}
|
|
60
65
|
end
|
|
@@ -121,6 +126,10 @@ module Algolia
|
|
|
121
126
|
self.product_query_predicate = attributes[:product_query_predicate]
|
|
122
127
|
end
|
|
123
128
|
|
|
129
|
+
if attributes.key?(:use_images_objects)
|
|
130
|
+
self.use_images_objects = attributes[:use_images_objects]
|
|
131
|
+
end
|
|
132
|
+
|
|
124
133
|
if attributes.key?(:custom_fields)
|
|
125
134
|
self.custom_fields = attributes[:custom_fields]
|
|
126
135
|
end
|
|
@@ -137,6 +146,7 @@ module Algolia
|
|
|
137
146
|
project_key == other.project_key &&
|
|
138
147
|
fallback_is_in_stock_value == other.fallback_is_in_stock_value &&
|
|
139
148
|
product_query_predicate == other.product_query_predicate &&
|
|
149
|
+
use_images_objects == other.use_images_objects &&
|
|
140
150
|
custom_fields == other.custom_fields
|
|
141
151
|
end
|
|
142
152
|
|
|
@@ -149,7 +159,16 @@ module Algolia
|
|
|
149
159
|
# Calculates hash code according to all attributes.
|
|
150
160
|
# @return [Integer] Hash code
|
|
151
161
|
def hash
|
|
152
|
-
[
|
|
162
|
+
[
|
|
163
|
+
store_keys,
|
|
164
|
+
locales,
|
|
165
|
+
url,
|
|
166
|
+
project_key,
|
|
167
|
+
fallback_is_in_stock_value,
|
|
168
|
+
product_query_predicate,
|
|
169
|
+
use_images_objects,
|
|
170
|
+
custom_fields
|
|
171
|
+
].hash
|
|
153
172
|
end
|
|
154
173
|
|
|
155
174
|
# Builds the object from hash
|
|
@@ -22,6 +22,9 @@ module Algolia
|
|
|
22
22
|
# Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
|
|
23
23
|
attr_accessor :product_query_predicate
|
|
24
24
|
|
|
25
|
+
# When set to true, the connector indexes objects with all images attributes instead of only the URLs.
|
|
26
|
+
attr_accessor :use_images_objects
|
|
27
|
+
|
|
25
28
|
attr_accessor :custom_fields
|
|
26
29
|
|
|
27
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -32,6 +35,7 @@ module Algolia
|
|
|
32
35
|
:url => :url,
|
|
33
36
|
:fallback_is_in_stock_value => :fallbackIsInStockValue,
|
|
34
37
|
:product_query_predicate => :productQueryPredicate,
|
|
38
|
+
:use_images_objects => :useImagesObjects,
|
|
35
39
|
:custom_fields => :customFields
|
|
36
40
|
}
|
|
37
41
|
end
|
|
@@ -44,6 +48,7 @@ module Algolia
|
|
|
44
48
|
:url => :"String",
|
|
45
49
|
:fallback_is_in_stock_value => :"Boolean",
|
|
46
50
|
:product_query_predicate => :"String",
|
|
51
|
+
:use_images_objects => :"Boolean",
|
|
47
52
|
:custom_fields => :"CommercetoolsCustomFields"
|
|
48
53
|
}
|
|
49
54
|
end
|
|
@@ -102,6 +107,10 @@ module Algolia
|
|
|
102
107
|
self.product_query_predicate = attributes[:product_query_predicate]
|
|
103
108
|
end
|
|
104
109
|
|
|
110
|
+
if attributes.key?(:use_images_objects)
|
|
111
|
+
self.use_images_objects = attributes[:use_images_objects]
|
|
112
|
+
end
|
|
113
|
+
|
|
105
114
|
if attributes.key?(:custom_fields)
|
|
106
115
|
self.custom_fields = attributes[:custom_fields]
|
|
107
116
|
end
|
|
@@ -117,6 +126,7 @@ module Algolia
|
|
|
117
126
|
url == other.url &&
|
|
118
127
|
fallback_is_in_stock_value == other.fallback_is_in_stock_value &&
|
|
119
128
|
product_query_predicate == other.product_query_predicate &&
|
|
129
|
+
use_images_objects == other.use_images_objects &&
|
|
120
130
|
custom_fields == other.custom_fields
|
|
121
131
|
end
|
|
122
132
|
|
|
@@ -129,7 +139,15 @@ module Algolia
|
|
|
129
139
|
# Calculates hash code according to all attributes.
|
|
130
140
|
# @return [Integer] Hash code
|
|
131
141
|
def hash
|
|
132
|
-
[
|
|
142
|
+
[
|
|
143
|
+
store_keys,
|
|
144
|
+
locales,
|
|
145
|
+
url,
|
|
146
|
+
fallback_is_in_stock_value,
|
|
147
|
+
product_query_predicate,
|
|
148
|
+
use_images_objects,
|
|
149
|
+
custom_fields
|
|
150
|
+
].hash
|
|
133
151
|
end
|
|
134
152
|
|
|
135
153
|
# Builds the object from hash
|
|
@@ -24,6 +24,8 @@ module Algolia
|
|
|
24
24
|
# Unique record identifier.
|
|
25
25
|
attr_accessor :algolia_object_id
|
|
26
26
|
|
|
27
|
+
attr_accessor :fallback_parameters
|
|
28
|
+
|
|
27
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
30
|
def self.attribute_map
|
|
29
31
|
{
|
|
@@ -32,7 +34,8 @@ module Algolia
|
|
|
32
34
|
:max_recommendations => :maxRecommendations,
|
|
33
35
|
:query_parameters => :queryParameters,
|
|
34
36
|
:model => :model,
|
|
35
|
-
:algolia_object_id => :objectID
|
|
37
|
+
:algolia_object_id => :objectID,
|
|
38
|
+
:fallback_parameters => :fallbackParameters
|
|
36
39
|
}
|
|
37
40
|
end
|
|
38
41
|
|
|
@@ -44,7 +47,8 @@ module Algolia
|
|
|
44
47
|
:max_recommendations => :"Integer",
|
|
45
48
|
:query_parameters => :"RecommendSearchParams",
|
|
46
49
|
:model => :"FbtModel",
|
|
47
|
-
:algolia_object_id => :"String"
|
|
50
|
+
:algolia_object_id => :"String",
|
|
51
|
+
:fallback_parameters => :"FallbackParams"
|
|
48
52
|
}
|
|
49
53
|
end
|
|
50
54
|
|
|
@@ -117,6 +121,10 @@ module Algolia
|
|
|
117
121
|
else
|
|
118
122
|
self.algolia_object_id = nil
|
|
119
123
|
end
|
|
124
|
+
|
|
125
|
+
if attributes.key?(:fallback_parameters)
|
|
126
|
+
self.fallback_parameters = attributes[:fallback_parameters]
|
|
127
|
+
end
|
|
120
128
|
end
|
|
121
129
|
|
|
122
130
|
# Checks equality by comparing each attribute.
|
|
@@ -129,7 +137,8 @@ module Algolia
|
|
|
129
137
|
max_recommendations == other.max_recommendations &&
|
|
130
138
|
query_parameters == other.query_parameters &&
|
|
131
139
|
model == other.model &&
|
|
132
|
-
algolia_object_id == other.algolia_object_id
|
|
140
|
+
algolia_object_id == other.algolia_object_id &&
|
|
141
|
+
fallback_parameters == other.fallback_parameters
|
|
133
142
|
end
|
|
134
143
|
|
|
135
144
|
# @see the `==` method
|
|
@@ -141,7 +150,7 @@ module Algolia
|
|
|
141
150
|
# Calculates hash code according to all attributes.
|
|
142
151
|
# @return [Integer] Hash code
|
|
143
152
|
def hash
|
|
144
|
-
[index_name, threshold, max_recommendations, query_parameters, model, algolia_object_id].hash
|
|
153
|
+
[index_name, threshold, max_recommendations, query_parameters, model, algolia_object_id, fallback_parameters].hash
|
|
145
154
|
end
|
|
146
155
|
|
|
147
156
|
# Builds the object from hash
|
|
@@ -26,6 +26,10 @@ module Algolia
|
|
|
26
26
|
# Time periods when the rule is active.
|
|
27
27
|
attr_accessor :validity
|
|
28
28
|
|
|
29
|
+
attr_accessor :tags
|
|
30
|
+
|
|
31
|
+
attr_accessor :scope
|
|
32
|
+
|
|
29
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
34
|
def self.attribute_map
|
|
31
35
|
{
|
|
@@ -34,7 +38,9 @@ module Algolia
|
|
|
34
38
|
:consequence => :consequence,
|
|
35
39
|
:description => :description,
|
|
36
40
|
:enabled => :enabled,
|
|
37
|
-
:validity => :validity
|
|
41
|
+
:validity => :validity,
|
|
42
|
+
:tags => :tags,
|
|
43
|
+
:scope => :scope
|
|
38
44
|
}
|
|
39
45
|
end
|
|
40
46
|
|
|
@@ -46,7 +52,9 @@ module Algolia
|
|
|
46
52
|
:consequence => :"Consequence",
|
|
47
53
|
:description => :"String",
|
|
48
54
|
:enabled => :"Boolean",
|
|
49
|
-
:validity => :"Array<TimeRange>"
|
|
55
|
+
:validity => :"Array<TimeRange>",
|
|
56
|
+
:tags => :"Array<String>",
|
|
57
|
+
:scope => :"String"
|
|
50
58
|
}
|
|
51
59
|
end
|
|
52
60
|
|
|
@@ -108,6 +116,16 @@ module Algolia
|
|
|
108
116
|
self.validity = value
|
|
109
117
|
end
|
|
110
118
|
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:tags)
|
|
121
|
+
if (value = attributes[:tags]).is_a?(Array)
|
|
122
|
+
self.tags = value
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:scope)
|
|
127
|
+
self.scope = attributes[:scope]
|
|
128
|
+
end
|
|
111
129
|
end
|
|
112
130
|
|
|
113
131
|
# Checks equality by comparing each attribute.
|
|
@@ -120,7 +138,9 @@ module Algolia
|
|
|
120
138
|
consequence == other.consequence &&
|
|
121
139
|
description == other.description &&
|
|
122
140
|
enabled == other.enabled &&
|
|
123
|
-
validity == other.validity
|
|
141
|
+
validity == other.validity &&
|
|
142
|
+
tags == other.tags &&
|
|
143
|
+
scope == other.scope
|
|
124
144
|
end
|
|
125
145
|
|
|
126
146
|
# @see the `==` method
|
|
@@ -132,7 +152,7 @@ module Algolia
|
|
|
132
152
|
# Calculates hash code according to all attributes.
|
|
133
153
|
# @return [Integer] Hash code
|
|
134
154
|
def hash
|
|
135
|
-
[algolia_object_id, conditions, consequence, description, enabled, validity].hash
|
|
155
|
+
[algolia_object_id, conditions, consequence, description, enabled, validity, tags, scope].hash
|
|
136
156
|
end
|
|
137
157
|
|
|
138
158
|
# Builds the object from hash
|
data/lib/algolia/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: algolia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.32.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- https://alg.li/support
|
|
@@ -171,8 +171,6 @@ files:
|
|
|
171
171
|
- lib/algolia/models/abtesting-v3/metrics_filter.rb
|
|
172
172
|
- lib/algolia/models/abtesting-v3/minimum_detectable_effect.rb
|
|
173
173
|
- lib/algolia/models/abtesting-v3/outliers_filter.rb
|
|
174
|
-
- lib/algolia/models/abtesting-v3/schedule_ab_test_response.rb
|
|
175
|
-
- lib/algolia/models/abtesting-v3/schedule_ab_tests_request.rb
|
|
176
174
|
- lib/algolia/models/abtesting-v3/status.rb
|
|
177
175
|
- lib/algolia/models/abtesting-v3/timeseries.rb
|
|
178
176
|
- lib/algolia/models/abtesting-v3/timeseries_variant.rb
|
|
@@ -198,8 +196,6 @@ files:
|
|
|
198
196
|
- lib/algolia/models/abtesting/minimum_detectable_effect.rb
|
|
199
197
|
- lib/algolia/models/abtesting/outliers.rb
|
|
200
198
|
- lib/algolia/models/abtesting/outliers_filter.rb
|
|
201
|
-
- lib/algolia/models/abtesting/schedule_ab_test_response.rb
|
|
202
|
-
- lib/algolia/models/abtesting/schedule_ab_tests_request.rb
|
|
203
199
|
- lib/algolia/models/abtesting/status.rb
|
|
204
200
|
- lib/algolia/models/abtesting/variant.rb
|
|
205
201
|
- lib/algolia/models/analytics/click_position.rb
|