google-cloud-ai_platform 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/ai_platform/version.rb +1 -1
- data/lib/google/cloud/ai_platform.rb +152 -91
- 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: f4299c22937e0bc9db485e308360951f6d198871255f29f02b3c3e76ffa56cc4
|
4
|
+
data.tar.gz: 22054e07dce6c1a6004b1720d7c61de1c076d8c20fe220315d046038efc67581
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6aa50bf1c8152a619265d0b9c7063b3ff0a4a77827ac619d1e7d8582711af62433ccbab6a6ef8975619c17591a683d2e10ffca6f0887074c3a8bebb0ae6a01f2
|
7
|
+
data.tar.gz: 9f084082d35aa632075a8ad7cabb52226543696de205d393fac3d144668aede680888697578387d4d98aaaa194be8db93abd039e05f3d2f00974ebd5a1569a55
|
data/AUTHENTICATION.md
CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
|
|
112
112
|
To configure your system for this, simply:
|
113
113
|
|
114
114
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
115
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
115
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
116
116
|
3. Write code as if already authenticated.
|
117
117
|
|
118
118
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ for this library, google-cloud-ai_platform, to see the convenience methods for
|
|
16
16
|
constructing client objects. Reference documentation for the client objects
|
17
17
|
themselves can be found in the client library documentation for the versioned
|
18
18
|
client gems:
|
19
|
-
[google-cloud-ai_platform-v1](https://
|
19
|
+
[google-cloud-ai_platform-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest).
|
20
20
|
|
21
21
|
See also the [Product Documentation](https://cloud.google.com/vertex-ai/docs/)
|
22
22
|
for more usage information.
|
@@ -37,8 +37,8 @@ In order to use this library, you first need to go through the following steps:
|
|
37
37
|
## Enabling Logging
|
38
38
|
|
39
39
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
40
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
41
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
40
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
41
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
42
42
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
43
43
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
44
44
|
|
@@ -48,9 +48,9 @@ module Google
|
|
48
48
|
# Create a new client object for DatasetService.
|
49
49
|
#
|
50
50
|
# By default, this returns an instance of
|
51
|
-
# [Google::Cloud::AIPlatform::V1::DatasetService::Client](https://
|
52
|
-
# for version V1 of the API.
|
53
|
-
# However, you can specify
|
51
|
+
# [Google::Cloud::AIPlatform::V1::DatasetService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-DatasetService-Client)
|
52
|
+
# for a gRPC client for version V1 of the API.
|
53
|
+
# However, you can specify a different API version by passing it in the
|
54
54
|
# `version` parameter. If the DatasetService service is
|
55
55
|
# supported by that API version, and the corresponding gem is available, the
|
56
56
|
# appropriate versioned client will be returned.
|
@@ -62,7 +62,7 @@ module Google
|
|
62
62
|
#
|
63
63
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
64
64
|
# Defaults to `:v1`.
|
65
|
-
# @return [
|
65
|
+
# @return [::Object] A client object for the specified version.
|
66
66
|
#
|
67
67
|
def self.dataset_service version: :v1, &block
|
68
68
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -71,17 +71,17 @@ module Google
|
|
71
71
|
.constants
|
72
72
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
73
73
|
.first
|
74
|
-
|
75
|
-
|
74
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:DatasetService)
|
75
|
+
service_module.const_get(:Client).new(&block)
|
76
76
|
end
|
77
77
|
|
78
78
|
##
|
79
79
|
# Create a new client object for EndpointService.
|
80
80
|
#
|
81
81
|
# By default, this returns an instance of
|
82
|
-
# [Google::Cloud::AIPlatform::V1::EndpointService::Client](https://
|
83
|
-
# for version V1 of the API.
|
84
|
-
# However, you can specify
|
82
|
+
# [Google::Cloud::AIPlatform::V1::EndpointService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-EndpointService-Client)
|
83
|
+
# for a gRPC client for version V1 of the API.
|
84
|
+
# However, you can specify a different API version by passing it in the
|
85
85
|
# `version` parameter. If the EndpointService service is
|
86
86
|
# supported by that API version, and the corresponding gem is available, the
|
87
87
|
# appropriate versioned client will be returned.
|
@@ -92,7 +92,7 @@ module Google
|
|
92
92
|
#
|
93
93
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
94
94
|
# Defaults to `:v1`.
|
95
|
-
# @return [
|
95
|
+
# @return [::Object] A client object for the specified version.
|
96
96
|
#
|
97
97
|
def self.endpoint_service version: :v1, &block
|
98
98
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -101,17 +101,17 @@ module Google
|
|
101
101
|
.constants
|
102
102
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
103
103
|
.first
|
104
|
-
|
105
|
-
|
104
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:EndpointService)
|
105
|
+
service_module.const_get(:Client).new(&block)
|
106
106
|
end
|
107
107
|
|
108
108
|
##
|
109
109
|
# Create a new client object for FeaturestoreOnlineServingService.
|
110
110
|
#
|
111
111
|
# By default, this returns an instance of
|
112
|
-
# [Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client](https://
|
113
|
-
# for version V1 of the API.
|
114
|
-
# However, you can specify
|
112
|
+
# [Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-FeaturestoreOnlineServingService-Client)
|
113
|
+
# for a gRPC client for version V1 of the API.
|
114
|
+
# However, you can specify a different API version by passing it in the
|
115
115
|
# `version` parameter. If the FeaturestoreOnlineServingService service is
|
116
116
|
# supported by that API version, and the corresponding gem is available, the
|
117
117
|
# appropriate versioned client will be returned.
|
@@ -122,7 +122,7 @@ module Google
|
|
122
122
|
#
|
123
123
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
124
124
|
# Defaults to `:v1`.
|
125
|
-
# @return [
|
125
|
+
# @return [::Object] A client object for the specified version.
|
126
126
|
#
|
127
127
|
def self.featurestore_online_serving_service version: :v1, &block
|
128
128
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -131,17 +131,17 @@ module Google
|
|
131
131
|
.constants
|
132
132
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
133
133
|
.first
|
134
|
-
|
135
|
-
|
134
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeaturestoreOnlineServingService)
|
135
|
+
service_module.const_get(:Client).new(&block)
|
136
136
|
end
|
137
137
|
|
138
138
|
##
|
139
139
|
# Create a new client object for FeaturestoreService.
|
140
140
|
#
|
141
141
|
# By default, this returns an instance of
|
142
|
-
# [Google::Cloud::AIPlatform::V1::FeaturestoreService::Client](https://
|
143
|
-
# for version V1 of the API.
|
144
|
-
# However, you can specify
|
142
|
+
# [Google::Cloud::AIPlatform::V1::FeaturestoreService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-FeaturestoreService-Client)
|
143
|
+
# for a gRPC client for version V1 of the API.
|
144
|
+
# However, you can specify a different API version by passing it in the
|
145
145
|
# `version` parameter. If the FeaturestoreService service is
|
146
146
|
# supported by that API version, and the corresponding gem is available, the
|
147
147
|
# appropriate versioned client will be returned.
|
@@ -152,7 +152,7 @@ module Google
|
|
152
152
|
#
|
153
153
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
154
154
|
# Defaults to `:v1`.
|
155
|
-
# @return [
|
155
|
+
# @return [::Object] A client object for the specified version.
|
156
156
|
#
|
157
157
|
def self.featurestore_service version: :v1, &block
|
158
158
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -161,17 +161,17 @@ module Google
|
|
161
161
|
.constants
|
162
162
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
163
163
|
.first
|
164
|
-
|
165
|
-
|
164
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:FeaturestoreService)
|
165
|
+
service_module.const_get(:Client).new(&block)
|
166
166
|
end
|
167
167
|
|
168
168
|
##
|
169
169
|
# Create a new client object for IndexEndpointService.
|
170
170
|
#
|
171
171
|
# By default, this returns an instance of
|
172
|
-
# [Google::Cloud::AIPlatform::V1::IndexEndpointService::Client](https://
|
173
|
-
# for version V1 of the API.
|
174
|
-
# However, you can specify
|
172
|
+
# [Google::Cloud::AIPlatform::V1::IndexEndpointService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-IndexEndpointService-Client)
|
173
|
+
# for a gRPC client for version V1 of the API.
|
174
|
+
# However, you can specify a different API version by passing it in the
|
175
175
|
# `version` parameter. If the IndexEndpointService service is
|
176
176
|
# supported by that API version, and the corresponding gem is available, the
|
177
177
|
# appropriate versioned client will be returned.
|
@@ -182,7 +182,7 @@ module Google
|
|
182
182
|
#
|
183
183
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
184
184
|
# Defaults to `:v1`.
|
185
|
-
# @return [
|
185
|
+
# @return [::Object] A client object for the specified version.
|
186
186
|
#
|
187
187
|
def self.index_endpoint_service version: :v1, &block
|
188
188
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -191,17 +191,17 @@ module Google
|
|
191
191
|
.constants
|
192
192
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
193
193
|
.first
|
194
|
-
|
195
|
-
|
194
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:IndexEndpointService)
|
195
|
+
service_module.const_get(:Client).new(&block)
|
196
196
|
end
|
197
197
|
|
198
198
|
##
|
199
199
|
# Create a new client object for IndexService.
|
200
200
|
#
|
201
201
|
# By default, this returns an instance of
|
202
|
-
# [Google::Cloud::AIPlatform::V1::IndexService::Client](https://
|
203
|
-
# for version V1 of the API.
|
204
|
-
# However, you can specify
|
202
|
+
# [Google::Cloud::AIPlatform::V1::IndexService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-IndexService-Client)
|
203
|
+
# for a gRPC client for version V1 of the API.
|
204
|
+
# However, you can specify a different API version by passing it in the
|
205
205
|
# `version` parameter. If the IndexService service is
|
206
206
|
# supported by that API version, and the corresponding gem is available, the
|
207
207
|
# appropriate versioned client will be returned.
|
@@ -212,7 +212,7 @@ module Google
|
|
212
212
|
#
|
213
213
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
214
214
|
# Defaults to `:v1`.
|
215
|
-
# @return [
|
215
|
+
# @return [::Object] A client object for the specified version.
|
216
216
|
#
|
217
217
|
def self.index_service version: :v1, &block
|
218
218
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -221,17 +221,17 @@ module Google
|
|
221
221
|
.constants
|
222
222
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
223
223
|
.first
|
224
|
-
|
225
|
-
|
224
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:IndexService)
|
225
|
+
service_module.const_get(:Client).new(&block)
|
226
226
|
end
|
227
227
|
|
228
228
|
##
|
229
229
|
# Create a new client object for JobService.
|
230
230
|
#
|
231
231
|
# By default, this returns an instance of
|
232
|
-
# [Google::Cloud::AIPlatform::V1::JobService::Client](https://
|
233
|
-
# for version V1 of the API.
|
234
|
-
# However, you can specify
|
232
|
+
# [Google::Cloud::AIPlatform::V1::JobService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-JobService-Client)
|
233
|
+
# for a gRPC client for version V1 of the API.
|
234
|
+
# However, you can specify a different API version by passing it in the
|
235
235
|
# `version` parameter. If the JobService service is
|
236
236
|
# supported by that API version, and the corresponding gem is available, the
|
237
237
|
# appropriate versioned client will be returned.
|
@@ -242,7 +242,7 @@ module Google
|
|
242
242
|
#
|
243
243
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
244
244
|
# Defaults to `:v1`.
|
245
|
-
# @return [
|
245
|
+
# @return [::Object] A client object for the specified version.
|
246
246
|
#
|
247
247
|
def self.job_service version: :v1, &block
|
248
248
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -251,17 +251,48 @@ module Google
|
|
251
251
|
.constants
|
252
252
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
253
253
|
.first
|
254
|
-
|
255
|
-
|
254
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:JobService)
|
255
|
+
service_module.const_get(:Client).new(&block)
|
256
|
+
end
|
257
|
+
|
258
|
+
##
|
259
|
+
# Create a new client object for MatchService.
|
260
|
+
#
|
261
|
+
# By default, this returns an instance of
|
262
|
+
# [Google::Cloud::AIPlatform::V1::MatchService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-MatchService-Client)
|
263
|
+
# for a gRPC client for version V1 of the API.
|
264
|
+
# However, you can specify a different API version by passing it in the
|
265
|
+
# `version` parameter. If the MatchService service is
|
266
|
+
# supported by that API version, and the corresponding gem is available, the
|
267
|
+
# appropriate versioned client will be returned.
|
268
|
+
#
|
269
|
+
# ## About MatchService
|
270
|
+
#
|
271
|
+
# MatchService is a Google managed service for efficient vector similarity
|
272
|
+
# search at scale.
|
273
|
+
#
|
274
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
275
|
+
# Defaults to `:v1`.
|
276
|
+
# @return [::Object] A client object for the specified version.
|
277
|
+
#
|
278
|
+
def self.match_service version: :v1, &block
|
279
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
280
|
+
|
281
|
+
package_name = Google::Cloud::AIPlatform
|
282
|
+
.constants
|
283
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
284
|
+
.first
|
285
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MatchService)
|
286
|
+
service_module.const_get(:Client).new(&block)
|
256
287
|
end
|
257
288
|
|
258
289
|
##
|
259
290
|
# Create a new client object for MetadataService.
|
260
291
|
#
|
261
292
|
# By default, this returns an instance of
|
262
|
-
# [Google::Cloud::AIPlatform::V1::MetadataService::Client](https://
|
263
|
-
# for version V1 of the API.
|
264
|
-
# However, you can specify
|
293
|
+
# [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)
|
294
|
+
# for a gRPC client for version V1 of the API.
|
295
|
+
# However, you can specify a different API version by passing it in the
|
265
296
|
# `version` parameter. If the MetadataService service is
|
266
297
|
# supported by that API version, and the corresponding gem is available, the
|
267
298
|
# appropriate versioned client will be returned.
|
@@ -272,7 +303,7 @@ module Google
|
|
272
303
|
#
|
273
304
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
274
305
|
# Defaults to `:v1`.
|
275
|
-
# @return [
|
306
|
+
# @return [::Object] A client object for the specified version.
|
276
307
|
#
|
277
308
|
def self.metadata_service version: :v1, &block
|
278
309
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -281,17 +312,17 @@ module Google
|
|
281
312
|
.constants
|
282
313
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
283
314
|
.first
|
284
|
-
|
285
|
-
|
315
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MetadataService)
|
316
|
+
service_module.const_get(:Client).new(&block)
|
286
317
|
end
|
287
318
|
|
288
319
|
##
|
289
320
|
# Create a new client object for MigrationService.
|
290
321
|
#
|
291
322
|
# By default, this returns an instance of
|
292
|
-
# [Google::Cloud::AIPlatform::V1::MigrationService::Client](https://
|
293
|
-
# for version V1 of the API.
|
294
|
-
# However, you can specify
|
323
|
+
# [Google::Cloud::AIPlatform::V1::MigrationService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-MigrationService-Client)
|
324
|
+
# for a gRPC client for version V1 of the API.
|
325
|
+
# However, you can specify a different API version by passing it in the
|
295
326
|
# `version` parameter. If the MigrationService service is
|
296
327
|
# supported by that API version, and the corresponding gem is available, the
|
297
328
|
# appropriate versioned client will be returned.
|
@@ -303,7 +334,7 @@ module Google
|
|
303
334
|
#
|
304
335
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
305
336
|
# Defaults to `:v1`.
|
306
|
-
# @return [
|
337
|
+
# @return [::Object] A client object for the specified version.
|
307
338
|
#
|
308
339
|
def self.migration_service version: :v1, &block
|
309
340
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -312,17 +343,17 @@ module Google
|
|
312
343
|
.constants
|
313
344
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
314
345
|
.first
|
315
|
-
|
316
|
-
|
346
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:MigrationService)
|
347
|
+
service_module.const_get(:Client).new(&block)
|
317
348
|
end
|
318
349
|
|
319
350
|
##
|
320
351
|
# Create a new client object for ModelService.
|
321
352
|
#
|
322
353
|
# By default, this returns an instance of
|
323
|
-
# [Google::Cloud::AIPlatform::V1::ModelService::Client](https://
|
324
|
-
# for version V1 of the API.
|
325
|
-
# However, you can specify
|
354
|
+
# [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)
|
355
|
+
# for a gRPC client for version V1 of the API.
|
356
|
+
# However, you can specify a different API version by passing it in the
|
326
357
|
# `version` parameter. If the ModelService service is
|
327
358
|
# supported by that API version, and the corresponding gem is available, the
|
328
359
|
# appropriate versioned client will be returned.
|
@@ -333,7 +364,7 @@ module Google
|
|
333
364
|
#
|
334
365
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
335
366
|
# Defaults to `:v1`.
|
336
|
-
# @return [
|
367
|
+
# @return [::Object] A client object for the specified version.
|
337
368
|
#
|
338
369
|
def self.model_service version: :v1, &block
|
339
370
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -342,17 +373,47 @@ module Google
|
|
342
373
|
.constants
|
343
374
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
344
375
|
.first
|
345
|
-
|
346
|
-
|
376
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ModelService)
|
377
|
+
service_module.const_get(:Client).new(&block)
|
378
|
+
end
|
379
|
+
|
380
|
+
##
|
381
|
+
# Create a new client object for ModelGardenService.
|
382
|
+
#
|
383
|
+
# By default, this returns an instance of
|
384
|
+
# [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)
|
385
|
+
# for a gRPC client for version V1 of the API.
|
386
|
+
# However, you can specify a different API version by passing it in the
|
387
|
+
# `version` parameter. If the ModelGardenService service is
|
388
|
+
# supported by that API version, and the corresponding gem is available, the
|
389
|
+
# appropriate versioned client will be returned.
|
390
|
+
#
|
391
|
+
# ## About ModelGardenService
|
392
|
+
#
|
393
|
+
# The interface of Model Garden Service.
|
394
|
+
#
|
395
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
396
|
+
# Defaults to `:v1`.
|
397
|
+
# @return [::Object] A client object for the specified version.
|
398
|
+
#
|
399
|
+
def self.model_garden_service version: :v1, &block
|
400
|
+
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
401
|
+
|
402
|
+
package_name = Google::Cloud::AIPlatform
|
403
|
+
.constants
|
404
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
405
|
+
.first
|
406
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:ModelGardenService)
|
407
|
+
service_module.const_get(:Client).new(&block)
|
347
408
|
end
|
348
409
|
|
349
410
|
##
|
350
411
|
# Create a new client object for PipelineService.
|
351
412
|
#
|
352
413
|
# By default, this returns an instance of
|
353
|
-
# [Google::Cloud::AIPlatform::V1::PipelineService::Client](https://
|
354
|
-
# for version V1 of the API.
|
355
|
-
# However, you can specify
|
414
|
+
# [Google::Cloud::AIPlatform::V1::PipelineService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-PipelineService-Client)
|
415
|
+
# for a gRPC client for version V1 of the API.
|
416
|
+
# However, you can specify a different API version by passing it in the
|
356
417
|
# `version` parameter. If the PipelineService service is
|
357
418
|
# supported by that API version, and the corresponding gem is available, the
|
358
419
|
# appropriate versioned client will be returned.
|
@@ -365,7 +426,7 @@ module Google
|
|
365
426
|
#
|
366
427
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
367
428
|
# Defaults to `:v1`.
|
368
|
-
# @return [
|
429
|
+
# @return [::Object] A client object for the specified version.
|
369
430
|
#
|
370
431
|
def self.pipeline_service version: :v1, &block
|
371
432
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -374,17 +435,17 @@ module Google
|
|
374
435
|
.constants
|
375
436
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
376
437
|
.first
|
377
|
-
|
378
|
-
|
438
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PipelineService)
|
439
|
+
service_module.const_get(:Client).new(&block)
|
379
440
|
end
|
380
441
|
|
381
442
|
##
|
382
443
|
# Create a new client object for PredictionService.
|
383
444
|
#
|
384
445
|
# By default, this returns an instance of
|
385
|
-
# [Google::Cloud::AIPlatform::V1::PredictionService::Client](https://
|
386
|
-
# for version V1 of the API.
|
387
|
-
# However, you can specify
|
446
|
+
# [Google::Cloud::AIPlatform::V1::PredictionService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-PredictionService-Client)
|
447
|
+
# for a gRPC client for version V1 of the API.
|
448
|
+
# However, you can specify a different API version by passing it in the
|
388
449
|
# `version` parameter. If the PredictionService service is
|
389
450
|
# supported by that API version, and the corresponding gem is available, the
|
390
451
|
# appropriate versioned client will be returned.
|
@@ -395,7 +456,7 @@ module Google
|
|
395
456
|
#
|
396
457
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
397
458
|
# Defaults to `:v1`.
|
398
|
-
# @return [
|
459
|
+
# @return [::Object] A client object for the specified version.
|
399
460
|
#
|
400
461
|
def self.prediction_service version: :v1, &block
|
401
462
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -404,17 +465,17 @@ module Google
|
|
404
465
|
.constants
|
405
466
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
406
467
|
.first
|
407
|
-
|
408
|
-
|
468
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:PredictionService)
|
469
|
+
service_module.const_get(:Client).new(&block)
|
409
470
|
end
|
410
471
|
|
411
472
|
##
|
412
473
|
# Create a new client object for SpecialistPoolService.
|
413
474
|
#
|
414
475
|
# By default, this returns an instance of
|
415
|
-
# [Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client](https://
|
416
|
-
# for version V1 of the API.
|
417
|
-
# However, you can specify
|
476
|
+
# [Google::Cloud::AIPlatform::V1::SpecialistPoolService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-SpecialistPoolService-Client)
|
477
|
+
# for a gRPC client for version V1 of the API.
|
478
|
+
# However, you can specify a different API version by passing it in the
|
418
479
|
# `version` parameter. If the SpecialistPoolService service is
|
419
480
|
# supported by that API version, and the corresponding gem is available, the
|
420
481
|
# appropriate versioned client will be returned.
|
@@ -430,7 +491,7 @@ module Google
|
|
430
491
|
#
|
431
492
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
432
493
|
# Defaults to `:v1`.
|
433
|
-
# @return [
|
494
|
+
# @return [::Object] A client object for the specified version.
|
434
495
|
#
|
435
496
|
def self.specialist_pool_service version: :v1, &block
|
436
497
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -439,17 +500,17 @@ module Google
|
|
439
500
|
.constants
|
440
501
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
441
502
|
.first
|
442
|
-
|
443
|
-
|
503
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:SpecialistPoolService)
|
504
|
+
service_module.const_get(:Client).new(&block)
|
444
505
|
end
|
445
506
|
|
446
507
|
##
|
447
508
|
# Create a new client object for TensorboardService.
|
448
509
|
#
|
449
510
|
# By default, this returns an instance of
|
450
|
-
# [Google::Cloud::AIPlatform::V1::TensorboardService::Client](https://
|
451
|
-
# for version V1 of the API.
|
452
|
-
# However, you can specify
|
511
|
+
# [Google::Cloud::AIPlatform::V1::TensorboardService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-TensorboardService-Client)
|
512
|
+
# for a gRPC client for version V1 of the API.
|
513
|
+
# However, you can specify a different API version by passing it in the
|
453
514
|
# `version` parameter. If the TensorboardService service is
|
454
515
|
# supported by that API version, and the corresponding gem is available, the
|
455
516
|
# appropriate versioned client will be returned.
|
@@ -460,7 +521,7 @@ module Google
|
|
460
521
|
#
|
461
522
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
462
523
|
# Defaults to `:v1`.
|
463
|
-
# @return [
|
524
|
+
# @return [::Object] A client object for the specified version.
|
464
525
|
#
|
465
526
|
def self.tensorboard_service version: :v1, &block
|
466
527
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -469,17 +530,17 @@ module Google
|
|
469
530
|
.constants
|
470
531
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
471
532
|
.first
|
472
|
-
|
473
|
-
|
533
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:TensorboardService)
|
534
|
+
service_module.const_get(:Client).new(&block)
|
474
535
|
end
|
475
536
|
|
476
537
|
##
|
477
538
|
# Create a new client object for VizierService.
|
478
539
|
#
|
479
540
|
# By default, this returns an instance of
|
480
|
-
# [Google::Cloud::AIPlatform::V1::VizierService::Client](https://
|
481
|
-
# for version V1 of the API.
|
482
|
-
# However, you can specify
|
541
|
+
# [Google::Cloud::AIPlatform::V1::VizierService::Client](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest/Google-Cloud-AIPlatform-V1-VizierService-Client)
|
542
|
+
# for a gRPC client for version V1 of the API.
|
543
|
+
# However, you can specify a different API version by passing it in the
|
483
544
|
# `version` parameter. If the VizierService service is
|
484
545
|
# supported by that API version, and the corresponding gem is available, the
|
485
546
|
# appropriate versioned client will be returned.
|
@@ -494,7 +555,7 @@ module Google
|
|
494
555
|
#
|
495
556
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
496
557
|
# Defaults to `:v1`.
|
497
|
-
# @return [
|
558
|
+
# @return [::Object] A client object for the specified version.
|
498
559
|
#
|
499
560
|
def self.vizier_service version: :v1, &block
|
500
561
|
require "google/cloud/ai_platform/#{version.to_s.downcase}"
|
@@ -503,8 +564,8 @@ module Google
|
|
503
564
|
.constants
|
504
565
|
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
505
566
|
.first
|
506
|
-
|
507
|
-
|
567
|
+
service_module = Google::Cloud::AIPlatform.const_get(package_name).const_get(:VizierService)
|
568
|
+
service_module.const_get(:Client).new(&block)
|
508
569
|
end
|
509
570
|
|
510
571
|
##
|
@@ -524,7 +585,7 @@ module Google
|
|
524
585
|
# * `timeout` (*type:* `Numeric`) -
|
525
586
|
# Default timeout in seconds.
|
526
587
|
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
527
|
-
# Additional
|
588
|
+
# Additional headers to be sent with the call.
|
528
589
|
# * `retry_policy` (*type:* `Hash`) -
|
529
590
|
# The retry policy. The value is a hash with the following keys:
|
530
591
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
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: 0.
|
4
|
+
version: 0.3.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:
|
11
|
+
date: 2023-06-16 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.25'
|
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.25'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
190
190
|
- !ruby/object:Gem::Version
|
191
191
|
version: '0'
|
192
192
|
requirements: []
|
193
|
-
rubygems_version: 3.
|
193
|
+
rubygems_version: 3.4.2
|
194
194
|
signing_key:
|
195
195
|
specification_version: 4
|
196
196
|
summary: API Client library for the Vertex AI API
|