google-cloud-ai_platform-v1 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +38 -48
  4. data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +14 -16
  5. data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +32 -28
  6. data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +14 -16
  7. data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +8 -8
  8. data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +179 -74
  9. data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +14 -16
  10. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +26 -28
  11. data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +14 -16
  12. data/lib/google/cloud/ai_platform/v1/index_service/client.rb +18 -20
  13. data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +14 -16
  14. data/lib/google/cloud/ai_platform/v1/job_service/client.rb +62 -78
  15. data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +14 -16
  16. data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +54 -64
  17. data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +14 -16
  18. data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +10 -12
  19. data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +14 -16
  20. data/lib/google/cloud/ai_platform/v1/model_service/client.rb +137 -48
  21. data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +14 -16
  22. data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +18 -22
  23. data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +14 -16
  24. data/lib/google/cloud/ai_platform/v1/prediction_service/client.rb +2 -2
  25. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +18 -20
  26. data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +14 -16
  27. data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +52 -62
  28. data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +14 -16
  29. data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
  30. data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +19 -23
  31. data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +14 -16
  32. data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
  33. data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -0
  34. data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +9 -0
  35. data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +1 -0
  36. data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +1 -0
  37. data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +63 -0
  38. data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
  39. data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +49 -0
  40. data/lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb +11 -0
  41. data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -0
  42. data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +1 -0
  43. data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -0
  44. data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +1 -0
  45. data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +28 -0
  46. data/lib/google/cloud/aiplatform/v1/model_pb.rb +2 -0
  47. data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +11 -0
  48. data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +5 -2
  49. data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +1 -0
  50. data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +1 -0
  51. data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +1 -0
  52. data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +1 -1
  53. data/proto_docs/google/api/client.rb +57 -3
  54. data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
  55. data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +14 -1
  56. data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +23 -0
  57. data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +5 -1
  58. data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +10 -4
  59. data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +190 -0
  60. data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +9 -0
  61. data/proto_docs/google/cloud/aiplatform/v1/featurestore_monitoring.rb +6 -8
  62. data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +129 -4
  63. data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +11 -1
  64. data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +2 -5
  65. data/proto_docs/google/cloud/aiplatform/v1/model.rb +24 -11
  66. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +6 -5
  67. data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +131 -0
  68. data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +25 -0
  69. data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +2 -1
  70. data/proto_docs/google/type/interval.rb +45 -0
  71. metadata +15 -11
@@ -246,14 +246,14 @@ module Google
246
246
  # # Call the upload_model method.
247
247
  # result = client.upload_model request
248
248
  #
249
- # # The returned object is of type Gapic::Operation. You can use this
250
- # # object to check the status of an operation, cancel it, or wait
251
- # # for results. Here is how to block until completion:
249
+ # # The returned object is of type Gapic::Operation. You can use it to
250
+ # # check the status of an operation, cancel it, or wait for results.
251
+ # # Here is how to wait for a response.
252
252
  # result.wait_until_done! timeout: 60
253
253
  # if result.response?
254
254
  # p result.response
255
255
  # else
256
- # puts "Error!"
256
+ # puts "No response received."
257
257
  # end
258
258
  #
259
259
  def upload_model request, options = nil
@@ -475,13 +475,11 @@ module Google
475
475
  # # Call the list_models method.
476
476
  # result = client.list_models request
477
477
  #
478
- # # The returned object is of type Gapic::PagedEnumerable. You can
479
- # # iterate over all elements by calling #each, and the enumerable
480
- # # will lazily make API calls to fetch subsequent pages. Other
481
- # # methods are also available for managing paging directly.
482
- # result.each do |response|
478
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
479
+ # # over elements, and API calls will be issued to fetch pages as needed.
480
+ # result.each do |item|
483
481
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::Model.
484
- # p response
482
+ # p item
485
483
  # end
486
484
  #
487
485
  def list_models request, options = nil
@@ -597,13 +595,11 @@ module Google
597
595
  # # Call the list_model_versions method.
598
596
  # result = client.list_model_versions request
599
597
  #
600
- # # The returned object is of type Gapic::PagedEnumerable. You can
601
- # # iterate over all elements by calling #each, and the enumerable
602
- # # will lazily make API calls to fetch subsequent pages. Other
603
- # # methods are also available for managing paging directly.
604
- # result.each do |response|
598
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
599
+ # # over elements, and API calls will be issued to fetch pages as needed.
600
+ # result.each do |item|
605
601
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::Model.
606
- # p response
602
+ # p item
607
603
  # end
608
604
  #
609
605
  def list_model_versions request, options = nil
@@ -803,14 +799,14 @@ module Google
803
799
  # # Call the delete_model method.
804
800
  # result = client.delete_model request
805
801
  #
806
- # # The returned object is of type Gapic::Operation. You can use this
807
- # # object to check the status of an operation, cancel it, or wait
808
- # # for results. Here is how to block until completion:
802
+ # # The returned object is of type Gapic::Operation. You can use it to
803
+ # # check the status of an operation, cancel it, or wait for results.
804
+ # # Here is how to wait for a response.
809
805
  # result.wait_until_done! timeout: 60
810
806
  # if result.response?
811
807
  # p result.response
812
808
  # else
813
- # puts "Error!"
809
+ # puts "No response received."
814
810
  # end
815
811
  #
816
812
  def delete_model request, options = nil
@@ -858,8 +854,9 @@ module Google
858
854
  ##
859
855
  # Deletes a Model version.
860
856
  #
861
- # Model version can only be deleted if there are no [DeployedModels][]
862
- # created from it. Deleting the only version in the Model is not allowed. Use
857
+ # Model version can only be deleted if there are no
858
+ # {::Google::Cloud::AIPlatform::V1::DeployedModel DeployedModels} created from it.
859
+ # Deleting the only version in the Model is not allowed. Use
863
860
  # {::Google::Cloud::AIPlatform::V1::ModelService::Client#delete_model DeleteModel} for
864
861
  # deleting the Model instead.
865
862
  #
@@ -904,14 +901,14 @@ module Google
904
901
  # # Call the delete_model_version method.
905
902
  # result = client.delete_model_version request
906
903
  #
907
- # # The returned object is of type Gapic::Operation. You can use this
908
- # # object to check the status of an operation, cancel it, or wait
909
- # # for results. Here is how to block until completion:
904
+ # # The returned object is of type Gapic::Operation. You can use it to
905
+ # # check the status of an operation, cancel it, or wait for results.
906
+ # # Here is how to wait for a response.
910
907
  # result.wait_until_done! timeout: 60
911
908
  # if result.response?
912
909
  # p result.response
913
910
  # else
914
- # puts "Error!"
911
+ # puts "No response received."
915
912
  # end
916
913
  #
917
914
  def delete_model_version request, options = nil
@@ -1105,14 +1102,14 @@ module Google
1105
1102
  # # Call the export_model method.
1106
1103
  # result = client.export_model request
1107
1104
  #
1108
- # # The returned object is of type Gapic::Operation. You can use this
1109
- # # object to check the status of an operation, cancel it, or wait
1110
- # # for results. Here is how to block until completion:
1105
+ # # The returned object is of type Gapic::Operation. You can use it to
1106
+ # # check the status of an operation, cancel it, or wait for results.
1107
+ # # Here is how to wait for a response.
1111
1108
  # result.wait_until_done! timeout: 60
1112
1109
  # if result.response?
1113
1110
  # p result.response
1114
1111
  # else
1115
- # puts "Error!"
1112
+ # puts "No response received."
1116
1113
  # end
1117
1114
  #
1118
1115
  def export_model request, options = nil
@@ -1221,14 +1218,14 @@ module Google
1221
1218
  # # Call the copy_model method.
1222
1219
  # result = client.copy_model request
1223
1220
  #
1224
- # # The returned object is of type Gapic::Operation. You can use this
1225
- # # object to check the status of an operation, cancel it, or wait
1226
- # # for results. Here is how to block until completion:
1221
+ # # The returned object is of type Gapic::Operation. You can use it to
1222
+ # # check the status of an operation, cancel it, or wait for results.
1223
+ # # Here is how to wait for a response.
1227
1224
  # result.wait_until_done! timeout: 60
1228
1225
  # if result.response?
1229
1226
  # p result.response
1230
1227
  # else
1231
- # puts "Error!"
1228
+ # puts "No response received."
1232
1229
  # end
1233
1230
  #
1234
1231
  def copy_model request, options = nil
@@ -1450,6 +1447,95 @@ module Google
1450
1447
  raise ::Google::Cloud::Error.from_error(e)
1451
1448
  end
1452
1449
 
1450
+ ##
1451
+ # Imports a list of externally generated EvaluatedAnnotations.
1452
+ #
1453
+ # @overload batch_import_evaluated_annotations(request, options = nil)
1454
+ # Pass arguments to `batch_import_evaluated_annotations` via a request object, either of type
1455
+ # {::Google::Cloud::AIPlatform::V1::BatchImportEvaluatedAnnotationsRequest} or an equivalent Hash.
1456
+ #
1457
+ # @param request [::Google::Cloud::AIPlatform::V1::BatchImportEvaluatedAnnotationsRequest, ::Hash]
1458
+ # A request object representing the call parameters. Required. To specify no
1459
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1460
+ # @param options [::Gapic::CallOptions, ::Hash]
1461
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1462
+ #
1463
+ # @overload batch_import_evaluated_annotations(parent: nil, evaluated_annotations: nil)
1464
+ # Pass arguments to `batch_import_evaluated_annotations` via keyword arguments. Note that at
1465
+ # least one keyword argument is required. To specify no parameters, or to keep all
1466
+ # the default parameter values, pass an empty Hash as a request object (see above).
1467
+ #
1468
+ # @param parent [::String]
1469
+ # Required. The name of the parent ModelEvaluationSlice resource.
1470
+ # Format:
1471
+ # `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice}`
1472
+ # @param evaluated_annotations [::Array<::Google::Cloud::AIPlatform::V1::EvaluatedAnnotation, ::Hash>]
1473
+ # Required. Evaluated annotations resource to be imported.
1474
+ #
1475
+ # @yield [response, operation] Access the result along with the RPC operation
1476
+ # @yieldparam response [::Google::Cloud::AIPlatform::V1::BatchImportEvaluatedAnnotationsResponse]
1477
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1478
+ #
1479
+ # @return [::Google::Cloud::AIPlatform::V1::BatchImportEvaluatedAnnotationsResponse]
1480
+ #
1481
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1482
+ #
1483
+ # @example Basic example
1484
+ # require "google/cloud/ai_platform/v1"
1485
+ #
1486
+ # # Create a client object. The client can be reused for multiple calls.
1487
+ # client = Google::Cloud::AIPlatform::V1::ModelService::Client.new
1488
+ #
1489
+ # # Create a request. To set request fields, pass in keyword arguments.
1490
+ # request = Google::Cloud::AIPlatform::V1::BatchImportEvaluatedAnnotationsRequest.new
1491
+ #
1492
+ # # Call the batch_import_evaluated_annotations method.
1493
+ # result = client.batch_import_evaluated_annotations request
1494
+ #
1495
+ # # The returned object is of type Google::Cloud::AIPlatform::V1::BatchImportEvaluatedAnnotationsResponse.
1496
+ # p result
1497
+ #
1498
+ def batch_import_evaluated_annotations request, options = nil
1499
+ raise ::ArgumentError, "request must be provided" if request.nil?
1500
+
1501
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::BatchImportEvaluatedAnnotationsRequest
1502
+
1503
+ # Converts hash and nil to an options object
1504
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1505
+
1506
+ # Customize the options with defaults
1507
+ metadata = @config.rpcs.batch_import_evaluated_annotations.metadata.to_h
1508
+
1509
+ # Set x-goog-api-client and x-goog-user-project headers
1510
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1511
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1512
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
1513
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1514
+
1515
+ header_params = {}
1516
+ if request.parent
1517
+ header_params["parent"] = request.parent
1518
+ end
1519
+
1520
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1521
+ metadata[:"x-goog-request-params"] ||= request_params_header
1522
+
1523
+ options.apply_defaults timeout: @config.rpcs.batch_import_evaluated_annotations.timeout,
1524
+ metadata: metadata,
1525
+ retry_policy: @config.rpcs.batch_import_evaluated_annotations.retry_policy
1526
+
1527
+ options.apply_defaults timeout: @config.timeout,
1528
+ metadata: @config.metadata,
1529
+ retry_policy: @config.retry_policy
1530
+
1531
+ @model_service_stub.call_rpc :batch_import_evaluated_annotations, request, options: options do |response, operation|
1532
+ yield response, operation if block_given?
1533
+ return response
1534
+ end
1535
+ rescue ::GRPC::BadStatus => e
1536
+ raise ::Google::Cloud::Error.from_error(e)
1537
+ end
1538
+
1453
1539
  ##
1454
1540
  # Gets a ModelEvaluation.
1455
1541
  #
@@ -1592,13 +1678,11 @@ module Google
1592
1678
  # # Call the list_model_evaluations method.
1593
1679
  # result = client.list_model_evaluations request
1594
1680
  #
1595
- # # The returned object is of type Gapic::PagedEnumerable. You can
1596
- # # iterate over all elements by calling #each, and the enumerable
1597
- # # will lazily make API calls to fetch subsequent pages. Other
1598
- # # methods are also available for managing paging directly.
1599
- # result.each do |response|
1681
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1682
+ # # over elements, and API calls will be issued to fetch pages as needed.
1683
+ # result.each do |item|
1600
1684
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::ModelEvaluation.
1601
- # p response
1685
+ # p item
1602
1686
  # end
1603
1687
  #
1604
1688
  def list_model_evaluations request, options = nil
@@ -1788,13 +1872,11 @@ module Google
1788
1872
  # # Call the list_model_evaluation_slices method.
1789
1873
  # result = client.list_model_evaluation_slices request
1790
1874
  #
1791
- # # The returned object is of type Gapic::PagedEnumerable. You can
1792
- # # iterate over all elements by calling #each, and the enumerable
1793
- # # will lazily make API calls to fetch subsequent pages. Other
1794
- # # methods are also available for managing paging directly.
1795
- # result.each do |response|
1875
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1876
+ # # over elements, and API calls will be issued to fetch pages as needed.
1877
+ # result.each do |item|
1796
1878
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice.
1797
- # p response
1879
+ # p item
1798
1880
  # end
1799
1881
  #
1800
1882
  def list_model_evaluation_slices request, options = nil
@@ -1877,9 +1959,9 @@ module Google
1877
1959
  # * (`String`) The path to a service account key file in JSON format
1878
1960
  # * (`Hash`) A service account key as a Hash
1879
1961
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1880
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1962
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1881
1963
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1882
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1964
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1883
1965
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1884
1966
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1885
1967
  # * (`nil`) indicating no credentials
@@ -2035,6 +2117,11 @@ module Google
2035
2117
  #
2036
2118
  attr_reader :batch_import_model_evaluation_slices
2037
2119
  ##
2120
+ # RPC-specific configuration for `batch_import_evaluated_annotations`
2121
+ # @return [::Gapic::Config::Method]
2122
+ #
2123
+ attr_reader :batch_import_evaluated_annotations
2124
+ ##
2038
2125
  # RPC-specific configuration for `get_model_evaluation`
2039
2126
  # @return [::Gapic::Config::Method]
2040
2127
  #
@@ -2081,6 +2168,8 @@ module Google
2081
2168
  @import_model_evaluation = ::Gapic::Config::Method.new import_model_evaluation_config
2082
2169
  batch_import_model_evaluation_slices_config = parent_rpcs.batch_import_model_evaluation_slices if parent_rpcs.respond_to? :batch_import_model_evaluation_slices
2083
2170
  @batch_import_model_evaluation_slices = ::Gapic::Config::Method.new batch_import_model_evaluation_slices_config
2171
+ batch_import_evaluated_annotations_config = parent_rpcs.batch_import_evaluated_annotations if parent_rpcs.respond_to? :batch_import_evaluated_annotations
2172
+ @batch_import_evaluated_annotations = ::Gapic::Config::Method.new batch_import_evaluated_annotations_config
2084
2173
  get_model_evaluation_config = parent_rpcs.get_model_evaluation if parent_rpcs.respond_to? :get_model_evaluation
2085
2174
  @get_model_evaluation = ::Gapic::Config::Method.new get_model_evaluation_config
2086
2175
  list_model_evaluations_config = parent_rpcs.list_model_evaluations if parent_rpcs.respond_to? :list_model_evaluations
@@ -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
@@ -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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
@@ -437,13 +437,11 @@ module Google
437
437
  # # Call the list_training_pipelines method.
438
438
  # result = client.list_training_pipelines request
439
439
  #
440
- # # The returned object is of type Gapic::PagedEnumerable. You can
441
- # # iterate over all elements by calling #each, and the enumerable
442
- # # will lazily make API calls to fetch subsequent pages. Other
443
- # # methods are also available for managing paging directly.
444
- # result.each do |response|
440
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
441
+ # # over elements, and API calls will be issued to fetch pages as needed.
442
+ # result.each do |item|
445
443
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::TrainingPipeline.
446
- # p response
444
+ # p item
447
445
  # end
448
446
  #
449
447
  def list_training_pipelines request, options = nil
@@ -531,14 +529,14 @@ module Google
531
529
  # # Call the delete_training_pipeline method.
532
530
  # result = client.delete_training_pipeline request
533
531
  #
534
- # # The returned object is of type Gapic::Operation. You can use this
535
- # # object to check the status of an operation, cancel it, or wait
536
- # # for results. Here is how to block until completion:
532
+ # # The returned object is of type Gapic::Operation. You can use it to
533
+ # # check the status of an operation, cancel it, or wait for results.
534
+ # # Here is how to wait for a response.
537
535
  # result.wait_until_done! timeout: 60
538
536
  # if result.response?
539
537
  # p result.response
540
538
  # else
541
- # puts "Error!"
539
+ # puts "No response received."
542
540
  # end
543
541
  #
544
542
  def delete_training_pipeline request, options = nil
@@ -967,13 +965,11 @@ module Google
967
965
  # # Call the list_pipeline_jobs method.
968
966
  # result = client.list_pipeline_jobs 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::PipelineJob.
976
- # p response
972
+ # p item
977
973
  # end
978
974
  #
979
975
  def list_pipeline_jobs request, options = nil
@@ -1061,14 +1057,14 @@ module Google
1061
1057
  # # Call the delete_pipeline_job method.
1062
1058
  # result = client.delete_pipeline_job request
1063
1059
  #
1064
- # # The returned object is of type Gapic::Operation. You can use this
1065
- # # object to check the status of an operation, cancel it, or wait
1066
- # # for results. Here is how to block until completion:
1060
+ # # The returned object is of type Gapic::Operation. You can use it to
1061
+ # # check the status of an operation, cancel it, or wait for results.
1062
+ # # Here is how to wait for a response.
1067
1063
  # result.wait_until_done! timeout: 60
1068
1064
  # if result.response?
1069
1065
  # p result.response
1070
1066
  # else
1071
- # puts "Error!"
1067
+ # puts "No response received."
1072
1068
  # end
1073
1069
  #
1074
1070
  def delete_pipeline_job request, options = nil
@@ -1250,9 +1246,9 @@ module Google
1250
1246
  # * (`String`) The path to a service account key file in JSON format
1251
1247
  # * (`Hash`) A service account key as a Hash
1252
1248
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1253
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1249
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1254
1250
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1255
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1251
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1256
1252
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1257
1253
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1258
1254
  # * (`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
- # # 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
@@ -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://googleapis.dev/ruby/googleauth/latest/index.html))
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://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
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
@@ -553,9 +553,9 @@ module Google
553
553
  # * (`String`) The path to a service account key file in JSON format
554
554
  # * (`Hash`) A service account key as a Hash
555
555
  # * (`Google::Auth::Credentials`) A googleauth credentials object
556
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
556
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
557
557
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
558
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
558
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
559
559
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
560
560
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
561
561
  # * (`nil`) indicating no credentials
@@ -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
@@ -708,9 +706,9 @@ module Google
708
706
  # * (`String`) The path to a service account key file in JSON format
709
707
  # * (`Hash`) A service account key as a Hash
710
708
  # * (`Google::Auth::Credentials`) A googleauth credentials object
711
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
709
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
712
710
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
713
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
711
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
714
712
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
715
713
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
716
714
  # * (`nil`) indicating no credentials