google-cloud-discovery_engine 0.5.0 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9f44985b1db31360ee11e941ac87438b1abd08d8fe9f0c163561e035dcbc24a
4
- data.tar.gz: 46b441ee467e71a52afc4f09ba3ee8a88f69c8d838c75202bcbe6e3650d34c40
3
+ metadata.gz: d13bddca5d56b2abe7b76478cb2f50591f353dcc917fb517a4f317a02f09bbd0
4
+ data.tar.gz: 21a29e031317a02d724c3c5570bab6c8b7d170161c8a8a11cd2514be2f786bd1
5
5
  SHA512:
6
- metadata.gz: 394cbdcd0cc14786a062d3ec43e41e5cdfa3759b1ba6dbf5735a6cc138dbb4d9cde026b01252427852a7cb8765a7448ae48465cbad728d8a667ca57284e83eeb
7
- data.tar.gz: f608d8e172f18f0b8f8e1ef955b32652de3c64a7932bb21d0545f28db2b0f5e977ebd20fcb3cd405afd661b4b40d54ef500d602f4d501f1a565bd5a28860bb28
6
+ metadata.gz: 24d94df74e76230c23019df2f73ba8fbb5040e00f9fe063d15aa347767e998ca67180fa2045da56627fd22c2c9c310a81eee4237ba1d7a4fa28a0210e7cd3032
7
+ data.tar.gz: da33944b1d061c60b929f1b8cd9357d2e6c2bf20bd915653f7a4c1402c23a4ec3e64635f5e30e8a97ba439ac317c33c593902b91abccd9763078dcc3614cf5a4
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module DiscoveryEngine
23
- VERSION = "0.5.0"
23
+ VERSION = "0.6.0"
24
24
  end
25
25
  end
26
26
  end
@@ -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.5.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-02-26 00:00:00.000000000 Z
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