google-cloud-retail-v2 0.12.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/retail/v2/catalog_service/client.rb +18 -6
- data/lib/google/cloud/retail/v2/catalog_service/rest/client.rb +1220 -0
- data/lib/google/cloud/retail/v2/catalog_service/rest/service_stub.rb +704 -0
- data/lib/google/cloud/retail/v2/catalog_service/rest.rb +52 -0
- data/lib/google/cloud/retail/v2/catalog_service.rb +6 -0
- data/lib/google/cloud/retail/v2/completion_service/client.rb +18 -4
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +12 -14
- data/lib/google/cloud/retail/v2/completion_service/rest/client.rb +533 -0
- data/lib/google/cloud/retail/v2/completion_service/rest/operations.rb +828 -0
- data/lib/google/cloud/retail/v2/completion_service/rest/service_stub.rb +167 -0
- data/lib/google/cloud/retail/v2/completion_service/rest.rb +56 -0
- data/lib/google/cloud/retail/v2/completion_service.rb +6 -0
- data/lib/google/cloud/retail/v2/control_service/client.rb +18 -6
- data/lib/google/cloud/retail/v2/control_service/rest/client.rb +680 -0
- data/lib/google/cloud/retail/v2/control_service/rest/service_stub.rb +345 -0
- data/lib/google/cloud/retail/v2/control_service/rest.rb +52 -0
- data/lib/google/cloud/retail/v2/control_service.rb +6 -0
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +14 -0
- data/lib/google/cloud/retail/v2/prediction_service/rest/client.rb +486 -0
- data/lib/google/cloud/retail/v2/prediction_service/rest/service_stub.rb +116 -0
- data/lib/google/cloud/retail/v2/prediction_service/rest.rb +52 -0
- data/lib/google/cloud/retail/v2/prediction_service.rb +6 -0
- data/lib/google/cloud/retail/v2/product_service/client.rb +42 -30
- data/lib/google/cloud/retail/v2/product_service/operations.rb +12 -14
- data/lib/google/cloud/retail/v2/product_service/rest/client.rb +1649 -0
- data/lib/google/cloud/retail/v2/product_service/rest/operations.rb +828 -0
- data/lib/google/cloud/retail/v2/product_service/rest/service_stub.rb +705 -0
- data/lib/google/cloud/retail/v2/product_service/rest.rb +54 -0
- data/lib/google/cloud/retail/v2/product_service.rb +6 -0
- data/lib/google/cloud/retail/v2/rest.rb +44 -0
- data/lib/google/cloud/retail/v2/search_service/client.rb +18 -6
- data/lib/google/cloud/retail/v2/search_service/rest/client.rb +598 -0
- data/lib/google/cloud/retail/v2/search_service/rest/service_stub.rb +116 -0
- data/lib/google/cloud/retail/v2/search_service/rest.rb +55 -0
- data/lib/google/cloud/retail/v2/search_service.rb +6 -0
- data/lib/google/cloud/retail/v2/serving_config_service/client.rb +18 -6
- data/lib/google/cloud/retail/v2/serving_config_service/rest/client.rb +825 -0
- data/lib/google/cloud/retail/v2/serving_config_service/rest/service_stub.rb +465 -0
- data/lib/google/cloud/retail/v2/serving_config_service/rest.rb +52 -0
- data/lib/google/cloud/retail/v2/serving_config_service.rb +6 -0
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +26 -12
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +12 -14
- data/lib/google/cloud/retail/v2/user_event_service/rest/client.rb +755 -0
- data/lib/google/cloud/retail/v2/user_event_service/rest/operations.rb +828 -0
- data/lib/google/cloud/retail/v2/user_event_service/rest/service_stub.rb +347 -0
- data/lib/google/cloud/retail/v2/user_event_service/rest.rb +53 -0
- data/lib/google/cloud/retail/v2/user_event_service.rb +6 -0
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/lib/google/cloud/retail/v2.rb +5 -0
- metadata +58 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d734af19fd64b2147921c37cd075cc519a0d3cd078572b48c16f5050ed0540f7
|
|
4
|
+
data.tar.gz: 223e56bf3584d620c7c1727678bf423e4e63c7e328828716d9b603e34b03d1b2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5cc895e75d1a8c5f005dd495d094fae51a059c056a3a62316f7c6a179f0cb66101d39fdf62b00aeeb9a77428cb1bc741a7de5c476c67a083502932ec0dda1406
|
|
7
|
+
data.tar.gz: 462e1ab0eaaaf1a9ad2316aa2738edb272434a7e8d170040b8c52c7437e550088b6fc37c4d9a10fd5bd5c18b7aeff05de498ece96712534da6fe7f36b96104ff
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Ruby Client for the Retail V2 API
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Cloud Retail service enables customers to build end-to-end personalized recommendation systems without requiring a high level of expertise in machine learning, recommendation system, or Google Cloud.
|
|
4
4
|
|
|
5
5
|
Retail enables you to build an end-to-end personalized recommendation system based on state-of-the-art deep learning ML models, without a need for expertise in ML or recommendation systems.
|
|
6
6
|
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
require "google/cloud/errors"
|
|
20
20
|
require "google/cloud/retail/v2/catalog_service_pb"
|
|
21
|
+
require "google/cloud/location"
|
|
21
22
|
|
|
22
23
|
module Google
|
|
23
24
|
module Cloud
|
|
@@ -138,6 +139,12 @@ module Google
|
|
|
138
139
|
@quota_project_id = @config.quota_project
|
|
139
140
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
140
141
|
|
|
142
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
|
143
|
+
config.credentials = credentials
|
|
144
|
+
config.quota_project = @quota_project_id
|
|
145
|
+
config.endpoint = @config.endpoint
|
|
146
|
+
end
|
|
147
|
+
|
|
141
148
|
@catalog_service_stub = ::Gapic::ServiceStub.new(
|
|
142
149
|
::Google::Cloud::Retail::V2::CatalogService::Stub,
|
|
143
150
|
credentials: credentials,
|
|
@@ -147,6 +154,13 @@ module Google
|
|
|
147
154
|
)
|
|
148
155
|
end
|
|
149
156
|
|
|
157
|
+
##
|
|
158
|
+
# Get the associated client for mix-in of the Locations.
|
|
159
|
+
#
|
|
160
|
+
# @return [Google::Cloud::Location::Locations::Client]
|
|
161
|
+
#
|
|
162
|
+
attr_reader :location_client
|
|
163
|
+
|
|
150
164
|
# Service calls
|
|
151
165
|
|
|
152
166
|
##
|
|
@@ -213,13 +227,11 @@ module Google
|
|
|
213
227
|
# # Call the list_catalogs method.
|
|
214
228
|
# result = client.list_catalogs request
|
|
215
229
|
#
|
|
216
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
217
|
-
# #
|
|
218
|
-
#
|
|
219
|
-
# # methods are also available for managing paging directly.
|
|
220
|
-
# result.each do |response|
|
|
230
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
231
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
232
|
+
# result.each do |item|
|
|
221
233
|
# # Each element is of type ::Google::Cloud::Retail::V2::Catalog.
|
|
222
|
-
# p
|
|
234
|
+
# p item
|
|
223
235
|
# end
|
|
224
236
|
#
|
|
225
237
|
def list_catalogs request, options = nil
|