algolia 3.0.0.alpha.14 → 3.0.0.alpha.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +2 -2
- data/lib/algolia/api/abtesting_client.rb +4 -4
- data/lib/algolia/api/analytics_client.rb +268 -98
- data/lib/algolia/api/ingestion_client.rb +271 -200
- data/lib/algolia/api/insights_client.rb +4 -4
- data/lib/algolia/api/monitoring_client.rb +53 -53
- data/lib/algolia/api/personalization_client.rb +4 -4
- data/lib/algolia/api/query_suggestions_client.rb +18 -18
- data/lib/algolia/api/recommend_client.rb +4 -4
- data/lib/algolia/api/search_client.rb +4 -4
- data/lib/algolia/models/abtesting/{currencies_value.rb → currency.rb} +3 -3
- data/lib/algolia/models/abtesting/variant.rb +2 -5
- data/lib/algolia/models/analytics/{click_position.rb → click_positions_inner.rb} +38 -9
- data/lib/algolia/models/analytics/currencies_value.rb +208 -0
- data/lib/algolia/models/analytics/daily_add_to_cart_rates.rb +265 -0
- data/lib/algolia/models/analytics/daily_average_clicks.rb +249 -0
- data/lib/algolia/models/analytics/{click_through_rate_event.rb → daily_click_through_rates.rb} +24 -14
- data/lib/algolia/models/analytics/daily_conversion_rates.rb +265 -0
- data/lib/algolia/models/analytics/{no_click_rate_event.rb → daily_no_click_rates.rb} +21 -7
- data/lib/algolia/models/analytics/{no_results_rate_event.rb → daily_no_results_rates.rb} +7 -7
- data/lib/algolia/models/analytics/{conversion_rate_event.rb → daily_purchase_rates.rb} +18 -22
- data/lib/algolia/models/analytics/{average_click_event.rb → daily_revenue.rb} +15 -25
- data/lib/algolia/models/analytics/{search_event.rb → daily_searches.rb} +4 -4
- data/lib/algolia/models/analytics/{search_no_result_event.rb → daily_searches_no_clicks.rb} +19 -5
- data/lib/algolia/models/analytics/{search_no_click_event.rb → daily_searches_no_results.rb} +19 -5
- data/lib/algolia/models/analytics/{user_with_date.rb → daily_users.rb} +5 -5
- data/lib/algolia/models/analytics/get_add_to_cart_rate_response.rb +267 -0
- data/lib/algolia/models/analytics/get_average_click_position_response.rb +31 -5
- data/lib/algolia/models/analytics/get_click_positions_response.rb +6 -6
- data/lib/algolia/models/analytics/get_click_through_rate_response.rb +22 -12
- data/lib/algolia/models/analytics/get_conversion_rate_response.rb +267 -0
- data/lib/algolia/models/analytics/get_no_click_rate_response.rb +19 -5
- data/lib/algolia/models/analytics/get_no_results_rate_response.rb +5 -5
- data/lib/algolia/models/analytics/{get_conversation_rate_response.rb → get_purchase_rate_response.rb} +19 -23
- data/lib/algolia/models/analytics/get_revenue.rb +215 -0
- data/lib/algolia/models/analytics/get_searches_count_response.rb +2 -2
- data/lib/algolia/models/analytics/get_searches_no_clicks_response.rb +2 -2
- data/lib/algolia/models/analytics/get_searches_no_results_response.rb +2 -2
- data/lib/algolia/models/analytics/get_status_response.rb +4 -2
- data/lib/algolia/models/analytics/get_top_countries_response.rb +1 -1
- data/lib/algolia/models/analytics/get_top_filter_attributes_response.rb +1 -1
- data/lib/algolia/models/analytics/get_top_filter_for_attribute.rb +23 -2
- data/lib/algolia/models/analytics/get_top_filters_no_results_response.rb +4 -2
- data/lib/algolia/models/analytics/get_top_filters_no_results_value.rb +23 -2
- data/lib/algolia/models/analytics/get_top_hits_response.rb +2 -1
- data/lib/algolia/models/analytics/get_top_searches_response.rb +2 -1
- data/lib/algolia/models/analytics/get_users_count_response.rb +3 -3
- data/lib/algolia/models/analytics/operator.rb +38 -0
- data/lib/algolia/models/analytics/top_country.rb +1 -1
- data/lib/algolia/models/analytics/top_hit.rb +1 -1
- data/lib/algolia/models/analytics/top_hit_with_analytics.rb +60 -21
- data/lib/algolia/models/analytics/top_hit_with_revenue_analytics.rb +437 -0
- data/lib/algolia/models/analytics/top_hits_response.rb +1 -1
- data/lib/algolia/models/analytics/top_hits_response_with_analytics.rb +1 -1
- data/lib/algolia/models/analytics/top_hits_response_with_revenue_analytics.rb +201 -0
- data/lib/algolia/models/analytics/top_search.rb +2 -2
- data/lib/algolia/models/analytics/top_search_with_analytics.rb +99 -17
- data/lib/algolia/models/analytics/top_search_with_revenue_analytics.rb +504 -0
- data/lib/algolia/models/analytics/top_searches_response.rb +1 -1
- data/lib/algolia/models/analytics/top_searches_response_with_analytics.rb +1 -1
- data/lib/algolia/models/analytics/top_searches_response_with_revenue_analytics.rb +201 -0
- data/lib/algolia/models/ingestion/auth_algolia.rb +3 -2
- data/lib/algolia/models/ingestion/auth_algolia_partial.rb +3 -2
- data/lib/algolia/models/ingestion/auth_api_key.rb +2 -1
- data/lib/algolia/models/ingestion/auth_api_key_partial.rb +2 -1
- data/lib/algolia/models/ingestion/auth_basic.rb +3 -1
- data/lib/algolia/models/ingestion/auth_basic_partial.rb +3 -1
- data/lib/algolia/models/ingestion/auth_google_service_account.rb +3 -3
- data/lib/algolia/models/ingestion/auth_google_service_account_partial.rb +3 -3
- data/lib/algolia/models/ingestion/auth_o_auth.rb +18 -8
- data/lib/algolia/models/ingestion/auth_o_auth_partial.rb +18 -8
- data/lib/algolia/models/ingestion/authentication.rb +5 -5
- data/lib/algolia/models/ingestion/authentication_create.rb +2 -2
- data/lib/algolia/models/ingestion/authentication_create_response.rb +4 -4
- data/lib/algolia/models/ingestion/authentication_search.rb +1 -1
- data/lib/algolia/models/ingestion/authentication_update.rb +2 -2
- data/lib/algolia/models/ingestion/authentication_update_response.rb +4 -4
- data/lib/algolia/models/ingestion/big_commerce_channel.rb +2 -2
- data/lib/algolia/models/ingestion/big_commerce_metafield.rb +2 -2
- data/lib/algolia/models/ingestion/commercetools_custom_fields.rb +1 -1
- data/lib/algolia/models/ingestion/delete_response.rb +1 -1
- data/lib/algolia/models/ingestion/destination.rb +6 -6
- data/lib/algolia/models/ingestion/destination_create.rb +3 -3
- data/lib/algolia/models/ingestion/destination_create_response.rb +4 -4
- data/lib/algolia/models/ingestion/destination_index_name.rb +2 -2
- data/lib/algolia/models/ingestion/destination_index_prefix.rb +1 -1
- data/lib/algolia/models/ingestion/destination_search.rb +1 -1
- data/lib/algolia/models/ingestion/destination_type.rb +1 -2
- data/lib/algolia/models/ingestion/destination_update.rb +3 -3
- data/lib/algolia/models/ingestion/destination_update_response.rb +4 -4
- data/lib/algolia/models/ingestion/docker_source_discover.rb +2 -2
- data/lib/algolia/models/ingestion/event.rb +3 -3
- data/lib/algolia/models/ingestion/list_tasks_response.rb +1 -1
- data/lib/algolia/models/ingestion/mapping_format_schema.rb +32 -0
- data/lib/algolia/models/ingestion/mapping_input.rb +24 -3
- data/lib/algolia/models/ingestion/on_demand_date_utils_input.rb +3 -3
- data/lib/algolia/models/ingestion/on_demand_trigger.rb +2 -2
- data/lib/algolia/models/ingestion/on_demand_trigger_input.rb +1 -1
- data/lib/algolia/models/ingestion/pagination.rb +65 -0
- data/lib/algolia/models/ingestion/platform.rb +2 -1
- data/lib/algolia/models/ingestion/run.rb +7 -7
- data/lib/algolia/models/ingestion/run_response.rb +3 -3
- data/lib/algolia/models/ingestion/schedule_date_utils_input.rb +2 -2
- data/lib/algolia/models/ingestion/schedule_trigger.rb +4 -4
- data/lib/algolia/models/ingestion/schedule_trigger_input.rb +2 -2
- data/lib/algolia/models/ingestion/source.rb +4 -4
- data/lib/algolia/models/ingestion/source_big_commerce.rb +1 -1
- data/lib/algolia/models/ingestion/source_big_query.rb +5 -5
- data/lib/algolia/models/ingestion/source_commercetools.rb +2 -2
- data/lib/algolia/models/ingestion/source_create.rb +2 -1
- data/lib/algolia/models/ingestion/source_create_response.rb +3 -2
- data/lib/algolia/models/ingestion/source_csv.rb +3 -3
- data/lib/algolia/models/ingestion/source_docker.rb +3 -3
- data/lib/algolia/models/ingestion/source_ga4_big_query_export.rb +3 -3
- data/lib/algolia/models/ingestion/source_json.rb +2 -2
- data/lib/algolia/models/ingestion/source_type.rb +5 -3
- data/lib/algolia/models/ingestion/source_update.rb +2 -1
- data/lib/algolia/models/ingestion/source_update_commercetools.rb +2 -3
- data/lib/algolia/models/ingestion/source_update_docker.rb +3 -3
- data/lib/algolia/models/ingestion/source_update_response.rb +3 -2
- data/lib/algolia/models/ingestion/streaming_trigger.rb +1 -1
- data/lib/algolia/models/ingestion/streaming_utils_input.rb +1 -1
- data/lib/algolia/models/ingestion/subscription_trigger.rb +1 -1
- data/lib/algolia/models/ingestion/task.rb +7 -7
- data/lib/algolia/models/ingestion/task_create.rb +5 -5
- data/lib/algolia/models/ingestion/task_create_response.rb +3 -3
- data/lib/algolia/models/ingestion/task_input.rb +1 -0
- data/lib/algolia/models/ingestion/task_update.rb +4 -4
- data/lib/algolia/models/ingestion/task_update_response.rb +3 -3
- data/lib/algolia/models/ingestion/trigger.rb +1 -0
- data/lib/algolia/models/ingestion/trigger_update_input.rb +2 -2
- data/lib/algolia/models/ingestion/window.rb +3 -3
- data/lib/algolia/models/insights/purchased_object_ids_after_search.rb +2 -0
- data/lib/algolia/models/monitoring/{get_inventory403_response.rb → get_servers403_response.rb} +3 -3
- data/lib/algolia/models/monitoring/server.rb +2 -2
- data/lib/algolia/models/query-suggestions/app_id.rb +197 -0
- data/lib/algolia/models/query-suggestions/get_config_status200_response.rb +2 -2
- data/lib/algolia/models/query-suggestions/get_log_file200_response.rb +1 -1
- data/lib/algolia/models/query-suggestions/languages.rb +1 -1
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration.rb +2 -3
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_response.rb +23 -34
- data/lib/algolia/models/query-suggestions/query_suggestions_configuration_with_index.rb +18 -20
- data/lib/algolia/models/query-suggestions/source_index.rb +3 -5
- data/lib/algolia/version.rb +1 -1
- metadata +29 -15
@@ -6,7 +6,7 @@ require 'time'
|
|
6
6
|
module Algolia
|
7
7
|
module Analytics
|
8
8
|
class TopSearchesResponse
|
9
|
-
#
|
9
|
+
# Most popular searches and their number of search results (hits).
|
10
10
|
attr_accessor :searches
|
11
11
|
|
12
12
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -6,7 +6,7 @@ require 'time'
|
|
6
6
|
module Algolia
|
7
7
|
module Analytics
|
8
8
|
class TopSearchesResponseWithAnalytics
|
9
|
-
#
|
9
|
+
# Most popular searches and their associated click and conversion metrics.
|
10
10
|
attr_accessor :searches
|
11
11
|
|
12
12
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -0,0 +1,201 @@
|
|
1
|
+
# 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.
|
2
|
+
|
3
|
+
require 'date'
|
4
|
+
require 'time'
|
5
|
+
|
6
|
+
module Algolia
|
7
|
+
module Analytics
|
8
|
+
class TopSearchesResponseWithRevenueAnalytics
|
9
|
+
# Most popular searches, including their click and revenue metrics.
|
10
|
+
attr_accessor :searches
|
11
|
+
|
12
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
13
|
+
def self.attribute_map
|
14
|
+
{
|
15
|
+
:searches => :searches
|
16
|
+
}
|
17
|
+
end
|
18
|
+
|
19
|
+
# Returns all the JSON keys this model knows about
|
20
|
+
def self.acceptable_attributes
|
21
|
+
attribute_map.values
|
22
|
+
end
|
23
|
+
|
24
|
+
# Attribute type mapping.
|
25
|
+
def self.types_mapping
|
26
|
+
{
|
27
|
+
:searches => :'Array<TopSearchWithRevenueAnalytics>'
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
# List of attributes with nullable: true
|
32
|
+
def self.openapi_nullable
|
33
|
+
Set.new([])
|
34
|
+
end
|
35
|
+
|
36
|
+
# Initializes the object
|
37
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
38
|
+
def initialize(attributes = {})
|
39
|
+
unless attributes.is_a?(Hash)
|
40
|
+
raise ArgumentError, "The input argument (attributes) must be a hash in `Algolia::TopSearchesResponseWithRevenueAnalytics` initialize method"
|
41
|
+
end
|
42
|
+
|
43
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
44
|
+
attributes = attributes.each_with_object({}) do |(k, v), h|
|
45
|
+
unless self.class.attribute_map.key?(k.to_sym)
|
46
|
+
raise ArgumentError,
|
47
|
+
"`#{k}` is not a valid attribute in `Algolia::TopSearchesResponseWithRevenueAnalytics`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
48
|
+
end
|
49
|
+
|
50
|
+
h[k.to_sym] = v
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.key?(:searches)
|
54
|
+
if (value = attributes[:searches]).is_a?(Array)
|
55
|
+
self.searches = value
|
56
|
+
end
|
57
|
+
else
|
58
|
+
self.searches = nil
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Checks equality by comparing each attribute.
|
63
|
+
# @param [Object] Object to be compared
|
64
|
+
def ==(other)
|
65
|
+
return true if equal?(other)
|
66
|
+
|
67
|
+
self.class == other.class &&
|
68
|
+
searches == other.searches
|
69
|
+
end
|
70
|
+
|
71
|
+
# @see the `==` method
|
72
|
+
# @param [Object] Object to be compared
|
73
|
+
def eql?(other)
|
74
|
+
self == other
|
75
|
+
end
|
76
|
+
|
77
|
+
# Calculates hash code according to all attributes.
|
78
|
+
# @return [Integer] Hash code
|
79
|
+
def hash
|
80
|
+
[searches].hash
|
81
|
+
end
|
82
|
+
|
83
|
+
# Builds the object from hash
|
84
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
85
|
+
# @return [Object] Returns the model itself
|
86
|
+
def self.build_from_hash(attributes)
|
87
|
+
return nil unless attributes.is_a?(Hash)
|
88
|
+
|
89
|
+
attributes = attributes.transform_keys(&:to_sym)
|
90
|
+
transformed_hash = {}
|
91
|
+
types_mapping.each_pair do |key, type|
|
92
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
93
|
+
transformed_hash[key.to_sym] = nil
|
94
|
+
elsif type =~ /\AArray<(.*)>/i
|
95
|
+
# check to ensure the input is an array given that the attribute
|
96
|
+
# is documented as an array but the input is not
|
97
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
98
|
+
transformed_hash[key.to_sym] = attributes[attribute_map[key]].map { |v| _deserialize(::Regexp.last_match(1), v) }
|
99
|
+
end
|
100
|
+
elsif !attributes[attribute_map[key]].nil?
|
101
|
+
transformed_hash[key.to_sym] = _deserialize(type, attributes[attribute_map[key]])
|
102
|
+
end
|
103
|
+
end
|
104
|
+
new(transformed_hash)
|
105
|
+
end
|
106
|
+
|
107
|
+
# Deserializes the data based on type
|
108
|
+
# @param string type Data type
|
109
|
+
# @param string value Value to be deserialized
|
110
|
+
# @return [Object] Deserialized data
|
111
|
+
def self._deserialize(type, value)
|
112
|
+
case type.to_sym
|
113
|
+
when :Time
|
114
|
+
Time.parse(value)
|
115
|
+
when :Date
|
116
|
+
Date.parse(value)
|
117
|
+
when :String
|
118
|
+
value.to_s
|
119
|
+
when :Integer
|
120
|
+
value.to_i
|
121
|
+
when :Float
|
122
|
+
value.to_f
|
123
|
+
when :Boolean
|
124
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
125
|
+
true
|
126
|
+
else
|
127
|
+
false
|
128
|
+
end
|
129
|
+
when :Object
|
130
|
+
# generic object (usually a Hash), return directly
|
131
|
+
value
|
132
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
133
|
+
inner_type = Regexp.last_match[:inner_type]
|
134
|
+
value.map { |v| _deserialize(inner_type, v) }
|
135
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
136
|
+
k_type = Regexp.last_match[:k_type]
|
137
|
+
v_type = Regexp.last_match[:v_type]
|
138
|
+
{}.tap do |hash|
|
139
|
+
value.each do |k, v|
|
140
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
else # model
|
144
|
+
# models (e.g. Pet) or oneOf
|
145
|
+
klass = Algolia::Analytics.const_get(type)
|
146
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Returns the string representation of the object
|
151
|
+
# @return [String] String presentation of the object
|
152
|
+
def to_s
|
153
|
+
to_hash.to_s
|
154
|
+
end
|
155
|
+
|
156
|
+
# to_body is an alias to to_hash (backward compatibility)
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_body
|
159
|
+
to_hash
|
160
|
+
end
|
161
|
+
|
162
|
+
def to_json(*_args)
|
163
|
+
to_hash.to_json
|
164
|
+
end
|
165
|
+
|
166
|
+
# Returns the object in the form of hash
|
167
|
+
# @return [Hash] Returns the object in the form of hash
|
168
|
+
def to_hash
|
169
|
+
hash = {}
|
170
|
+
self.class.attribute_map.each_pair do |attr, param|
|
171
|
+
value = send(attr)
|
172
|
+
if value.nil?
|
173
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
174
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
175
|
+
end
|
176
|
+
|
177
|
+
hash[param] = _to_hash(value)
|
178
|
+
end
|
179
|
+
hash
|
180
|
+
end
|
181
|
+
|
182
|
+
# Outputs non-array value in the form of hash
|
183
|
+
# For object, use to_hash. Otherwise, just return the value
|
184
|
+
# @param [Object] value Any valid value
|
185
|
+
# @return [Hash] Returns the value in the form of hash
|
186
|
+
def _to_hash(value)
|
187
|
+
if value.is_a?(Array)
|
188
|
+
value.compact.map { |v| _to_hash(v) }
|
189
|
+
elsif value.is_a?(Hash)
|
190
|
+
{}.tap do |hash|
|
191
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
192
|
+
end
|
193
|
+
elsif value.respond_to? :to_hash
|
194
|
+
value.to_hash
|
195
|
+
else
|
196
|
+
value
|
197
|
+
end
|
198
|
+
end
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
@@ -5,11 +5,12 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
+
# Credentials for authenticating with Algolia.
|
8
9
|
class AuthAlgolia
|
9
|
-
# Algolia
|
10
|
+
# Algolia application ID.
|
10
11
|
attr_accessor :app_id
|
11
12
|
|
12
|
-
# Algolia API
|
13
|
+
# Algolia API key with the ACL: `addObject`, `deleteObject`, `settings`, `editSettings`, `listIndexes`, `deleteIndex`. This field is `null` in the API response.
|
13
14
|
attr_accessor :api_key
|
14
15
|
|
15
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -5,11 +5,12 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
+
# Credentials for authenticating with Algolia.
|
8
9
|
class AuthAlgoliaPartial
|
9
|
-
# Algolia
|
10
|
+
# Algolia application ID.
|
10
11
|
attr_accessor :app_id
|
11
12
|
|
12
|
-
# Algolia API
|
13
|
+
# Algolia API key with the ACL: `addObject`, `deleteObject`, `settings`, `editSettings`, `listIndexes`, `deleteIndex`. This field is `null` in the API response.
|
13
14
|
attr_accessor :api_key
|
14
15
|
|
15
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -5,8 +5,9 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Credentials for authenticating with an API key.
|
9
9
|
class AuthAPIKey
|
10
|
+
# API key. This field is `null` in the API response.
|
10
11
|
attr_accessor :key
|
11
12
|
|
12
13
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -5,8 +5,9 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Credentials for authenticating with an API key.
|
9
9
|
class AuthAPIKeyPartial
|
10
|
+
# API key. This field is `null` in the API response.
|
10
11
|
attr_accessor :key
|
11
12
|
|
12
13
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -5,10 +5,12 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Credentials for authenticating with user name and password.
|
9
9
|
class AuthBasic
|
10
|
+
# Username.
|
10
11
|
attr_accessor :username
|
11
12
|
|
13
|
+
# Password. This field is `null` in the API response.
|
12
14
|
attr_accessor :password
|
13
15
|
|
14
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -5,10 +5,12 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Credentials for authenticating with user name and password.
|
9
9
|
class AuthBasicPartial
|
10
|
+
# Username.
|
10
11
|
attr_accessor :username
|
11
12
|
|
13
|
+
# Password. This field is `null` in the API response.
|
12
14
|
attr_accessor :password
|
13
15
|
|
14
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -5,12 +5,12 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Credentials for authenticating with a Google service account, such as BigQuery.
|
9
9
|
class AuthGoogleServiceAccount
|
10
|
-
# Email address of the
|
10
|
+
# Email address of the Google service account.
|
11
11
|
attr_accessor :client_email
|
12
12
|
|
13
|
-
# Private key of the
|
13
|
+
# Private key of the Google service account. This field is `null` in the API response.
|
14
14
|
attr_accessor :private_key
|
15
15
|
|
16
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -5,12 +5,12 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Credentials for authenticating with a Google service account, such as BigQuery.
|
9
9
|
class AuthGoogleServiceAccountPartial
|
10
|
-
# Email address of the
|
10
|
+
# Email address of the Google service account.
|
11
11
|
attr_accessor :client_email
|
12
12
|
|
13
|
-
# Private key of the
|
13
|
+
# Private key of the Google service account. This field is `null` in the API response.
|
14
14
|
attr_accessor :private_key
|
15
15
|
|
16
16
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -5,23 +5,27 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Credentials for authenticating with OAuth 2.0.
|
9
9
|
class AuthOAuth
|
10
|
-
#
|
10
|
+
# URL for the OAuth endpoint.
|
11
11
|
attr_accessor :url
|
12
12
|
|
13
|
-
#
|
13
|
+
# Client ID.
|
14
14
|
attr_accessor :client_id
|
15
15
|
|
16
|
-
#
|
16
|
+
# Client secret. This field is `null` in the API response.
|
17
17
|
attr_accessor :client_secret
|
18
18
|
|
19
|
+
# OAuth scope.
|
20
|
+
attr_accessor :scope
|
21
|
+
|
19
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
23
|
def self.attribute_map
|
21
24
|
{
|
22
25
|
:url => :url,
|
23
26
|
:client_id => :client_id,
|
24
|
-
:client_secret => :client_secret
|
27
|
+
:client_secret => :client_secret,
|
28
|
+
:scope => :scope
|
25
29
|
}
|
26
30
|
end
|
27
31
|
|
@@ -35,7 +39,8 @@ module Algolia
|
|
35
39
|
{
|
36
40
|
:url => :String,
|
37
41
|
:client_id => :String,
|
38
|
-
:client_secret => :String
|
42
|
+
:client_secret => :String,
|
43
|
+
:scope => :String
|
39
44
|
}
|
40
45
|
end
|
41
46
|
|
@@ -78,6 +83,10 @@ module Algolia
|
|
78
83
|
else
|
79
84
|
self.client_secret = nil
|
80
85
|
end
|
86
|
+
|
87
|
+
if attributes.key?(:scope)
|
88
|
+
self.scope = attributes[:scope]
|
89
|
+
end
|
81
90
|
end
|
82
91
|
|
83
92
|
# Checks equality by comparing each attribute.
|
@@ -88,7 +97,8 @@ module Algolia
|
|
88
97
|
self.class == other.class &&
|
89
98
|
url == other.url &&
|
90
99
|
client_id == other.client_id &&
|
91
|
-
client_secret == other.client_secret
|
100
|
+
client_secret == other.client_secret &&
|
101
|
+
scope == other.scope
|
92
102
|
end
|
93
103
|
|
94
104
|
# @see the `==` method
|
@@ -100,7 +110,7 @@ module Algolia
|
|
100
110
|
# Calculates hash code according to all attributes.
|
101
111
|
# @return [Integer] Hash code
|
102
112
|
def hash
|
103
|
-
[url, client_id, client_secret].hash
|
113
|
+
[url, client_id, client_secret, scope].hash
|
104
114
|
end
|
105
115
|
|
106
116
|
# Builds the object from hash
|
@@ -5,23 +5,27 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Credentials for authenticating with OAuth 2.0.
|
9
9
|
class AuthOAuthPartial
|
10
|
-
#
|
10
|
+
# URL for the OAuth endpoint.
|
11
11
|
attr_accessor :url
|
12
12
|
|
13
|
-
#
|
13
|
+
# Client ID.
|
14
14
|
attr_accessor :client_id
|
15
15
|
|
16
|
-
#
|
16
|
+
# Client secret. This field is `null` in the API response.
|
17
17
|
attr_accessor :client_secret
|
18
18
|
|
19
|
+
# OAuth scope.
|
20
|
+
attr_accessor :scope
|
21
|
+
|
19
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
23
|
def self.attribute_map
|
21
24
|
{
|
22
25
|
:url => :url,
|
23
26
|
:client_id => :client_id,
|
24
|
-
:client_secret => :client_secret
|
27
|
+
:client_secret => :client_secret,
|
28
|
+
:scope => :scope
|
25
29
|
}
|
26
30
|
end
|
27
31
|
|
@@ -35,7 +39,8 @@ module Algolia
|
|
35
39
|
{
|
36
40
|
:url => :String,
|
37
41
|
:client_id => :String,
|
38
|
-
:client_secret => :String
|
42
|
+
:client_secret => :String,
|
43
|
+
:scope => :String
|
39
44
|
}
|
40
45
|
end
|
41
46
|
|
@@ -72,6 +77,10 @@ module Algolia
|
|
72
77
|
if attributes.key?(:client_secret)
|
73
78
|
self.client_secret = attributes[:client_secret]
|
74
79
|
end
|
80
|
+
|
81
|
+
if attributes.key?(:scope)
|
82
|
+
self.scope = attributes[:scope]
|
83
|
+
end
|
75
84
|
end
|
76
85
|
|
77
86
|
# Checks equality by comparing each attribute.
|
@@ -82,7 +91,8 @@ module Algolia
|
|
82
91
|
self.class == other.class &&
|
83
92
|
url == other.url &&
|
84
93
|
client_id == other.client_id &&
|
85
|
-
client_secret == other.client_secret
|
94
|
+
client_secret == other.client_secret &&
|
95
|
+
scope == other.scope
|
86
96
|
end
|
87
97
|
|
88
98
|
# @see the `==` method
|
@@ -94,7 +104,7 @@ module Algolia
|
|
94
104
|
# Calculates hash code according to all attributes.
|
95
105
|
# @return [Integer] Hash code
|
96
106
|
def hash
|
97
|
-
[url, client_id, client_secret].hash
|
107
|
+
[url, client_id, client_secret, scope].hash
|
98
108
|
end
|
99
109
|
|
100
110
|
# Builds the object from hash
|
@@ -5,24 +5,24 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Resource representing the information required to authenticate with a source or a destination.
|
9
9
|
class Authentication
|
10
|
-
#
|
10
|
+
# Universally unique identifier (UUID) of an authentication resource.
|
11
11
|
attr_accessor :authentication_id
|
12
12
|
|
13
13
|
attr_accessor :type
|
14
14
|
|
15
|
-
#
|
15
|
+
# Descriptive name for the resource.
|
16
16
|
attr_accessor :name
|
17
17
|
|
18
18
|
attr_accessor :platform
|
19
19
|
|
20
20
|
attr_accessor :input
|
21
21
|
|
22
|
-
# Date of creation
|
22
|
+
# Date of creation in RFC3339 format.
|
23
23
|
attr_accessor :created_at
|
24
24
|
|
25
|
-
# Date of last update
|
25
|
+
# Date of last update in RFC3339 format.
|
26
26
|
attr_accessor :updated_at
|
27
27
|
|
28
28
|
class EnumAttributeValidator
|
@@ -5,11 +5,11 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Request body for creating a new authentication resource.
|
9
9
|
class AuthenticationCreate
|
10
10
|
attr_accessor :type
|
11
11
|
|
12
|
-
#
|
12
|
+
# Descriptive name for the resource.
|
13
13
|
attr_accessor :name
|
14
14
|
|
15
15
|
attr_accessor :platform
|
@@ -5,15 +5,15 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# API response for the successful creation of an authentication resource.
|
9
9
|
class AuthenticationCreateResponse
|
10
|
-
#
|
10
|
+
# Universally unique identifier (UUID) of an authentication resource.
|
11
11
|
attr_accessor :authentication_id
|
12
12
|
|
13
|
-
#
|
13
|
+
# Descriptive name for the resource.
|
14
14
|
attr_accessor :name
|
15
15
|
|
16
|
-
# Date of creation
|
16
|
+
# Date of creation in RFC3339 format.
|
17
17
|
attr_accessor :created_at
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -5,7 +5,7 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Request body for searching for authentication resources.
|
9
9
|
class AuthenticationSearch
|
10
10
|
attr_accessor :authentication_ids
|
11
11
|
|
@@ -5,11 +5,11 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# Request body for updating an authentication resource.
|
9
9
|
class AuthenticationUpdate
|
10
10
|
attr_accessor :type
|
11
11
|
|
12
|
-
#
|
12
|
+
# Descriptive name for the resource.
|
13
13
|
attr_accessor :name
|
14
14
|
|
15
15
|
attr_accessor :platform
|
@@ -5,15 +5,15 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
#
|
8
|
+
# API response for a successful update of an authentication resource.
|
9
9
|
class AuthenticationUpdateResponse
|
10
|
-
#
|
10
|
+
# Universally unique identifier (UUID) of an authentication resource.
|
11
11
|
attr_accessor :authentication_id
|
12
12
|
|
13
|
-
#
|
13
|
+
# Descriptive name for the resource.
|
14
14
|
attr_accessor :name
|
15
15
|
|
16
|
-
# Date of last update
|
16
|
+
# Date of last update in RFC3339 format.
|
17
17
|
attr_accessor :updated_at
|
18
18
|
|
19
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -6,10 +6,10 @@ require 'time'
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
8
|
class BigCommerceChannel
|
9
|
-
#
|
9
|
+
# ID of the BigCommerce channel.
|
10
10
|
attr_accessor :id
|
11
11
|
|
12
|
-
#
|
12
|
+
# Currencies for the given channel.
|
13
13
|
attr_accessor :currencies
|
14
14
|
|
15
15
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -6,10 +6,10 @@ require 'time'
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
8
|
class BigCommerceMetafield
|
9
|
-
#
|
9
|
+
# Namespace of the metafield.
|
10
10
|
attr_accessor :namespace
|
11
11
|
|
12
|
-
#
|
12
|
+
# Key identifier of the metafield.
|
13
13
|
attr_accessor :key
|
14
14
|
|
15
15
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -5,7 +5,7 @@ require 'time'
|
|
5
5
|
|
6
6
|
module Algolia
|
7
7
|
module Ingestion
|
8
|
-
# Custom fields from
|
8
|
+
# Custom fields from commercetools to add to the records. For more information, see [Using Custom Types and Custom Fields](https://docs.commercetools.com/tutorials/custom-types).
|
9
9
|
class CommercetoolsCustomFields
|
10
10
|
# Inventory custom fields.
|
11
11
|
attr_accessor :inventory
|