google-cloud-discovery_engine 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/discovery_engine/version.rb +1 -1
- data/lib/google/cloud/discovery_engine.rb +34 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d13bddca5d56b2abe7b76478cb2f50591f353dcc917fb517a4f317a02f09bbd0
|
4
|
+
data.tar.gz: 21a29e031317a02d724c3c5570bab6c8b7d170161c8a8a11cd2514be2f786bd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24d94df74e76230c23019df2f73ba8fbb5040e00f9fe063d15aa347767e998ca67180fa2045da56627fd22c2c9c310a81eee4237ba1d7a4fa28a0210e7cd3032
|
7
|
+
data.tar.gz: da33944b1d061c60b929f1b8cd9357d2e6c2bf20bd915653f7a4c1402c23a4ec3e64635f5e30e8a97ba439ac317c33c593902b91abccd9763078dcc3614cf5a4
|
@@ -252,6 +252,40 @@ module Google
|
|
252
252
|
service_module.const_get(:Client).new(&block)
|
253
253
|
end
|
254
254
|
|
255
|
+
##
|
256
|
+
# Create a new client object for RecommendationService.
|
257
|
+
#
|
258
|
+
# By default, this returns an instance of
|
259
|
+
# [Google::Cloud::DiscoveryEngine::V1::RecommendationService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-discovery_engine-v1/latest/Google-Cloud-DiscoveryEngine-V1-RecommendationService-Client)
|
260
|
+
# for a gRPC client for version V1 of the API.
|
261
|
+
# However, you can specify a different API version by passing it in the
|
262
|
+
# `version` parameter. If the RecommendationService service is
|
263
|
+
# supported by that API version, and the corresponding gem is available, the
|
264
|
+
# appropriate versioned client will be returned.
|
265
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
266
|
+
# the `transport` parameter.
|
267
|
+
#
|
268
|
+
# ## About RecommendationService
|
269
|
+
#
|
270
|
+
# Service for making recommendations.
|
271
|
+
#
|
272
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
273
|
+
# Defaults to `:v1`.
|
274
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
275
|
+
# @return [::Object] A client object for the specified version.
|
276
|
+
#
|
277
|
+
def self.recommendation_service version: :v1, transport: :grpc, &block
|
278
|
+
require "google/cloud/discovery_engine/#{version.to_s.downcase}"
|
279
|
+
|
280
|
+
package_name = Google::Cloud::DiscoveryEngine
|
281
|
+
.constants
|
282
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
283
|
+
.first
|
284
|
+
service_module = Google::Cloud::DiscoveryEngine.const_get(package_name).const_get(:RecommendationService)
|
285
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
286
|
+
service_module.const_get(:Client).new(&block)
|
287
|
+
end
|
288
|
+
|
255
289
|
##
|
256
290
|
# Create a new client object for SchemaService.
|
257
291
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-discovery_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.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: 2024-
|
11
|
+
date: 2024-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|