Skip to content

Commit 01dd6a7

Browse files
algolia-botmillotp
andcommitted
fix(ruby): rename object_id reserved word to algolia_object_id (#4381) (generated) [skip ci]
Co-authored-by: Pierre Millot <[email protected]>
1 parent b39fb53 commit 01dd6a7

File tree

582 files changed

+1493
-383
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

582 files changed

+1493
-383
lines changed

clients/algoliasearch-client-ruby/lib/algolia/api/abtesting_client.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
24

35
module Algolia
@@ -39,7 +41,7 @@ def self.create(app_id, api_key, region = nil, opts = {})
3941

4042
hosts <<
4143
Transport::StatefulHost.new(
42-
region.nil? ? "analytics.algolia.com" : "analytics.{region}.algolia.com".sub!("{region}", region),
44+
region.nil? ? "analytics.algolia.com" : "analytics.{region}.algolia.com".sub("{region}", region),
4345
accept: CallType::READ | CallType::WRITE
4446
)
4547

clients/algoliasearch-client-ruby/lib/algolia/api/analytics_client.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
24

35
module Algolia
@@ -39,7 +41,7 @@ def self.create(app_id, api_key, region = nil, opts = {})
3941

4042
hosts <<
4143
Transport::StatefulHost.new(
42-
region.nil? ? "analytics.algolia.com" : "analytics.{region}.algolia.com".sub!("{region}", region),
44+
region.nil? ? "analytics.algolia.com" : "analytics.{region}.algolia.com".sub("{region}", region),
4345
accept: CallType::READ | CallType::WRITE
4446
)
4547

clients/algoliasearch-client-ruby/lib/algolia/api/ingestion_client.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
24

35
module Algolia
@@ -39,7 +41,7 @@ def self.create(app_id, api_key, region = nil, opts = {})
3941

4042
hosts <<
4143
Transport::StatefulHost.new(
42-
"data.{region}.algolia.com".sub!("{region}", region),
44+
"data.{region}.algolia.com".sub("{region}", region),
4345
accept: CallType::READ | CallType::WRITE
4446
)
4547

clients/algoliasearch-client-ruby/lib/algolia/api/insights_client.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
24

35
module Algolia
@@ -39,7 +41,7 @@ def self.create(app_id, api_key, region = nil, opts = {})
3941

4042
hosts <<
4143
Transport::StatefulHost.new(
42-
region.nil? ? "insights.algolia.io" : "insights.{region}.algolia.io".sub!("{region}", region),
44+
region.nil? ? "insights.algolia.io" : "insights.{region}.algolia.io".sub("{region}", region),
4345
accept: CallType::READ | CallType::WRITE
4446
)
4547

clients/algoliasearch-client-ruby/lib/algolia/api/monitoring_client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
24

35
module Algolia

clients/algoliasearch-client-ruby/lib/algolia/api/personalization_client.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
24

35
module Algolia
@@ -39,7 +41,7 @@ def self.create(app_id, api_key, region = nil, opts = {})
3941

4042
hosts <<
4143
Transport::StatefulHost.new(
42-
"personalization.{region}.algolia.com".sub!("{region}", region),
44+
"personalization.{region}.algolia.com".sub("{region}", region),
4345
accept: CallType::READ | CallType::WRITE
4446
)
4547

clients/algoliasearch-client-ruby/lib/algolia/api/query_suggestions_client.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
24

35
module Algolia
@@ -39,7 +41,7 @@ def self.create(app_id, api_key, region = nil, opts = {})
3941

4042
hosts <<
4143
Transport::StatefulHost.new(
42-
"query-suggestions.{region}.algolia.com".sub!("{region}", region),
44+
"query-suggestions.{region}.algolia.com".sub("{region}", region),
4345
accept: CallType::READ | CallType::WRITE
4446
)
4547

clients/algoliasearch-client-ruby/lib/algolia/api/recommend_client.rb

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
24

35
module Algolia
@@ -287,10 +289,10 @@ def custom_put(path, parameters = nil, body = nil, request_options = {})
287289
# - editSettings
288290
# @param index_name [String] Name of the index on which to perform the operation. (required)
289291
# @param model [RecommendModels] [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
290-
# @param object_id [String] Unique record identifier. (required)
292+
# @param algolia_object_id [String] Unique record identifier. (required)
291293
# @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)
292294
# @return [Http::Response] the response
293-
def delete_recommend_rule_with_http_info(index_name, model, object_id, request_options = {})
295+
def delete_recommend_rule_with_http_info(index_name, model, algolia_object_id, request_options = {})
294296
# verify the required parameter 'index_name' is set
295297
if @api_client.config.client_side_validation && index_name.nil?
296298
raise ArgumentError, "Parameter `index_name` is required when calling `delete_recommend_rule`."
@@ -299,15 +301,15 @@ def delete_recommend_rule_with_http_info(index_name, model, object_id, request_o
299301
if @api_client.config.client_side_validation && model.nil?
300302
raise ArgumentError, "Parameter `model` is required when calling `delete_recommend_rule`."
301303
end
302-
# verify the required parameter 'object_id' is set
303-
if @api_client.config.client_side_validation && object_id.nil?
304-
raise ArgumentError, "Parameter `object_id` is required when calling `delete_recommend_rule`."
304+
# verify the required parameter 'algolia_object_id' is set
305+
if @api_client.config.client_side_validation && algolia_object_id.nil?
306+
raise ArgumentError, "Parameter `algolia_object_id` is required when calling `delete_recommend_rule`."
305307
end
306308

307309
path = "/1/indexes/{indexName}/{model}/recommend/rules/{objectID}"
308310
.sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
309311
.sub("{" + "model" + "}", Transport.encode_uri(model.to_s))
310-
.sub("{" + "objectID" + "}", Transport.encode_uri(object_id.to_s))
312+
.sub("{" + "objectID" + "}", Transport.encode_uri(algolia_object_id.to_s))
311313
query_params = {}
312314
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
313315
header_params = {}
@@ -332,11 +334,11 @@ def delete_recommend_rule_with_http_info(index_name, model, object_id, request_o
332334
# - editSettings
333335
# @param index_name [String] Name of the index on which to perform the operation. (required)
334336
# @param model [RecommendModels] [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
335-
# @param object_id [String] Unique record identifier. (required)
337+
# @param algolia_object_id [String] Unique record identifier. (required)
336338
# @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)
337339
# @return [DeletedAtResponse]
338-
def delete_recommend_rule(index_name, model, object_id, request_options = {})
339-
response = delete_recommend_rule_with_http_info(index_name, model, object_id, request_options)
340+
def delete_recommend_rule(index_name, model, algolia_object_id, request_options = {})
341+
response = delete_recommend_rule_with_http_info(index_name, model, algolia_object_id, request_options)
340342
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Recommend::DeletedAtResponse")
341343
end
342344

@@ -346,10 +348,10 @@ def delete_recommend_rule(index_name, model, object_id, request_options = {})
346348
# - settings
347349
# @param index_name [String] Name of the index on which to perform the operation. (required)
348350
# @param model [RecommendModels] [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
349-
# @param object_id [String] Unique record identifier. (required)
351+
# @param algolia_object_id [String] Unique record identifier. (required)
350352
# @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)
351353
# @return [Http::Response] the response
352-
def get_recommend_rule_with_http_info(index_name, model, object_id, request_options = {})
354+
def get_recommend_rule_with_http_info(index_name, model, algolia_object_id, request_options = {})
353355
# verify the required parameter 'index_name' is set
354356
if @api_client.config.client_side_validation && index_name.nil?
355357
raise ArgumentError, "Parameter `index_name` is required when calling `get_recommend_rule`."
@@ -358,15 +360,15 @@ def get_recommend_rule_with_http_info(index_name, model, object_id, request_opti
358360
if @api_client.config.client_side_validation && model.nil?
359361
raise ArgumentError, "Parameter `model` is required when calling `get_recommend_rule`."
360362
end
361-
# verify the required parameter 'object_id' is set
362-
if @api_client.config.client_side_validation && object_id.nil?
363-
raise ArgumentError, "Parameter `object_id` is required when calling `get_recommend_rule`."
363+
# verify the required parameter 'algolia_object_id' is set
364+
if @api_client.config.client_side_validation && algolia_object_id.nil?
365+
raise ArgumentError, "Parameter `algolia_object_id` is required when calling `get_recommend_rule`."
364366
end
365367

366368
path = "/1/indexes/{indexName}/{model}/recommend/rules/{objectID}"
367369
.sub("{" + "indexName" + "}", Transport.encode_uri(index_name.to_s))
368370
.sub("{" + "model" + "}", Transport.encode_uri(model.to_s))
369-
.sub("{" + "objectID" + "}", Transport.encode_uri(object_id.to_s))
371+
.sub("{" + "objectID" + "}", Transport.encode_uri(algolia_object_id.to_s))
370372
query_params = {}
371373
query_params = query_params.merge(request_options[:query_params]) unless request_options[:query_params].nil?
372374
header_params = {}
@@ -391,11 +393,11 @@ def get_recommend_rule_with_http_info(index_name, model, object_id, request_opti
391393
# - settings
392394
# @param index_name [String] Name of the index on which to perform the operation. (required)
393395
# @param model [RecommendModels] [Recommend model](https://www.algolia.com/doc/guides/algolia-recommend/overview/#recommend-models). (required)
394-
# @param object_id [String] Unique record identifier. (required)
396+
# @param algolia_object_id [String] Unique record identifier. (required)
395397
# @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)
396398
# @return [RecommendRule]
397-
def get_recommend_rule(index_name, model, object_id, request_options = {})
398-
response = get_recommend_rule_with_http_info(index_name, model, object_id, request_options)
399+
def get_recommend_rule(index_name, model, algolia_object_id, request_options = {})
400+
response = get_recommend_rule_with_http_info(index_name, model, algolia_object_id, request_options)
399401
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Recommend::RecommendRule")
400402
end
401403

0 commit comments

Comments
 (0)