google-cloud-ai_platform 1.3.0 → 1.5.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 +24 -25
- data/lib/google/cloud/ai_platform/version.rb +1 -1
- data/lib/google/cloud/ai_platform.rb +244 -38
- 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,41 @@ 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
|
147
|
+
service_module.const_get(:Client).new(&block)
|
148
|
+
end
|
149
|
+
|
150
|
+
##
|
151
|
+
# Create a new client object for EvaluationService.
|
152
|
+
#
|
153
|
+
# By default, this returns an instance of
|
154
|
+
# [Google::Cloud::AIPlatform::V1::EvaluationService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-EvaluationService-Client)
|
155
|
+
# for a gRPC client for version V1 of the API.
|
156
|
+
# However, you can specify a different API version by passing it in the
|
157
|
+
# `version` parameter. If the EvaluationService service is
|
158
|
+
# supported by that API version, and the corresponding gem is available, the
|
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.
|
162
|
+
#
|
163
|
+
# ## About EvaluationService
|
164
|
+
#
|
165
|
+
# Vertex AI Online Evaluation Service.
|
166
|
+
#
|
167
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
168
|
+
# Defaults to `:v1`.
|
169
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
170
|
+
# @return [::Object] A client object for the specified version.
|
171
|
+
#
|
172
|
+
def self.evaluation_service version: :v1, transport: :grpc, &block
|
173
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
174
|
+
|
175
|
+
package_name = Google::Cloud::AIPlatform
|
176
|
+
.constants
|
177
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
178
|
+
.first
|
179
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:EvaluationService)
|
180
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
135
181
|
service_module.const_get(:Client).new(&block)
|
136
182
|
end
|
137
183
|
|
@@ -145,6 +191,8 @@ module Google
|
|
145
191
|
# `version` parameter. If the FeatureOnlineStoreAdminService service is
|
146
192
|
# supported by that API version, and the corresponding gem is available, the
|
147
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.
|
148
196
|
#
|
149
197
|
# ## About FeatureOnlineStoreAdminService
|
150
198
|
#
|
@@ -153,9 +201,10 @@ module Google
|
|
153
201
|
#
|
154
202
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
155
203
|
# Defaults to `:v1`.
|
204
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
156
205
|
# @return [::Object] A client object for the specified version.
|
157
206
|
#
|
158
|
-
def self.feature_online_store_admin_service version: :v1, &block
|
207
|
+
def self.feature_online_store_admin_service version: :v1, transport: :grpc, &block
|
159
208
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
160
209
|
|
161
210
|
package_name = Google::Cloud::AIPlatform
|
@@ -163,6 +212,7 @@ module Google
|
|
163
212
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
164
213
|
.first
|
165
214
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeatureOnlineStoreAdminService)
|
215
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
166
216
|
service_module.const_get(:Client).new(&block)
|
167
217
|
end
|
168
218
|
|
@@ -176,6 +226,8 @@ module Google
|
|
176
226
|
# `version` parameter. If the FeaturestoreOnlineServingService service is
|
177
227
|
# supported by that API version, and the corresponding gem is available, the
|
178
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.
|
179
231
|
#
|
180
232
|
# ## About FeaturestoreOnlineServingService
|
181
233
|
#
|
@@ -183,9 +235,10 @@ module Google
|
|
183
235
|
#
|
184
236
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
185
237
|
# Defaults to `:v1`.
|
238
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
186
239
|
# @return [::Object] A client object for the specified version.
|
187
240
|
#
|
188
|
-
def self.featurestore_online_serving_service version: :v1, &block
|
241
|
+
def self.featurestore_online_serving_service version: :v1, transport: :grpc, &block
|
189
242
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
190
243
|
|
191
244
|
package_name = Google::Cloud::AIPlatform
|
@@ -193,6 +246,7 @@ module Google
|
|
193
246
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
194
247
|
.first
|
195
248
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeaturestoreOnlineServingService)
|
249
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
196
250
|
service_module.const_get(:Client).new(&block)
|
197
251
|
end
|
198
252
|
|
@@ -206,6 +260,8 @@ module Google
|
|
206
260
|
# `version` parameter. If the FeatureOnlineStoreService service is
|
207
261
|
# supported by that API version, and the corresponding gem is available, the
|
208
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.
|
209
265
|
#
|
210
266
|
# ## About FeatureOnlineStoreService
|
211
267
|
#
|
@@ -213,9 +269,10 @@ module Google
|
|
213
269
|
#
|
214
270
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
215
271
|
# Defaults to `:v1`.
|
272
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
216
273
|
# @return [::Object] A client object for the specified version.
|
217
274
|
#
|
218
|
-
def self.feature_online_store_service version: :v1, &block
|
275
|
+
def self.feature_online_store_service version: :v1, transport: :grpc, &block
|
219
276
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
220
277
|
|
221
278
|
package_name = Google::Cloud::AIPlatform
|
@@ -223,6 +280,7 @@ module Google
|
|
223
280
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
224
281
|
.first
|
225
282
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeatureOnlineStoreService)
|
283
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
226
284
|
service_module.const_get(:Client).new(&block)
|
227
285
|
end
|
228
286
|
|
@@ -236,6 +294,8 @@ module Google
|
|
236
294
|
# `version` parameter. If the FeaturestoreService service is
|
237
295
|
# supported by that API version, and the corresponding gem is available, the
|
238
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.
|
239
299
|
#
|
240
300
|
# ## About FeaturestoreService
|
241
301
|
#
|
@@ -243,9 +303,10 @@ module Google
|
|
243
303
|
#
|
244
304
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
245
305
|
# Defaults to `:v1`.
|
306
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
246
307
|
# @return [::Object] A client object for the specified version.
|
247
308
|
#
|
248
|
-
def self.featurestore_service version: :v1, &block
|
309
|
+
def self.featurestore_service version: :v1, transport: :grpc, &block
|
249
310
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
250
311
|
|
251
312
|
package_name = Google::Cloud::AIPlatform
|
@@ -253,6 +314,7 @@ module Google
|
|
253
314
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
254
315
|
.first
|
255
316
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeaturestoreService)
|
317
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
256
318
|
service_module.const_get(:Client).new(&block)
|
257
319
|
end
|
258
320
|
|
@@ -266,6 +328,8 @@ module Google
|
|
266
328
|
# `version` parameter. If the FeatureRegistryService service is
|
267
329
|
# supported by that API version, and the corresponding gem is available, the
|
268
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.
|
269
333
|
#
|
270
334
|
# ## About FeatureRegistryService
|
271
335
|
#
|
@@ -274,9 +338,10 @@ module Google
|
|
274
338
|
#
|
275
339
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
276
340
|
# Defaults to `:v1`.
|
341
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
277
342
|
# @return [::Object] A client object for the specified version.
|
278
343
|
#
|
279
|
-
def self.feature_registry_service version: :v1, &block
|
344
|
+
def self.feature_registry_service version: :v1, transport: :grpc, &block
|
280
345
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
281
346
|
|
282
347
|
package_name = Google::Cloud::AIPlatform
|
@@ -284,6 +349,7 @@ module Google
|
|
284
349
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
285
350
|
.first
|
286
351
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeatureRegistryService)
|
352
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
287
353
|
service_module.const_get(:Client).new(&block)
|
288
354
|
end
|
289
355
|
|
@@ -297,6 +363,8 @@ module Google
|
|
297
363
|
# `version` parameter. If the GenAiTuningService service is
|
298
364
|
# supported by that API version, and the corresponding gem is available, the
|
299
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.
|
300
368
|
#
|
301
369
|
# ## About GenAiTuningService
|
302
370
|
#
|
@@ -304,9 +372,10 @@ module Google
|
|
304
372
|
#
|
305
373
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
306
374
|
# Defaults to `:v1`.
|
375
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
307
376
|
# @return [::Object] A client object for the specified version.
|
308
377
|
#
|
309
|
-
def self.gen_ai_tuning_service version: :v1, &block
|
378
|
+
def self.gen_ai_tuning_service version: :v1, transport: :grpc, &block
|
310
379
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
311
380
|
|
312
381
|
package_name = Google::Cloud::AIPlatform
|
@@ -314,6 +383,7 @@ module Google
|
|
314
383
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
315
384
|
.first
|
316
385
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:GenAiTuningService)
|
386
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
317
387
|
service_module.const_get(:Client).new(&block)
|
318
388
|
end
|
319
389
|
|
@@ -327,6 +397,8 @@ module Google
|
|
327
397
|
# `version` parameter. If the IndexEndpointService service is
|
328
398
|
# supported by that API version, and the corresponding gem is available, the
|
329
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.
|
330
402
|
#
|
331
403
|
# ## About IndexEndpointService
|
332
404
|
#
|
@@ -334,9 +406,10 @@ module Google
|
|
334
406
|
#
|
335
407
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
336
408
|
# Defaults to `:v1`.
|
409
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
337
410
|
# @return [::Object] A client object for the specified version.
|
338
411
|
#
|
339
|
-
def self.index_endpoint_service version: :v1, &block
|
412
|
+
def self.index_endpoint_service version: :v1, transport: :grpc, &block
|
340
413
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
341
414
|
|
342
415
|
package_name = Google::Cloud::AIPlatform
|
@@ -344,6 +417,7 @@ module Google
|
|
344
417
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
345
418
|
.first
|
346
419
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:IndexEndpointService)
|
420
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
347
421
|
service_module.const_get(:Client).new(&block)
|
348
422
|
end
|
349
423
|
|
@@ -357,6 +431,8 @@ module Google
|
|
357
431
|
# `version` parameter. If the IndexService service is
|
358
432
|
# supported by that API version, and the corresponding gem is available, the
|
359
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.
|
360
436
|
#
|
361
437
|
# ## About IndexService
|
362
438
|
#
|
@@ -364,9 +440,10 @@ module Google
|
|
364
440
|
#
|
365
441
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
366
442
|
# Defaults to `:v1`.
|
443
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
367
444
|
# @return [::Object] A client object for the specified version.
|
368
445
|
#
|
369
|
-
def self.index_service version: :v1, &block
|
446
|
+
def self.index_service version: :v1, transport: :grpc, &block
|
370
447
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
371
448
|
|
372
449
|
package_name = Google::Cloud::AIPlatform
|
@@ -374,6 +451,7 @@ module Google
|
|
374
451
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
375
452
|
.first
|
376
453
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:IndexService)
|
454
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
377
455
|
service_module.const_get(:Client).new(&block)
|
378
456
|
end
|
379
457
|
|
@@ -387,6 +465,8 @@ module Google
|
|
387
465
|
# `version` parameter. If the JobService service is
|
388
466
|
# supported by that API version, and the corresponding gem is available, the
|
389
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.
|
390
470
|
#
|
391
471
|
# ## About JobService
|
392
472
|
#
|
@@ -394,9 +474,10 @@ module Google
|
|
394
474
|
#
|
395
475
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
396
476
|
# Defaults to `:v1`.
|
477
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
397
478
|
# @return [::Object] A client object for the specified version.
|
398
479
|
#
|
399
|
-
def self.job_service version: :v1, &block
|
480
|
+
def self.job_service version: :v1, transport: :grpc, &block
|
400
481
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
401
482
|
|
402
483
|
package_name = Google::Cloud::AIPlatform
|
@@ -404,6 +485,7 @@ module Google
|
|
404
485
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
405
486
|
.first
|
406
487
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:JobService)
|
488
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
407
489
|
service_module.const_get(:Client).new(&block)
|
408
490
|
end
|
409
491
|
|
@@ -417,6 +499,8 @@ module Google
|
|
417
499
|
# `version` parameter. If the PredictionService service is
|
418
500
|
# supported by that API version, and the corresponding gem is available, the
|
419
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.
|
420
504
|
#
|
421
505
|
# ## About PredictionService
|
422
506
|
#
|
@@ -424,9 +508,10 @@ module Google
|
|
424
508
|
#
|
425
509
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
426
510
|
# Defaults to `:v1`.
|
511
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
427
512
|
# @return [::Object] A client object for the specified version.
|
428
513
|
#
|
429
|
-
def self.prediction_service version: :v1, &block
|
514
|
+
def self.prediction_service version: :v1, transport: :grpc, &block
|
430
515
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
431
516
|
|
432
517
|
package_name = Google::Cloud::AIPlatform
|
@@ -434,6 +519,7 @@ module Google
|
|
434
519
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
435
520
|
.first
|
436
521
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PredictionService)
|
522
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
437
523
|
service_module.const_get(:Client).new(&block)
|
438
524
|
end
|
439
525
|
|
@@ -447,6 +533,8 @@ module Google
|
|
447
533
|
# `version` parameter. If the LlmUtilityService service is
|
448
534
|
# supported by that API version, and the corresponding gem is available, the
|
449
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.
|
450
538
|
#
|
451
539
|
# ## About LlmUtilityService
|
452
540
|
#
|
@@ -454,9 +542,10 @@ module Google
|
|
454
542
|
#
|
455
543
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
456
544
|
# Defaults to `:v1`.
|
545
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
457
546
|
# @return [::Object] A client object for the specified version.
|
458
547
|
#
|
459
|
-
def self.llm_utility_service version: :v1, &block
|
548
|
+
def self.llm_utility_service version: :v1, transport: :grpc, &block
|
460
549
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
461
550
|
|
462
551
|
package_name = Google::Cloud::AIPlatform
|
@@ -464,6 +553,7 @@ module Google
|
|
464
553
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
465
554
|
.first
|
466
555
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:LlmUtilityService)
|
556
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
467
557
|
service_module.const_get(:Client).new(&block)
|
468
558
|
end
|
469
559
|
|
@@ -477,6 +567,8 @@ module Google
|
|
477
567
|
# `version` parameter. If the MatchService service is
|
478
568
|
# supported by that API version, and the corresponding gem is available, the
|
479
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.
|
480
572
|
#
|
481
573
|
# ## About MatchService
|
482
574
|
#
|
@@ -485,9 +577,10 @@ module Google
|
|
485
577
|
#
|
486
578
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
487
579
|
# Defaults to `:v1`.
|
580
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
488
581
|
# @return [::Object] A client object for the specified version.
|
489
582
|
#
|
490
|
-
def self.match_service version: :v1, &block
|
583
|
+
def self.match_service version: :v1, transport: :grpc, &block
|
491
584
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
492
585
|
|
493
586
|
package_name = Google::Cloud::AIPlatform
|
@@ -495,6 +588,7 @@ module Google
|
|
495
588
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
496
589
|
.first
|
497
590
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MatchService)
|
591
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
498
592
|
service_module.const_get(:Client).new(&block)
|
499
593
|
end
|
500
594
|
|
@@ -508,6 +602,8 @@ module Google
|
|
508
602
|
# `version` parameter. If the MetadataService service is
|
509
603
|
# supported by that API version, and the corresponding gem is available, the
|
510
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.
|
511
607
|
#
|
512
608
|
# ## About MetadataService
|
513
609
|
#
|
@@ -515,9 +611,10 @@ module Google
|
|
515
611
|
#
|
516
612
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
517
613
|
# Defaults to `:v1`.
|
614
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
518
615
|
# @return [::Object] A client object for the specified version.
|
519
616
|
#
|
520
|
-
def self.metadata_service version: :v1, &block
|
617
|
+
def self.metadata_service version: :v1, transport: :grpc, &block
|
521
618
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
522
619
|
|
523
620
|
package_name = Google::Cloud::AIPlatform
|
@@ -525,6 +622,7 @@ module Google
|
|
525
622
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
526
623
|
.first
|
527
624
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MetadataService)
|
625
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
528
626
|
service_module.const_get(:Client).new(&block)
|
529
627
|
end
|
530
628
|
|
@@ -538,6 +636,8 @@ module Google
|
|
538
636
|
# `version` parameter. If the MigrationService service is
|
539
637
|
# supported by that API version, and the corresponding gem is available, the
|
540
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.
|
541
641
|
#
|
542
642
|
# ## About MigrationService
|
543
643
|
#
|
@@ -546,9 +646,10 @@ module Google
|
|
546
646
|
#
|
547
647
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
548
648
|
# Defaults to `:v1`.
|
649
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
549
650
|
# @return [::Object] A client object for the specified version.
|
550
651
|
#
|
551
|
-
def self.migration_service version: :v1, &block
|
652
|
+
def self.migration_service version: :v1, transport: :grpc, &block
|
552
653
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
553
654
|
|
554
655
|
package_name = Google::Cloud::AIPlatform
|
@@ -556,66 +657,75 @@ module Google
|
|
556
657
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
557
658
|
.first
|
558
659
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MigrationService)
|
660
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
559
661
|
service_module.const_get(:Client).new(&block)
|
560
662
|
end
|
561
663
|
|
562
664
|
##
|
563
|
-
# Create a new client object for
|
665
|
+
# Create a new client object for ModelGardenService.
|
564
666
|
#
|
565
667
|
# By default, this returns an instance of
|
566
|
-
# [Google::Cloud::AIPlatform::V1::
|
668
|
+
# [Google::Cloud::AIPlatform::V1::ModelGardenService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-ModelGardenService-Client)
|
567
669
|
# for a gRPC client for version V1 of the API.
|
568
670
|
# However, you can specify a different API version by passing it in the
|
569
|
-
# `version` parameter. If the
|
671
|
+
# `version` parameter. If the ModelGardenService service is
|
570
672
|
# supported by that API version, and the corresponding gem is available, the
|
571
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.
|
572
676
|
#
|
573
|
-
# ## About
|
677
|
+
# ## About ModelGardenService
|
574
678
|
#
|
575
|
-
#
|
679
|
+
# The interface of Model Garden Service.
|
576
680
|
#
|
577
681
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
578
682
|
# Defaults to `:v1`.
|
683
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
579
684
|
# @return [::Object] A client object for the specified version.
|
580
685
|
#
|
581
|
-
def self.
|
686
|
+
def self.model_garden_service version: :v1, transport: :grpc, &block
|
582
687
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
583
688
|
|
584
689
|
package_name = Google::Cloud::AIPlatform
|
585
690
|
.constants
|
586
691
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
587
692
|
.first
|
588
|
-
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:
|
693
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ModelGardenService)
|
694
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
589
695
|
service_module.const_get(:Client).new(&block)
|
590
696
|
end
|
591
697
|
|
592
698
|
##
|
593
|
-
# Create a new client object for
|
699
|
+
# Create a new client object for ModelService.
|
594
700
|
#
|
595
701
|
# By default, this returns an instance of
|
596
|
-
# [Google::Cloud::AIPlatform::V1::
|
702
|
+
# [Google::Cloud::AIPlatform::V1::ModelService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-ModelService-Client)
|
597
703
|
# for a gRPC client for version V1 of the API.
|
598
704
|
# However, you can specify a different API version by passing it in the
|
599
|
-
# `version` parameter. If the
|
705
|
+
# `version` parameter. If the ModelService service is
|
600
706
|
# supported by that API version, and the corresponding gem is available, the
|
601
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.
|
602
710
|
#
|
603
|
-
# ## About
|
711
|
+
# ## About ModelService
|
604
712
|
#
|
605
|
-
#
|
713
|
+
# A service for managing Vertex AI's machine learning Models.
|
606
714
|
#
|
607
715
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
608
716
|
# Defaults to `:v1`.
|
717
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
609
718
|
# @return [::Object] A client object for the specified version.
|
610
719
|
#
|
611
|
-
def self.
|
720
|
+
def self.model_service version: :v1, transport: :grpc, &block
|
612
721
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
613
722
|
|
614
723
|
package_name = Google::Cloud::AIPlatform
|
615
724
|
.constants
|
616
725
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
617
726
|
.first
|
618
|
-
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:
|
727
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ModelService)
|
728
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
619
729
|
service_module.const_get(:Client).new(&block)
|
620
730
|
end
|
621
731
|
|
@@ -629,6 +739,8 @@ module Google
|
|
629
739
|
# `version` parameter. If the NotebookService service is
|
630
740
|
# supported by that API version, and the corresponding gem is available, the
|
631
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.
|
632
744
|
#
|
633
745
|
# ## About NotebookService
|
634
746
|
#
|
@@ -636,9 +748,10 @@ module Google
|
|
636
748
|
#
|
637
749
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
638
750
|
# Defaults to `:v1`.
|
751
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
639
752
|
# @return [::Object] A client object for the specified version.
|
640
753
|
#
|
641
|
-
def self.notebook_service version: :v1, &block
|
754
|
+
def self.notebook_service version: :v1, transport: :grpc, &block
|
642
755
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
643
756
|
|
644
757
|
package_name = Google::Cloud::AIPlatform
|
@@ -646,6 +759,7 @@ module Google
|
|
646
759
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
647
760
|
.first
|
648
761
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:NotebookService)
|
762
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
649
763
|
service_module.const_get(:Client).new(&block)
|
650
764
|
end
|
651
765
|
|
@@ -659,6 +773,8 @@ module Google
|
|
659
773
|
# `version` parameter. If the PersistentResourceService service is
|
660
774
|
# supported by that API version, and the corresponding gem is available, the
|
661
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.
|
662
778
|
#
|
663
779
|
# ## About PersistentResourceService
|
664
780
|
#
|
@@ -666,9 +782,10 @@ module Google
|
|
666
782
|
#
|
667
783
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
668
784
|
# Defaults to `:v1`.
|
785
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
669
786
|
# @return [::Object] A client object for the specified version.
|
670
787
|
#
|
671
|
-
def self.persistent_resource_service version: :v1, &block
|
788
|
+
def self.persistent_resource_service version: :v1, transport: :grpc, &block
|
672
789
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
673
790
|
|
674
791
|
package_name = Google::Cloud::AIPlatform
|
@@ -676,6 +793,7 @@ module Google
|
|
676
793
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
677
794
|
.first
|
678
795
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PersistentResourceService)
|
796
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
679
797
|
service_module.const_get(:Client).new(&block)
|
680
798
|
end
|
681
799
|
|
@@ -689,6 +807,8 @@ module Google
|
|
689
807
|
# `version` parameter. If the PipelineService service is
|
690
808
|
# supported by that API version, and the corresponding gem is available, the
|
691
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.
|
692
812
|
#
|
693
813
|
# ## About PipelineService
|
694
814
|
#
|
@@ -698,9 +818,10 @@ module Google
|
|
698
818
|
#
|
699
819
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
700
820
|
# Defaults to `:v1`.
|
821
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
701
822
|
# @return [::Object] A client object for the specified version.
|
702
823
|
#
|
703
|
-
def self.pipeline_service version: :v1, &block
|
824
|
+
def self.pipeline_service version: :v1, transport: :grpc, &block
|
704
825
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
705
826
|
|
706
827
|
package_name = Google::Cloud::AIPlatform
|
@@ -708,6 +829,7 @@ module Google
|
|
708
829
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
709
830
|
.first
|
710
831
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PipelineService)
|
832
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
711
833
|
service_module.const_get(:Client).new(&block)
|
712
834
|
end
|
713
835
|
|
@@ -721,6 +843,8 @@ module Google
|
|
721
843
|
# `version` parameter. If the ScheduleService service is
|
722
844
|
# supported by that API version, and the corresponding gem is available, the
|
723
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.
|
724
848
|
#
|
725
849
|
# ## About ScheduleService
|
726
850
|
#
|
@@ -729,9 +853,10 @@ module Google
|
|
729
853
|
#
|
730
854
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
731
855
|
# Defaults to `:v1`.
|
856
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
732
857
|
# @return [::Object] A client object for the specified version.
|
733
858
|
#
|
734
|
-
def self.schedule_service version: :v1, &block
|
859
|
+
def self.schedule_service version: :v1, transport: :grpc, &block
|
735
860
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
736
861
|
|
737
862
|
package_name = Google::Cloud::AIPlatform
|
@@ -739,6 +864,7 @@ module Google
|
|
739
864
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
740
865
|
.first
|
741
866
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ScheduleService)
|
867
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
742
868
|
service_module.const_get(:Client).new(&block)
|
743
869
|
end
|
744
870
|
|
@@ -752,6 +878,8 @@ module Google
|
|
752
878
|
# `version` parameter. If the SpecialistPoolService service is
|
753
879
|
# supported by that API version, and the corresponding gem is available, the
|
754
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.
|
755
883
|
#
|
756
884
|
# ## About SpecialistPoolService
|
757
885
|
#
|
@@ -764,9 +892,10 @@ module Google
|
|
764
892
|
#
|
765
893
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
766
894
|
# Defaults to `:v1`.
|
895
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
767
896
|
# @return [::Object] A client object for the specified version.
|
768
897
|
#
|
769
|
-
def self.specialist_pool_service version: :v1, &block
|
898
|
+
def self.specialist_pool_service version: :v1, transport: :grpc, &block
|
770
899
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
771
900
|
|
772
901
|
package_name = Google::Cloud::AIPlatform
|
@@ -774,6 +903,7 @@ module Google
|
|
774
903
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
775
904
|
.first
|
776
905
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:SpecialistPoolService)
|
906
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
777
907
|
service_module.const_get(:Client).new(&block)
|
778
908
|
end
|
779
909
|
|
@@ -787,6 +917,8 @@ module Google
|
|
787
917
|
# `version` parameter. If the TensorboardService service is
|
788
918
|
# supported by that API version, and the corresponding gem is available, the
|
789
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.
|
790
922
|
#
|
791
923
|
# ## About TensorboardService
|
792
924
|
#
|
@@ -794,9 +926,10 @@ module Google
|
|
794
926
|
#
|
795
927
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
796
928
|
# Defaults to `:v1`.
|
929
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
797
930
|
# @return [::Object] A client object for the specified version.
|
798
931
|
#
|
799
|
-
def self.tensorboard_service version: :v1, &block
|
932
|
+
def self.tensorboard_service version: :v1, transport: :grpc, &block
|
800
933
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
801
934
|
|
802
935
|
package_name = Google::Cloud::AIPlatform
|
@@ -804,6 +937,75 @@ module Google
|
|
804
937
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
805
938
|
.first
|
806
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
|
807
1009
|
service_module.const_get(:Client).new(&block)
|
808
1010
|
end
|
809
1011
|
|
@@ -817,6 +1019,8 @@ module Google
|
|
817
1019
|
# `version` parameter. If the VizierService service is
|
818
1020
|
# supported by that API version, and the corresponding gem is available, the
|
819
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.
|
820
1024
|
#
|
821
1025
|
# ## About VizierService
|
822
1026
|
#
|
@@ -828,9 +1032,10 @@ module Google
|
|
828
1032
|
#
|
829
1033
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
830
1034
|
# Defaults to `:v1`.
|
1035
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
831
1036
|
# @return [::Object] A client object for the specified version.
|
832
1037
|
#
|
833
|
-
def self.vizier_service version: :v1, &block
|
1038
|
+
def self.vizier_service version: :v1, transport: :grpc, &block
|
834
1039
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
835
1040
|
|
836
1041
|
package_name = Google::Cloud::AIPlatform
|
@@ -838,6 +1043,7 @@ module Google
|
|
838
1043
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
839
1044
|
.first
|
840
1045
|
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:VizierService)
|
1046
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
841
1047
|
service_module.const_get(:Client).new(&block)
|
842
1048
|
end
|
843
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
|