google-cloud-retail 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11d3c9e4deee056e6b0b7d2acbc8bd85a73670f8f925d9eed55a8f6e8c116a83
4
- data.tar.gz: d9bd5e9d2fda81e6fcc5b6a131da59ddc9e2b763015d07b432e29ccedf379620
3
+ metadata.gz: ecbf42a8ddb8eca22c559621073600bc341e91f27b7b942877a78df58475d280
4
+ data.tar.gz: 0531a056012fb57a7f5f5215b9a6580caa5970c467b1401995f1dedf8270c40a
5
5
  SHA512:
6
- metadata.gz: 51585988c05742df3b5f85a1d00f98ffaaf64c17a018a294a0b881f4076d12bd7577a84aa53b502f87d63ba7ceb187f6207e51396ced96b46ad1e432c8c8096e
7
- data.tar.gz: e01d2751bec46261120f19f97f48ccc1cdef42ddc9fbfb2b5080edaddb54980dff88a0b0e67bb73ef5b234a6cbf1d74575192e6a41d63c552b20f9589e28cf17
6
+ metadata.gz: 5f9b4a89d048a3de2482e8f0d1e838c8161798ad9b890dcc5a7af98c260f082939372855ac6eefe5d17dcb6331165a707b0bc5acd3f55daba152a9cad95dded4
7
+ data.tar.gz: 2fed92768a291225b2329ede64883770ea77554e818f45939a19a5db2147b0af2f7e710a19c419d6030b79af8ef9f451eee492f07ff6fe21a4e395a3d7729481
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Retail
23
- VERSION = "1.3.0"
23
+ VERSION = "1.4.0"
24
24
  end
25
25
  end
26
26
  end
@@ -107,6 +107,36 @@ module Google
107
107
  package_module.const_get(:CompletionService).const_get(:Client).new(&block)
108
108
  end
109
109
 
110
+ ##
111
+ # Create a new client object for ControlService.
112
+ #
113
+ # By default, this returns an instance of
114
+ # [Google::Cloud::Retail::V2::ControlService::Client](https://googleapis.dev/ruby/google-cloud-retail-v2/latest/Google/Cloud/Retail/V2/ControlService/Client.html)
115
+ # for version V2 of the API.
116
+ # However, you can specify specify a different API version by passing it in the
117
+ # `version` parameter. If the ControlService service is
118
+ # supported by that API version, and the corresponding gem is available, the
119
+ # appropriate versioned client will be returned.
120
+ #
121
+ # ## About ControlService
122
+ #
123
+ # Service for modifying Control.
124
+ #
125
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
126
+ # Defaults to `:v2`.
127
+ # @return [ControlService::Client] A client object for the specified version.
128
+ #
129
+ def self.control_service version: :v2, &block
130
+ require "google/cloud/retail/#{version.to_s.downcase}"
131
+
132
+ package_name = Google::Cloud::Retail
133
+ .constants
134
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
135
+ .first
136
+ package_module = Google::Cloud::Retail.const_get package_name
137
+ package_module.const_get(:ControlService).const_get(:Client).new(&block)
138
+ end
139
+
110
140
  ##
111
141
  # Create a new client object for PredictionService.
112
142
  #
@@ -201,6 +231,36 @@ module Google
201
231
  package_module.const_get(:SearchService).const_get(:Client).new(&block)
202
232
  end
203
233
 
234
+ ##
235
+ # Create a new client object for ServingConfigService.
236
+ #
237
+ # By default, this returns an instance of
238
+ # [Google::Cloud::Retail::V2::ServingConfigService::Client](https://googleapis.dev/ruby/google-cloud-retail-v2/latest/Google/Cloud/Retail/V2/ServingConfigService/Client.html)
239
+ # for version V2 of the API.
240
+ # However, you can specify specify a different API version by passing it in the
241
+ # `version` parameter. If the ServingConfigService service is
242
+ # supported by that API version, and the corresponding gem is available, the
243
+ # appropriate versioned client will be returned.
244
+ #
245
+ # ## About ServingConfigService
246
+ #
247
+ # Service for modifying ServingConfig.
248
+ #
249
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
250
+ # Defaults to `:v2`.
251
+ # @return [ServingConfigService::Client] A client object for the specified version.
252
+ #
253
+ def self.serving_config_service version: :v2, &block
254
+ require "google/cloud/retail/#{version.to_s.downcase}"
255
+
256
+ package_name = Google::Cloud::Retail
257
+ .constants
258
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
259
+ .first
260
+ package_module = Google::Cloud::Retail.const_get package_name
261
+ package_module.const_get(:ServingConfigService).const_get(:Client).new(&block)
262
+ end
263
+
204
264
  ##
205
265
  # Create a new client object for UserEventService.
206
266
  #
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.3.0
4
+ version: 1.4.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: 2022-07-07 00:00:00.000000000 Z
11
+ date: 2022-09-03 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.4'
33
+ version: '0.11'
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.4'
43
+ version: '0.11'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a