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.
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
@@ -238,14 +238,14 @@ module Google
238
238
  # # Call the create_featurestore method.
239
239
  # result = client.create_featurestore request
240
240
  #
241
- # # The returned object is of type Gapic::Operation. You can use this
242
- # # object to check the status of an operation, cancel it, or wait
243
- # # for results. Here is how to block until completion:
241
+ # # The returned object is of type Gapic::Operation. You can use it to
242
+ # # check the status of an operation, cancel it, or wait for results.
243
+ # # Here is how to wait for a response.
244
244
  # result.wait_until_done! timeout: 60
245
245
  # if result.response?
246
246
  # p result.response
247
247
  # else
248
- # puts "Error!"
248
+ # puts "No response received."
249
249
  # end
250
250
  #
251
251
  def create_featurestore request, options = nil
@@ -461,13 +461,11 @@ module Google
461
461
  # # Call the list_featurestores method.
462
462
  # result = client.list_featurestores request
463
463
  #
464
- # # The returned object is of type Gapic::PagedEnumerable. You can
465
- # # iterate over all elements by calling #each, and the enumerable
466
- # # will lazily make API calls to fetch subsequent pages. Other
467
- # # methods are also available for managing paging directly.
468
- # result.each do |response|
464
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
465
+ # # over elements, and API calls will be issued to fetch pages as needed.
466
+ # result.each do |item|
469
467
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::Featurestore.
470
- # p response
468
+ # p item
471
469
  # end
472
470
  #
473
471
  def list_featurestores request, options = nil
@@ -570,14 +568,14 @@ module Google
570
568
  # # Call the update_featurestore method.
571
569
  # result = client.update_featurestore request
572
570
  #
573
- # # The returned object is of type Gapic::Operation. You can use this
574
- # # object to check the status of an operation, cancel it, or wait
575
- # # for results. Here is how to block until completion:
571
+ # # The returned object is of type Gapic::Operation. You can use it to
572
+ # # check the status of an operation, cancel it, or wait for results.
573
+ # # Here is how to wait for a response.
576
574
  # result.wait_until_done! timeout: 60
577
575
  # if result.response?
578
576
  # p result.response
579
577
  # else
580
- # puts "Error!"
578
+ # puts "No response received."
581
579
  # end
582
580
  #
583
581
  def update_featurestore request, options = nil
@@ -670,14 +668,14 @@ module Google
670
668
  # # Call the delete_featurestore method.
671
669
  # result = client.delete_featurestore request
672
670
  #
673
- # # The returned object is of type Gapic::Operation. You can use this
674
- # # object to check the status of an operation, cancel it, or wait
675
- # # for results. Here is how to block until completion:
671
+ # # The returned object is of type Gapic::Operation. You can use it to
672
+ # # check the status of an operation, cancel it, or wait for results.
673
+ # # Here is how to wait for a response.
676
674
  # result.wait_until_done! timeout: 60
677
675
  # if result.response?
678
676
  # p result.response
679
677
  # else
680
- # puts "Error!"
678
+ # puts "No response received."
681
679
  # end
682
680
  #
683
681
  def delete_featurestore request, options = nil
@@ -775,14 +773,14 @@ module Google
775
773
  # # Call the create_entity_type method.
776
774
  # result = client.create_entity_type request
777
775
  #
778
- # # The returned object is of type Gapic::Operation. You can use this
779
- # # object to check the status of an operation, cancel it, or wait
780
- # # for results. Here is how to block until completion:
776
+ # # The returned object is of type Gapic::Operation. You can use it to
777
+ # # check the status of an operation, cancel it, or wait for results.
778
+ # # Here is how to wait for a response.
781
779
  # result.wait_until_done! timeout: 60
782
780
  # if result.response?
783
781
  # p result.response
784
782
  # else
785
- # puts "Error!"
783
+ # puts "No response received."
786
784
  # end
787
785
  #
788
786
  def create_entity_type request, options = nil
@@ -1000,13 +998,11 @@ module Google
1000
998
  # # Call the list_entity_types method.
1001
999
  # result = client.list_entity_types request
1002
1000
  #
1003
- # # The returned object is of type Gapic::PagedEnumerable. You can
1004
- # # iterate over all elements by calling #each, and the enumerable
1005
- # # will lazily make API calls to fetch subsequent pages. Other
1006
- # # methods are also available for managing paging directly.
1007
- # result.each do |response|
1001
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1002
+ # # over elements, and API calls will be issued to fetch pages as needed.
1003
+ # result.each do |item|
1008
1004
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::EntityType.
1009
- # p response
1005
+ # p item
1010
1006
  # end
1011
1007
  #
1012
1008
  def list_entity_types request, options = nil
@@ -1206,14 +1202,14 @@ module Google
1206
1202
  # # Call the delete_entity_type method.
1207
1203
  # result = client.delete_entity_type request
1208
1204
  #
1209
- # # The returned object is of type Gapic::Operation. You can use this
1210
- # # object to check the status of an operation, cancel it, or wait
1211
- # # for results. Here is how to block until completion:
1205
+ # # The returned object is of type Gapic::Operation. You can use it to
1206
+ # # check the status of an operation, cancel it, or wait for results.
1207
+ # # Here is how to wait for a response.
1212
1208
  # result.wait_until_done! timeout: 60
1213
1209
  # if result.response?
1214
1210
  # p result.response
1215
1211
  # else
1216
- # puts "Error!"
1212
+ # puts "No response received."
1217
1213
  # end
1218
1214
  #
1219
1215
  def delete_entity_type request, options = nil
@@ -1311,14 +1307,14 @@ module Google
1311
1307
  # # Call the create_feature method.
1312
1308
  # result = client.create_feature request
1313
1309
  #
1314
- # # The returned object is of type Gapic::Operation. You can use this
1315
- # # object to check the status of an operation, cancel it, or wait
1316
- # # for results. Here is how to block until completion:
1310
+ # # The returned object is of type Gapic::Operation. You can use it to
1311
+ # # check the status of an operation, cancel it, or wait for results.
1312
+ # # Here is how to wait for a response.
1317
1313
  # result.wait_until_done! timeout: 60
1318
1314
  # if result.response?
1319
1315
  # p result.response
1320
1316
  # else
1321
- # puts "Error!"
1317
+ # puts "No response received."
1322
1318
  # end
1323
1319
  #
1324
1320
  def create_feature request, options = nil
@@ -1412,14 +1408,14 @@ module Google
1412
1408
  # # Call the batch_create_features method.
1413
1409
  # result = client.batch_create_features request
1414
1410
  #
1415
- # # The returned object is of type Gapic::Operation. You can use this
1416
- # # object to check the status of an operation, cancel it, or wait
1417
- # # for results. Here is how to block until completion:
1411
+ # # The returned object is of type Gapic::Operation. You can use it to
1412
+ # # check the status of an operation, cancel it, or wait for results.
1413
+ # # Here is how to wait for a response.
1418
1414
  # result.wait_until_done! timeout: 60
1419
1415
  # if result.response?
1420
1416
  # p result.response
1421
1417
  # else
1422
- # puts "Error!"
1418
+ # puts "No response received."
1423
1419
  # end
1424
1420
  #
1425
1421
  def batch_create_features request, options = nil
@@ -1646,13 +1642,11 @@ module Google
1646
1642
  # # Call the list_features method.
1647
1643
  # result = client.list_features request
1648
1644
  #
1649
- # # The returned object is of type Gapic::PagedEnumerable. You can
1650
- # # iterate over all elements by calling #each, and the enumerable
1651
- # # will lazily make API calls to fetch subsequent pages. Other
1652
- # # methods are also available for managing paging directly.
1653
- # result.each do |response|
1645
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1646
+ # # over elements, and API calls will be issued to fetch pages as needed.
1647
+ # result.each do |item|
1654
1648
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::Feature.
1655
- # p response
1649
+ # p item
1656
1650
  # end
1657
1651
  #
1658
1652
  def list_features request, options = nil
@@ -1842,14 +1836,14 @@ module Google
1842
1836
  # # Call the delete_feature method.
1843
1837
  # result = client.delete_feature request
1844
1838
  #
1845
- # # The returned object is of type Gapic::Operation. You can use this
1846
- # # object to check the status of an operation, cancel it, or wait
1847
- # # for results. Here is how to block until completion:
1839
+ # # The returned object is of type Gapic::Operation. You can use it to
1840
+ # # check the status of an operation, cancel it, or wait for results.
1841
+ # # Here is how to wait for a response.
1848
1842
  # result.wait_until_done! timeout: 60
1849
1843
  # if result.response?
1850
1844
  # p result.response
1851
1845
  # else
1852
- # puts "Error!"
1846
+ # puts "No response received."
1853
1847
  # end
1854
1848
  #
1855
1849
  def delete_feature request, options = nil
@@ -1985,14 +1979,14 @@ module Google
1985
1979
  # # Call the import_feature_values method.
1986
1980
  # result = client.import_feature_values request
1987
1981
  #
1988
- # # The returned object is of type Gapic::Operation. You can use this
1989
- # # object to check the status of an operation, cancel it, or wait
1990
- # # for results. Here is how to block until completion:
1982
+ # # The returned object is of type Gapic::Operation. You can use it to
1983
+ # # check the status of an operation, cancel it, or wait for results.
1984
+ # # Here is how to wait for a response.
1991
1985
  # result.wait_until_done! timeout: 60
1992
1986
  # if result.response?
1993
1987
  # p result.response
1994
1988
  # else
1995
- # puts "Error!"
1989
+ # puts "No response received."
1996
1990
  # end
1997
1991
  #
1998
1992
  def import_feature_values request, options = nil
@@ -2103,10 +2097,7 @@ module Google
2103
2097
  # passed as opaque bytes.
2104
2098
  # @param entity_type_specs [::Array<::Google::Cloud::AIPlatform::V1::BatchReadFeatureValuesRequest::EntityTypeSpec, ::Hash>]
2105
2099
  # Required. Specifies EntityType grouping Features to read values of and
2106
- # settings. Each EntityType referenced in
2107
- # [BatchReadFeatureValuesRequest.entity_type_specs] must have a column
2108
- # specifying entity IDs in the EntityType in
2109
- # [BatchReadFeatureValuesRequest.request][] .
2100
+ # settings.
2110
2101
  # @param start_time [::Google::Protobuf::Timestamp, ::Hash]
2111
2102
  # Optional. Excludes Feature values with feature generation timestamp before
2112
2103
  # this timestamp. If not set, retrieve oldest values kept in Feature Store.
@@ -2132,14 +2123,14 @@ module Google
2132
2123
  # # Call the batch_read_feature_values method.
2133
2124
  # result = client.batch_read_feature_values request
2134
2125
  #
2135
- # # The returned object is of type Gapic::Operation. You can use this
2136
- # # object to check the status of an operation, cancel it, or wait
2137
- # # for results. Here is how to block until completion:
2126
+ # # The returned object is of type Gapic::Operation. You can use it to
2127
+ # # check the status of an operation, cancel it, or wait for results.
2128
+ # # Here is how to wait for a response.
2138
2129
  # result.wait_until_done! timeout: 60
2139
2130
  # if result.response?
2140
2131
  # p result.response
2141
2132
  # else
2142
- # puts "Error!"
2133
+ # puts "No response received."
2143
2134
  # end
2144
2135
  #
2145
2136
  def batch_read_feature_values request, options = nil
@@ -2239,14 +2230,14 @@ module Google
2239
2230
  # # Call the export_feature_values method.
2240
2231
  # result = client.export_feature_values request
2241
2232
  #
2242
- # # The returned object is of type Gapic::Operation. You can use this
2243
- # # object to check the status of an operation, cancel it, or wait
2244
- # # for results. Here is how to block until completion:
2233
+ # # The returned object is of type Gapic::Operation. You can use it to
2234
+ # # check the status of an operation, cancel it, or wait for results.
2235
+ # # Here is how to wait for a response.
2245
2236
  # result.wait_until_done! timeout: 60
2246
2237
  # if result.response?
2247
2238
  # p result.response
2248
2239
  # else
2249
- # puts "Error!"
2240
+ # puts "No response received."
2250
2241
  # end
2251
2242
  #
2252
2243
  def export_feature_values request, options = nil
@@ -2291,6 +2282,115 @@ module Google
2291
2282
  raise ::Google::Cloud::Error.from_error(e)
2292
2283
  end
2293
2284
 
2285
+ ##
2286
+ # Delete Feature values from Featurestore.
2287
+ #
2288
+ # The progress of the deletion is tracked by the returned operation. The
2289
+ # deleted feature values are guaranteed to be invisible to subsequent read
2290
+ # operations after the operation is marked as successfully done.
2291
+ #
2292
+ # If a delete feature values operation fails, the feature values
2293
+ # returned from reads and exports may be inconsistent. If consistency is
2294
+ # required, the caller must retry the same delete request again and wait till
2295
+ # the new operation returned is marked as successfully done.
2296
+ #
2297
+ # @overload delete_feature_values(request, options = nil)
2298
+ # Pass arguments to `delete_feature_values` via a request object, either of type
2299
+ # {::Google::Cloud::AIPlatform::V1::DeleteFeatureValuesRequest} or an equivalent Hash.
2300
+ #
2301
+ # @param request [::Google::Cloud::AIPlatform::V1::DeleteFeatureValuesRequest, ::Hash]
2302
+ # A request object representing the call parameters. Required. To specify no
2303
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2304
+ # @param options [::Gapic::CallOptions, ::Hash]
2305
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2306
+ #
2307
+ # @overload delete_feature_values(select_entity: nil, select_time_range_and_feature: nil, entity_type: nil)
2308
+ # Pass arguments to `delete_feature_values` via keyword arguments. Note that at
2309
+ # least one keyword argument is required. To specify no parameters, or to keep all
2310
+ # the default parameter values, pass an empty Hash as a request object (see above).
2311
+ #
2312
+ # @param select_entity [::Google::Cloud::AIPlatform::V1::DeleteFeatureValuesRequest::SelectEntity, ::Hash]
2313
+ # Select feature values to be deleted by specifying entities.
2314
+ # @param select_time_range_and_feature [::Google::Cloud::AIPlatform::V1::DeleteFeatureValuesRequest::SelectTimeRangeAndFeature, ::Hash]
2315
+ # Select feature values to be deleted by specifying time range and
2316
+ # features.
2317
+ # @param entity_type [::String]
2318
+ # Required. The resource name of the EntityType grouping the Features for
2319
+ # which values are being deleted from. Format:
2320
+ # `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entityType}`
2321
+ #
2322
+ # @yield [response, operation] Access the result along with the RPC operation
2323
+ # @yieldparam response [::Gapic::Operation]
2324
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2325
+ #
2326
+ # @return [::Gapic::Operation]
2327
+ #
2328
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2329
+ #
2330
+ # @example Basic example
2331
+ # require "google/cloud/ai_platform/v1"
2332
+ #
2333
+ # # Create a client object. The client can be reused for multiple calls.
2334
+ # client = Google::Cloud::AIPlatform::V1::FeaturestoreService::Client.new
2335
+ #
2336
+ # # Create a request. To set request fields, pass in keyword arguments.
2337
+ # request = Google::Cloud::AIPlatform::V1::DeleteFeatureValuesRequest.new
2338
+ #
2339
+ # # Call the delete_feature_values method.
2340
+ # result = client.delete_feature_values request
2341
+ #
2342
+ # # The returned object is of type Gapic::Operation. You can use it to
2343
+ # # check the status of an operation, cancel it, or wait for results.
2344
+ # # Here is how to wait for a response.
2345
+ # result.wait_until_done! timeout: 60
2346
+ # if result.response?
2347
+ # p result.response
2348
+ # else
2349
+ # puts "No response received."
2350
+ # end
2351
+ #
2352
+ def delete_feature_values request, options = nil
2353
+ raise ::ArgumentError, "request must be provided" if request.nil?
2354
+
2355
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteFeatureValuesRequest
2356
+
2357
+ # Converts hash and nil to an options object
2358
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2359
+
2360
+ # Customize the options with defaults
2361
+ metadata = @config.rpcs.delete_feature_values.metadata.to_h
2362
+
2363
+ # Set x-goog-api-client and x-goog-user-project headers
2364
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2365
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2366
+ gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
2367
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2368
+
2369
+ header_params = {}
2370
+ if request.entity_type
2371
+ header_params["entity_type"] = request.entity_type
2372
+ end
2373
+
2374
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2375
+ metadata[:"x-goog-request-params"] ||= request_params_header
2376
+
2377
+ options.apply_defaults timeout: @config.rpcs.delete_feature_values.timeout,
2378
+ metadata: metadata,
2379
+ retry_policy: @config.rpcs.delete_feature_values.retry_policy
2380
+
2381
+ options.apply_defaults timeout: @config.timeout,
2382
+ metadata: @config.metadata,
2383
+ retry_policy: @config.retry_policy
2384
+
2385
+ @featurestore_service_stub.call_rpc :delete_feature_values, request, options: options do |response, operation|
2386
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2387
+ yield response, operation if block_given?
2388
+ return response
2389
+ end
2390
+ rescue ::GRPC::BadStatus => e
2391
+ raise ::Google::Cloud::Error.from_error(e)
2392
+ end
2393
+
2294
2394
  ##
2295
2395
  # Searches Features matching a query in a given project.
2296
2396
  #
@@ -2407,13 +2507,11 @@ module Google
2407
2507
  # # Call the search_features method.
2408
2508
  # result = client.search_features request
2409
2509
  #
2410
- # # The returned object is of type Gapic::PagedEnumerable. You can
2411
- # # iterate over all elements by calling #each, and the enumerable
2412
- # # will lazily make API calls to fetch subsequent pages. Other
2413
- # # methods are also available for managing paging directly.
2414
- # result.each do |response|
2510
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2511
+ # # over elements, and API calls will be issued to fetch pages as needed.
2512
+ # result.each do |item|
2415
2513
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::Feature.
2416
- # p response
2514
+ # p item
2417
2515
  # end
2418
2516
  #
2419
2517
  def search_features request, options = nil
@@ -2496,9 +2594,9 @@ module Google
2496
2594
  # * (`String`) The path to a service account key file in JSON format
2497
2595
  # * (`Hash`) A service account key as a Hash
2498
2596
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2499
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2597
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2500
2598
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2501
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2599
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2502
2600
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2503
2601
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2504
2602
  # * (`nil`) indicating no credentials
@@ -2689,6 +2787,11 @@ module Google
2689
2787
  #
2690
2788
  attr_reader :export_feature_values
2691
2789
  ##
2790
+ # RPC-specific configuration for `delete_feature_values`
2791
+ # @return [::Gapic::Config::Method]
2792
+ #
2793
+ attr_reader :delete_feature_values
2794
+ ##
2692
2795
  # RPC-specific configuration for `search_features`
2693
2796
  # @return [::Gapic::Config::Method]
2694
2797
  #
@@ -2734,6 +2837,8 @@ module Google
2734
2837
  @batch_read_feature_values = ::Gapic::Config::Method.new batch_read_feature_values_config
2735
2838
  export_feature_values_config = parent_rpcs.export_feature_values if parent_rpcs.respond_to? :export_feature_values
2736
2839
  @export_feature_values = ::Gapic::Config::Method.new export_feature_values_config
2840
+ delete_feature_values_config = parent_rpcs.delete_feature_values if parent_rpcs.respond_to? :delete_feature_values
2841
+ @delete_feature_values = ::Gapic::Config::Method.new delete_feature_values_config
2737
2842
  search_features_config = parent_rpcs.search_features if parent_rpcs.respond_to? :search_features
2738
2843
  @search_features = ::Gapic::Config::Method.new search_features_config
2739
2844
 
@@ -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
@@ -229,14 +229,14 @@ module Google
229
229
  # # Call the create_index_endpoint method.
230
230
  # result = client.create_index_endpoint 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_index_endpoint request, options = nil
@@ -440,13 +440,11 @@ module Google
440
440
  # # Call the list_index_endpoints method.
441
441
  # result = client.list_index_endpoints request
442
442
  #
443
- # # The returned object is of type Gapic::PagedEnumerable. You can
444
- # # iterate over all elements by calling #each, and the enumerable
445
- # # will lazily make API calls to fetch subsequent pages. Other
446
- # # methods are also available for managing paging directly.
447
- # result.each do |response|
443
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
444
+ # # over elements, and API calls will be issued to fetch pages as needed.
445
+ # result.each do |item|
448
446
  # # Each element is of type ::Google::Cloud::AIPlatform::V1::IndexEndpoint.
449
- # p response
447
+ # p item
450
448
  # end
451
449
  #
452
450
  def list_index_endpoints request, options = nil
@@ -622,14 +620,14 @@ module Google
622
620
  # # Call the delete_index_endpoint method.
623
621
  # result = client.delete_index_endpoint request
624
622
  #
625
- # # The returned object is of type Gapic::Operation. You can use this
626
- # # object to check the status of an operation, cancel it, or wait
627
- # # for results. Here is how to block until completion:
623
+ # # The returned object is of type Gapic::Operation. You can use it to
624
+ # # check the status of an operation, cancel it, or wait for results.
625
+ # # Here is how to wait for a response.
628
626
  # result.wait_until_done! timeout: 60
629
627
  # if result.response?
630
628
  # p result.response
631
629
  # else
632
- # puts "Error!"
630
+ # puts "No response received."
633
631
  # end
634
632
  #
635
633
  def delete_index_endpoint request, options = nil
@@ -721,14 +719,14 @@ module Google
721
719
  # # Call the deploy_index method.
722
720
  # result = client.deploy_index request
723
721
  #
724
- # # The returned object is of type Gapic::Operation. You can use this
725
- # # object to check the status of an operation, cancel it, or wait
726
- # # for results. Here is how to block until completion:
722
+ # # The returned object is of type Gapic::Operation. You can use it to
723
+ # # check the status of an operation, cancel it, or wait for results.
724
+ # # Here is how to wait for a response.
727
725
  # result.wait_until_done! timeout: 60
728
726
  # if result.response?
729
727
  # p result.response
730
728
  # else
731
- # puts "Error!"
729
+ # puts "No response received."
732
730
  # end
733
731
  #
734
732
  def deploy_index request, options = nil
@@ -820,14 +818,14 @@ module Google
820
818
  # # Call the undeploy_index method.
821
819
  # result = client.undeploy_index request
822
820
  #
823
- # # The returned object is of type Gapic::Operation. You can use this
824
- # # object to check the status of an operation, cancel it, or wait
825
- # # for results. Here is how to block until completion:
821
+ # # The returned object is of type Gapic::Operation. You can use it to
822
+ # # check the status of an operation, cancel it, or wait for results.
823
+ # # Here is how to wait for a response.
826
824
  # result.wait_until_done! timeout: 60
827
825
  # if result.response?
828
826
  # p result.response
829
827
  # else
830
- # puts "Error!"
828
+ # puts "No response received."
831
829
  # end
832
830
  #
833
831
  def undeploy_index request, options = nil
@@ -919,14 +917,14 @@ module Google
919
917
  # # Call the mutate_deployed_index method.
920
918
  # result = client.mutate_deployed_index request
921
919
  #
922
- # # The returned object is of type Gapic::Operation. You can use this
923
- # # object to check the status of an operation, cancel it, or wait
924
- # # for results. Here is how to block until completion:
920
+ # # The returned object is of type Gapic::Operation. You can use it to
921
+ # # check the status of an operation, cancel it, or wait for results.
922
+ # # Here is how to wait for a response.
925
923
  # result.wait_until_done! timeout: 60
926
924
  # if result.response?
927
925
  # p result.response
928
926
  # else
929
- # puts "Error!"
927
+ # puts "No response received."
930
928
  # end
931
929
  #
932
930
  def mutate_deployed_index request, options = nil
@@ -1009,9 +1007,9 @@ module Google
1009
1007
  # * (`String`) The path to a service account key file in JSON format
1010
1008
  # * (`Hash`) A service account key as a Hash
1011
1009
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1012
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1010
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1013
1011
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1014
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1012
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1015
1013
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1016
1014
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1017
1015
  # * (`nil`) indicating no credentials