lib/algolia/api/query_suggestions_client.rb in algolia-3.0.0.alpha.5 vs lib/algolia/api/query_suggestions_client.rb in algolia-3.0.0.alpha.6
- old
+ new
@@ -68,11 +68,11 @@
# @param query_suggestions_configuration_with_index [QuerySuggestionsConfigurationWithIndex] (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)
# @return [BaseResponse]
def create_config(query_suggestions_configuration_with_index, request_options = {})
response = create_config_with_http_info(query_suggestions_configuration_with_index, request_options)
- deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::BaseResponse')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::BaseResponse')
end
# Send requests to the Algolia REST API.
# 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)
@@ -111,11 +111,11 @@
# @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)
- deserialize(response.body, request_options[:debug_return_type] || 'Object')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'Object')
end
# Send requests to the Algolia REST API.
# 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)
@@ -154,11 +154,11 @@
# @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)
- deserialize(response.body, request_options[:debug_return_type] || 'Object')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'Object')
end
# Send requests to the Algolia REST API.
# 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)
@@ -199,11 +199,11 @@
# @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 = {})
response = custom_post_with_http_info(path, parameters, body, request_options)
- deserialize(response.body, request_options[:debug_return_type] || 'Object')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'Object')
end
# Send requests to the Algolia REST API.
# 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)
@@ -244,11 +244,11 @@
# @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 = {})
response = custom_put_with_http_info(path, parameters, body, request_options)
- deserialize(response.body, request_options[:debug_return_type] || 'Object')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'Object')
end
# Delete a configuration.
# Delete a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. The Query Suggestions index itself is not deleted.
# @param index_name [String] Query Suggestions index name. (required)
@@ -284,11 +284,11 @@
# @param index_name [String] Query Suggestions index name. (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)
# @return [BaseResponse]
def delete_config(index_name, request_options = {})
response = delete_config_with_http_info(index_name, request_options)
- deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::BaseResponse')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::BaseResponse')
end
# List configurations.
# List all Query Suggestions configurations of your Algolia application.
# @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)
@@ -317,11 +317,11 @@
# List all Query Suggestions configurations of your Algolia application.
# @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 [Array<QuerySuggestionsConfigurationResponse>]
def get_all_configs(request_options = {})
response = get_all_configs_with_http_info(request_options)
- deserialize(response.body, request_options[:debug_return_type] || 'Array<QuerySuggestions::QuerySuggestionsConfigurationResponse>')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'Array<QuerySuggestions::QuerySuggestionsConfigurationResponse>')
end
# Get a configuration.
# Get a single Query Suggestions configuration.
# @param index_name [String] Query Suggestions index name. (required)
@@ -357,11 +357,11 @@
# @param index_name [String] Query Suggestions index name. (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)
# @return [QuerySuggestionsConfigurationResponse]
def get_config(index_name, request_options = {})
response = get_config_with_http_info(index_name, request_options)
- deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::QuerySuggestionsConfigurationResponse')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::QuerySuggestionsConfigurationResponse')
end
# Get configuration status.
# Report the status of a Query Suggestions index.
# @param index_name [String] Query Suggestions index name. (required)
@@ -397,11 +397,11 @@
# @param index_name [String] Query Suggestions index name. (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)
# @return [GetConfigStatus200Response]
def get_config_status(index_name, request_options = {})
response = get_config_status_with_http_info(index_name, request_options)
- deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::GetConfigStatus200Response')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::GetConfigStatus200Response')
end
# Get logs.
# Get the logs for a single Query Suggestions index.
# @param index_name [String] Query Suggestions index name. (required)
@@ -437,11 +437,11 @@
# @param index_name [String] Query Suggestions index name. (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)
# @return [GetLogFile200Response]
def get_log_file(index_name, request_options = {})
response = get_log_file_with_http_info(index_name, request_options)
- deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::GetLogFile200Response')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::GetLogFile200Response')
end
# Update a configuration.
# Update a QuerySuggestions configuration.
# @param index_name [String] Query Suggestions index name. (required)
@@ -483,9 +483,9 @@
# @param query_suggestions_configuration [QuerySuggestionsConfiguration] (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)
# @return [BaseResponse]
def update_config(index_name, query_suggestions_configuration, request_options = {})
response = update_config_with_http_info(index_name, query_suggestions_configuration, request_options)
- deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::BaseResponse')
+ @api_client.deserialize(response.body, request_options[:debug_return_type] || 'QuerySuggestions::BaseResponse')
end
end
end