google-cloud-retail 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/retail/version.rb +1 -1
- data/lib/google/cloud/retail.rb +54 -9
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 060ad8166da2508d4e0127a9ea5e6f01006df1292a2257d839ed508831443e27
|
4
|
+
data.tar.gz: 805a0e8891dc8e2caecc5562e8fda00bff4ab054589ed4fd2f9eba5ca34dbd17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 712c9e42532350d27aacd7204c9cb1df90ee6fa25602d67bbea01ce63cc1f6970256a5145594cd086873f41e6fa32d218acf8a73d89173499637cb97bccdaf1c
|
7
|
+
data.tar.gz: 216e17b1fe6a35c44fc92f38802179a049519ab9b42773d87d69fc9aae98115a479d38e1fe478eace2b1835a39332493200e2e811502aa5d53dc948505a64475
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ for this library, google-cloud-retail, to see the convenience methods for
|
|
16
16
|
constructing client objects. Reference documentation for the client objects
|
17
17
|
themselves can be found in the client library documentation for the versioned
|
18
18
|
client gems:
|
19
|
-
[google-cloud-retail-v2](https://
|
19
|
+
[google-cloud-retail-v2](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest).
|
20
20
|
|
21
21
|
See also the [Product Documentation](https://cloud.google.com/retail/docs/apis)
|
22
22
|
for more usage information.
|
data/lib/google/cloud/retail.rb
CHANGED
@@ -48,7 +48,7 @@ module Google
|
|
48
48
|
# Create a new client object for CatalogService.
|
49
49
|
#
|
50
50
|
# By default, this returns an instance of
|
51
|
-
# [Google::Cloud::Retail::V2::CatalogService::Client](https://
|
51
|
+
# [Google::Cloud::Retail::V2::CatalogService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-CatalogService-Client)
|
52
52
|
# for a gRPC client for version V2 of the API.
|
53
53
|
# However, you can specify a different API version by passing it in the
|
54
54
|
# `version` parameter. If the CatalogService service is
|
@@ -82,7 +82,7 @@ module Google
|
|
82
82
|
# Create a new client object for CompletionService.
|
83
83
|
#
|
84
84
|
# By default, this returns an instance of
|
85
|
-
# [Google::Cloud::Retail::V2::CompletionService::Client](https://
|
85
|
+
# [Google::Cloud::Retail::V2::CompletionService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-CompletionService-Client)
|
86
86
|
# for a gRPC client for version V2 of the API.
|
87
87
|
# However, you can specify a different API version by passing it in the
|
88
88
|
# `version` parameter. If the CompletionService service is
|
@@ -93,7 +93,7 @@ module Google
|
|
93
93
|
#
|
94
94
|
# ## About CompletionService
|
95
95
|
#
|
96
|
-
#
|
96
|
+
# Autocomplete service for retail.
|
97
97
|
#
|
98
98
|
# This feature is only available for users who have Retail Search enabled.
|
99
99
|
# Enable Retail Search on Cloud Console before using this feature.
|
@@ -119,7 +119,7 @@ module Google
|
|
119
119
|
# Create a new client object for ControlService.
|
120
120
|
#
|
121
121
|
# By default, this returns an instance of
|
122
|
-
# [Google::Cloud::Retail::V2::ControlService::Client](https://
|
122
|
+
# [Google::Cloud::Retail::V2::ControlService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-ControlService-Client)
|
123
123
|
# for a gRPC client for version V2 of the API.
|
124
124
|
# However, you can specify a different API version by passing it in the
|
125
125
|
# `version` parameter. If the ControlService service is
|
@@ -149,11 +149,56 @@ module Google
|
|
149
149
|
service_module.const_get(:Client).new(&block)
|
150
150
|
end
|
151
151
|
|
152
|
+
##
|
153
|
+
# Create a new client object for ModelService.
|
154
|
+
#
|
155
|
+
# By default, this returns an instance of
|
156
|
+
# [Google::Cloud::Retail::V2::ModelService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-ModelService-Client)
|
157
|
+
# for a gRPC client for version V2 of the API.
|
158
|
+
# However, you can specify a different API version by passing it in the
|
159
|
+
# `version` parameter. If the ModelService service is
|
160
|
+
# supported by that API version, and the corresponding gem is available, the
|
161
|
+
# appropriate versioned client will be returned.
|
162
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
163
|
+
# the `transport` parameter.
|
164
|
+
#
|
165
|
+
# ## About ModelService
|
166
|
+
#
|
167
|
+
# Service for performing CRUD operations on models.
|
168
|
+
# Recommendation models contain all the metadata necessary to generate a set of
|
169
|
+
# models for the `Predict()` API. A model is queried
|
170
|
+
# indirectly via a ServingConfig, which associates a model with a
|
171
|
+
# given Placement (e.g. Frequently Bought Together on Home Page).
|
172
|
+
#
|
173
|
+
# This service allows you to do the following:
|
174
|
+
#
|
175
|
+
# * Initiate training of a model.
|
176
|
+
# * Pause training of an existing model.
|
177
|
+
# * List all the available models along with their metadata.
|
178
|
+
# * Control their tuning schedule.
|
179
|
+
#
|
180
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
181
|
+
# Defaults to `:v2`.
|
182
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
183
|
+
# @return [::Object] A client object for the specified version.
|
184
|
+
#
|
185
|
+
def self.model_service version: :v2, transport: :grpc, &block
|
186
|
+
require "google/cloud/retail/#{version.to_s.downcase}"
|
187
|
+
|
188
|
+
package_name = Google::Cloud::Retail
|
189
|
+
.constants
|
190
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
191
|
+
.first
|
192
|
+
service_module = Google::Cloud::Retail.const_get(package_name).const_get(:ModelService)
|
193
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
194
|
+
service_module.const_get(:Client).new(&block)
|
195
|
+
end
|
196
|
+
|
152
197
|
##
|
153
198
|
# Create a new client object for PredictionService.
|
154
199
|
#
|
155
200
|
# By default, this returns an instance of
|
156
|
-
# [Google::Cloud::Retail::V2::PredictionService::Client](https://
|
201
|
+
# [Google::Cloud::Retail::V2::PredictionService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-PredictionService-Client)
|
157
202
|
# for a gRPC client for version V2 of the API.
|
158
203
|
# However, you can specify a different API version by passing it in the
|
159
204
|
# `version` parameter. If the PredictionService service is
|
@@ -187,7 +232,7 @@ module Google
|
|
187
232
|
# Create a new client object for ProductService.
|
188
233
|
#
|
189
234
|
# By default, this returns an instance of
|
190
|
-
# [Google::Cloud::Retail::V2::ProductService::Client](https://
|
235
|
+
# [Google::Cloud::Retail::V2::ProductService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-ProductService-Client)
|
191
236
|
# for a gRPC client for version V2 of the API.
|
192
237
|
# However, you can specify a different API version by passing it in the
|
193
238
|
# `version` parameter. If the ProductService service is
|
@@ -222,7 +267,7 @@ module Google
|
|
222
267
|
# Create a new client object for SearchService.
|
223
268
|
#
|
224
269
|
# By default, this returns an instance of
|
225
|
-
# [Google::Cloud::Retail::V2::SearchService::Client](https://
|
270
|
+
# [Google::Cloud::Retail::V2::SearchService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-SearchService-Client)
|
226
271
|
# for a gRPC client for version V2 of the API.
|
227
272
|
# However, you can specify a different API version by passing it in the
|
228
273
|
# `version` parameter. If the SearchService service is
|
@@ -259,7 +304,7 @@ module Google
|
|
259
304
|
# Create a new client object for ServingConfigService.
|
260
305
|
#
|
261
306
|
# By default, this returns an instance of
|
262
|
-
# [Google::Cloud::Retail::V2::ServingConfigService::Client](https://
|
307
|
+
# [Google::Cloud::Retail::V2::ServingConfigService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-ServingConfigService-Client)
|
263
308
|
# for a gRPC client for version V2 of the API.
|
264
309
|
# However, you can specify a different API version by passing it in the
|
265
310
|
# `version` parameter. If the ServingConfigService service is
|
@@ -293,7 +338,7 @@ module Google
|
|
293
338
|
# Create a new client object for UserEventService.
|
294
339
|
#
|
295
340
|
# By default, this returns an instance of
|
296
|
-
# [Google::Cloud::Retail::V2::UserEventService::Client](https://
|
341
|
+
# [Google::Cloud::Retail::V2::UserEventService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-UserEventService-Client)
|
297
342
|
# for a gRPC client for version V2 of the API.
|
298
343
|
# However, you can specify a different API version by passing it in the
|
299
344
|
# `version` parameter. If the UserEventService service is
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-retail
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.15'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: 2.a
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.15'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 2.a
|