google-cloud-ai_platform-v1 0.19.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +38 -48
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +32 -28
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +8 -8
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +179 -74
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +26 -28
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +18 -20
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +62 -78
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +54 -64
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +10 -12
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +137 -48
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +18 -22
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +2 -2
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +18 -20
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +52 -62
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +14 -16
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +19 -23
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +14 -16
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +9 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +63 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +49 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb +11 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +28 -0
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +11 -0
- data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +5 -2
- data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +57 -3
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +14 -1
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +23 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +5 -1
- data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +10 -4
- data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +190 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +9 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_monitoring.rb +6 -8
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +129 -4
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +11 -1
- data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +2 -5
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +24 -11
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +6 -5
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +131 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +25 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +2 -1
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +15 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b09ec1e6a2cc843f0444af79c8423133d6ec3c80accb03ba805894265bd6a10
|
4
|
+
data.tar.gz: 892dfa4d04bc1d18b9f178a2e3a5a7df31e1902959f5648d2eab2b53e4490d3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17d0569f9683185139923c32e90021f044381218fadb21b7a9a8f59d3e4a1b5e8f052297979fd606790d7cce3e0fd894828632c8beec70b675115a9e765c2e09
|
7
|
+
data.tar.gz: acbaf6cec9f9d78cd0a1b4d99eca6e3c024e273f9eb644f0070ae3e948b31bad2202e58aa6f7c3402070e96980b371595d5c730083a55a22ee23ad251b498cd9
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Vertex AI V1 API
|
2
2
|
|
3
|
-
|
3
|
+
Train high-quality custom machine learning models with minimal machine learning expertise and effort.
|
4
4
|
|
5
5
|
Vertex AI enables data scientists, developers, and AI newcomers to create custom machine learning models specific to their business needs by leveraging Google's state-of-the-art transfer learning and innovative AI research.
|
6
6
|
|
@@ -47,7 +47,7 @@ for general usage information.
|
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
49
|
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
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)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -230,14 +230,14 @@ module Google
|
|
230
230
|
# # Call the create_dataset method.
|
231
231
|
# result = client.create_dataset request
|
232
232
|
#
|
233
|
-
# # The returned object is of type Gapic::Operation. You can use
|
234
|
-
# #
|
235
|
-
# #
|
233
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
234
|
+
# # check the status of an operation, cancel it, or wait for results.
|
235
|
+
# # Here is how to wait for a response.
|
236
236
|
# result.wait_until_done! timeout: 60
|
237
237
|
# if result.response?
|
238
238
|
# p result.response
|
239
239
|
# else
|
240
|
-
# puts "
|
240
|
+
# puts "No response received."
|
241
241
|
# end
|
242
242
|
#
|
243
243
|
def create_dataset request, options = nil
|
@@ -533,13 +533,11 @@ module Google
|
|
533
533
|
# # Call the list_datasets method.
|
534
534
|
# result = client.list_datasets request
|
535
535
|
#
|
536
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
537
|
-
# #
|
538
|
-
#
|
539
|
-
# # methods are also available for managing paging directly.
|
540
|
-
# result.each do |response|
|
536
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
537
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
538
|
+
# result.each do |item|
|
541
539
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::Dataset.
|
542
|
-
# p
|
540
|
+
# p item
|
543
541
|
# end
|
544
542
|
#
|
545
543
|
def list_datasets request, options = nil
|
@@ -627,14 +625,14 @@ module Google
|
|
627
625
|
# # Call the delete_dataset method.
|
628
626
|
# result = client.delete_dataset request
|
629
627
|
#
|
630
|
-
# # The returned object is of type Gapic::Operation. You can use
|
631
|
-
# #
|
632
|
-
# #
|
628
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
629
|
+
# # check the status of an operation, cancel it, or wait for results.
|
630
|
+
# # Here is how to wait for a response.
|
633
631
|
# result.wait_until_done! timeout: 60
|
634
632
|
# if result.response?
|
635
633
|
# p result.response
|
636
634
|
# else
|
637
|
-
# puts "
|
635
|
+
# puts "No response received."
|
638
636
|
# end
|
639
637
|
#
|
640
638
|
def delete_dataset request, options = nil
|
@@ -725,14 +723,14 @@ module Google
|
|
725
723
|
# # Call the import_data method.
|
726
724
|
# result = client.import_data request
|
727
725
|
#
|
728
|
-
# # The returned object is of type Gapic::Operation. You can use
|
729
|
-
# #
|
730
|
-
# #
|
726
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
727
|
+
# # check the status of an operation, cancel it, or wait for results.
|
728
|
+
# # Here is how to wait for a response.
|
731
729
|
# result.wait_until_done! timeout: 60
|
732
730
|
# if result.response?
|
733
731
|
# p result.response
|
734
732
|
# else
|
735
|
-
# puts "
|
733
|
+
# puts "No response received."
|
736
734
|
# end
|
737
735
|
#
|
738
736
|
def import_data request, options = nil
|
@@ -822,14 +820,14 @@ module Google
|
|
822
820
|
# # Call the export_data method.
|
823
821
|
# result = client.export_data request
|
824
822
|
#
|
825
|
-
# # The returned object is of type Gapic::Operation. You can use
|
826
|
-
# #
|
827
|
-
# #
|
823
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
824
|
+
# # check the status of an operation, cancel it, or wait for results.
|
825
|
+
# # Here is how to wait for a response.
|
828
826
|
# result.wait_until_done! timeout: 60
|
829
827
|
# if result.response?
|
830
828
|
# p result.response
|
831
829
|
# else
|
832
|
-
# puts "
|
830
|
+
# puts "No response received."
|
833
831
|
# end
|
834
832
|
#
|
835
833
|
def export_data request, options = nil
|
@@ -928,13 +926,11 @@ module Google
|
|
928
926
|
# # Call the list_data_items method.
|
929
927
|
# result = client.list_data_items request
|
930
928
|
#
|
931
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
932
|
-
# #
|
933
|
-
#
|
934
|
-
# # methods are also available for managing paging directly.
|
935
|
-
# result.each do |response|
|
929
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
930
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
931
|
+
# result.each do |item|
|
936
932
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::DataItem.
|
937
|
-
# p
|
933
|
+
# p item
|
938
934
|
# end
|
939
935
|
#
|
940
936
|
def list_data_items request, options = nil
|
@@ -1081,13 +1077,11 @@ module Google
|
|
1081
1077
|
# # Call the search_data_items method.
|
1082
1078
|
# result = client.search_data_items request
|
1083
1079
|
#
|
1084
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1085
|
-
# #
|
1086
|
-
#
|
1087
|
-
# # methods are also available for managing paging directly.
|
1088
|
-
# result.each do |response|
|
1080
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1081
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1082
|
+
# result.each do |item|
|
1089
1083
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::DataItemView.
|
1090
|
-
# p
|
1084
|
+
# p item
|
1091
1085
|
# end
|
1092
1086
|
#
|
1093
1087
|
def search_data_items request, options = nil
|
@@ -1186,13 +1180,11 @@ module Google
|
|
1186
1180
|
# # Call the list_saved_queries method.
|
1187
1181
|
# result = client.list_saved_queries request
|
1188
1182
|
#
|
1189
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1190
|
-
# #
|
1191
|
-
#
|
1192
|
-
# # methods are also available for managing paging directly.
|
1193
|
-
# result.each do |response|
|
1183
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1184
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1185
|
+
# result.each do |item|
|
1194
1186
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::SavedQuery.
|
1195
|
-
# p
|
1187
|
+
# p item
|
1196
1188
|
# end
|
1197
1189
|
#
|
1198
1190
|
def list_saved_queries request, options = nil
|
@@ -1380,13 +1372,11 @@ module Google
|
|
1380
1372
|
# # Call the list_annotations method.
|
1381
1373
|
# result = client.list_annotations request
|
1382
1374
|
#
|
1383
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1384
|
-
# #
|
1385
|
-
#
|
1386
|
-
# # methods are also available for managing paging directly.
|
1387
|
-
# result.each do |response|
|
1375
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1376
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1377
|
+
# result.each do |item|
|
1388
1378
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::Annotation.
|
1389
|
-
# p
|
1379
|
+
# p item
|
1390
1380
|
# end
|
1391
1381
|
#
|
1392
1382
|
def list_annotations request, options = nil
|
@@ -1469,9 +1459,9 @@ module Google
|
|
1469
1459
|
# * (`String`) The path to a service account key file in JSON format
|
1470
1460
|
# * (`Hash`) A service account key as a Hash
|
1471
1461
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1472
|
-
# (see the [googleauth docs](https://
|
1462
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1473
1463
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1474
|
-
# (see the [signet docs](https://
|
1464
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1475
1465
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
1476
1466
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
1477
1467
|
# * (`nil`) indicating no credentials
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -630,9 +628,9 @@ module Google
|
|
630
628
|
# * (`String`) The path to a service account key file in JSON format
|
631
629
|
# * (`Hash`) A service account key as a Hash
|
632
630
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
633
|
-
# (see the [googleauth docs](https://
|
631
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
634
632
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
635
|
-
# (see the [signet docs](https://
|
633
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
636
634
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
637
635
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
638
636
|
# * (`nil`) indicating no credentials
|
@@ -213,10 +213,16 @@ module Google
|
|
213
213
|
# component of the endpoint resource name.
|
214
214
|
# If not provided, Vertex AI will generate a value for this ID.
|
215
215
|
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
216
|
+
# If the first character is a letter, this value may be up to 63 characters,
|
217
|
+
# and valid characters are `[a-z0-9-]`. The last character must be a letter
|
218
|
+
# or number.
|
219
|
+
#
|
220
|
+
# If the first character is a number, this value may be up to 9 characters,
|
221
|
+
# and valid characters are `[0-9]` with no leading zeros.
|
222
|
+
#
|
223
|
+
# When using HTTP/JSON, this field is populated
|
224
|
+
# based on a query string argument, such as `?endpoint_id=12345`. This is the
|
225
|
+
# fallback for fields that are not included in either the URI or the body.
|
220
226
|
#
|
221
227
|
# @yield [response, operation] Access the result along with the RPC operation
|
222
228
|
# @yieldparam response [::Gapic::Operation]
|
@@ -238,14 +244,14 @@ module Google
|
|
238
244
|
# # Call the create_endpoint method.
|
239
245
|
# result = client.create_endpoint request
|
240
246
|
#
|
241
|
-
# # The returned object is of type Gapic::Operation. You can use
|
242
|
-
# #
|
243
|
-
# #
|
247
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
248
|
+
# # check the status of an operation, cancel it, or wait for results.
|
249
|
+
# # Here is how to wait for a response.
|
244
250
|
# result.wait_until_done! timeout: 60
|
245
251
|
# if result.response?
|
246
252
|
# p result.response
|
247
253
|
# else
|
248
|
-
# puts "
|
254
|
+
# puts "No response received."
|
249
255
|
# end
|
250
256
|
#
|
251
257
|
def create_endpoint request, options = nil
|
@@ -456,13 +462,11 @@ module Google
|
|
456
462
|
# # Call the list_endpoints method.
|
457
463
|
# result = client.list_endpoints request
|
458
464
|
#
|
459
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
460
|
-
# #
|
461
|
-
#
|
462
|
-
# # methods are also available for managing paging directly.
|
463
|
-
# result.each do |response|
|
465
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
466
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
467
|
+
# result.each do |item|
|
464
468
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::Endpoint.
|
465
|
-
# p
|
469
|
+
# p item
|
466
470
|
# end
|
467
471
|
#
|
468
472
|
def list_endpoints request, options = nil
|
@@ -638,14 +642,14 @@ module Google
|
|
638
642
|
# # Call the delete_endpoint method.
|
639
643
|
# result = client.delete_endpoint request
|
640
644
|
#
|
641
|
-
# # The returned object is of type Gapic::Operation. You can use
|
642
|
-
# #
|
643
|
-
# #
|
645
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
646
|
+
# # check the status of an operation, cancel it, or wait for results.
|
647
|
+
# # Here is how to wait for a response.
|
644
648
|
# result.wait_until_done! timeout: 60
|
645
649
|
# if result.response?
|
646
650
|
# p result.response
|
647
651
|
# else
|
648
|
-
# puts "
|
652
|
+
# puts "No response received."
|
649
653
|
# end
|
650
654
|
#
|
651
655
|
def delete_endpoint request, options = nil
|
@@ -753,14 +757,14 @@ module Google
|
|
753
757
|
# # Call the deploy_model method.
|
754
758
|
# result = client.deploy_model request
|
755
759
|
#
|
756
|
-
# # The returned object is of type Gapic::Operation. You can use
|
757
|
-
# #
|
758
|
-
# #
|
760
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
761
|
+
# # check the status of an operation, cancel it, or wait for results.
|
762
|
+
# # Here is how to wait for a response.
|
759
763
|
# result.wait_until_done! timeout: 60
|
760
764
|
# if result.response?
|
761
765
|
# p result.response
|
762
766
|
# else
|
763
|
-
# puts "
|
767
|
+
# puts "No response received."
|
764
768
|
# end
|
765
769
|
#
|
766
770
|
def deploy_model request, options = nil
|
@@ -859,14 +863,14 @@ module Google
|
|
859
863
|
# # Call the undeploy_model method.
|
860
864
|
# result = client.undeploy_model request
|
861
865
|
#
|
862
|
-
# # The returned object is of type Gapic::Operation. You can use
|
863
|
-
# #
|
864
|
-
# #
|
866
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
867
|
+
# # check the status of an operation, cancel it, or wait for results.
|
868
|
+
# # Here is how to wait for a response.
|
865
869
|
# result.wait_until_done! timeout: 60
|
866
870
|
# if result.response?
|
867
871
|
# p result.response
|
868
872
|
# else
|
869
|
-
# puts "
|
873
|
+
# puts "No response received."
|
870
874
|
# end
|
871
875
|
#
|
872
876
|
def undeploy_model request, options = nil
|
@@ -949,9 +953,9 @@ module Google
|
|
949
953
|
# * (`String`) The path to a service account key file in JSON format
|
950
954
|
# * (`Hash`) A service account key as a Hash
|
951
955
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
952
|
-
# (see the [googleauth docs](https://
|
956
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
953
957
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
954
|
-
# (see the [signet docs](https://
|
958
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
955
959
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
956
960
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
957
961
|
# * (`nil`) indicating no credentials
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -630,9 +628,9 @@ module Google
|
|
630
628
|
# * (`String`) The path to a service account key file in JSON format
|
631
629
|
# * (`Hash`) A service account key as a Hash
|
632
630
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
633
|
-
# (see the [googleauth docs](https://
|
631
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
634
632
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
635
|
-
# (see the [signet docs](https://
|
633
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
636
634
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
637
635
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
638
636
|
# * (`nil`) indicating no credentials
|
@@ -321,13 +321,13 @@ module Google
|
|
321
321
|
# # Create a request. To set request fields, pass in keyword arguments.
|
322
322
|
# request = Google::Cloud::AIPlatform::V1::StreamingReadFeatureValuesRequest.new
|
323
323
|
#
|
324
|
-
# # Call the streaming_read_feature_values method.
|
325
|
-
#
|
324
|
+
# # Call the streaming_read_feature_values method to start streaming.
|
325
|
+
# output = client.streaming_read_feature_values request
|
326
326
|
#
|
327
|
-
# # The returned object is a streamed enumerable yielding elements of
|
328
|
-
# #
|
329
|
-
#
|
330
|
-
# p
|
327
|
+
# # The returned object is a streamed enumerable yielding elements of type
|
328
|
+
# # ::Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse
|
329
|
+
# output.each do |current_response|
|
330
|
+
# p current_response
|
331
331
|
# end
|
332
332
|
#
|
333
333
|
def streaming_read_feature_values request, options = nil
|
@@ -506,9 +506,9 @@ module Google
|
|
506
506
|
# * (`String`) The path to a service account key file in JSON format
|
507
507
|
# * (`Hash`) A service account key as a Hash
|
508
508
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
509
|
-
# (see the [googleauth docs](https://
|
509
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
510
510
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
511
|
-
# (see the [signet docs](https://
|
511
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
512
512
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
513
513
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
514
514
|
# * (`nil`) indicating no credentials
|