google-cloud-ai_platform 1.5.0 → 2.0.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 +4 -4
- data/README.md +6 -1
- data/lib/google/cloud/ai_platform/version.rb +1 -1
- data/lib/google/cloud/ai_platform.rb +1258 -4
- metadata +8 -17
@@ -58,6 +58,11 @@ module Google
|
|
58
58
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
59
59
|
# the `transport` parameter.
|
60
60
|
#
|
61
|
+
# Raises an exception if the currently installed versioned client gem for the
|
62
|
+
# given API version does not support the given transport of the DatasetService service.
|
63
|
+
# You can determine whether the method will succeed by calling
|
64
|
+
# {Google::Cloud::AIPlatform.dataset_service_available?}.
|
65
|
+
#
|
61
66
|
# ## About DatasetService
|
62
67
|
#
|
63
68
|
# The service that manages Vertex AI Dataset and its child resources.
|
@@ -79,6 +84,37 @@ module Google
|
|
79
84
|
service_module.const_get(:Client).new(&block)
|
80
85
|
end
|
81
86
|
|
87
|
+
##
|
88
|
+
# Determines whether the DatasetService service is supported by the current client.
|
89
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.dataset_service}.
|
90
|
+
# If false, that method will raise an exception. This could happen if the given
|
91
|
+
# API version does not exist or does not support the DatasetService service,
|
92
|
+
# or if the versioned client gem needs an update to support the DatasetService service.
|
93
|
+
#
|
94
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
95
|
+
# Defaults to `:v1`.
|
96
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
97
|
+
# @return [boolean] Whether the service is available.
|
98
|
+
#
|
99
|
+
def self.dataset_service_available? version: :v1, transport: :grpc
|
100
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
101
|
+
package_name = Google::Cloud::AIPlatform
|
102
|
+
.constants
|
103
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
104
|
+
.first
|
105
|
+
return false unless package_name
|
106
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
107
|
+
return false unless service_module.const_defined? :DatasetService
|
108
|
+
service_module = service_module.const_get :DatasetService
|
109
|
+
if transport == :rest
|
110
|
+
return false unless service_module.const_defined? :Rest
|
111
|
+
service_module = service_module.const_get :Rest
|
112
|
+
end
|
113
|
+
service_module.const_defined? :Client
|
114
|
+
rescue ::LoadError
|
115
|
+
false
|
116
|
+
end
|
117
|
+
|
82
118
|
##
|
83
119
|
# Create a new client object for DeploymentResourcePoolService.
|
84
120
|
#
|
@@ -92,6 +128,11 @@ module Google
|
|
92
128
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
93
129
|
# the `transport` parameter.
|
94
130
|
#
|
131
|
+
# Raises an exception if the currently installed versioned client gem for the
|
132
|
+
# given API version does not support the given transport of the DeploymentResourcePoolService service.
|
133
|
+
# You can determine whether the method will succeed by calling
|
134
|
+
# {Google::Cloud::AIPlatform.deployment_resource_pool_service_available?}.
|
135
|
+
#
|
95
136
|
# ## About DeploymentResourcePoolService
|
96
137
|
#
|
97
138
|
# A service that manages the DeploymentResourcePool resource.
|
@@ -113,6 +154,37 @@ module Google
|
|
113
154
|
service_module.const_get(:Client).new(&block)
|
114
155
|
end
|
115
156
|
|
157
|
+
##
|
158
|
+
# Determines whether the DeploymentResourcePoolService service is supported by the current client.
|
159
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.deployment_resource_pool_service}.
|
160
|
+
# If false, that method will raise an exception. This could happen if the given
|
161
|
+
# API version does not exist or does not support the DeploymentResourcePoolService service,
|
162
|
+
# or if the versioned client gem needs an update to support the DeploymentResourcePoolService service.
|
163
|
+
#
|
164
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
165
|
+
# Defaults to `:v1`.
|
166
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
167
|
+
# @return [boolean] Whether the service is available.
|
168
|
+
#
|
169
|
+
def self.deployment_resource_pool_service_available? version: :v1, transport: :grpc
|
170
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
171
|
+
package_name = Google::Cloud::AIPlatform
|
172
|
+
.constants
|
173
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
174
|
+
.first
|
175
|
+
return false unless package_name
|
176
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
177
|
+
return false unless service_module.const_defined? :DeploymentResourcePoolService
|
178
|
+
service_module = service_module.const_get :DeploymentResourcePoolService
|
179
|
+
if transport == :rest
|
180
|
+
return false unless service_module.const_defined? :Rest
|
181
|
+
service_module = service_module.const_get :Rest
|
182
|
+
end
|
183
|
+
service_module.const_defined? :Client
|
184
|
+
rescue ::LoadError
|
185
|
+
false
|
186
|
+
end
|
187
|
+
|
116
188
|
##
|
117
189
|
# Create a new client object for EndpointService.
|
118
190
|
#
|
@@ -126,6 +198,11 @@ module Google
|
|
126
198
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
127
199
|
# the `transport` parameter.
|
128
200
|
#
|
201
|
+
# Raises an exception if the currently installed versioned client gem for the
|
202
|
+
# given API version does not support the given transport of the EndpointService service.
|
203
|
+
# You can determine whether the method will succeed by calling
|
204
|
+
# {Google::Cloud::AIPlatform.endpoint_service_available?}.
|
205
|
+
#
|
129
206
|
# ## About EndpointService
|
130
207
|
#
|
131
208
|
# A service for managing Vertex AI's Endpoints.
|
@@ -147,6 +224,37 @@ module Google
|
|
147
224
|
service_module.const_get(:Client).new(&block)
|
148
225
|
end
|
149
226
|
|
227
|
+
##
|
228
|
+
# Determines whether the EndpointService service is supported by the current client.
|
229
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.endpoint_service}.
|
230
|
+
# If false, that method will raise an exception. This could happen if the given
|
231
|
+
# API version does not exist or does not support the EndpointService service,
|
232
|
+
# or if the versioned client gem needs an update to support the EndpointService service.
|
233
|
+
#
|
234
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
235
|
+
# Defaults to `:v1`.
|
236
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
237
|
+
# @return [boolean] Whether the service is available.
|
238
|
+
#
|
239
|
+
def self.endpoint_service_available? version: :v1, transport: :grpc
|
240
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
241
|
+
package_name = Google::Cloud::AIPlatform
|
242
|
+
.constants
|
243
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
244
|
+
.first
|
245
|
+
return false unless package_name
|
246
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
247
|
+
return false unless service_module.const_defined? :EndpointService
|
248
|
+
service_module = service_module.const_get :EndpointService
|
249
|
+
if transport == :rest
|
250
|
+
return false unless service_module.const_defined? :Rest
|
251
|
+
service_module = service_module.const_get :Rest
|
252
|
+
end
|
253
|
+
service_module.const_defined? :Client
|
254
|
+
rescue ::LoadError
|
255
|
+
false
|
256
|
+
end
|
257
|
+
|
150
258
|
##
|
151
259
|
# Create a new client object for EvaluationService.
|
152
260
|
#
|
@@ -160,6 +268,11 @@ module Google
|
|
160
268
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
161
269
|
# the `transport` parameter.
|
162
270
|
#
|
271
|
+
# Raises an exception if the currently installed versioned client gem for the
|
272
|
+
# given API version does not support the given transport of the EvaluationService service.
|
273
|
+
# You can determine whether the method will succeed by calling
|
274
|
+
# {Google::Cloud::AIPlatform.evaluation_service_available?}.
|
275
|
+
#
|
163
276
|
# ## About EvaluationService
|
164
277
|
#
|
165
278
|
# Vertex AI Online Evaluation Service.
|
@@ -181,6 +294,37 @@ module Google
|
|
181
294
|
service_module.const_get(:Client).new(&block)
|
182
295
|
end
|
183
296
|
|
297
|
+
##
|
298
|
+
# Determines whether the EvaluationService service is supported by the current client.
|
299
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.evaluation_service}.
|
300
|
+
# If false, that method will raise an exception. This could happen if the given
|
301
|
+
# API version does not exist or does not support the EvaluationService service,
|
302
|
+
# or if the versioned client gem needs an update to support the EvaluationService service.
|
303
|
+
#
|
304
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
305
|
+
# Defaults to `:v1`.
|
306
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
307
|
+
# @return [boolean] Whether the service is available.
|
308
|
+
#
|
309
|
+
def self.evaluation_service_available? version: :v1, transport: :grpc
|
310
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
311
|
+
package_name = Google::Cloud::AIPlatform
|
312
|
+
.constants
|
313
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
314
|
+
.first
|
315
|
+
return false unless package_name
|
316
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
317
|
+
return false unless service_module.const_defined? :EvaluationService
|
318
|
+
service_module = service_module.const_get :EvaluationService
|
319
|
+
if transport == :rest
|
320
|
+
return false unless service_module.const_defined? :Rest
|
321
|
+
service_module = service_module.const_get :Rest
|
322
|
+
end
|
323
|
+
service_module.const_defined? :Client
|
324
|
+
rescue ::LoadError
|
325
|
+
false
|
326
|
+
end
|
327
|
+
|
184
328
|
##
|
185
329
|
# Create a new client object for FeatureOnlineStoreAdminService.
|
186
330
|
#
|
@@ -194,6 +338,11 @@ module Google
|
|
194
338
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
195
339
|
# the `transport` parameter.
|
196
340
|
#
|
341
|
+
# Raises an exception if the currently installed versioned client gem for the
|
342
|
+
# given API version does not support the given transport of the FeatureOnlineStoreAdminService service.
|
343
|
+
# You can determine whether the method will succeed by calling
|
344
|
+
# {Google::Cloud::AIPlatform.feature_online_store_admin_service_available?}.
|
345
|
+
#
|
197
346
|
# ## About FeatureOnlineStoreAdminService
|
198
347
|
#
|
199
348
|
# The service that handles CRUD and List for resources for
|
@@ -216,6 +365,37 @@ module Google
|
|
216
365
|
service_module.const_get(:Client).new(&block)
|
217
366
|
end
|
218
367
|
|
368
|
+
##
|
369
|
+
# Determines whether the FeatureOnlineStoreAdminService service is supported by the current client.
|
370
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.feature_online_store_admin_service}.
|
371
|
+
# If false, that method will raise an exception. This could happen if the given
|
372
|
+
# API version does not exist or does not support the FeatureOnlineStoreAdminService service,
|
373
|
+
# or if the versioned client gem needs an update to support the FeatureOnlineStoreAdminService service.
|
374
|
+
#
|
375
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
376
|
+
# Defaults to `:v1`.
|
377
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
378
|
+
# @return [boolean] Whether the service is available.
|
379
|
+
#
|
380
|
+
def self.feature_online_store_admin_service_available? version: :v1, transport: :grpc
|
381
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
382
|
+
package_name = Google::Cloud::AIPlatform
|
383
|
+
.constants
|
384
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
385
|
+
.first
|
386
|
+
return false unless package_name
|
387
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
388
|
+
return false unless service_module.const_defined? :FeatureOnlineStoreAdminService
|
389
|
+
service_module = service_module.const_get :FeatureOnlineStoreAdminService
|
390
|
+
if transport == :rest
|
391
|
+
return false unless service_module.const_defined? :Rest
|
392
|
+
service_module = service_module.const_get :Rest
|
393
|
+
end
|
394
|
+
service_module.const_defined? :Client
|
395
|
+
rescue ::LoadError
|
396
|
+
false
|
397
|
+
end
|
398
|
+
|
219
399
|
##
|
220
400
|
# Create a new client object for FeaturestoreOnlineServingService.
|
221
401
|
#
|
@@ -229,6 +409,11 @@ module Google
|
|
229
409
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
230
410
|
# the `transport` parameter.
|
231
411
|
#
|
412
|
+
# Raises an exception if the currently installed versioned client gem for the
|
413
|
+
# given API version does not support the given transport of the FeaturestoreOnlineServingService service.
|
414
|
+
# You can determine whether the method will succeed by calling
|
415
|
+
# {Google::Cloud::AIPlatform.featurestore_online_serving_service_available?}.
|
416
|
+
#
|
232
417
|
# ## About FeaturestoreOnlineServingService
|
233
418
|
#
|
234
419
|
# A service for serving online feature values.
|
@@ -250,6 +435,37 @@ module Google
|
|
250
435
|
service_module.const_get(:Client).new(&block)
|
251
436
|
end
|
252
437
|
|
438
|
+
##
|
439
|
+
# Determines whether the FeaturestoreOnlineServingService service is supported by the current client.
|
440
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.featurestore_online_serving_service}.
|
441
|
+
# If false, that method will raise an exception. This could happen if the given
|
442
|
+
# API version does not exist or does not support the FeaturestoreOnlineServingService service,
|
443
|
+
# or if the versioned client gem needs an update to support the FeaturestoreOnlineServingService service.
|
444
|
+
#
|
445
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
446
|
+
# Defaults to `:v1`.
|
447
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
448
|
+
# @return [boolean] Whether the service is available.
|
449
|
+
#
|
450
|
+
def self.featurestore_online_serving_service_available? version: :v1, transport: :grpc
|
451
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
452
|
+
package_name = Google::Cloud::AIPlatform
|
453
|
+
.constants
|
454
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
455
|
+
.first
|
456
|
+
return false unless package_name
|
457
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
458
|
+
return false unless service_module.const_defined? :FeaturestoreOnlineServingService
|
459
|
+
service_module = service_module.const_get :FeaturestoreOnlineServingService
|
460
|
+
if transport == :rest
|
461
|
+
return false unless service_module.const_defined? :Rest
|
462
|
+
service_module = service_module.const_get :Rest
|
463
|
+
end
|
464
|
+
service_module.const_defined? :Client
|
465
|
+
rescue ::LoadError
|
466
|
+
false
|
467
|
+
end
|
468
|
+
|
253
469
|
##
|
254
470
|
# Create a new client object for FeatureOnlineStoreService.
|
255
471
|
#
|
@@ -263,6 +479,11 @@ module Google
|
|
263
479
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
264
480
|
# the `transport` parameter.
|
265
481
|
#
|
482
|
+
# Raises an exception if the currently installed versioned client gem for the
|
483
|
+
# given API version does not support the given transport of the FeatureOnlineStoreService service.
|
484
|
+
# You can determine whether the method will succeed by calling
|
485
|
+
# {Google::Cloud::AIPlatform.feature_online_store_service_available?}.
|
486
|
+
#
|
266
487
|
# ## About FeatureOnlineStoreService
|
267
488
|
#
|
268
489
|
# A service for fetching feature values from the online store.
|
@@ -284,6 +505,37 @@ module Google
|
|
284
505
|
service_module.const_get(:Client).new(&block)
|
285
506
|
end
|
286
507
|
|
508
|
+
##
|
509
|
+
# Determines whether the FeatureOnlineStoreService service is supported by the current client.
|
510
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.feature_online_store_service}.
|
511
|
+
# If false, that method will raise an exception. This could happen if the given
|
512
|
+
# API version does not exist or does not support the FeatureOnlineStoreService service,
|
513
|
+
# or if the versioned client gem needs an update to support the FeatureOnlineStoreService service.
|
514
|
+
#
|
515
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
516
|
+
# Defaults to `:v1`.
|
517
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
518
|
+
# @return [boolean] Whether the service is available.
|
519
|
+
#
|
520
|
+
def self.feature_online_store_service_available? version: :v1, transport: :grpc
|
521
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
522
|
+
package_name = Google::Cloud::AIPlatform
|
523
|
+
.constants
|
524
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
525
|
+
.first
|
526
|
+
return false unless package_name
|
527
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
528
|
+
return false unless service_module.const_defined? :FeatureOnlineStoreService
|
529
|
+
service_module = service_module.const_get :FeatureOnlineStoreService
|
530
|
+
if transport == :rest
|
531
|
+
return false unless service_module.const_defined? :Rest
|
532
|
+
service_module = service_module.const_get :Rest
|
533
|
+
end
|
534
|
+
service_module.const_defined? :Client
|
535
|
+
rescue ::LoadError
|
536
|
+
false
|
537
|
+
end
|
538
|
+
|
287
539
|
##
|
288
540
|
# Create a new client object for FeaturestoreService.
|
289
541
|
#
|
@@ -297,6 +549,11 @@ module Google
|
|
297
549
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
298
550
|
# the `transport` parameter.
|
299
551
|
#
|
552
|
+
# Raises an exception if the currently installed versioned client gem for the
|
553
|
+
# given API version does not support the given transport of the FeaturestoreService service.
|
554
|
+
# You can determine whether the method will succeed by calling
|
555
|
+
# {Google::Cloud::AIPlatform.featurestore_service_available?}.
|
556
|
+
#
|
300
557
|
# ## About FeaturestoreService
|
301
558
|
#
|
302
559
|
# The service that handles CRUD and List for resources for Featurestore.
|
@@ -318,6 +575,37 @@ module Google
|
|
318
575
|
service_module.const_get(:Client).new(&block)
|
319
576
|
end
|
320
577
|
|
578
|
+
##
|
579
|
+
# Determines whether the FeaturestoreService service is supported by the current client.
|
580
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.featurestore_service}.
|
581
|
+
# If false, that method will raise an exception. This could happen if the given
|
582
|
+
# API version does not exist or does not support the FeaturestoreService service,
|
583
|
+
# or if the versioned client gem needs an update to support the FeaturestoreService service.
|
584
|
+
#
|
585
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
586
|
+
# Defaults to `:v1`.
|
587
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
588
|
+
# @return [boolean] Whether the service is available.
|
589
|
+
#
|
590
|
+
def self.featurestore_service_available? version: :v1, transport: :grpc
|
591
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
592
|
+
package_name = Google::Cloud::AIPlatform
|
593
|
+
.constants
|
594
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
595
|
+
.first
|
596
|
+
return false unless package_name
|
597
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
598
|
+
return false unless service_module.const_defined? :FeaturestoreService
|
599
|
+
service_module = service_module.const_get :FeaturestoreService
|
600
|
+
if transport == :rest
|
601
|
+
return false unless service_module.const_defined? :Rest
|
602
|
+
service_module = service_module.const_get :Rest
|
603
|
+
end
|
604
|
+
service_module.const_defined? :Client
|
605
|
+
rescue ::LoadError
|
606
|
+
false
|
607
|
+
end
|
608
|
+
|
321
609
|
##
|
322
610
|
# Create a new client object for FeatureRegistryService.
|
323
611
|
#
|
@@ -331,6 +619,11 @@ module Google
|
|
331
619
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
332
620
|
# the `transport` parameter.
|
333
621
|
#
|
622
|
+
# Raises an exception if the currently installed versioned client gem for the
|
623
|
+
# given API version does not support the given transport of the FeatureRegistryService service.
|
624
|
+
# You can determine whether the method will succeed by calling
|
625
|
+
# {Google::Cloud::AIPlatform.feature_registry_service_available?}.
|
626
|
+
#
|
334
627
|
# ## About FeatureRegistryService
|
335
628
|
#
|
336
629
|
# The service that handles CRUD and List for resources for
|
@@ -353,6 +646,107 @@ module Google
|
|
353
646
|
service_module.const_get(:Client).new(&block)
|
354
647
|
end
|
355
648
|
|
649
|
+
##
|
650
|
+
# Determines whether the FeatureRegistryService service is supported by the current client.
|
651
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.feature_registry_service}.
|
652
|
+
# If false, that method will raise an exception. This could happen if the given
|
653
|
+
# API version does not exist or does not support the FeatureRegistryService service,
|
654
|
+
# or if the versioned client gem needs an update to support the FeatureRegistryService service.
|
655
|
+
#
|
656
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
657
|
+
# Defaults to `:v1`.
|
658
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
659
|
+
# @return [boolean] Whether the service is available.
|
660
|
+
#
|
661
|
+
def self.feature_registry_service_available? version: :v1, transport: :grpc
|
662
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
663
|
+
package_name = Google::Cloud::AIPlatform
|
664
|
+
.constants
|
665
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
666
|
+
.first
|
667
|
+
return false unless package_name
|
668
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
669
|
+
return false unless service_module.const_defined? :FeatureRegistryService
|
670
|
+
service_module = service_module.const_get :FeatureRegistryService
|
671
|
+
if transport == :rest
|
672
|
+
return false unless service_module.const_defined? :Rest
|
673
|
+
service_module = service_module.const_get :Rest
|
674
|
+
end
|
675
|
+
service_module.const_defined? :Client
|
676
|
+
rescue ::LoadError
|
677
|
+
false
|
678
|
+
end
|
679
|
+
|
680
|
+
##
|
681
|
+
# Create a new client object for GenAiCacheService.
|
682
|
+
#
|
683
|
+
# By default, this returns an instance of
|
684
|
+
# [Google::Cloud::AIPlatform::V1::GenAiCacheService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-GenAiCacheService-Client)
|
685
|
+
# for a gRPC client for version V1 of the API.
|
686
|
+
# However, you can specify a different API version by passing it in the
|
687
|
+
# `version` parameter. If the GenAiCacheService service is
|
688
|
+
# supported by that API version, and the corresponding gem is available, the
|
689
|
+
# appropriate versioned client will be returned.
|
690
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
691
|
+
# the `transport` parameter.
|
692
|
+
#
|
693
|
+
# Raises an exception if the currently installed versioned client gem for the
|
694
|
+
# given API version does not support the given transport of the GenAiCacheService service.
|
695
|
+
# You can determine whether the method will succeed by calling
|
696
|
+
# {Google::Cloud::AIPlatform.gen_ai_cache_service_available?}.
|
697
|
+
#
|
698
|
+
# ## About GenAiCacheService
|
699
|
+
#
|
700
|
+
# Service for managing Vertex AI's CachedContent resource.
|
701
|
+
#
|
702
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
703
|
+
# Defaults to `:v1`.
|
704
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
705
|
+
# @return [::Object] A client object for the specified version.
|
706
|
+
#
|
707
|
+
def self.gen_ai_cache_service version: :v1, transport: :grpc, &block
|
708
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
709
|
+
|
710
|
+
package_name = Google::Cloud::AIPlatform
|
711
|
+
.constants
|
712
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
713
|
+
.first
|
714
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:GenAiCacheService)
|
715
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
716
|
+
service_module.const_get(:Client).new(&block)
|
717
|
+
end
|
718
|
+
|
719
|
+
##
|
720
|
+
# Determines whether the GenAiCacheService service is supported by the current client.
|
721
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.gen_ai_cache_service}.
|
722
|
+
# If false, that method will raise an exception. This could happen if the given
|
723
|
+
# API version does not exist or does not support the GenAiCacheService service,
|
724
|
+
# or if the versioned client gem needs an update to support the GenAiCacheService service.
|
725
|
+
#
|
726
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
727
|
+
# Defaults to `:v1`.
|
728
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
729
|
+
# @return [boolean] Whether the service is available.
|
730
|
+
#
|
731
|
+
def self.gen_ai_cache_service_available? version: :v1, transport: :grpc
|
732
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
733
|
+
package_name = Google::Cloud::AIPlatform
|
734
|
+
.constants
|
735
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
736
|
+
.first
|
737
|
+
return false unless package_name
|
738
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
739
|
+
return false unless service_module.const_defined? :GenAiCacheService
|
740
|
+
service_module = service_module.const_get :GenAiCacheService
|
741
|
+
if transport == :rest
|
742
|
+
return false unless service_module.const_defined? :Rest
|
743
|
+
service_module = service_module.const_get :Rest
|
744
|
+
end
|
745
|
+
service_module.const_defined? :Client
|
746
|
+
rescue ::LoadError
|
747
|
+
false
|
748
|
+
end
|
749
|
+
|
356
750
|
##
|
357
751
|
# Create a new client object for GenAiTuningService.
|
358
752
|
#
|
@@ -366,6 +760,11 @@ module Google
|
|
366
760
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
367
761
|
# the `transport` parameter.
|
368
762
|
#
|
763
|
+
# Raises an exception if the currently installed versioned client gem for the
|
764
|
+
# given API version does not support the given transport of the GenAiTuningService service.
|
765
|
+
# You can determine whether the method will succeed by calling
|
766
|
+
# {Google::Cloud::AIPlatform.gen_ai_tuning_service_available?}.
|
767
|
+
#
|
369
768
|
# ## About GenAiTuningService
|
370
769
|
#
|
371
770
|
# A service for creating and managing GenAI Tuning Jobs.
|
@@ -387,6 +786,37 @@ module Google
|
|
387
786
|
service_module.const_get(:Client).new(&block)
|
388
787
|
end
|
389
788
|
|
789
|
+
##
|
790
|
+
# Determines whether the GenAiTuningService service is supported by the current client.
|
791
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.gen_ai_tuning_service}.
|
792
|
+
# If false, that method will raise an exception. This could happen if the given
|
793
|
+
# API version does not exist or does not support the GenAiTuningService service,
|
794
|
+
# or if the versioned client gem needs an update to support the GenAiTuningService service.
|
795
|
+
#
|
796
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
797
|
+
# Defaults to `:v1`.
|
798
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
799
|
+
# @return [boolean] Whether the service is available.
|
800
|
+
#
|
801
|
+
def self.gen_ai_tuning_service_available? version: :v1, transport: :grpc
|
802
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
803
|
+
package_name = Google::Cloud::AIPlatform
|
804
|
+
.constants
|
805
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
806
|
+
.first
|
807
|
+
return false unless package_name
|
808
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
809
|
+
return false unless service_module.const_defined? :GenAiTuningService
|
810
|
+
service_module = service_module.const_get :GenAiTuningService
|
811
|
+
if transport == :rest
|
812
|
+
return false unless service_module.const_defined? :Rest
|
813
|
+
service_module = service_module.const_get :Rest
|
814
|
+
end
|
815
|
+
service_module.const_defined? :Client
|
816
|
+
rescue ::LoadError
|
817
|
+
false
|
818
|
+
end
|
819
|
+
|
390
820
|
##
|
391
821
|
# Create a new client object for IndexEndpointService.
|
392
822
|
#
|
@@ -400,6 +830,11 @@ module Google
|
|
400
830
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
401
831
|
# the `transport` parameter.
|
402
832
|
#
|
833
|
+
# Raises an exception if the currently installed versioned client gem for the
|
834
|
+
# given API version does not support the given transport of the IndexEndpointService service.
|
835
|
+
# You can determine whether the method will succeed by calling
|
836
|
+
# {Google::Cloud::AIPlatform.index_endpoint_service_available?}.
|
837
|
+
#
|
403
838
|
# ## About IndexEndpointService
|
404
839
|
#
|
405
840
|
# A service for managing Vertex AI's IndexEndpoints.
|
@@ -421,6 +856,37 @@ module Google
|
|
421
856
|
service_module.const_get(:Client).new(&block)
|
422
857
|
end
|
423
858
|
|
859
|
+
##
|
860
|
+
# Determines whether the IndexEndpointService service is supported by the current client.
|
861
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.index_endpoint_service}.
|
862
|
+
# If false, that method will raise an exception. This could happen if the given
|
863
|
+
# API version does not exist or does not support the IndexEndpointService service,
|
864
|
+
# or if the versioned client gem needs an update to support the IndexEndpointService service.
|
865
|
+
#
|
866
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
867
|
+
# Defaults to `:v1`.
|
868
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
869
|
+
# @return [boolean] Whether the service is available.
|
870
|
+
#
|
871
|
+
def self.index_endpoint_service_available? version: :v1, transport: :grpc
|
872
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
873
|
+
package_name = Google::Cloud::AIPlatform
|
874
|
+
.constants
|
875
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
876
|
+
.first
|
877
|
+
return false unless package_name
|
878
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
879
|
+
return false unless service_module.const_defined? :IndexEndpointService
|
880
|
+
service_module = service_module.const_get :IndexEndpointService
|
881
|
+
if transport == :rest
|
882
|
+
return false unless service_module.const_defined? :Rest
|
883
|
+
service_module = service_module.const_get :Rest
|
884
|
+
end
|
885
|
+
service_module.const_defined? :Client
|
886
|
+
rescue ::LoadError
|
887
|
+
false
|
888
|
+
end
|
889
|
+
|
424
890
|
##
|
425
891
|
# Create a new client object for IndexService.
|
426
892
|
#
|
@@ -434,6 +900,11 @@ module Google
|
|
434
900
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
435
901
|
# the `transport` parameter.
|
436
902
|
#
|
903
|
+
# Raises an exception if the currently installed versioned client gem for the
|
904
|
+
# given API version does not support the given transport of the IndexService service.
|
905
|
+
# You can determine whether the method will succeed by calling
|
906
|
+
# {Google::Cloud::AIPlatform.index_service_available?}.
|
907
|
+
#
|
437
908
|
# ## About IndexService
|
438
909
|
#
|
439
910
|
# A service for creating and managing Vertex AI's Index resources.
|
@@ -455,6 +926,37 @@ module Google
|
|
455
926
|
service_module.const_get(:Client).new(&block)
|
456
927
|
end
|
457
928
|
|
929
|
+
##
|
930
|
+
# Determines whether the IndexService service is supported by the current client.
|
931
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.index_service}.
|
932
|
+
# If false, that method will raise an exception. This could happen if the given
|
933
|
+
# API version does not exist or does not support the IndexService service,
|
934
|
+
# or if the versioned client gem needs an update to support the IndexService service.
|
935
|
+
#
|
936
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
937
|
+
# Defaults to `:v1`.
|
938
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
939
|
+
# @return [boolean] Whether the service is available.
|
940
|
+
#
|
941
|
+
def self.index_service_available? version: :v1, transport: :grpc
|
942
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
943
|
+
package_name = Google::Cloud::AIPlatform
|
944
|
+
.constants
|
945
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
946
|
+
.first
|
947
|
+
return false unless package_name
|
948
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
949
|
+
return false unless service_module.const_defined? :IndexService
|
950
|
+
service_module = service_module.const_get :IndexService
|
951
|
+
if transport == :rest
|
952
|
+
return false unless service_module.const_defined? :Rest
|
953
|
+
service_module = service_module.const_get :Rest
|
954
|
+
end
|
955
|
+
service_module.const_defined? :Client
|
956
|
+
rescue ::LoadError
|
957
|
+
false
|
958
|
+
end
|
959
|
+
|
458
960
|
##
|
459
961
|
# Create a new client object for JobService.
|
460
962
|
#
|
@@ -468,6 +970,11 @@ module Google
|
|
468
970
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
469
971
|
# the `transport` parameter.
|
470
972
|
#
|
973
|
+
# Raises an exception if the currently installed versioned client gem for the
|
974
|
+
# given API version does not support the given transport of the JobService service.
|
975
|
+
# You can determine whether the method will succeed by calling
|
976
|
+
# {Google::Cloud::AIPlatform.job_service_available?}.
|
977
|
+
#
|
471
978
|
# ## About JobService
|
472
979
|
#
|
473
980
|
# A service for creating and managing Vertex AI's jobs.
|
@@ -489,6 +996,37 @@ module Google
|
|
489
996
|
service_module.const_get(:Client).new(&block)
|
490
997
|
end
|
491
998
|
|
999
|
+
##
|
1000
|
+
# Determines whether the JobService service is supported by the current client.
|
1001
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.job_service}.
|
1002
|
+
# If false, that method will raise an exception. This could happen if the given
|
1003
|
+
# API version does not exist or does not support the JobService service,
|
1004
|
+
# or if the versioned client gem needs an update to support the JobService service.
|
1005
|
+
#
|
1006
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1007
|
+
# Defaults to `:v1`.
|
1008
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1009
|
+
# @return [boolean] Whether the service is available.
|
1010
|
+
#
|
1011
|
+
def self.job_service_available? version: :v1, transport: :grpc
|
1012
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1013
|
+
package_name = Google::Cloud::AIPlatform
|
1014
|
+
.constants
|
1015
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1016
|
+
.first
|
1017
|
+
return false unless package_name
|
1018
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1019
|
+
return false unless service_module.const_defined? :JobService
|
1020
|
+
service_module = service_module.const_get :JobService
|
1021
|
+
if transport == :rest
|
1022
|
+
return false unless service_module.const_defined? :Rest
|
1023
|
+
service_module = service_module.const_get :Rest
|
1024
|
+
end
|
1025
|
+
service_module.const_defined? :Client
|
1026
|
+
rescue ::LoadError
|
1027
|
+
false
|
1028
|
+
end
|
1029
|
+
|
492
1030
|
##
|
493
1031
|
# Create a new client object for PredictionService.
|
494
1032
|
#
|
@@ -502,6 +1040,11 @@ module Google
|
|
502
1040
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
503
1041
|
# the `transport` parameter.
|
504
1042
|
#
|
1043
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1044
|
+
# given API version does not support the given transport of the PredictionService service.
|
1045
|
+
# You can determine whether the method will succeed by calling
|
1046
|
+
# {Google::Cloud::AIPlatform.prediction_service_available?}.
|
1047
|
+
#
|
505
1048
|
# ## About PredictionService
|
506
1049
|
#
|
507
1050
|
# A service for online predictions and explanations.
|
@@ -523,6 +1066,37 @@ module Google
|
|
523
1066
|
service_module.const_get(:Client).new(&block)
|
524
1067
|
end
|
525
1068
|
|
1069
|
+
##
|
1070
|
+
# Determines whether the PredictionService service is supported by the current client.
|
1071
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.prediction_service}.
|
1072
|
+
# If false, that method will raise an exception. This could happen if the given
|
1073
|
+
# API version does not exist or does not support the PredictionService service,
|
1074
|
+
# or if the versioned client gem needs an update to support the PredictionService service.
|
1075
|
+
#
|
1076
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1077
|
+
# Defaults to `:v1`.
|
1078
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1079
|
+
# @return [boolean] Whether the service is available.
|
1080
|
+
#
|
1081
|
+
def self.prediction_service_available? version: :v1, transport: :grpc
|
1082
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1083
|
+
package_name = Google::Cloud::AIPlatform
|
1084
|
+
.constants
|
1085
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1086
|
+
.first
|
1087
|
+
return false unless package_name
|
1088
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1089
|
+
return false unless service_module.const_defined? :PredictionService
|
1090
|
+
service_module = service_module.const_get :PredictionService
|
1091
|
+
if transport == :rest
|
1092
|
+
return false unless service_module.const_defined? :Rest
|
1093
|
+
service_module = service_module.const_get :Rest
|
1094
|
+
end
|
1095
|
+
service_module.const_defined? :Client
|
1096
|
+
rescue ::LoadError
|
1097
|
+
false
|
1098
|
+
end
|
1099
|
+
|
526
1100
|
##
|
527
1101
|
# Create a new client object for LlmUtilityService.
|
528
1102
|
#
|
@@ -536,6 +1110,11 @@ module Google
|
|
536
1110
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
537
1111
|
# the `transport` parameter.
|
538
1112
|
#
|
1113
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1114
|
+
# given API version does not support the given transport of the LlmUtilityService service.
|
1115
|
+
# You can determine whether the method will succeed by calling
|
1116
|
+
# {Google::Cloud::AIPlatform.llm_utility_service_available?}.
|
1117
|
+
#
|
539
1118
|
# ## About LlmUtilityService
|
540
1119
|
#
|
541
1120
|
# Service for LLM related utility functions.
|
@@ -557,6 +1136,37 @@ module Google
|
|
557
1136
|
service_module.const_get(:Client).new(&block)
|
558
1137
|
end
|
559
1138
|
|
1139
|
+
##
|
1140
|
+
# Determines whether the LlmUtilityService service is supported by the current client.
|
1141
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.llm_utility_service}.
|
1142
|
+
# If false, that method will raise an exception. This could happen if the given
|
1143
|
+
# API version does not exist or does not support the LlmUtilityService service,
|
1144
|
+
# or if the versioned client gem needs an update to support the LlmUtilityService service.
|
1145
|
+
#
|
1146
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1147
|
+
# Defaults to `:v1`.
|
1148
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1149
|
+
# @return [boolean] Whether the service is available.
|
1150
|
+
#
|
1151
|
+
def self.llm_utility_service_available? version: :v1, transport: :grpc
|
1152
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1153
|
+
package_name = Google::Cloud::AIPlatform
|
1154
|
+
.constants
|
1155
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1156
|
+
.first
|
1157
|
+
return false unless package_name
|
1158
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1159
|
+
return false unless service_module.const_defined? :LlmUtilityService
|
1160
|
+
service_module = service_module.const_get :LlmUtilityService
|
1161
|
+
if transport == :rest
|
1162
|
+
return false unless service_module.const_defined? :Rest
|
1163
|
+
service_module = service_module.const_get :Rest
|
1164
|
+
end
|
1165
|
+
service_module.const_defined? :Client
|
1166
|
+
rescue ::LoadError
|
1167
|
+
false
|
1168
|
+
end
|
1169
|
+
|
560
1170
|
##
|
561
1171
|
# Create a new client object for MatchService.
|
562
1172
|
#
|
@@ -570,6 +1180,11 @@ module Google
|
|
570
1180
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
571
1181
|
# the `transport` parameter.
|
572
1182
|
#
|
1183
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1184
|
+
# given API version does not support the given transport of the MatchService service.
|
1185
|
+
# You can determine whether the method will succeed by calling
|
1186
|
+
# {Google::Cloud::AIPlatform.match_service_available?}.
|
1187
|
+
#
|
573
1188
|
# ## About MatchService
|
574
1189
|
#
|
575
1190
|
# MatchService is a Google managed service for efficient vector similarity
|
@@ -593,11 +1208,42 @@ module Google
|
|
593
1208
|
end
|
594
1209
|
|
595
1210
|
##
|
596
|
-
#
|
1211
|
+
# Determines whether the MatchService service is supported by the current client.
|
1212
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.match_service}.
|
1213
|
+
# If false, that method will raise an exception. This could happen if the given
|
1214
|
+
# API version does not exist or does not support the MatchService service,
|
1215
|
+
# or if the versioned client gem needs an update to support the MatchService service.
|
597
1216
|
#
|
598
|
-
#
|
599
|
-
#
|
600
|
-
#
|
1217
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1218
|
+
# Defaults to `:v1`.
|
1219
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1220
|
+
# @return [boolean] Whether the service is available.
|
1221
|
+
#
|
1222
|
+
def self.match_service_available? version: :v1, transport: :grpc
|
1223
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1224
|
+
package_name = Google::Cloud::AIPlatform
|
1225
|
+
.constants
|
1226
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1227
|
+
.first
|
1228
|
+
return false unless package_name
|
1229
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1230
|
+
return false unless service_module.const_defined? :MatchService
|
1231
|
+
service_module = service_module.const_get :MatchService
|
1232
|
+
if transport == :rest
|
1233
|
+
return false unless service_module.const_defined? :Rest
|
1234
|
+
service_module = service_module.const_get :Rest
|
1235
|
+
end
|
1236
|
+
service_module.const_defined? :Client
|
1237
|
+
rescue ::LoadError
|
1238
|
+
false
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
##
|
1242
|
+
# Create a new client object for MetadataService.
|
1243
|
+
#
|
1244
|
+
# By default, this returns an instance of
|
1245
|
+
# [Google::Cloud::AIPlatform::V1::MetadataService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-MetadataService-Client)
|
1246
|
+
# for a gRPC client for version V1 of the API.
|
601
1247
|
# However, you can specify a different API version by passing it in the
|
602
1248
|
# `version` parameter. If the MetadataService service is
|
603
1249
|
# supported by that API version, and the corresponding gem is available, the
|
@@ -605,6 +1251,11 @@ module Google
|
|
605
1251
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
606
1252
|
# the `transport` parameter.
|
607
1253
|
#
|
1254
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1255
|
+
# given API version does not support the given transport of the MetadataService service.
|
1256
|
+
# You can determine whether the method will succeed by calling
|
1257
|
+
# {Google::Cloud::AIPlatform.metadata_service_available?}.
|
1258
|
+
#
|
608
1259
|
# ## About MetadataService
|
609
1260
|
#
|
610
1261
|
# Service for reading and writing metadata entries.
|
@@ -626,6 +1277,37 @@ module Google
|
|
626
1277
|
service_module.const_get(:Client).new(&block)
|
627
1278
|
end
|
628
1279
|
|
1280
|
+
##
|
1281
|
+
# Determines whether the MetadataService service is supported by the current client.
|
1282
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.metadata_service}.
|
1283
|
+
# If false, that method will raise an exception. This could happen if the given
|
1284
|
+
# API version does not exist or does not support the MetadataService service,
|
1285
|
+
# or if the versioned client gem needs an update to support the MetadataService service.
|
1286
|
+
#
|
1287
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1288
|
+
# Defaults to `:v1`.
|
1289
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1290
|
+
# @return [boolean] Whether the service is available.
|
1291
|
+
#
|
1292
|
+
def self.metadata_service_available? version: :v1, transport: :grpc
|
1293
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1294
|
+
package_name = Google::Cloud::AIPlatform
|
1295
|
+
.constants
|
1296
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1297
|
+
.first
|
1298
|
+
return false unless package_name
|
1299
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1300
|
+
return false unless service_module.const_defined? :MetadataService
|
1301
|
+
service_module = service_module.const_get :MetadataService
|
1302
|
+
if transport == :rest
|
1303
|
+
return false unless service_module.const_defined? :Rest
|
1304
|
+
service_module = service_module.const_get :Rest
|
1305
|
+
end
|
1306
|
+
service_module.const_defined? :Client
|
1307
|
+
rescue ::LoadError
|
1308
|
+
false
|
1309
|
+
end
|
1310
|
+
|
629
1311
|
##
|
630
1312
|
# Create a new client object for MigrationService.
|
631
1313
|
#
|
@@ -639,6 +1321,11 @@ module Google
|
|
639
1321
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
640
1322
|
# the `transport` parameter.
|
641
1323
|
#
|
1324
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1325
|
+
# given API version does not support the given transport of the MigrationService service.
|
1326
|
+
# You can determine whether the method will succeed by calling
|
1327
|
+
# {Google::Cloud::AIPlatform.migration_service_available?}.
|
1328
|
+
#
|
642
1329
|
# ## About MigrationService
|
643
1330
|
#
|
644
1331
|
# A service that migrates resources from automl.googleapis.com,
|
@@ -661,6 +1348,37 @@ module Google
|
|
661
1348
|
service_module.const_get(:Client).new(&block)
|
662
1349
|
end
|
663
1350
|
|
1351
|
+
##
|
1352
|
+
# Determines whether the MigrationService service is supported by the current client.
|
1353
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.migration_service}.
|
1354
|
+
# If false, that method will raise an exception. This could happen if the given
|
1355
|
+
# API version does not exist or does not support the MigrationService service,
|
1356
|
+
# or if the versioned client gem needs an update to support the MigrationService service.
|
1357
|
+
#
|
1358
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1359
|
+
# Defaults to `:v1`.
|
1360
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1361
|
+
# @return [boolean] Whether the service is available.
|
1362
|
+
#
|
1363
|
+
def self.migration_service_available? version: :v1, transport: :grpc
|
1364
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1365
|
+
package_name = Google::Cloud::AIPlatform
|
1366
|
+
.constants
|
1367
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1368
|
+
.first
|
1369
|
+
return false unless package_name
|
1370
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1371
|
+
return false unless service_module.const_defined? :MigrationService
|
1372
|
+
service_module = service_module.const_get :MigrationService
|
1373
|
+
if transport == :rest
|
1374
|
+
return false unless service_module.const_defined? :Rest
|
1375
|
+
service_module = service_module.const_get :Rest
|
1376
|
+
end
|
1377
|
+
service_module.const_defined? :Client
|
1378
|
+
rescue ::LoadError
|
1379
|
+
false
|
1380
|
+
end
|
1381
|
+
|
664
1382
|
##
|
665
1383
|
# Create a new client object for ModelGardenService.
|
666
1384
|
#
|
@@ -674,6 +1392,11 @@ module Google
|
|
674
1392
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
675
1393
|
# the `transport` parameter.
|
676
1394
|
#
|
1395
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1396
|
+
# given API version does not support the given transport of the ModelGardenService service.
|
1397
|
+
# You can determine whether the method will succeed by calling
|
1398
|
+
# {Google::Cloud::AIPlatform.model_garden_service_available?}.
|
1399
|
+
#
|
677
1400
|
# ## About ModelGardenService
|
678
1401
|
#
|
679
1402
|
# The interface of Model Garden Service.
|
@@ -695,6 +1418,37 @@ module Google
|
|
695
1418
|
service_module.const_get(:Client).new(&block)
|
696
1419
|
end
|
697
1420
|
|
1421
|
+
##
|
1422
|
+
# Determines whether the ModelGardenService service is supported by the current client.
|
1423
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.model_garden_service}.
|
1424
|
+
# If false, that method will raise an exception. This could happen if the given
|
1425
|
+
# API version does not exist or does not support the ModelGardenService service,
|
1426
|
+
# or if the versioned client gem needs an update to support the ModelGardenService service.
|
1427
|
+
#
|
1428
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1429
|
+
# Defaults to `:v1`.
|
1430
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1431
|
+
# @return [boolean] Whether the service is available.
|
1432
|
+
#
|
1433
|
+
def self.model_garden_service_available? version: :v1, transport: :grpc
|
1434
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1435
|
+
package_name = Google::Cloud::AIPlatform
|
1436
|
+
.constants
|
1437
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1438
|
+
.first
|
1439
|
+
return false unless package_name
|
1440
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1441
|
+
return false unless service_module.const_defined? :ModelGardenService
|
1442
|
+
service_module = service_module.const_get :ModelGardenService
|
1443
|
+
if transport == :rest
|
1444
|
+
return false unless service_module.const_defined? :Rest
|
1445
|
+
service_module = service_module.const_get :Rest
|
1446
|
+
end
|
1447
|
+
service_module.const_defined? :Client
|
1448
|
+
rescue ::LoadError
|
1449
|
+
false
|
1450
|
+
end
|
1451
|
+
|
698
1452
|
##
|
699
1453
|
# Create a new client object for ModelService.
|
700
1454
|
#
|
@@ -708,6 +1462,11 @@ module Google
|
|
708
1462
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
709
1463
|
# the `transport` parameter.
|
710
1464
|
#
|
1465
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1466
|
+
# given API version does not support the given transport of the ModelService service.
|
1467
|
+
# You can determine whether the method will succeed by calling
|
1468
|
+
# {Google::Cloud::AIPlatform.model_service_available?}.
|
1469
|
+
#
|
711
1470
|
# ## About ModelService
|
712
1471
|
#
|
713
1472
|
# A service for managing Vertex AI's machine learning Models.
|
@@ -729,6 +1488,37 @@ module Google
|
|
729
1488
|
service_module.const_get(:Client).new(&block)
|
730
1489
|
end
|
731
1490
|
|
1491
|
+
##
|
1492
|
+
# Determines whether the ModelService service is supported by the current client.
|
1493
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.model_service}.
|
1494
|
+
# If false, that method will raise an exception. This could happen if the given
|
1495
|
+
# API version does not exist or does not support the ModelService service,
|
1496
|
+
# or if the versioned client gem needs an update to support the ModelService service.
|
1497
|
+
#
|
1498
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1499
|
+
# Defaults to `:v1`.
|
1500
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1501
|
+
# @return [boolean] Whether the service is available.
|
1502
|
+
#
|
1503
|
+
def self.model_service_available? version: :v1, transport: :grpc
|
1504
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1505
|
+
package_name = Google::Cloud::AIPlatform
|
1506
|
+
.constants
|
1507
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1508
|
+
.first
|
1509
|
+
return false unless package_name
|
1510
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1511
|
+
return false unless service_module.const_defined? :ModelService
|
1512
|
+
service_module = service_module.const_get :ModelService
|
1513
|
+
if transport == :rest
|
1514
|
+
return false unless service_module.const_defined? :Rest
|
1515
|
+
service_module = service_module.const_get :Rest
|
1516
|
+
end
|
1517
|
+
service_module.const_defined? :Client
|
1518
|
+
rescue ::LoadError
|
1519
|
+
false
|
1520
|
+
end
|
1521
|
+
|
732
1522
|
##
|
733
1523
|
# Create a new client object for NotebookService.
|
734
1524
|
#
|
@@ -742,6 +1532,11 @@ module Google
|
|
742
1532
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
743
1533
|
# the `transport` parameter.
|
744
1534
|
#
|
1535
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1536
|
+
# given API version does not support the given transport of the NotebookService service.
|
1537
|
+
# You can determine whether the method will succeed by calling
|
1538
|
+
# {Google::Cloud::AIPlatform.notebook_service_available?}.
|
1539
|
+
#
|
745
1540
|
# ## About NotebookService
|
746
1541
|
#
|
747
1542
|
# The interface for Vertex Notebook service (a.k.a. Colab on Workbench).
|
@@ -763,6 +1558,37 @@ module Google
|
|
763
1558
|
service_module.const_get(:Client).new(&block)
|
764
1559
|
end
|
765
1560
|
|
1561
|
+
##
|
1562
|
+
# Determines whether the NotebookService service is supported by the current client.
|
1563
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.notebook_service}.
|
1564
|
+
# If false, that method will raise an exception. This could happen if the given
|
1565
|
+
# API version does not exist or does not support the NotebookService service,
|
1566
|
+
# or if the versioned client gem needs an update to support the NotebookService service.
|
1567
|
+
#
|
1568
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1569
|
+
# Defaults to `:v1`.
|
1570
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1571
|
+
# @return [boolean] Whether the service is available.
|
1572
|
+
#
|
1573
|
+
def self.notebook_service_available? version: :v1, transport: :grpc
|
1574
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1575
|
+
package_name = Google::Cloud::AIPlatform
|
1576
|
+
.constants
|
1577
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1578
|
+
.first
|
1579
|
+
return false unless package_name
|
1580
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1581
|
+
return false unless service_module.const_defined? :NotebookService
|
1582
|
+
service_module = service_module.const_get :NotebookService
|
1583
|
+
if transport == :rest
|
1584
|
+
return false unless service_module.const_defined? :Rest
|
1585
|
+
service_module = service_module.const_get :Rest
|
1586
|
+
end
|
1587
|
+
service_module.const_defined? :Client
|
1588
|
+
rescue ::LoadError
|
1589
|
+
false
|
1590
|
+
end
|
1591
|
+
|
766
1592
|
##
|
767
1593
|
# Create a new client object for PersistentResourceService.
|
768
1594
|
#
|
@@ -776,6 +1602,11 @@ module Google
|
|
776
1602
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
777
1603
|
# the `transport` parameter.
|
778
1604
|
#
|
1605
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1606
|
+
# given API version does not support the given transport of the PersistentResourceService service.
|
1607
|
+
# You can determine whether the method will succeed by calling
|
1608
|
+
# {Google::Cloud::AIPlatform.persistent_resource_service_available?}.
|
1609
|
+
#
|
779
1610
|
# ## About PersistentResourceService
|
780
1611
|
#
|
781
1612
|
# A service for managing Vertex AI's machine learning PersistentResource.
|
@@ -797,6 +1628,37 @@ module Google
|
|
797
1628
|
service_module.const_get(:Client).new(&block)
|
798
1629
|
end
|
799
1630
|
|
1631
|
+
##
|
1632
|
+
# Determines whether the PersistentResourceService service is supported by the current client.
|
1633
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.persistent_resource_service}.
|
1634
|
+
# If false, that method will raise an exception. This could happen if the given
|
1635
|
+
# API version does not exist or does not support the PersistentResourceService service,
|
1636
|
+
# or if the versioned client gem needs an update to support the PersistentResourceService service.
|
1637
|
+
#
|
1638
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1639
|
+
# Defaults to `:v1`.
|
1640
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1641
|
+
# @return [boolean] Whether the service is available.
|
1642
|
+
#
|
1643
|
+
def self.persistent_resource_service_available? version: :v1, transport: :grpc
|
1644
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1645
|
+
package_name = Google::Cloud::AIPlatform
|
1646
|
+
.constants
|
1647
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1648
|
+
.first
|
1649
|
+
return false unless package_name
|
1650
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1651
|
+
return false unless service_module.const_defined? :PersistentResourceService
|
1652
|
+
service_module = service_module.const_get :PersistentResourceService
|
1653
|
+
if transport == :rest
|
1654
|
+
return false unless service_module.const_defined? :Rest
|
1655
|
+
service_module = service_module.const_get :Rest
|
1656
|
+
end
|
1657
|
+
service_module.const_defined? :Client
|
1658
|
+
rescue ::LoadError
|
1659
|
+
false
|
1660
|
+
end
|
1661
|
+
|
800
1662
|
##
|
801
1663
|
# Create a new client object for PipelineService.
|
802
1664
|
#
|
@@ -810,6 +1672,11 @@ module Google
|
|
810
1672
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
811
1673
|
# the `transport` parameter.
|
812
1674
|
#
|
1675
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1676
|
+
# given API version does not support the given transport of the PipelineService service.
|
1677
|
+
# You can determine whether the method will succeed by calling
|
1678
|
+
# {Google::Cloud::AIPlatform.pipeline_service_available?}.
|
1679
|
+
#
|
813
1680
|
# ## About PipelineService
|
814
1681
|
#
|
815
1682
|
# A service for creating and managing Vertex AI's pipelines. This includes both
|
@@ -833,6 +1700,177 @@ module Google
|
|
833
1700
|
service_module.const_get(:Client).new(&block)
|
834
1701
|
end
|
835
1702
|
|
1703
|
+
##
|
1704
|
+
# Determines whether the PipelineService service is supported by the current client.
|
1705
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.pipeline_service}.
|
1706
|
+
# If false, that method will raise an exception. This could happen if the given
|
1707
|
+
# API version does not exist or does not support the PipelineService service,
|
1708
|
+
# or if the versioned client gem needs an update to support the PipelineService service.
|
1709
|
+
#
|
1710
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1711
|
+
# Defaults to `:v1`.
|
1712
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1713
|
+
# @return [boolean] Whether the service is available.
|
1714
|
+
#
|
1715
|
+
def self.pipeline_service_available? version: :v1, transport: :grpc
|
1716
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1717
|
+
package_name = Google::Cloud::AIPlatform
|
1718
|
+
.constants
|
1719
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1720
|
+
.first
|
1721
|
+
return false unless package_name
|
1722
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1723
|
+
return false unless service_module.const_defined? :PipelineService
|
1724
|
+
service_module = service_module.const_get :PipelineService
|
1725
|
+
if transport == :rest
|
1726
|
+
return false unless service_module.const_defined? :Rest
|
1727
|
+
service_module = service_module.const_get :Rest
|
1728
|
+
end
|
1729
|
+
service_module.const_defined? :Client
|
1730
|
+
rescue ::LoadError
|
1731
|
+
false
|
1732
|
+
end
|
1733
|
+
|
1734
|
+
##
|
1735
|
+
# Create a new client object for ReasoningEngineExecutionService.
|
1736
|
+
#
|
1737
|
+
# By default, this returns an instance of
|
1738
|
+
# [Google::Cloud::AIPlatform::V1::ReasoningEngineExecutionService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-ReasoningEngineExecutionService-Client)
|
1739
|
+
# for a gRPC client for version V1 of the API.
|
1740
|
+
# However, you can specify a different API version by passing it in the
|
1741
|
+
# `version` parameter. If the ReasoningEngineExecutionService service is
|
1742
|
+
# supported by that API version, and the corresponding gem is available, the
|
1743
|
+
# appropriate versioned client will be returned.
|
1744
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
1745
|
+
# the `transport` parameter.
|
1746
|
+
#
|
1747
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1748
|
+
# given API version does not support the given transport of the ReasoningEngineExecutionService service.
|
1749
|
+
# You can determine whether the method will succeed by calling
|
1750
|
+
# {Google::Cloud::AIPlatform.reasoning_engine_execution_service_available?}.
|
1751
|
+
#
|
1752
|
+
# ## About ReasoningEngineExecutionService
|
1753
|
+
#
|
1754
|
+
# A service for executing queries on Reasoning Engine.
|
1755
|
+
#
|
1756
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1757
|
+
# Defaults to `:v1`.
|
1758
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1759
|
+
# @return [::Object] A client object for the specified version.
|
1760
|
+
#
|
1761
|
+
def self.reasoning_engine_execution_service version: :v1, transport: :grpc, &block
|
1762
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1763
|
+
|
1764
|
+
package_name = Google::Cloud::AIPlatform
|
1765
|
+
.constants
|
1766
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1767
|
+
.first
|
1768
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ReasoningEngineExecutionService)
|
1769
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
1770
|
+
service_module.const_get(:Client).new(&block)
|
1771
|
+
end
|
1772
|
+
|
1773
|
+
##
|
1774
|
+
# Determines whether the ReasoningEngineExecutionService service is supported by the current client.
|
1775
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.reasoning_engine_execution_service}.
|
1776
|
+
# If false, that method will raise an exception. This could happen if the given
|
1777
|
+
# API version does not exist or does not support the ReasoningEngineExecutionService service,
|
1778
|
+
# or if the versioned client gem needs an update to support the ReasoningEngineExecutionService service.
|
1779
|
+
#
|
1780
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1781
|
+
# Defaults to `:v1`.
|
1782
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1783
|
+
# @return [boolean] Whether the service is available.
|
1784
|
+
#
|
1785
|
+
def self.reasoning_engine_execution_service_available? version: :v1, transport: :grpc
|
1786
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1787
|
+
package_name = Google::Cloud::AIPlatform
|
1788
|
+
.constants
|
1789
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1790
|
+
.first
|
1791
|
+
return false unless package_name
|
1792
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1793
|
+
return false unless service_module.const_defined? :ReasoningEngineExecutionService
|
1794
|
+
service_module = service_module.const_get :ReasoningEngineExecutionService
|
1795
|
+
if transport == :rest
|
1796
|
+
return false unless service_module.const_defined? :Rest
|
1797
|
+
service_module = service_module.const_get :Rest
|
1798
|
+
end
|
1799
|
+
service_module.const_defined? :Client
|
1800
|
+
rescue ::LoadError
|
1801
|
+
false
|
1802
|
+
end
|
1803
|
+
|
1804
|
+
##
|
1805
|
+
# Create a new client object for ReasoningEngineService.
|
1806
|
+
#
|
1807
|
+
# By default, this returns an instance of
|
1808
|
+
# [Google::Cloud::AIPlatform::V1::ReasoningEngineService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-ReasoningEngineService-Client)
|
1809
|
+
# for a gRPC client for version V1 of the API.
|
1810
|
+
# However, you can specify a different API version by passing it in the
|
1811
|
+
# `version` parameter. If the ReasoningEngineService service is
|
1812
|
+
# supported by that API version, and the corresponding gem is available, the
|
1813
|
+
# appropriate versioned client will be returned.
|
1814
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
1815
|
+
# the `transport` parameter.
|
1816
|
+
#
|
1817
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1818
|
+
# given API version does not support the given transport of the ReasoningEngineService service.
|
1819
|
+
# You can determine whether the method will succeed by calling
|
1820
|
+
# {Google::Cloud::AIPlatform.reasoning_engine_service_available?}.
|
1821
|
+
#
|
1822
|
+
# ## About ReasoningEngineService
|
1823
|
+
#
|
1824
|
+
# A service for managing Vertex AI's Reasoning Engines.
|
1825
|
+
#
|
1826
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1827
|
+
# Defaults to `:v1`.
|
1828
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1829
|
+
# @return [::Object] A client object for the specified version.
|
1830
|
+
#
|
1831
|
+
def self.reasoning_engine_service version: :v1, transport: :grpc, &block
|
1832
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1833
|
+
|
1834
|
+
package_name = Google::Cloud::AIPlatform
|
1835
|
+
.constants
|
1836
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1837
|
+
.first
|
1838
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ReasoningEngineService)
|
1839
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
1840
|
+
service_module.const_get(:Client).new(&block)
|
1841
|
+
end
|
1842
|
+
|
1843
|
+
##
|
1844
|
+
# Determines whether the ReasoningEngineService service is supported by the current client.
|
1845
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.reasoning_engine_service}.
|
1846
|
+
# If false, that method will raise an exception. This could happen if the given
|
1847
|
+
# API version does not exist or does not support the ReasoningEngineService service,
|
1848
|
+
# or if the versioned client gem needs an update to support the ReasoningEngineService service.
|
1849
|
+
#
|
1850
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1851
|
+
# Defaults to `:v1`.
|
1852
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1853
|
+
# @return [boolean] Whether the service is available.
|
1854
|
+
#
|
1855
|
+
def self.reasoning_engine_service_available? version: :v1, transport: :grpc
|
1856
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1857
|
+
package_name = Google::Cloud::AIPlatform
|
1858
|
+
.constants
|
1859
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1860
|
+
.first
|
1861
|
+
return false unless package_name
|
1862
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1863
|
+
return false unless service_module.const_defined? :ReasoningEngineService
|
1864
|
+
service_module = service_module.const_get :ReasoningEngineService
|
1865
|
+
if transport == :rest
|
1866
|
+
return false unless service_module.const_defined? :Rest
|
1867
|
+
service_module = service_module.const_get :Rest
|
1868
|
+
end
|
1869
|
+
service_module.const_defined? :Client
|
1870
|
+
rescue ::LoadError
|
1871
|
+
false
|
1872
|
+
end
|
1873
|
+
|
836
1874
|
##
|
837
1875
|
# Create a new client object for ScheduleService.
|
838
1876
|
#
|
@@ -846,6 +1884,11 @@ module Google
|
|
846
1884
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
847
1885
|
# the `transport` parameter.
|
848
1886
|
#
|
1887
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1888
|
+
# given API version does not support the given transport of the ScheduleService service.
|
1889
|
+
# You can determine whether the method will succeed by calling
|
1890
|
+
# {Google::Cloud::AIPlatform.schedule_service_available?}.
|
1891
|
+
#
|
849
1892
|
# ## About ScheduleService
|
850
1893
|
#
|
851
1894
|
# A service for creating and managing Vertex AI's Schedule resources to
|
@@ -868,6 +1911,37 @@ module Google
|
|
868
1911
|
service_module.const_get(:Client).new(&block)
|
869
1912
|
end
|
870
1913
|
|
1914
|
+
##
|
1915
|
+
# Determines whether the ScheduleService service is supported by the current client.
|
1916
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.schedule_service}.
|
1917
|
+
# If false, that method will raise an exception. This could happen if the given
|
1918
|
+
# API version does not exist or does not support the ScheduleService service,
|
1919
|
+
# or if the versioned client gem needs an update to support the ScheduleService service.
|
1920
|
+
#
|
1921
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1922
|
+
# Defaults to `:v1`.
|
1923
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1924
|
+
# @return [boolean] Whether the service is available.
|
1925
|
+
#
|
1926
|
+
def self.schedule_service_available? version: :v1, transport: :grpc
|
1927
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
1928
|
+
package_name = Google::Cloud::AIPlatform
|
1929
|
+
.constants
|
1930
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1931
|
+
.first
|
1932
|
+
return false unless package_name
|
1933
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
1934
|
+
return false unless service_module.const_defined? :ScheduleService
|
1935
|
+
service_module = service_module.const_get :ScheduleService
|
1936
|
+
if transport == :rest
|
1937
|
+
return false unless service_module.const_defined? :Rest
|
1938
|
+
service_module = service_module.const_get :Rest
|
1939
|
+
end
|
1940
|
+
service_module.const_defined? :Client
|
1941
|
+
rescue ::LoadError
|
1942
|
+
false
|
1943
|
+
end
|
1944
|
+
|
871
1945
|
##
|
872
1946
|
# Create a new client object for SpecialistPoolService.
|
873
1947
|
#
|
@@ -881,6 +1955,11 @@ module Google
|
|
881
1955
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
882
1956
|
# the `transport` parameter.
|
883
1957
|
#
|
1958
|
+
# Raises an exception if the currently installed versioned client gem for the
|
1959
|
+
# given API version does not support the given transport of the SpecialistPoolService service.
|
1960
|
+
# You can determine whether the method will succeed by calling
|
1961
|
+
# {Google::Cloud::AIPlatform.specialist_pool_service_available?}.
|
1962
|
+
#
|
884
1963
|
# ## About SpecialistPoolService
|
885
1964
|
#
|
886
1965
|
# A service for creating and managing Customer SpecialistPools.
|
@@ -907,6 +1986,37 @@ module Google
|
|
907
1986
|
service_module.const_get(:Client).new(&block)
|
908
1987
|
end
|
909
1988
|
|
1989
|
+
##
|
1990
|
+
# Determines whether the SpecialistPoolService service is supported by the current client.
|
1991
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.specialist_pool_service}.
|
1992
|
+
# If false, that method will raise an exception. This could happen if the given
|
1993
|
+
# API version does not exist or does not support the SpecialistPoolService service,
|
1994
|
+
# or if the versioned client gem needs an update to support the SpecialistPoolService service.
|
1995
|
+
#
|
1996
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1997
|
+
# Defaults to `:v1`.
|
1998
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1999
|
+
# @return [boolean] Whether the service is available.
|
2000
|
+
#
|
2001
|
+
def self.specialist_pool_service_available? version: :v1, transport: :grpc
|
2002
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
2003
|
+
package_name = Google::Cloud::AIPlatform
|
2004
|
+
.constants
|
2005
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
2006
|
+
.first
|
2007
|
+
return false unless package_name
|
2008
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
2009
|
+
return false unless service_module.const_defined? :SpecialistPoolService
|
2010
|
+
service_module = service_module.const_get :SpecialistPoolService
|
2011
|
+
if transport == :rest
|
2012
|
+
return false unless service_module.const_defined? :Rest
|
2013
|
+
service_module = service_module.const_get :Rest
|
2014
|
+
end
|
2015
|
+
service_module.const_defined? :Client
|
2016
|
+
rescue ::LoadError
|
2017
|
+
false
|
2018
|
+
end
|
2019
|
+
|
910
2020
|
##
|
911
2021
|
# Create a new client object for TensorboardService.
|
912
2022
|
#
|
@@ -920,6 +2030,11 @@ module Google
|
|
920
2030
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
921
2031
|
# the `transport` parameter.
|
922
2032
|
#
|
2033
|
+
# Raises an exception if the currently installed versioned client gem for the
|
2034
|
+
# given API version does not support the given transport of the TensorboardService service.
|
2035
|
+
# You can determine whether the method will succeed by calling
|
2036
|
+
# {Google::Cloud::AIPlatform.tensorboard_service_available?}.
|
2037
|
+
#
|
923
2038
|
# ## About TensorboardService
|
924
2039
|
#
|
925
2040
|
# TensorboardService
|
@@ -941,6 +2056,37 @@ module Google
|
|
941
2056
|
service_module.const_get(:Client).new(&block)
|
942
2057
|
end
|
943
2058
|
|
2059
|
+
##
|
2060
|
+
# Determines whether the TensorboardService service is supported by the current client.
|
2061
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.tensorboard_service}.
|
2062
|
+
# If false, that method will raise an exception. This could happen if the given
|
2063
|
+
# API version does not exist or does not support the TensorboardService service,
|
2064
|
+
# or if the versioned client gem needs an update to support the TensorboardService service.
|
2065
|
+
#
|
2066
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
2067
|
+
# Defaults to `:v1`.
|
2068
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
2069
|
+
# @return [boolean] Whether the service is available.
|
2070
|
+
#
|
2071
|
+
def self.tensorboard_service_available? version: :v1, transport: :grpc
|
2072
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
2073
|
+
package_name = Google::Cloud::AIPlatform
|
2074
|
+
.constants
|
2075
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
2076
|
+
.first
|
2077
|
+
return false unless package_name
|
2078
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
2079
|
+
return false unless service_module.const_defined? :TensorboardService
|
2080
|
+
service_module = service_module.const_get :TensorboardService
|
2081
|
+
if transport == :rest
|
2082
|
+
return false unless service_module.const_defined? :Rest
|
2083
|
+
service_module = service_module.const_get :Rest
|
2084
|
+
end
|
2085
|
+
service_module.const_defined? :Client
|
2086
|
+
rescue ::LoadError
|
2087
|
+
false
|
2088
|
+
end
|
2089
|
+
|
944
2090
|
##
|
945
2091
|
# Create a new client object for VertexRagDataService.
|
946
2092
|
#
|
@@ -954,6 +2100,11 @@ module Google
|
|
954
2100
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
955
2101
|
# the `transport` parameter.
|
956
2102
|
#
|
2103
|
+
# Raises an exception if the currently installed versioned client gem for the
|
2104
|
+
# given API version does not support the given transport of the VertexRagDataService service.
|
2105
|
+
# You can determine whether the method will succeed by calling
|
2106
|
+
# {Google::Cloud::AIPlatform.vertex_rag_data_service_available?}.
|
2107
|
+
#
|
957
2108
|
# ## About VertexRagDataService
|
958
2109
|
#
|
959
2110
|
# A service for managing user data for RAG.
|
@@ -975,6 +2126,37 @@ module Google
|
|
975
2126
|
service_module.const_get(:Client).new(&block)
|
976
2127
|
end
|
977
2128
|
|
2129
|
+
##
|
2130
|
+
# Determines whether the VertexRagDataService service is supported by the current client.
|
2131
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.vertex_rag_data_service}.
|
2132
|
+
# If false, that method will raise an exception. This could happen if the given
|
2133
|
+
# API version does not exist or does not support the VertexRagDataService service,
|
2134
|
+
# or if the versioned client gem needs an update to support the VertexRagDataService service.
|
2135
|
+
#
|
2136
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
2137
|
+
# Defaults to `:v1`.
|
2138
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
2139
|
+
# @return [boolean] Whether the service is available.
|
2140
|
+
#
|
2141
|
+
def self.vertex_rag_data_service_available? version: :v1, transport: :grpc
|
2142
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
2143
|
+
package_name = Google::Cloud::AIPlatform
|
2144
|
+
.constants
|
2145
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
2146
|
+
.first
|
2147
|
+
return false unless package_name
|
2148
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
2149
|
+
return false unless service_module.const_defined? :VertexRagDataService
|
2150
|
+
service_module = service_module.const_get :VertexRagDataService
|
2151
|
+
if transport == :rest
|
2152
|
+
return false unless service_module.const_defined? :Rest
|
2153
|
+
service_module = service_module.const_get :Rest
|
2154
|
+
end
|
2155
|
+
service_module.const_defined? :Client
|
2156
|
+
rescue ::LoadError
|
2157
|
+
false
|
2158
|
+
end
|
2159
|
+
|
978
2160
|
##
|
979
2161
|
# Create a new client object for VertexRagService.
|
980
2162
|
#
|
@@ -988,6 +2170,11 @@ module Google
|
|
988
2170
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
989
2171
|
# the `transport` parameter.
|
990
2172
|
#
|
2173
|
+
# Raises an exception if the currently installed versioned client gem for the
|
2174
|
+
# given API version does not support the given transport of the VertexRagService service.
|
2175
|
+
# You can determine whether the method will succeed by calling
|
2176
|
+
# {Google::Cloud::AIPlatform.vertex_rag_service_available?}.
|
2177
|
+
#
|
991
2178
|
# ## About VertexRagService
|
992
2179
|
#
|
993
2180
|
# A service for retrieving relevant contexts.
|
@@ -1009,6 +2196,37 @@ module Google
|
|
1009
2196
|
service_module.const_get(:Client).new(&block)
|
1010
2197
|
end
|
1011
2198
|
|
2199
|
+
##
|
2200
|
+
# Determines whether the VertexRagService service is supported by the current client.
|
2201
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.vertex_rag_service}.
|
2202
|
+
# If false, that method will raise an exception. This could happen if the given
|
2203
|
+
# API version does not exist or does not support the VertexRagService service,
|
2204
|
+
# or if the versioned client gem needs an update to support the VertexRagService service.
|
2205
|
+
#
|
2206
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
2207
|
+
# Defaults to `:v1`.
|
2208
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
2209
|
+
# @return [boolean] Whether the service is available.
|
2210
|
+
#
|
2211
|
+
def self.vertex_rag_service_available? version: :v1, transport: :grpc
|
2212
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
2213
|
+
package_name = Google::Cloud::AIPlatform
|
2214
|
+
.constants
|
2215
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
2216
|
+
.first
|
2217
|
+
return false unless package_name
|
2218
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
2219
|
+
return false unless service_module.const_defined? :VertexRagService
|
2220
|
+
service_module = service_module.const_get :VertexRagService
|
2221
|
+
if transport == :rest
|
2222
|
+
return false unless service_module.const_defined? :Rest
|
2223
|
+
service_module = service_module.const_get :Rest
|
2224
|
+
end
|
2225
|
+
service_module.const_defined? :Client
|
2226
|
+
rescue ::LoadError
|
2227
|
+
false
|
2228
|
+
end
|
2229
|
+
|
1012
2230
|
##
|
1013
2231
|
# Create a new client object for VizierService.
|
1014
2232
|
#
|
@@ -1022,6 +2240,11 @@ module Google
|
|
1022
2240
|
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
1023
2241
|
# the `transport` parameter.
|
1024
2242
|
#
|
2243
|
+
# Raises an exception if the currently installed versioned client gem for the
|
2244
|
+
# given API version does not support the given transport of the VizierService service.
|
2245
|
+
# You can determine whether the method will succeed by calling
|
2246
|
+
# {Google::Cloud::AIPlatform.vizier_service_available?}.
|
2247
|
+
#
|
1025
2248
|
# ## About VizierService
|
1026
2249
|
#
|
1027
2250
|
# Vertex AI Vizier API.
|
@@ -1047,6 +2270,37 @@ module Google
|
|
1047
2270
|
service_module.const_get(:Client).new(&block)
|
1048
2271
|
end
|
1049
2272
|
|
2273
|
+
##
|
2274
|
+
# Determines whether the VizierService service is supported by the current client.
|
2275
|
+
# If true, you can retrieve a client object by calling {Google::Cloud::AIPlatform.vizier_service}.
|
2276
|
+
# If false, that method will raise an exception. This could happen if the given
|
2277
|
+
# API version does not exist or does not support the VizierService service,
|
2278
|
+
# or if the versioned client gem needs an update to support the VizierService service.
|
2279
|
+
#
|
2280
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
2281
|
+
# Defaults to `:v1`.
|
2282
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
2283
|
+
# @return [boolean] Whether the service is available.
|
2284
|
+
#
|
2285
|
+
def self.vizier_service_available? version: :v1, transport: :grpc
|
2286
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
2287
|
+
package_name = Google::Cloud::AIPlatform
|
2288
|
+
.constants
|
2289
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
2290
|
+
.first
|
2291
|
+
return false unless package_name
|
2292
|
+
service_module = Google::Cloud::AIPlatform.const_get package_name
|
2293
|
+
return false unless service_module.const_defined? :VizierService
|
2294
|
+
service_module = service_module.const_get :VizierService
|
2295
|
+
if transport == :rest
|
2296
|
+
return false unless service_module.const_defined? :Rest
|
2297
|
+
service_module = service_module.const_get :Rest
|
2298
|
+
end
|
2299
|
+
service_module.const_defined? :Client
|
2300
|
+
rescue ::LoadError
|
2301
|
+
false
|
2302
|
+
end
|
2303
|
+
|
1050
2304
|
##
|
1051
2305
|
# Configure the google-cloud-ai_platform library.
|
1052
2306
|
#
|