google-cloud-retail 1.1.2 → 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: b1d608763e7661aadb9a8bcf3bc059512759549fef4b0e6101ecbb169503c531
4
- data.tar.gz: d3449081a36b65525625adc6ffc21a71d9a2ee672ed19d52f4f0a852b7fcbdc2
3
+ metadata.gz: ecbf42a8ddb8eca22c559621073600bc341e91f27b7b942877a78df58475d280
4
+ data.tar.gz: 0531a056012fb57a7f5f5215b9a6580caa5970c467b1401995f1dedf8270c40a
5
5
  SHA512:
6
- metadata.gz: a93fe2e853564130d4e1a078d368791e5d4c74bb1bce444825eb4116085752d0d6242349a625c58f37c83d0b611c8acac0ad12eb3be0106f3f3fc10b70361364
7
- data.tar.gz: ed9c53fe0da430686fe3e9aedbfd85d9966ad1145e5d412f1d15573a67fc845042920f03f3a81db514a65c8220548fc5ad6ef697d7201de2bbdd52ccb6c09952
6
+ metadata.gz: 5f9b4a89d048a3de2482e8f0d1e838c8161798ad9b890dcc5a7af98c260f082939372855ac6eefe5d17dcb6331165a707b0bc5acd3f55daba152a9cad95dded4
7
+ data.tar.gz: 2fed92768a291225b2329ede64883770ea77554e818f45939a19a5db2147b0af2f7e710a19c419d6030b79af8ef9f451eee492f07ff6fe21a4e395a3d7729481
data/README.md CHANGED
@@ -11,7 +11,7 @@ verisoned gems in as dependencies, and provides high-level methods for
11
11
  constructing clients. More information on versioned clients can be found below
12
12
  in the section titled *Which client should I use?*.
13
13
 
14
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-retail/latest)
14
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-retail/latest)
15
15
  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
@@ -62,14 +62,14 @@ end
62
62
 
63
63
  ## Supported Ruby Versions
64
64
 
65
- This library is supported on Ruby 2.5+.
65
+ This library is supported on Ruby 2.6+.
66
66
 
67
67
  Google provides official support for Ruby versions that are actively supported
68
68
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
69
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
70
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
71
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
72
- about the Ruby support schedule.
69
+ in security maintenance, and not end of life. Older versions of Ruby _may_
70
+ still work, but are unsupported and not recommended. See
71
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
72
+ support schedule.
73
73
 
74
74
  ## Which client should I use?
75
75
 
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Retail
23
- VERSION = "1.1.2"
23
+ VERSION = "1.4.0"
24
24
  end
25
25
  end
26
26
  end
@@ -90,8 +90,7 @@ module Google
90
90
  # Auto-completion service for retail.
91
91
  #
92
92
  # This feature is only available for users who have Retail Search enabled.
93
- # Please submit a form [here](https://cloud.google.com/contact) to contact
94
- # cloud sales if you are interested in using Retail Search.
93
+ # Please enable Retail Search on Cloud Console before using this feature.
95
94
  #
96
95
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
97
96
  # Defaults to `:v2`.
@@ -108,6 +107,36 @@ module Google
108
107
  package_module.const_get(:CompletionService).const_get(:Client).new(&block)
109
108
  end
110
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
+
111
140
  ##
112
141
  # Create a new client object for PredictionService.
113
142
  #
@@ -185,8 +214,7 @@ module Google
185
214
  # Service for search.
186
215
  #
187
216
  # This feature is only available for users who have Retail Search enabled.
188
- # Please submit a form [here](https://cloud.google.com/contact) to contact
189
- # cloud sales if you are interested in using Retail Search.
217
+ # Please enable Retail Search on Cloud Console before using this feature.
190
218
  #
191
219
  # @param version [::String, ::Symbol] The API version to connect to. Optional.
192
220
  # Defaults to `:v2`.
@@ -203,6 +231,36 @@ module Google
203
231
  package_module.const_get(:SearchService).const_get(:Client).new(&block)
204
232
  end
205
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
+
206
264
  ##
207
265
  # Create a new client object for UserEventService.
208
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.1.2
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-01-11 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
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -183,14 +183,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
183
  requirements:
184
184
  - - ">="
185
185
  - !ruby/object:Gem::Version
186
- version: '2.5'
186
+ version: '2.6'
187
187
  required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  requirements:
189
189
  - - ">="
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.3.4
193
+ rubygems_version: 3.3.14
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: API Client library for the Retail API