google-cloud-discovery_engine 0.4.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/README.md +1 -1
- data/lib/google/cloud/discovery_engine/version.rb +1 -1
- data/lib/google/cloud/discovery_engine.rb +34 -0
- metadata +4 -116
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
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ In order to use this library, you first need to go through the following steps:
|
|
37
37
|
|
38
38
|
## Supported Ruby Versions
|
39
39
|
|
40
|
-
This library is supported on Ruby 2.
|
40
|
+
This library is supported on Ruby 2.7+.
|
41
41
|
|
42
42
|
Google provides official support for Ruby versions that are actively supported
|
43
43
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -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
|
@@ -64,118 +64,6 @@ dependencies:
|
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
name: google-style
|
69
|
-
requirement: !ruby/object:Gem::Requirement
|
70
|
-
requirements:
|
71
|
-
- - "~>"
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: 1.26.1
|
74
|
-
type: :development
|
75
|
-
prerelease: false
|
76
|
-
version_requirements: !ruby/object:Gem::Requirement
|
77
|
-
requirements:
|
78
|
-
- - "~>"
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: 1.26.1
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: minitest
|
83
|
-
requirement: !ruby/object:Gem::Requirement
|
84
|
-
requirements:
|
85
|
-
- - "~>"
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version: '5.16'
|
88
|
-
type: :development
|
89
|
-
prerelease: false
|
90
|
-
version_requirements: !ruby/object:Gem::Requirement
|
91
|
-
requirements:
|
92
|
-
- - "~>"
|
93
|
-
- !ruby/object:Gem::Version
|
94
|
-
version: '5.16'
|
95
|
-
- !ruby/object:Gem::Dependency
|
96
|
-
name: minitest-focus
|
97
|
-
requirement: !ruby/object:Gem::Requirement
|
98
|
-
requirements:
|
99
|
-
- - "~>"
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
version: '1.1'
|
102
|
-
type: :development
|
103
|
-
prerelease: false
|
104
|
-
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
requirements:
|
106
|
-
- - "~>"
|
107
|
-
- !ruby/object:Gem::Version
|
108
|
-
version: '1.1'
|
109
|
-
- !ruby/object:Gem::Dependency
|
110
|
-
name: minitest-rg
|
111
|
-
requirement: !ruby/object:Gem::Requirement
|
112
|
-
requirements:
|
113
|
-
- - "~>"
|
114
|
-
- !ruby/object:Gem::Version
|
115
|
-
version: '5.2'
|
116
|
-
type: :development
|
117
|
-
prerelease: false
|
118
|
-
version_requirements: !ruby/object:Gem::Requirement
|
119
|
-
requirements:
|
120
|
-
- - "~>"
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: '5.2'
|
123
|
-
- !ruby/object:Gem::Dependency
|
124
|
-
name: rake
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
requirements:
|
127
|
-
- - ">="
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: '13.0'
|
130
|
-
type: :development
|
131
|
-
prerelease: false
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
requirements:
|
134
|
-
- - ">="
|
135
|
-
- !ruby/object:Gem::Version
|
136
|
-
version: '13.0'
|
137
|
-
- !ruby/object:Gem::Dependency
|
138
|
-
name: redcarpet
|
139
|
-
requirement: !ruby/object:Gem::Requirement
|
140
|
-
requirements:
|
141
|
-
- - "~>"
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version: '3.0'
|
144
|
-
type: :development
|
145
|
-
prerelease: false
|
146
|
-
version_requirements: !ruby/object:Gem::Requirement
|
147
|
-
requirements:
|
148
|
-
- - "~>"
|
149
|
-
- !ruby/object:Gem::Version
|
150
|
-
version: '3.0'
|
151
|
-
- !ruby/object:Gem::Dependency
|
152
|
-
name: simplecov
|
153
|
-
requirement: !ruby/object:Gem::Requirement
|
154
|
-
requirements:
|
155
|
-
- - "~>"
|
156
|
-
- !ruby/object:Gem::Version
|
157
|
-
version: '0.9'
|
158
|
-
type: :development
|
159
|
-
prerelease: false
|
160
|
-
version_requirements: !ruby/object:Gem::Requirement
|
161
|
-
requirements:
|
162
|
-
- - "~>"
|
163
|
-
- !ruby/object:Gem::Version
|
164
|
-
version: '0.9'
|
165
|
-
- !ruby/object:Gem::Dependency
|
166
|
-
name: yard
|
167
|
-
requirement: !ruby/object:Gem::Requirement
|
168
|
-
requirements:
|
169
|
-
- - "~>"
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
version: '0.9'
|
172
|
-
type: :development
|
173
|
-
prerelease: false
|
174
|
-
version_requirements: !ruby/object:Gem::Requirement
|
175
|
-
requirements:
|
176
|
-
- - "~>"
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
version: '0.9'
|
179
67
|
description: Discovery Engine API.
|
180
68
|
email: googleapis-packages@google.com
|
181
69
|
executables: []
|
@@ -201,14 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
89
|
requirements:
|
202
90
|
- - ">="
|
203
91
|
- !ruby/object:Gem::Version
|
204
|
-
version: '2.
|
92
|
+
version: '2.7'
|
205
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
206
94
|
requirements:
|
207
95
|
- - ">="
|
208
96
|
- !ruby/object:Gem::Version
|
209
97
|
version: '0'
|
210
98
|
requirements: []
|
211
|
-
rubygems_version: 3.5.
|
99
|
+
rubygems_version: 3.5.6
|
212
100
|
signing_key:
|
213
101
|
specification_version: 4
|
214
102
|
summary: Discovery Engine API.
|