Skip to content

Commit

Permalink
fix(specs): proper title with linter (generated)
Browse files Browse the repository at this point in the history
algolia/api-clients-automation#3444

Co-authored-by: algolia-bot <[email protected]>
Co-authored-by: Pierre Millot <[email protected]>
  • Loading branch information
algolia-bot and millotp committed Jul 30, 2024
1 parent b9f833e commit ae6d438
Show file tree
Hide file tree
Showing 43 changed files with 1,465 additions and 100 deletions.
14 changes: 4 additions & 10 deletions lib/algolia/api/query_suggestions_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -428,13 +428,10 @@ def get_config_status_with_http_info(index_name, request_options = {})
# - settings
# @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]
# @return [ConfigStatus]
def get_config_status(index_name, request_options = {})
response = get_config_status_with_http_info(index_name, request_options)
@api_client.deserialize(
response.body,
request_options[:debug_return_type] || "QuerySuggestions::GetConfigStatus200Response"
)
@api_client.deserialize(response.body, request_options[:debug_return_type] || "QuerySuggestions::ConfigStatus")
end

# Retrieves the logs for a single Query Suggestions index.
Expand Down Expand Up @@ -475,13 +472,10 @@ def get_log_file_with_http_info(index_name, request_options = {})
# - settings
# @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]
# @return [LogFile]
def get_log_file(index_name, request_options = {})
response = get_log_file_with_http_info(index_name, request_options)
@api_client.deserialize(
response.body,
request_options[:debug_return_type] || "QuerySuggestions::GetLogFile200Response"
)
@api_client.deserialize(response.body, request_options[:debug_return_type] || "QuerySuggestions::LogFile")
end

# Updates a QuerySuggestions configuration.
Expand Down
8 changes: 4 additions & 4 deletions lib/algolia/api/usage_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def get_index_usage_with_http_info(
# @param end_date [String] End date of the period to analyze, in &#x60;YYYY-MM-DD&#x60; format. (required)
# @param granularity [Granularity] Granularity of the aggregated metrics. - &#x60;hourly&#x60;: the maximum time range for hourly metrics is 7 days. - &#x60;daily&#x60;: the maximum time range for daily metrics is 365 days. (default to 'daily')
# @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 [GetUsage200Response]
# @return [IndexUsage]
def get_index_usage(statistic, index_name, start_date, end_date, granularity = nil, request_options = {})
response = get_index_usage_with_http_info(
statistic,
Expand All @@ -285,7 +285,7 @@ def get_index_usage(statistic, index_name, start_date, end_date, granularity = n
granularity,
request_options
)
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Usage::GetUsage200Response")
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Usage::IndexUsage")
end

# Retrieves usage statistics evaluated over a specified period.
Expand Down Expand Up @@ -339,10 +339,10 @@ def get_usage_with_http_info(statistic, start_date, end_date, granularity = nil,
# @param end_date [String] End date of the period to analyze, in &#x60;YYYY-MM-DD&#x60; format. (required)
# @param granularity [Granularity] Granularity of the aggregated metrics. - &#x60;hourly&#x60;: the maximum time range for hourly metrics is 7 days. - &#x60;daily&#x60;: the maximum time range for daily metrics is 365 days. (default to 'daily')
# @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 [GetUsage200Response]
# @return [IndexUsage]
def get_usage(statistic, start_date, end_date, granularity = nil, request_options = {})
response = get_usage_with_http_info(statistic, start_date, end_date, granularity, request_options)
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Usage::GetUsage200Response")
@api_client.deserialize(response.body, request_options[:debug_return_type] || "Usage::IndexUsage")
end

end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Abtesting
# Empty searches removed from the A/B test as a result of configuration settings.
class FilterEffectsEmptySearch
class EmptySearchFilter
# Number of users removed from the A/B test.
attr_accessor :users_count

Expand Down Expand Up @@ -47,7 +47,7 @@ def initialize(attributes = {})
if (!attributes.is_a?(Hash))
raise(
ArgumentError,
"The input argument (attributes) must be a hash in `Algolia::FilterEffectsEmptySearch` initialize method"
"The input argument (attributes) must be a hash in `Algolia::EmptySearchFilter` initialize method"
)
end

Expand All @@ -56,7 +56,7 @@ def initialize(attributes = {})
if (!self.class.attribute_map.key?(k.to_sym))
raise(
ArgumentError,
"`#{k}` is not a valid attribute in `Algolia::FilterEffectsEmptySearch`. Please check the name to make sure it's valid. List of attributes: " +
"`#{k}` is not a valid attribute in `Algolia::EmptySearchFilter`. Please check the name to make sure it's valid. List of attributes: " +
self.class.attribute_map.keys.inspect
)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/algolia/models/abtesting/filter_effects.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.types_mapping
{
:outliers => :"FilterEffectsOutliers",
:empty_search => :"FilterEffectsEmptySearch"
:outliers => :"OutliersFilter",
:empty_search => :"EmptySearchFilter"
}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Abtesting
# Outliers removed from the A/B test as a result of configuration settings.
class FilterEffectsOutliers
class OutliersFilter
# Number of users removed from the A/B test.
attr_accessor :users_count

Expand Down Expand Up @@ -47,7 +47,7 @@ def initialize(attributes = {})
if (!attributes.is_a?(Hash))
raise(
ArgumentError,
"The input argument (attributes) must be a hash in `Algolia::FilterEffectsOutliers` initialize method"
"The input argument (attributes) must be a hash in `Algolia::OutliersFilter` initialize method"
)
end

Expand All @@ -56,7 +56,7 @@ def initialize(attributes = {})
if (!self.class.attribute_map.key?(k.to_sym))
raise(
ArgumentError,
"`#{k}` is not a valid attribute in `Algolia::FilterEffectsOutliers`. Please check the name to make sure it's valid. List of attributes: " +
"`#{k}` is not a valid attribute in `Algolia::OutliersFilter`. Please check the name to make sure it's valid. List of attributes: " +
self.class.attribute_map.keys.inspect
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Analytics
# Click position.
class ClickPositionsInner
class ClickPosition
# Range of positions in the search results, using the pattern `[start,end]`. For positions 11 and up, click events are summed over the specified range. `-1` indicates the end of the list of search results.
attr_accessor :position

Expand Down Expand Up @@ -47,7 +47,7 @@ def initialize(attributes = {})
if (!attributes.is_a?(Hash))
raise(
ArgumentError,
"The input argument (attributes) must be a hash in `Algolia::ClickPositionsInner` initialize method"
"The input argument (attributes) must be a hash in `Algolia::ClickPosition` initialize method"
)
end

Expand All @@ -56,7 +56,7 @@ def initialize(attributes = {})
if (!self.class.attribute_map.key?(k.to_sym))
raise(
ArgumentError,
"`#{k}` is not a valid attribute in `Algolia::ClickPositionsInner`. Please check the name to make sure it's valid. List of attributes: " +
"`#{k}` is not a valid attribute in `Algolia::ClickPosition`. Please check the name to make sure it's valid. List of attributes: " +
self.class.attribute_map.keys.inspect
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.types_mapping
{
:positions => :"Array<ClickPositionsInner>"
:positions => :"Array<ClickPosition>"
}
end

Expand Down
2 changes: 1 addition & 1 deletion lib/algolia/models/analytics/top_search_with_analytics.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def self.types_mapping
:count => :"Integer",
:click_through_rate => :"Float",
:average_click_position => :"Float",
:click_positions => :"Array<ClickPositionsInner>",
:click_positions => :"Array<ClickPosition>",
:conversion_rate => :"Float",
:tracked_search_count => :"Integer",
:click_count => :"Integer",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def self.types_mapping
:count => :"Integer",
:click_through_rate => :"Float",
:average_click_position => :"Float",
:click_positions => :"Array<ClickPositionsInner>",
:click_positions => :"Array<ClickPosition>",
:conversion_rate => :"Float",
:tracked_search_count => :"Integer",
:click_count => :"Integer",
Expand Down
1 change: 1 addition & 0 deletions lib/algolia/models/ingestion/docker_streams_input.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

module Algolia
module Ingestion
# The selected streams of a singer or airbyte connector.
class DockerStreamsInput
attr_accessor :streams

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Algolia
module Ingestion
# The error if the transformation failed.
class TransformationTryResponseError
class TransformationError
# The error status code.
attr_accessor :code

Expand Down Expand Up @@ -47,7 +47,7 @@ def initialize(attributes = {})
if (!attributes.is_a?(Hash))
raise(
ArgumentError,
"The input argument (attributes) must be a hash in `Algolia::TransformationTryResponseError` initialize method"
"The input argument (attributes) must be a hash in `Algolia::TransformationError` initialize method"
)
end

Expand All @@ -56,7 +56,7 @@ def initialize(attributes = {})
if (!self.class.attribute_map.key?(k.to_sym))
raise(
ArgumentError,
"`#{k}` is not a valid attribute in `Algolia::TransformationTryResponseError`. Please check the name to make sure it's valid. List of attributes: " +
"`#{k}` is not a valid attribute in `Algolia::TransformationError`. Please check the name to make sure it's valid. List of attributes: " +
self.class.attribute_map.keys.inspect
)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def self.acceptable_attributes
def self.types_mapping
{
:payloads => :"Array<Object>",
:error => :"TransformationTryResponseError"
:error => :"TransformationError"
}
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module Algolia
module Monitoring
class GetServers403Response
class BadRequest
attr_accessor :reason

# Attribute mapping from ruby-style variable name to JSON key.
Expand Down Expand Up @@ -40,7 +40,7 @@ def initialize(attributes = {})
if (!attributes.is_a?(Hash))
raise(
ArgumentError,
"The input argument (attributes) must be a hash in `Algolia::GetServers403Response` initialize method"
"The input argument (attributes) must be a hash in `Algolia::BadRequest` initialize method"
)
end

Expand All @@ -49,7 +49,7 @@ def initialize(attributes = {})
if (!self.class.attribute_map.key?(k.to_sym))
raise(
ArgumentError,
"`#{k}` is not a valid attribute in `Algolia::GetServers403Response`. Please check the name to make sure it's valid. List of attributes: " +
"`#{k}` is not a valid attribute in `Algolia::BadRequest`. Please check the name to make sure it's valid. List of attributes: " +
self.class.attribute_map.keys.inspect
)
end
Expand Down
Loading

0 comments on commit ae6d438

Please sign in to comment.