lib/algolia/api/abtesting_client.rb in algolia-3.5.1 vs lib/algolia/api/abtesting_client.rb in algolia-3.5.2
- old
+ new
@@ -43,12 +43,20 @@
#
# @param api_key [String] the new API key to use.
# @return [void]
def set_client_api_key(api_key)
@api_client.set_client_api_key(api_key)
+
+ self
end
+ def add_user_agent_segment(segment, version = nil)
+ @api_client.config.add_user_agent_segment(segment, version)
+
+ self
+ end
+
# Creates a new A/B test.
#
# Required API Key ACLs:
# - editSettings
# @param add_ab_tests_request [AddABTestsRequest] (required)
@@ -91,11 +99,11 @@
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Abtesting::ABTestResponse")
end
# This method allow you to send requests to the Algolia REST API.
- # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
# @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)
# @return [Http::Response] the response
def custom_delete_with_http_info(path, parameters = nil, request_options = {})
# verify the required parameter 'path' is set
@@ -123,22 +131,22 @@
@api_client.call_api(:DELETE, path, new_options)
end
# This method allow you to send requests to the Algolia REST API.
- # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
# @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)
# @return [Object]
def custom_delete(path, parameters = nil, request_options = {})
response = custom_delete_with_http_info(path, parameters, request_options)
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Object")
end
# This method allow you to send requests to the Algolia REST API.
- # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
# @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)
# @return [Http::Response] the response
def custom_get_with_http_info(path, parameters = nil, request_options = {})
# verify the required parameter 'path' is set
@@ -166,22 +174,22 @@
@api_client.call_api(:GET, path, new_options)
end
# This method allow you to send requests to the Algolia REST API.
- # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
# @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)
# @return [Object]
def custom_get(path, parameters = nil, request_options = {})
response = custom_get_with_http_info(path, parameters, request_options)
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Object")
end
# This method allow you to send requests to the Algolia REST API.
- # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
# @param body [Object] Parameters to send with the custom request.
# @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)
# @return [Http::Response] the response
def custom_post_with_http_info(path, parameters = nil, body = nil, request_options = {})
@@ -210,11 +218,11 @@
@api_client.call_api(:POST, path, new_options)
end
# This method allow you to send requests to the Algolia REST API.
- # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
# @param body [Object] Parameters to send with the custom request.
# @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)
# @return [Object]
def custom_post(path, parameters = nil, body = nil, request_options = {})
@@ -222,11 +230,11 @@
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Object")
end
# This method allow you to send requests to the Algolia REST API.
- # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
# @param body [Object] Parameters to send with the custom request.
# @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)
# @return [Http::Response] the response
def custom_put_with_http_info(path, parameters = nil, body = nil, request_options = {})
@@ -255,11 +263,11 @@
@api_client.call_api(:PUT, path, new_options)
end
# This method allow you to send requests to the Algolia REST API.
- # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
+ # @param path [String] Path of the endpoint, anything after \"/1\" must be specified. (required)
# @param parameters [Hash<String, Object>] Query parameters to apply to the current query.
# @param body [Object] Parameters to send with the custom request.
# @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)
# @return [Object]
def custom_put(path, parameters = nil, body = nil, request_options = {})
@@ -452,10 +460,10 @@
def schedule_ab_test(schedule_ab_tests_request, request_options = {})
response = schedule_ab_test_with_http_info(schedule_ab_tests_request, request_options)
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Abtesting::ScheduleABTestResponse")
end
- # Stops an A/B test by its ID. You can't restart stopped A/B tests.
+ # Stops an A/B test by its ID. You can't restart stopped A/B tests.
#
# Required API Key ACLs:
# - editSettings
# @param id [Integer] Unique A/B test identifier. (required)
# @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)