google-cloud-ai_platform-v1 0.18.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +36 -46
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +12 -14
  5. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +20 -22
  6. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +12 -14
  7. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +6 -6
  8. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +176 -68
  9. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +12 -14
  10. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +24 -26
  11. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +12 -14
  12. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +16 -18
  13. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +12 -14
  14. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +777 -60
  15. data/lib/google/cloud/ai_platform/v1/job_service/credentials.rb +2 -1
  16. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +12 -14
  17. data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +40 -0
  18. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +52 -62
  19. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +12 -14
  20. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +8 -10
  21. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +12 -14
  22. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +254 -42
  23. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +12 -14
  24. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +16 -20
  25. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +12 -14
  26. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +16 -18
  27. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +12 -14
  28. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +50 -60
  29. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +12 -14
  30. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  31. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +17 -21
  32. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +12 -14
  33. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
  34. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -0
  35. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +9 -0
  36. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +1 -0
  37. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +1 -0
  38. data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +63 -0
  39. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
  40. data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +49 -0
  41. data/lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb +11 -0
  42. data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -0
  43. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +1 -0
  44. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -0
  45. data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +46 -0
  46. data/lib/google/cloud/aiplatform/v1/job_service_services_pb.rb +26 -0
  47. data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +1 -0
  48. data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +28 -0
  49. data/lib/google/cloud/aiplatform/v1/model_pb.rb +5 -0
  50. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +31 -0
  51. data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +12 -2
  52. data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +123 -0
  53. data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -0
  54. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +1 -0
  55. data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +25 -0
  56. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +1 -0
  57. data/lib/google/cloud/aiplatform/v1/study_pb.rb +6 -0
  58. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +1 -0
  59. data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +1 -1
  60. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +4 -0
  61. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +14 -1
  62. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +23 -0
  63. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +8 -2
  64. data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +190 -0
  65. data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +9 -0
  66. data/proto_docs/google/cloud/aiplatform/v1/featurestore_monitoring.rb +6 -8
  67. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +128 -0
  68. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +10 -3
  69. data/proto_docs/google/cloud/aiplatform/v1/job_service.rb +166 -0
  70. data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +2 -5
  71. data/proto_docs/google/cloud/aiplatform/v1/model.rb +31 -11
  72. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +6 -5
  73. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +131 -0
  74. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +83 -0
  75. data/proto_docs/google/cloud/aiplatform/v1/nas_job.rb +306 -0
  76. data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +5 -0
  77. data/proto_docs/google/cloud/aiplatform/v1/service_networking.rb +39 -0
  78. data/proto_docs/google/cloud/aiplatform/v1/study.rb +22 -0
  79. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +2 -1
  80. data/proto_docs/google/type/interval.rb +45 -0
  81. metadata +19 -11
@@ -234,14 +234,14 @@ module Google
234
234
  # # Call the create_specialist_pool method.
235
235
  # result = client.create_specialist_pool request
236
236
  #
237
- # # The returned object is of type Gapic::Operation. You can use this
238
- # # object to check the status of an operation, cancel it, or wait
239
- # # for results. Here is how to block until completion:
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
240
  # result.wait_until_done! timeout: 60
241
241
  # if result.response?
242
242
  # p result.response
243
243
  # else
244
- # puts "Error!"
244
+ # puts "No response received."
245
245
  # end
246
246
  #
247
247
  def create_specialist_pool request, options = nil
@@ -426,13 +426,11 @@ module Google
426
426
  # # Call the list_specialist_pools method.
427
427
  # result = client.list_specialist_pools request
428
428
  #
429
- # # The returned object is of type Gapic::PagedEnumerable. You can
430
- # # iterate over all elements by calling #each, and the enumerable
431
- # # will lazily make API calls to fetch subsequent pages. Other
432
- # # methods are also available for managing paging directly.
433
- # result.each do |response|
429
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
430
+ # # over elements, and API calls will be issued to fetch pages as needed.
431
+ # result.each do |item|
434
432
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::SpecialistPool.
435
- # p response
433
+ # p item
436
434
  # end
437
435
  #
438
436
  def list_specialist_pools request, options = nil
@@ -523,14 +521,14 @@ module Google
523
521
  # # Call the delete_specialist_pool method.
524
522
  # result = client.delete_specialist_pool request
525
523
  #
526
- # # The returned object is of type Gapic::Operation. You can use this
527
- # # object to check the status of an operation, cancel it, or wait
528
- # # for results. Here is how to block until completion:
524
+ # # The returned object is of type Gapic::Operation. You can use it to
525
+ # # check the status of an operation, cancel it, or wait for results.
526
+ # # Here is how to wait for a response.
529
527
  # result.wait_until_done! timeout: 60
530
528
  # if result.response?
531
529
  # p result.response
532
530
  # else
533
- # puts "Error!"
531
+ # puts "No response received."
534
532
  # end
535
533
  #
536
534
  def delete_specialist_pool request, options = nil
@@ -618,14 +616,14 @@ module Google
618
616
  # # Call the update_specialist_pool method.
619
617
  # result = client.update_specialist_pool request
620
618
  #
621
- # # The returned object is of type Gapic::Operation. You can use this
622
- # # object to check the status of an operation, cancel it, or wait
623
- # # for results. Here is how to block until completion:
619
+ # # The returned object is of type Gapic::Operation. You can use it to
620
+ # # check the status of an operation, cancel it, or wait for results.
621
+ # # Here is how to wait for a response.
624
622
  # result.wait_until_done! timeout: 60
625
623
  # if result.response?
626
624
  # p result.response
627
625
  # else
628
- # puts "Error!"
626
+ # puts "No response received."
629
627
  # end
630
628
  #
631
629
  def update_specialist_pool request, options = nil
@@ -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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -229,14 +229,14 @@ module Google
229
229
  # # Call the create_tensorboard method.
230
230
  # result = client.create_tensorboard request
231
231
  #
232
- # # The returned object is of type Gapic::Operation. You can use this
233
- # # object to check the status of an operation, cancel it, or wait
234
- # # for results. Here is how to block until completion:
232
+ # # The returned object is of type Gapic::Operation. You can use it to
233
+ # # check the status of an operation, cancel it, or wait for results.
234
+ # # Here is how to wait for a response.
235
235
  # result.wait_until_done! timeout: 60
236
236
  # if result.response?
237
237
  # p result.response
238
238
  # else
239
- # puts "Error!"
239
+ # puts "No response received."
240
240
  # end
241
241
  #
242
242
  def create_tensorboard request, options = nil
@@ -505,14 +505,14 @@ module Google
505
505
  # # Call the update_tensorboard method.
506
506
  # result = client.update_tensorboard request
507
507
  #
508
- # # The returned object is of type Gapic::Operation. You can use this
509
- # # object to check the status of an operation, cancel it, or wait
510
- # # for results. Here is how to block until completion:
508
+ # # The returned object is of type Gapic::Operation. You can use it to
509
+ # # check the status of an operation, cancel it, or wait for results.
510
+ # # Here is how to wait for a response.
511
511
  # result.wait_until_done! timeout: 60
512
512
  # if result.response?
513
513
  # p result.response
514
514
  # else
515
- # puts "Error!"
515
+ # puts "No response received."
516
516
  # end
517
517
  #
518
518
  def update_tensorboard request, options = nil
@@ -619,13 +619,11 @@ module Google
619
619
  # # Call the list_tensorboards method.
620
620
  # result = client.list_tensorboards request
621
621
  #
622
- # # The returned object is of type Gapic::PagedEnumerable. You can
623
- # # iterate over all elements by calling #each, and the enumerable
624
- # # will lazily make API calls to fetch subsequent pages. Other
625
- # # methods are also available for managing paging directly.
626
- # result.each do |response|
622
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
623
+ # # over elements, and API calls will be issued to fetch pages as needed.
624
+ # result.each do |item|
627
625
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::Tensorboard.
628
- # p response
626
+ # p item
629
627
  # end
630
628
  #
631
629
  def list_tensorboards request, options = nil
@@ -713,14 +711,14 @@ module Google
713
711
  # # Call the delete_tensorboard method.
714
712
  # result = client.delete_tensorboard request
715
713
  #
716
- # # The returned object is of type Gapic::Operation. You can use this
717
- # # object to check the status of an operation, cancel it, or wait
718
- # # for results. Here is how to block until completion:
714
+ # # The returned object is of type Gapic::Operation. You can use it to
715
+ # # check the status of an operation, cancel it, or wait for results.
716
+ # # Here is how to wait for a response.
719
717
  # result.wait_until_done! timeout: 60
720
718
  # if result.response?
721
719
  # p result.response
722
720
  # else
723
- # puts "Error!"
721
+ # puts "No response received."
724
722
  # end
725
723
  #
726
724
  def delete_tensorboard request, options = nil
@@ -1103,13 +1101,11 @@ module Google
1103
1101
  # # Call the list_tensorboard_experiments method.
1104
1102
  # result = client.list_tensorboard_experiments request
1105
1103
  #
1106
- # # The returned object is of type Gapic::PagedEnumerable. You can
1107
- # # iterate over all elements by calling #each, and the enumerable
1108
- # # will lazily make API calls to fetch subsequent pages. Other
1109
- # # methods are also available for managing paging directly.
1110
- # result.each do |response|
1104
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1105
+ # # over elements, and API calls will be issued to fetch pages as needed.
1106
+ # result.each do |item|
1111
1107
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::TensorboardExperiment.
1112
- # p response
1108
+ # p item
1113
1109
  # end
1114
1110
  #
1115
1111
  def list_tensorboard_experiments request, options = nil
@@ -1197,14 +1193,14 @@ module Google
1197
1193
  # # Call the delete_tensorboard_experiment method.
1198
1194
  # result = client.delete_tensorboard_experiment request
1199
1195
  #
1200
- # # The returned object is of type Gapic::Operation. You can use this
1201
- # # object to check the status of an operation, cancel it, or wait
1202
- # # for results. Here is how to block until completion:
1196
+ # # The returned object is of type Gapic::Operation. You can use it to
1197
+ # # check the status of an operation, cancel it, or wait for results.
1198
+ # # Here is how to wait for a response.
1203
1199
  # result.wait_until_done! timeout: 60
1204
1200
  # if result.response?
1205
1201
  # p result.response
1206
1202
  # else
1207
- # puts "Error!"
1203
+ # puts "No response received."
1208
1204
  # end
1209
1205
  #
1210
1206
  def delete_tensorboard_experiment request, options = nil
@@ -1679,13 +1675,11 @@ module Google
1679
1675
  # # Call the list_tensorboard_runs method.
1680
1676
  # result = client.list_tensorboard_runs request
1681
1677
  #
1682
- # # The returned object is of type Gapic::PagedEnumerable. You can
1683
- # # iterate over all elements by calling #each, and the enumerable
1684
- # # will lazily make API calls to fetch subsequent pages. Other
1685
- # # methods are also available for managing paging directly.
1686
- # result.each do |response|
1678
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1679
+ # # over elements, and API calls will be issued to fetch pages as needed.
1680
+ # result.each do |item|
1687
1681
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::TensorboardRun.
1688
- # p response
1682
+ # p item
1689
1683
  # end
1690
1684
  #
1691
1685
  def list_tensorboard_runs request, options = nil
@@ -1773,14 +1767,14 @@ module Google
1773
1767
  # # Call the delete_tensorboard_run method.
1774
1768
  # result = client.delete_tensorboard_run request
1775
1769
  #
1776
- # # The returned object is of type Gapic::Operation. You can use this
1777
- # # object to check the status of an operation, cancel it, or wait
1778
- # # for results. Here is how to block until completion:
1770
+ # # The returned object is of type Gapic::Operation. You can use it to
1771
+ # # check the status of an operation, cancel it, or wait for results.
1772
+ # # Here is how to wait for a response.
1779
1773
  # result.wait_until_done! timeout: 60
1780
1774
  # if result.response?
1781
1775
  # p result.response
1782
1776
  # else
1783
- # puts "Error!"
1777
+ # puts "No response received."
1784
1778
  # end
1785
1779
  #
1786
1780
  def delete_tensorboard_run request, options = nil
@@ -2258,13 +2252,11 @@ module Google
2258
2252
  # # Call the list_tensorboard_time_series method.
2259
2253
  # result = client.list_tensorboard_time_series request
2260
2254
  #
2261
- # # The returned object is of type Gapic::PagedEnumerable. You can
2262
- # # iterate over all elements by calling #each, and the enumerable
2263
- # # will lazily make API calls to fetch subsequent pages. Other
2264
- # # methods are also available for managing paging directly.
2265
- # result.each do |response|
2255
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2256
+ # # over elements, and API calls will be issued to fetch pages as needed.
2257
+ # result.each do |item|
2266
2258
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::TensorboardTimeSeries.
2267
- # p response
2259
+ # p item
2268
2260
  # end
2269
2261
  #
2270
2262
  def list_tensorboard_time_series request, options = nil
@@ -2352,14 +2344,14 @@ module Google
2352
2344
  # # Call the delete_tensorboard_time_series method.
2353
2345
  # result = client.delete_tensorboard_time_series request
2354
2346
  #
2355
- # # The returned object is of type Gapic::Operation. You can use this
2356
- # # object to check the status of an operation, cancel it, or wait
2357
- # # for results. Here is how to block until completion:
2347
+ # # The returned object is of type Gapic::Operation. You can use it to
2348
+ # # check the status of an operation, cancel it, or wait for results.
2349
+ # # Here is how to wait for a response.
2358
2350
  # result.wait_until_done! timeout: 60
2359
2351
  # if result.response?
2360
2352
  # p result.response
2361
2353
  # else
2362
- # puts "Error!"
2354
+ # puts "No response received."
2363
2355
  # end
2364
2356
  #
2365
2357
  def delete_tensorboard_time_series request, options = nil
@@ -2645,13 +2637,13 @@ module Google
2645
2637
  # # Create a request. To set request fields, pass in keyword arguments.
2646
2638
  # request = Google::Cloud::AIPlatform::V1::ReadTensorboardBlobDataRequest.new
2647
2639
  #
2648
- # # Call the read_tensorboard_blob_data method.
2649
- # result = client.read_tensorboard_blob_data request
2640
+ # # Call the read_tensorboard_blob_data method to start streaming.
2641
+ # output = client.read_tensorboard_blob_data request
2650
2642
  #
2651
- # # The returned object is a streamed enumerable yielding elements of
2652
- # # type ::Google::Cloud::AIPlatform::V1::ReadTensorboardBlobDataResponse.
2653
- # result.each do |response|
2654
- # p response
2643
+ # # The returned object is a streamed enumerable yielding elements of type
2644
+ # # ::Google::Cloud::AIPlatform::V1::ReadTensorboardBlobDataResponse
2645
+ # output.each do |current_response|
2646
+ # p current_response
2655
2647
  # end
2656
2648
  #
2657
2649
  def read_tensorboard_blob_data request, options = nil
@@ -2941,13 +2933,11 @@ module Google
2941
2933
  # # Call the export_tensorboard_time_series_data method.
2942
2934
  # result = client.export_tensorboard_time_series_data request
2943
2935
  #
2944
- # # The returned object is of type Gapic::PagedEnumerable. You can
2945
- # # iterate over all elements by calling #each, and the enumerable
2946
- # # will lazily make API calls to fetch subsequent pages. Other
2947
- # # methods are also available for managing paging directly.
2948
- # result.each do |response|
2936
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2937
+ # # over elements, and API calls will be issued to fetch pages as needed.
2938
+ # result.each do |item|
2949
2939
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::TimeSeriesDataPoint.
2950
- # p response
2940
+ # p item
2951
2941
  # end
2952
2942
  #
2953
2943
  def export_tensorboard_time_series_data request, options = nil
@@ -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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AIPlatform
23
23
  module V1
24
- VERSION = "0.18.0"
24
+ VERSION = "0.20.0"
25
25
  end
26
26
  end
27
27
  end
@@ -412,13 +412,11 @@ module Google
412
412
  # # Call the list_studies method.
413
413
  # result = client.list_studies request
414
414
  #
415
- # # The returned object is of type Gapic::PagedEnumerable. You can
416
- # # iterate over all elements by calling #each, and the enumerable
417
- # # will lazily make API calls to fetch subsequent pages. Other
418
- # # methods are also available for managing paging directly.
419
- # result.each do |response|
415
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
416
+ # # over elements, and API calls will be issued to fetch pages as needed.
417
+ # result.each do |item|
420
418
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::Study.
421
- # p response
419
+ # p item
422
420
  # end
423
421
  #
424
422
  def list_studies request, options = nil
@@ -692,14 +690,14 @@ module Google
692
690
  # # Call the suggest_trials method.
693
691
  # result = client.suggest_trials request
694
692
  #
695
- # # The returned object is of type Gapic::Operation. You can use this
696
- # # object to check the status of an operation, cancel it, or wait
697
- # # for results. Here is how to block until completion:
693
+ # # The returned object is of type Gapic::Operation. You can use it to
694
+ # # check the status of an operation, cancel it, or wait for results.
695
+ # # Here is how to wait for a response.
698
696
  # result.wait_until_done! timeout: 60
699
697
  # if result.response?
700
698
  # p result.response
701
699
  # else
702
- # puts "Error!"
700
+ # puts "No response received."
703
701
  # end
704
702
  #
705
703
  def suggest_trials request, options = nil
@@ -967,13 +965,11 @@ module Google
967
965
  # # Call the list_trials method.
968
966
  # result = client.list_trials request
969
967
  #
970
- # # The returned object is of type Gapic::PagedEnumerable. You can
971
- # # iterate over all elements by calling #each, and the enumerable
972
- # # will lazily make API calls to fetch subsequent pages. Other
973
- # # methods are also available for managing paging directly.
974
- # result.each do |response|
968
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
969
+ # # over elements, and API calls will be issued to fetch pages as needed.
970
+ # result.each do |item|
975
971
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::Trial.
976
- # p response
972
+ # p item
977
973
  # end
978
974
  #
979
975
  def list_trials request, options = nil
@@ -1296,7 +1292,7 @@ module Google
1296
1292
  # Checks whether a Trial should stop or not. Returns a
1297
1293
  # long-running operation. When the operation is successful,
1298
1294
  # it will contain a
1299
- # [CheckTrialEarlyStoppingStateResponse][google.cloud.ml.v1.CheckTrialEarlyStoppingStateResponse].
1295
+ # {::Google::Cloud::AIPlatform::V1::CheckTrialEarlyStoppingStateResponse CheckTrialEarlyStoppingStateResponse}.
1300
1296
  #
1301
1297
  # @overload check_trial_early_stopping_state(request, options = nil)
1302
1298
  # Pass arguments to `check_trial_early_stopping_state` via a request object, either of type
@@ -1338,14 +1334,14 @@ module Google
1338
1334
  # # Call the check_trial_early_stopping_state method.
1339
1335
  # result = client.check_trial_early_stopping_state request
1340
1336
  #
1341
- # # The returned object is of type Gapic::Operation. You can use this
1342
- # # object to check the status of an operation, cancel it, or wait
1343
- # # for results. Here is how to block until completion:
1337
+ # # The returned object is of type Gapic::Operation. You can use it to
1338
+ # # check the status of an operation, cancel it, or wait for results.
1339
+ # # Here is how to wait for a response.
1344
1340
  # result.wait_until_done! timeout: 60
1345
1341
  # if result.response?
1346
1342
  # p result.response
1347
1343
  # else
1348
- # puts "Error!"
1344
+ # puts "No response received."
1349
1345
  # end
1350
1346
  #
1351
1347
  def check_trial_early_stopping_state request, options = nil
@@ -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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil
@@ -15,6 +15,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  value :NVIDIA_TESLA_A100, 8
16
16
  value :TPU_V2, 6
17
17
  value :TPU_V3, 7
18
+ value :TPU_V4_POD, 10
18
19
  end
19
20
  end
20
21
  end
@@ -46,6 +46,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
46
46
  optional :update_time, :message, 18, "google.protobuf.Timestamp"
47
47
  map :labels, :string, :string, 19
48
48
  optional :encryption_spec, :message, 24, "google.cloud.aiplatform.v1.EncryptionSpec"
49
+ optional :disable_container_logging, :bool, 34
49
50
  end
50
51
  add_message "google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig" do
51
52
  optional :instances_format, :string, 1
@@ -40,6 +40,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
40
40
  oneof :destination do
41
41
  optional :gcs_destination, :message, 1, "google.cloud.aiplatform.v1.GcsDestination"
42
42
  end
43
+ oneof :split do
44
+ optional :fraction_split, :message, 5, "google.cloud.aiplatform.v1.ExportFractionSplit"
45
+ end
46
+ end
47
+ add_message "google.cloud.aiplatform.v1.ExportFractionSplit" do
48
+ optional :training_fraction, :double, 1
49
+ optional :validation_fraction, :double, 2
50
+ optional :test_fraction, :double, 3
43
51
  end
44
52
  end
45
53
  end
@@ -51,6 +59,7 @@ module Google
51
59
  Dataset = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Dataset").msgclass
52
60
  ImportDataConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ImportDataConfig").msgclass
53
61
  ExportDataConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportDataConfig").msgclass
62
+ ExportFractionSplit = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportFractionSplit").msgclass
54
63
  end
55
64
  end
56
65
  end
@@ -14,6 +14,7 @@ require 'google/cloud/aiplatform/v1/dataset_pb'
14
14
  require 'google/cloud/aiplatform/v1/operation_pb'
15
15
  require 'google/cloud/aiplatform/v1/saved_query_pb'
16
16
  require 'google/longrunning/operations_pb'
17
+ require 'google/protobuf/empty_pb'
17
18
  require 'google/protobuf/field_mask_pb'
18
19
 
19
20
  Google::Protobuf::DescriptorPool.generated_pool.build do
@@ -10,6 +10,7 @@ require 'google/api/resource_pb'
10
10
  require 'google/cloud/aiplatform/v1/endpoint_pb'
11
11
  require 'google/cloud/aiplatform/v1/operation_pb'
12
12
  require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
14
15
 
15
16
  Google::Protobuf::DescriptorPool.generated_pool.build do