google-cloud-ai_platform 1.4.0 → 1.5.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 +24 -25
- data/lib/google/cloud/ai_platform/version.rb +1 -1
- data/lib/google/cloud/ai_platform.rb +203 -27
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fdd570c5fc045458b2e8dfe46c8cc4ae837da80772257d49af5ec00b57d2540
|
4
|
+
data.tar.gz: 1260358eb3cd6e0af2330eab8a5c80ed30512cc5956fc272253f4f7a25d0b858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8b680ae84b11f4a46fd7d73243be2a1649f13cea94a6e9f5edf224630bb39a727ba1cc2c226810b542199e4d52754bf01ed361c320105f47a281f30080166cc
|
7
|
+
data.tar.gz: ed711fc5a558de75dfc232df58389ca02abc9a35f08ca35b002b4be968d4cf9c53bb4c1aa68e206854f8efc8e04a6b8a585c961bb51780d538d1a5068bb871cb
|
data/README.md
CHANGED
@@ -34,31 +34,30 @@ In order to use this library, you first need to go through the following steps:
|
|
34
34
|
1. [Enable the API.](https://console.cloud.google.com/apis/library/aiplatform.googleapis.com)
|
35
35
|
1. {file:AUTHENTICATION.md Set up authentication.}
|
36
36
|
|
37
|
-
##
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
```
|
37
|
+
## Debug Logging
|
38
|
+
|
39
|
+
This library comes with opt-in Debug Logging that can help you troubleshoot
|
40
|
+
your application's integration with the API. When logging is activated, key
|
41
|
+
events such as requests and responses, along with data payloads and metadata
|
42
|
+
such as headers and client configuration, are logged to the standard error
|
43
|
+
stream.
|
44
|
+
|
45
|
+
**WARNING:** Client Library Debug Logging includes your data payloads in
|
46
|
+
plaintext, which could include sensitive data such as PII for yourself or your
|
47
|
+
customers, private keys, or other security data that could be compromising if
|
48
|
+
leaked. Always practice good data hygiene with your application logs, and follow
|
49
|
+
the principle of least access. Google also recommends that Client Library Debug
|
50
|
+
Logging be enabled only temporarily during active debugging, and not used
|
51
|
+
permanently in production.
|
52
|
+
|
53
|
+
To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
|
54
|
+
to the value `all`. Alternatively, you can set the value to a comma-delimited
|
55
|
+
list of client library gem names. This will select the default logging behavior,
|
56
|
+
which writes logs to the standard error stream. On a local workstation, this may
|
57
|
+
result in logs appearing on the console. When running on a Google Cloud hosting
|
58
|
+
service such as [Google Cloud Run](https://cloud.google.com/run), this generally
|
59
|
+
results in logs appearing alongside your application logs in the
|
60
|
+
[Google Cloud Logging](https://cloud.google.com/logging/) service.
|
62
61
|
|
63
62
|
## Supported Ruby Versions
|
64
63
|
|
@@ -55,6 +55,8 @@ module Google
|
|
55
55
|
# `version` parameter. If the DatasetService service is
|
56
56
|
# supported by that API version, and the corresponding gem is available, the
|
57
57
|
# appropriate versioned client will be returned.
|
58
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
59
|
+
# the `transport` parameter.
|
58
60
|
#
|
59
61
|
# ## About DatasetService
|
60
62
|
#
|
@@ -62,9 +64,10 @@ module Google
|
|
62
64
|
#
|
63
65
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
64
66
|
# Defaults to `:v1`.
|
67
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
65
68
|
# @return [::Object] A client object for the specified version.
|
66
69
|
#
|
67
|
-
def self.dataset_service version: :v1, &block
|
70
|
+
def self.dataset_service version: :v1, transport: :grpc, &block
|
68
71
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
69
72
|
|
70
73
|
package_name = Google::Cloud::AIPlatform
|
@@ -72,6 +75,7 @@ module Google
|
|
72
75
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
73
76
|
.first
|
74
77
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:DatasetService)
|
78
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
75
79
|
service_module.const_get(:Client).new(&block)
|
76
80
|
end
|
77
81
|
|
@@ -85,6 +89,8 @@ module Google
|
|
85
89
|
# `version` parameter. If the DeploymentResourcePoolService service is
|
86
90
|
# supported by that API version, and the corresponding gem is available, the
|
87
91
|
# appropriate versioned client will be returned.
|
92
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
93
|
+
# the `transport` parameter.
|
88
94
|
#
|
89
95
|
# ## About DeploymentResourcePoolService
|
90
96
|
#
|
@@ -92,9 +98,10 @@ module Google
|
|
92
98
|
#
|
93
99
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
94
100
|
# Defaults to `:v1`.
|
101
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
95
102
|
# @return [::Object] A client object for the specified version.
|
96
103
|
#
|
97
|
-
def self.deployment_resource_pool_service version: :v1, &block
|
104
|
+
def self.deployment_resource_pool_service version: :v1, transport: :grpc, &block
|
98
105
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
99
106
|
|
100
107
|
package_name = Google::Cloud::AIPlatform
|
@@ -102,6 +109,7 @@ module Google
|
|
102
109
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
103
110
|
.first
|
104
111
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:DeploymentResourcePoolService)
|
112
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
105
113
|
service_module.const_get(:Client).new(&block)
|
106
114
|
end
|
107
115
|
|
@@ -115,6 +123,8 @@ module Google
|
|
115
123
|
# `version` parameter. If the EndpointService service is
|
116
124
|
# supported by that API version, and the corresponding gem is available, the
|
117
125
|
# appropriate versioned client will be returned.
|
126
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
127
|
+
# the `transport` parameter.
|
118
128
|
#
|
119
129
|
# ## About EndpointService
|
120
130
|
#
|
@@ -122,9 +132,10 @@ module Google
|
|
122
132
|
#
|
123
133
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
124
134
|
# Defaults to `:v1`.
|
135
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
125
136
|
# @return [::Object] A client object for the specified version.
|
126
137
|
#
|
127
|
-
def self.endpoint_service version: :v1, &block
|
138
|
+
def self.endpoint_service version: :v1, transport: :grpc, &block
|
128
139
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
129
140
|
|
130
141
|
package_name = Google::Cloud::AIPlatform
|
@@ -132,6 +143,7 @@ module Google
|
|
132
143
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
133
144
|
.first
|
134
145
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:EndpointService)
|
146
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
135
147
|
service_module.const_get(:Client).new(&block)
|
136
148
|
end
|
137
149
|
|
@@ -145,6 +157,8 @@ module Google
|
|
145
157
|
# `version` parameter. If the EvaluationService service is
|
146
158
|
# supported by that API version, and the corresponding gem is available, the
|
147
159
|
# appropriate versioned client will be returned.
|
160
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
161
|
+
# the `transport` parameter.
|
148
162
|
#
|
149
163
|
# ## About EvaluationService
|
150
164
|
#
|
@@ -152,9 +166,10 @@ module Google
|
|
152
166
|
#
|
153
167
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
154
168
|
# Defaults to `:v1`.
|
169
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
155
170
|
# @return [::Object] A client object for the specified version.
|
156
171
|
#
|
157
|
-
def self.evaluation_service version: :v1, &block
|
172
|
+
def self.evaluation_service version: :v1, transport: :grpc, &block
|
158
173
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
159
174
|
|
160
175
|
package_name = Google::Cloud::AIPlatform
|
@@ -162,6 +177,7 @@ module Google
|
|
162
177
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
163
178
|
.first
|
164
179
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:EvaluationService)
|
180
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
165
181
|
service_module.const_get(:Client).new(&block)
|
166
182
|
end
|
167
183
|
|
@@ -175,6 +191,8 @@ module Google
|
|
175
191
|
# `version` parameter. If the FeatureOnlineStoreAdminService service is
|
176
192
|
# supported by that API version, and the corresponding gem is available, the
|
177
193
|
# appropriate versioned client will be returned.
|
194
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
195
|
+
# the `transport` parameter.
|
178
196
|
#
|
179
197
|
# ## About FeatureOnlineStoreAdminService
|
180
198
|
#
|
@@ -183,9 +201,10 @@ module Google
|
|
183
201
|
#
|
184
202
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
185
203
|
# Defaults to `:v1`.
|
204
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
186
205
|
# @return [::Object] A client object for the specified version.
|
187
206
|
#
|
188
|
-
def self.feature_online_store_admin_service version: :v1, &block
|
207
|
+
def self.feature_online_store_admin_service version: :v1, transport: :grpc, &block
|
189
208
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
190
209
|
|
191
210
|
package_name = Google::Cloud::AIPlatform
|
@@ -193,6 +212,7 @@ module Google
|
|
193
212
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
194
213
|
.first
|
195
214
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeatureOnlineStoreAdminService)
|
215
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
196
216
|
service_module.const_get(:Client).new(&block)
|
197
217
|
end
|
198
218
|
|
@@ -206,6 +226,8 @@ module Google
|
|
206
226
|
# `version` parameter. If the FeaturestoreOnlineServingService service is
|
207
227
|
# supported by that API version, and the corresponding gem is available, the
|
208
228
|
# appropriate versioned client will be returned.
|
229
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
230
|
+
# the `transport` parameter.
|
209
231
|
#
|
210
232
|
# ## About FeaturestoreOnlineServingService
|
211
233
|
#
|
@@ -213,9 +235,10 @@ module Google
|
|
213
235
|
#
|
214
236
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
215
237
|
# Defaults to `:v1`.
|
238
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
216
239
|
# @return [::Object] A client object for the specified version.
|
217
240
|
#
|
218
|
-
def self.featurestore_online_serving_service version: :v1, &block
|
241
|
+
def self.featurestore_online_serving_service version: :v1, transport: :grpc, &block
|
219
242
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
220
243
|
|
221
244
|
package_name = Google::Cloud::AIPlatform
|
@@ -223,6 +246,7 @@ module Google
|
|
223
246
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
224
247
|
.first
|
225
248
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeaturestoreOnlineServingService)
|
249
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
226
250
|
service_module.const_get(:Client).new(&block)
|
227
251
|
end
|
228
252
|
|
@@ -236,6 +260,8 @@ module Google
|
|
236
260
|
# `version` parameter. If the FeatureOnlineStoreService service is
|
237
261
|
# supported by that API version, and the corresponding gem is available, the
|
238
262
|
# appropriate versioned client will be returned.
|
263
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
264
|
+
# the `transport` parameter.
|
239
265
|
#
|
240
266
|
# ## About FeatureOnlineStoreService
|
241
267
|
#
|
@@ -243,9 +269,10 @@ module Google
|
|
243
269
|
#
|
244
270
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
245
271
|
# Defaults to `:v1`.
|
272
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
246
273
|
# @return [::Object] A client object for the specified version.
|
247
274
|
#
|
248
|
-
def self.feature_online_store_service version: :v1, &block
|
275
|
+
def self.feature_online_store_service version: :v1, transport: :grpc, &block
|
249
276
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
250
277
|
|
251
278
|
package_name = Google::Cloud::AIPlatform
|
@@ -253,6 +280,7 @@ module Google
|
|
253
280
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
254
281
|
.first
|
255
282
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeatureOnlineStoreService)
|
283
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
256
284
|
service_module.const_get(:Client).new(&block)
|
257
285
|
end
|
258
286
|
|
@@ -266,6 +294,8 @@ module Google
|
|
266
294
|
# `version` parameter. If the FeaturestoreService service is
|
267
295
|
# supported by that API version, and the corresponding gem is available, the
|
268
296
|
# appropriate versioned client will be returned.
|
297
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
298
|
+
# the `transport` parameter.
|
269
299
|
#
|
270
300
|
# ## About FeaturestoreService
|
271
301
|
#
|
@@ -273,9 +303,10 @@ module Google
|
|
273
303
|
#
|
274
304
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
275
305
|
# Defaults to `:v1`.
|
306
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
276
307
|
# @return [::Object] A client object for the specified version.
|
277
308
|
#
|
278
|
-
def self.featurestore_service version: :v1, &block
|
309
|
+
def self.featurestore_service version: :v1, transport: :grpc, &block
|
279
310
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
280
311
|
|
281
312
|
package_name = Google::Cloud::AIPlatform
|
@@ -283,6 +314,7 @@ module Google
|
|
283
314
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
284
315
|
.first
|
285
316
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeaturestoreService)
|
317
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
286
318
|
service_module.const_get(:Client).new(&block)
|
287
319
|
end
|
288
320
|
|
@@ -296,6 +328,8 @@ module Google
|
|
296
328
|
# `version` parameter. If the FeatureRegistryService service is
|
297
329
|
# supported by that API version, and the corresponding gem is available, the
|
298
330
|
# appropriate versioned client will be returned.
|
331
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
332
|
+
# the `transport` parameter.
|
299
333
|
#
|
300
334
|
# ## About FeatureRegistryService
|
301
335
|
#
|
@@ -304,9 +338,10 @@ module Google
|
|
304
338
|
#
|
305
339
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
306
340
|
# Defaults to `:v1`.
|
341
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
307
342
|
# @return [::Object] A client object for the specified version.
|
308
343
|
#
|
309
|
-
def self.feature_registry_service version: :v1, &block
|
344
|
+
def self.feature_registry_service version: :v1, transport: :grpc, &block
|
310
345
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
311
346
|
|
312
347
|
package_name = Google::Cloud::AIPlatform
|
@@ -314,6 +349,7 @@ module Google
|
|
314
349
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
315
350
|
.first
|
316
351
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeatureRegistryService)
|
352
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
317
353
|
service_module.const_get(:Client).new(&block)
|
318
354
|
end
|
319
355
|
|
@@ -327,6 +363,8 @@ module Google
|
|
327
363
|
# `version` parameter. If the GenAiTuningService service is
|
328
364
|
# supported by that API version, and the corresponding gem is available, the
|
329
365
|
# appropriate versioned client will be returned.
|
366
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
367
|
+
# the `transport` parameter.
|
330
368
|
#
|
331
369
|
# ## About GenAiTuningService
|
332
370
|
#
|
@@ -334,9 +372,10 @@ module Google
|
|
334
372
|
#
|
335
373
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
336
374
|
# Defaults to `:v1`.
|
375
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
337
376
|
# @return [::Object] A client object for the specified version.
|
338
377
|
#
|
339
|
-
def self.gen_ai_tuning_service version: :v1, &block
|
378
|
+
def self.gen_ai_tuning_service version: :v1, transport: :grpc, &block
|
340
379
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
341
380
|
|
342
381
|
package_name = Google::Cloud::AIPlatform
|
@@ -344,6 +383,7 @@ module Google
|
|
344
383
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
345
384
|
.first
|
346
385
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:GenAiTuningService)
|
386
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
347
387
|
service_module.const_get(:Client).new(&block)
|
348
388
|
end
|
349
389
|
|
@@ -357,6 +397,8 @@ module Google
|
|
357
397
|
# `version` parameter. If the IndexEndpointService service is
|
358
398
|
# supported by that API version, and the corresponding gem is available, the
|
359
399
|
# appropriate versioned client will be returned.
|
400
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
401
|
+
# the `transport` parameter.
|
360
402
|
#
|
361
403
|
# ## About IndexEndpointService
|
362
404
|
#
|
@@ -364,9 +406,10 @@ module Google
|
|
364
406
|
#
|
365
407
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
366
408
|
# Defaults to `:v1`.
|
409
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
367
410
|
# @return [::Object] A client object for the specified version.
|
368
411
|
#
|
369
|
-
def self.index_endpoint_service version: :v1, &block
|
412
|
+
def self.index_endpoint_service version: :v1, transport: :grpc, &block
|
370
413
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
371
414
|
|
372
415
|
package_name = Google::Cloud::AIPlatform
|
@@ -374,6 +417,7 @@ module Google
|
|
374
417
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
375
418
|
.first
|
376
419
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:IndexEndpointService)
|
420
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
377
421
|
service_module.const_get(:Client).new(&block)
|
378
422
|
end
|
379
423
|
|
@@ -387,6 +431,8 @@ module Google
|
|
387
431
|
# `version` parameter. If the IndexService service is
|
388
432
|
# supported by that API version, and the corresponding gem is available, the
|
389
433
|
# appropriate versioned client will be returned.
|
434
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
435
|
+
# the `transport` parameter.
|
390
436
|
#
|
391
437
|
# ## About IndexService
|
392
438
|
#
|
@@ -394,9 +440,10 @@ module Google
|
|
394
440
|
#
|
395
441
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
396
442
|
# Defaults to `:v1`.
|
443
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
397
444
|
# @return [::Object] A client object for the specified version.
|
398
445
|
#
|
399
|
-
def self.index_service version: :v1, &block
|
446
|
+
def self.index_service version: :v1, transport: :grpc, &block
|
400
447
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
401
448
|
|
402
449
|
package_name = Google::Cloud::AIPlatform
|
@@ -404,6 +451,7 @@ module Google
|
|
404
451
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
405
452
|
.first
|
406
453
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:IndexService)
|
454
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
407
455
|
service_module.const_get(:Client).new(&block)
|
408
456
|
end
|
409
457
|
|
@@ -417,6 +465,8 @@ module Google
|
|
417
465
|
# `version` parameter. If the JobService service is
|
418
466
|
# supported by that API version, and the corresponding gem is available, the
|
419
467
|
# appropriate versioned client will be returned.
|
468
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
469
|
+
# the `transport` parameter.
|
420
470
|
#
|
421
471
|
# ## About JobService
|
422
472
|
#
|
@@ -424,9 +474,10 @@ module Google
|
|
424
474
|
#
|
425
475
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
426
476
|
# Defaults to `:v1`.
|
477
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
427
478
|
# @return [::Object] A client object for the specified version.
|
428
479
|
#
|
429
|
-
def self.job_service version: :v1, &block
|
480
|
+
def self.job_service version: :v1, transport: :grpc, &block
|
430
481
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
431
482
|
|
432
483
|
package_name = Google::Cloud::AIPlatform
|
@@ -434,6 +485,7 @@ module Google
|
|
434
485
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
435
486
|
.first
|
436
487
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:JobService)
|
488
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
437
489
|
service_module.const_get(:Client).new(&block)
|
438
490
|
end
|
439
491
|
|
@@ -447,6 +499,8 @@ module Google
|
|
447
499
|
# `version` parameter. If the PredictionService service is
|
448
500
|
# supported by that API version, and the corresponding gem is available, the
|
449
501
|
# appropriate versioned client will be returned.
|
502
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
503
|
+
# the `transport` parameter.
|
450
504
|
#
|
451
505
|
# ## About PredictionService
|
452
506
|
#
|
@@ -454,9 +508,10 @@ module Google
|
|
454
508
|
#
|
455
509
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
456
510
|
# Defaults to `:v1`.
|
511
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
457
512
|
# @return [::Object] A client object for the specified version.
|
458
513
|
#
|
459
|
-
def self.prediction_service version: :v1, &block
|
514
|
+
def self.prediction_service version: :v1, transport: :grpc, &block
|
460
515
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
461
516
|
|
462
517
|
package_name = Google::Cloud::AIPlatform
|
@@ -464,6 +519,7 @@ module Google
|
|
464
519
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
465
520
|
.first
|
466
521
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PredictionService)
|
522
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
467
523
|
service_module.const_get(:Client).new(&block)
|
468
524
|
end
|
469
525
|
|
@@ -477,6 +533,8 @@ module Google
|
|
477
533
|
# `version` parameter. If the LlmUtilityService service is
|
478
534
|
# supported by that API version, and the corresponding gem is available, the
|
479
535
|
# appropriate versioned client will be returned.
|
536
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
537
|
+
# the `transport` parameter.
|
480
538
|
#
|
481
539
|
# ## About LlmUtilityService
|
482
540
|
#
|
@@ -484,9 +542,10 @@ module Google
|
|
484
542
|
#
|
485
543
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
486
544
|
# Defaults to `:v1`.
|
545
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
487
546
|
# @return [::Object] A client object for the specified version.
|
488
547
|
#
|
489
|
-
def self.llm_utility_service version: :v1, &block
|
548
|
+
def self.llm_utility_service version: :v1, transport: :grpc, &block
|
490
549
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
491
550
|
|
492
551
|
package_name = Google::Cloud::AIPlatform
|
@@ -494,6 +553,7 @@ module Google
|
|
494
553
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
495
554
|
.first
|
496
555
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:LlmUtilityService)
|
556
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
497
557
|
service_module.const_get(:Client).new(&block)
|
498
558
|
end
|
499
559
|
|
@@ -507,6 +567,8 @@ module Google
|
|
507
567
|
# `version` parameter. If the MatchService service is
|
508
568
|
# supported by that API version, and the corresponding gem is available, the
|
509
569
|
# appropriate versioned client will be returned.
|
570
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
571
|
+
# the `transport` parameter.
|
510
572
|
#
|
511
573
|
# ## About MatchService
|
512
574
|
#
|
@@ -515,9 +577,10 @@ module Google
|
|
515
577
|
#
|
516
578
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
517
579
|
# Defaults to `:v1`.
|
580
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
518
581
|
# @return [::Object] A client object for the specified version.
|
519
582
|
#
|
520
|
-
def self.match_service version: :v1, &block
|
583
|
+
def self.match_service version: :v1, transport: :grpc, &block
|
521
584
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
522
585
|
|
523
586
|
package_name = Google::Cloud::AIPlatform
|
@@ -525,6 +588,7 @@ module Google
|
|
525
588
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
526
589
|
.first
|
527
590
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MatchService)
|
591
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
528
592
|
service_module.const_get(:Client).new(&block)
|
529
593
|
end
|
530
594
|
|
@@ -538,6 +602,8 @@ module Google
|
|
538
602
|
# `version` parameter. If the MetadataService service is
|
539
603
|
# supported by that API version, and the corresponding gem is available, the
|
540
604
|
# appropriate versioned client will be returned.
|
605
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
606
|
+
# the `transport` parameter.
|
541
607
|
#
|
542
608
|
# ## About MetadataService
|
543
609
|
#
|
@@ -545,9 +611,10 @@ module Google
|
|
545
611
|
#
|
546
612
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
547
613
|
# Defaults to `:v1`.
|
614
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
548
615
|
# @return [::Object] A client object for the specified version.
|
549
616
|
#
|
550
|
-
def self.metadata_service version: :v1, &block
|
617
|
+
def self.metadata_service version: :v1, transport: :grpc, &block
|
551
618
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
552
619
|
|
553
620
|
package_name = Google::Cloud::AIPlatform
|
@@ -555,6 +622,7 @@ module Google
|
|
555
622
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
556
623
|
.first
|
557
624
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MetadataService)
|
625
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
558
626
|
service_module.const_get(:Client).new(&block)
|
559
627
|
end
|
560
628
|
|
@@ -568,6 +636,8 @@ module Google
|
|
568
636
|
# `version` parameter. If the MigrationService service is
|
569
637
|
# supported by that API version, and the corresponding gem is available, the
|
570
638
|
# appropriate versioned client will be returned.
|
639
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
640
|
+
# the `transport` parameter.
|
571
641
|
#
|
572
642
|
# ## About MigrationService
|
573
643
|
#
|
@@ -576,9 +646,10 @@ module Google
|
|
576
646
|
#
|
577
647
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
578
648
|
# Defaults to `:v1`.
|
649
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
579
650
|
# @return [::Object] A client object for the specified version.
|
580
651
|
#
|
581
|
-
def self.migration_service version: :v1, &block
|
652
|
+
def self.migration_service version: :v1, transport: :grpc, &block
|
582
653
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
583
654
|
|
584
655
|
package_name = Google::Cloud::AIPlatform
|
@@ -586,6 +657,7 @@ module Google
|
|
586
657
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
587
658
|
.first
|
588
659
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MigrationService)
|
660
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
589
661
|
service_module.const_get(:Client).new(&block)
|
590
662
|
end
|
591
663
|
|
@@ -599,6 +671,8 @@ module Google
|
|
599
671
|
# `version` parameter. If the ModelGardenService service is
|
600
672
|
# supported by that API version, and the corresponding gem is available, the
|
601
673
|
# appropriate versioned client will be returned.
|
674
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
675
|
+
# the `transport` parameter.
|
602
676
|
#
|
603
677
|
# ## About ModelGardenService
|
604
678
|
#
|
@@ -606,9 +680,10 @@ module Google
|
|
606
680
|
#
|
607
681
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
608
682
|
# Defaults to `:v1`.
|
683
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
609
684
|
# @return [::Object] A client object for the specified version.
|
610
685
|
#
|
611
|
-
def self.model_garden_service version: :v1, &block
|
686
|
+
def self.model_garden_service version: :v1, transport: :grpc, &block
|
612
687
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
613
688
|
|
614
689
|
package_name = Google::Cloud::AIPlatform
|
@@ -616,6 +691,7 @@ module Google
|
|
616
691
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
617
692
|
.first
|
618
693
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ModelGardenService)
|
694
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
619
695
|
service_module.const_get(:Client).new(&block)
|
620
696
|
end
|
621
697
|
|
@@ -629,6 +705,8 @@ module Google
|
|
629
705
|
# `version` parameter. If the ModelService service is
|
630
706
|
# supported by that API version, and the corresponding gem is available, the
|
631
707
|
# appropriate versioned client will be returned.
|
708
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
709
|
+
# the `transport` parameter.
|
632
710
|
#
|
633
711
|
# ## About ModelService
|
634
712
|
#
|
@@ -636,9 +714,10 @@ module Google
|
|
636
714
|
#
|
637
715
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
638
716
|
# Defaults to `:v1`.
|
717
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
639
718
|
# @return [::Object] A client object for the specified version.
|
640
719
|
#
|
641
|
-
def self.model_service version: :v1, &block
|
720
|
+
def self.model_service version: :v1, transport: :grpc, &block
|
642
721
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
643
722
|
|
644
723
|
package_name = Google::Cloud::AIPlatform
|
@@ -646,6 +725,7 @@ module Google
|
|
646
725
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
647
726
|
.first
|
648
727
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ModelService)
|
728
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
649
729
|
service_module.const_get(:Client).new(&block)
|
650
730
|
end
|
651
731
|
|
@@ -659,6 +739,8 @@ module Google
|
|
659
739
|
# `version` parameter. If the NotebookService service is
|
660
740
|
# supported by that API version, and the corresponding gem is available, the
|
661
741
|
# appropriate versioned client will be returned.
|
742
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
743
|
+
# the `transport` parameter.
|
662
744
|
#
|
663
745
|
# ## About NotebookService
|
664
746
|
#
|
@@ -666,9 +748,10 @@ module Google
|
|
666
748
|
#
|
667
749
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
668
750
|
# Defaults to `:v1`.
|
751
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
669
752
|
# @return [::Object] A client object for the specified version.
|
670
753
|
#
|
671
|
-
def self.notebook_service version: :v1, &block
|
754
|
+
def self.notebook_service version: :v1, transport: :grpc, &block
|
672
755
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
673
756
|
|
674
757
|
package_name = Google::Cloud::AIPlatform
|
@@ -676,6 +759,7 @@ module Google
|
|
676
759
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
677
760
|
.first
|
678
761
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:NotebookService)
|
762
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
679
763
|
service_module.const_get(:Client).new(&block)
|
680
764
|
end
|
681
765
|
|
@@ -689,6 +773,8 @@ module Google
|
|
689
773
|
# `version` parameter. If the PersistentResourceService service is
|
690
774
|
# supported by that API version, and the corresponding gem is available, the
|
691
775
|
# appropriate versioned client will be returned.
|
776
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
777
|
+
# the `transport` parameter.
|
692
778
|
#
|
693
779
|
# ## About PersistentResourceService
|
694
780
|
#
|
@@ -696,9 +782,10 @@ module Google
|
|
696
782
|
#
|
697
783
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
698
784
|
# Defaults to `:v1`.
|
785
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
699
786
|
# @return [::Object] A client object for the specified version.
|
700
787
|
#
|
701
|
-
def self.persistent_resource_service version: :v1, &block
|
788
|
+
def self.persistent_resource_service version: :v1, transport: :grpc, &block
|
702
789
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
703
790
|
|
704
791
|
package_name = Google::Cloud::AIPlatform
|
@@ -706,6 +793,7 @@ module Google
|
|
706
793
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
707
794
|
.first
|
708
795
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PersistentResourceService)
|
796
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
709
797
|
service_module.const_get(:Client).new(&block)
|
710
798
|
end
|
711
799
|
|
@@ -719,6 +807,8 @@ module Google
|
|
719
807
|
# `version` parameter. If the PipelineService service is
|
720
808
|
# supported by that API version, and the corresponding gem is available, the
|
721
809
|
# appropriate versioned client will be returned.
|
810
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
811
|
+
# the `transport` parameter.
|
722
812
|
#
|
723
813
|
# ## About PipelineService
|
724
814
|
#
|
@@ -728,9 +818,10 @@ module Google
|
|
728
818
|
#
|
729
819
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
730
820
|
# Defaults to `:v1`.
|
821
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
731
822
|
# @return [::Object] A client object for the specified version.
|
732
823
|
#
|
733
|
-
def self.pipeline_service version: :v1, &block
|
824
|
+
def self.pipeline_service version: :v1, transport: :grpc, &block
|
734
825
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
735
826
|
|
736
827
|
package_name = Google::Cloud::AIPlatform
|
@@ -738,6 +829,7 @@ module Google
|
|
738
829
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
739
830
|
.first
|
740
831
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PipelineService)
|
832
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
741
833
|
service_module.const_get(:Client).new(&block)
|
742
834
|
end
|
743
835
|
|
@@ -751,6 +843,8 @@ module Google
|
|
751
843
|
# `version` parameter. If the ScheduleService service is
|
752
844
|
# supported by that API version, and the corresponding gem is available, the
|
753
845
|
# appropriate versioned client will be returned.
|
846
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
847
|
+
# the `transport` parameter.
|
754
848
|
#
|
755
849
|
# ## About ScheduleService
|
756
850
|
#
|
@@ -759,9 +853,10 @@ module Google
|
|
759
853
|
#
|
760
854
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
761
855
|
# Defaults to `:v1`.
|
856
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
762
857
|
# @return [::Object] A client object for the specified version.
|
763
858
|
#
|
764
|
-
def self.schedule_service version: :v1, &block
|
859
|
+
def self.schedule_service version: :v1, transport: :grpc, &block
|
765
860
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
766
861
|
|
767
862
|
package_name = Google::Cloud::AIPlatform
|
@@ -769,6 +864,7 @@ module Google
|
|
769
864
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
770
865
|
.first
|
771
866
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ScheduleService)
|
867
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
772
868
|
service_module.const_get(:Client).new(&block)
|
773
869
|
end
|
774
870
|
|
@@ -782,6 +878,8 @@ module Google
|
|
782
878
|
# `version` parameter. If the SpecialistPoolService service is
|
783
879
|
# supported by that API version, and the corresponding gem is available, the
|
784
880
|
# appropriate versioned client will be returned.
|
881
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
882
|
+
# the `transport` parameter.
|
785
883
|
#
|
786
884
|
# ## About SpecialistPoolService
|
787
885
|
#
|
@@ -794,9 +892,10 @@ module Google
|
|
794
892
|
#
|
795
893
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
796
894
|
# Defaults to `:v1`.
|
895
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
797
896
|
# @return [::Object] A client object for the specified version.
|
798
897
|
#
|
799
|
-
def self.specialist_pool_service version: :v1, &block
|
898
|
+
def self.specialist_pool_service version: :v1, transport: :grpc, &block
|
800
899
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
801
900
|
|
802
901
|
package_name = Google::Cloud::AIPlatform
|
@@ -804,6 +903,7 @@ module Google
|
|
804
903
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
805
904
|
.first
|
806
905
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:SpecialistPoolService)
|
906
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
807
907
|
service_module.const_get(:Client).new(&block)
|
808
908
|
end
|
809
909
|
|
@@ -817,6 +917,8 @@ module Google
|
|
817
917
|
# `version` parameter. If the TensorboardService service is
|
818
918
|
# supported by that API version, and the corresponding gem is available, the
|
819
919
|
# appropriate versioned client will be returned.
|
920
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
921
|
+
# the `transport` parameter.
|
820
922
|
#
|
821
923
|
# ## About TensorboardService
|
822
924
|
#
|
@@ -824,9 +926,10 @@ module Google
|
|
824
926
|
#
|
825
927
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
826
928
|
# Defaults to `:v1`.
|
929
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
827
930
|
# @return [::Object] A client object for the specified version.
|
828
931
|
#
|
829
|
-
def self.tensorboard_service version: :v1, &block
|
932
|
+
def self.tensorboard_service version: :v1, transport: :grpc, &block
|
830
933
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
831
934
|
|
832
935
|
package_name = Google::Cloud::AIPlatform
|
@@ -834,6 +937,75 @@ module Google
|
|
834
937
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
835
938
|
.first
|
836
939
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:TensorboardService)
|
940
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
941
|
+
service_module.const_get(:Client).new(&block)
|
942
|
+
end
|
943
|
+
|
944
|
+
##
|
945
|
+
# Create a new client object for VertexRagDataService.
|
946
|
+
#
|
947
|
+
# By default, this returns an instance of
|
948
|
+
# [Google::Cloud::AIPlatform::V1::VertexRagDataService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-VertexRagDataService-Client)
|
949
|
+
# for a gRPC client for version V1 of the API.
|
950
|
+
# However, you can specify a different API version by passing it in the
|
951
|
+
# `version` parameter. If the VertexRagDataService service is
|
952
|
+
# supported by that API version, and the corresponding gem is available, the
|
953
|
+
# appropriate versioned client will be returned.
|
954
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
955
|
+
# the `transport` parameter.
|
956
|
+
#
|
957
|
+
# ## About VertexRagDataService
|
958
|
+
#
|
959
|
+
# A service for managing user data for RAG.
|
960
|
+
#
|
961
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
962
|
+
# Defaults to `:v1`.
|
963
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
964
|
+
# @return [::Object] A client object for the specified version.
|
965
|
+
#
|
966
|
+
def self.vertex_rag_data_service version: :v1, transport: :grpc, &block
|
967
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
968
|
+
|
969
|
+
package_name = Google::Cloud::AIPlatform
|
970
|
+
.constants
|
971
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
972
|
+
.first
|
973
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:VertexRagDataService)
|
974
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
975
|
+
service_module.const_get(:Client).new(&block)
|
976
|
+
end
|
977
|
+
|
978
|
+
##
|
979
|
+
# Create a new client object for VertexRagService.
|
980
|
+
#
|
981
|
+
# By default, this returns an instance of
|
982
|
+
# [Google::Cloud::AIPlatform::V1::VertexRagService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-VertexRagService-Client)
|
983
|
+
# for a gRPC client for version V1 of the API.
|
984
|
+
# However, you can specify a different API version by passing it in the
|
985
|
+
# `version` parameter. If the VertexRagService service is
|
986
|
+
# supported by that API version, and the corresponding gem is available, the
|
987
|
+
# appropriate versioned client will be returned.
|
988
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
989
|
+
# the `transport` parameter.
|
990
|
+
#
|
991
|
+
# ## About VertexRagService
|
992
|
+
#
|
993
|
+
# A service for retrieving relevant contexts.
|
994
|
+
#
|
995
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
996
|
+
# Defaults to `:v1`.
|
997
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
998
|
+
# @return [::Object] A client object for the specified version.
|
999
|
+
#
|
1000
|
+
def self.vertex_rag_service version: :v1, transport: :grpc, &block
|
1001
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1002
|
+
|
1003
|
+
package_name = Google::Cloud::AIPlatform
|
1004
|
+
.constants
|
1005
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1006
|
+
.first
|
1007
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:VertexRagService)
|
1008
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
837
1009
|
service_module.const_get(:Client).new(&block)
|
838
1010
|
end
|
839
1011
|
|
@@ -847,6 +1019,8 @@ module Google
|
|
847
1019
|
# `version` parameter. If the VizierService service is
|
848
1020
|
# supported by that API version, and the corresponding gem is available, the
|
849
1021
|
# appropriate versioned client will be returned.
|
1022
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
1023
|
+
# the `transport` parameter.
|
850
1024
|
#
|
851
1025
|
# ## About VizierService
|
852
1026
|
#
|
@@ -858,9 +1032,10 @@ module Google
|
|
858
1032
|
#
|
859
1033
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
860
1034
|
# Defaults to `:v1`.
|
1035
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
861
1036
|
# @return [::Object] A client object for the specified version.
|
862
1037
|
#
|
863
|
-
def self.vizier_service version: :v1, &block
|
1038
|
+
def self.vizier_service version: :v1, transport: :grpc, &block
|
864
1039
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
865
1040
|
|
866
1041
|
package_name = Google::Cloud::AIPlatform
|
@@ -868,6 +1043,7 @@ module Google
|
|
868
1043
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
869
1044
|
.first
|
870
1045
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:VizierService)
|
1046
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
871
1047
|
service_module.const_get(:Client).new(&block)
|
872
1048
|
end
|
873
1049
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-ai_platform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.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-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-ai_platform-v1
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.59'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.59'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
- !ruby/object:Gem::Version
|
79
79
|
version: '0'
|
80
80
|
requirements: []
|
81
|
-
rubygems_version: 3.5.
|
81
|
+
rubygems_version: 3.5.23
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: API Client library for the Vertex AI API
|