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.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +36 -46
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +20 -22
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +6 -6
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +176 -68
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +24 -26
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +16 -18
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +777 -60
- data/lib/google/cloud/ai_platform/v1/job_service/credentials.rb +2 -1
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +40 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +52 -62
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +8 -10
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +254 -42
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +16 -20
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +16 -18
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +50 -60
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +17 -21
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +12 -14
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +9 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +63 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +49 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb +11 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +46 -0
- data/lib/google/cloud/aiplatform/v1/job_service_services_pb.rb +26 -0
- data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +28 -0
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +5 -0
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +31 -0
- data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +12 -2
- data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +123 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +25 -0
- data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/study_pb.rb +6 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +14 -1
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +23 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +8 -2
- data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +190 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +9 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_monitoring.rb +6 -8
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +128 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +10 -3
- data/proto_docs/google/cloud/aiplatform/v1/job_service.rb +166 -0
- data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +2 -5
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +31 -11
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +6 -5
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +131 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +83 -0
- data/proto_docs/google/cloud/aiplatform/v1/nas_job.rb +306 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +5 -0
- data/proto_docs/google/cloud/aiplatform/v1/service_networking.rb +39 -0
- data/proto_docs/google/cloud/aiplatform/v1/study.rb +22 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +2 -1
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +19 -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
|
250
|
-
# #
|
251
|
-
# #
|
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 "
|
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
|
-
# #
|
480
|
-
#
|
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
|
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
|
-
# #
|
602
|
-
#
|
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
|
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
|
807
|
-
# #
|
808
|
-
# #
|
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 "
|
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
|
862
|
-
# created from it.
|
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
|
908
|
-
# #
|
909
|
-
# #
|
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 "
|
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
|
1109
|
-
# #
|
1110
|
-
# #
|
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 "
|
1112
|
+
# puts "No response received."
|
1116
1113
|
# end
|
1117
1114
|
#
|
1118
1115
|
def export_model request, options = nil
|
@@ -1157,6 +1154,122 @@ module Google
|
|
1157
1154
|
raise ::Google::Cloud::Error.from_error(e)
|
1158
1155
|
end
|
1159
1156
|
|
1157
|
+
##
|
1158
|
+
# Copies an already existing Vertex AI Model into the specified Location.
|
1159
|
+
# The source Model must exist in the same Project.
|
1160
|
+
# When copying custom Models, the users themselves are responsible for
|
1161
|
+
# {::Google::Cloud::AIPlatform::V1::Model#metadata Model.metadata} content to be
|
1162
|
+
# region-agnostic, as well as making sure that any resources (e.g. files) it
|
1163
|
+
# depends on remain accessible.
|
1164
|
+
#
|
1165
|
+
# @overload copy_model(request, options = nil)
|
1166
|
+
# Pass arguments to `copy_model` via a request object, either of type
|
1167
|
+
# {::Google::Cloud::AIPlatform::V1::CopyModelRequest} or an equivalent Hash.
|
1168
|
+
#
|
1169
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CopyModelRequest, ::Hash]
|
1170
|
+
# A request object representing the call parameters. Required. To specify no
|
1171
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1172
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1173
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1174
|
+
#
|
1175
|
+
# @overload copy_model(model_id: nil, parent_model: nil, parent: nil, source_model: nil, encryption_spec: nil)
|
1176
|
+
# Pass arguments to `copy_model` via keyword arguments. Note that at
|
1177
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1178
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1179
|
+
#
|
1180
|
+
# @param model_id [::String]
|
1181
|
+
# Optional. Copy source_model into a new Model with this ID. The ID will
|
1182
|
+
# become the final component of the model resource name.
|
1183
|
+
#
|
1184
|
+
# This value may be up to 63 characters, and valid characters are
|
1185
|
+
# `[a-z0-9_-]`. The first character cannot be a number or hyphen.
|
1186
|
+
# @param parent_model [::String]
|
1187
|
+
# Optional. Specify this field to copy source_model into this existing
|
1188
|
+
# Model as a new version. Format:
|
1189
|
+
# `projects/{project}/locations/{location}/models/{model}`
|
1190
|
+
# @param parent [::String]
|
1191
|
+
# Required. The resource name of the Location into which to copy the Model.
|
1192
|
+
# Format: `projects/{project}/locations/{location}`
|
1193
|
+
# @param source_model [::String]
|
1194
|
+
# Required. The resource name of the Model to copy. That Model must be in the
|
1195
|
+
# same Project. Format:
|
1196
|
+
# `projects/{project}/locations/{location}/models/{model}`
|
1197
|
+
# @param encryption_spec [::Google::Cloud::AIPlatform::V1::EncryptionSpec, ::Hash]
|
1198
|
+
# Customer-managed encryption key options. If this is set,
|
1199
|
+
# then the Model copy will be encrypted with the provided encryption key.
|
1200
|
+
#
|
1201
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1202
|
+
# @yieldparam response [::Gapic::Operation]
|
1203
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1204
|
+
#
|
1205
|
+
# @return [::Gapic::Operation]
|
1206
|
+
#
|
1207
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1208
|
+
#
|
1209
|
+
# @example Basic example
|
1210
|
+
# require "google/cloud/ai_platform/v1"
|
1211
|
+
#
|
1212
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1213
|
+
# client = Google::Cloud::AIPlatform::V1::ModelService::Client.new
|
1214
|
+
#
|
1215
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1216
|
+
# request = Google::Cloud::AIPlatform::V1::CopyModelRequest.new
|
1217
|
+
#
|
1218
|
+
# # Call the copy_model method.
|
1219
|
+
# result = client.copy_model request
|
1220
|
+
#
|
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.
|
1224
|
+
# result.wait_until_done! timeout: 60
|
1225
|
+
# if result.response?
|
1226
|
+
# p result.response
|
1227
|
+
# else
|
1228
|
+
# puts "No response received."
|
1229
|
+
# end
|
1230
|
+
#
|
1231
|
+
def copy_model request, options = nil
|
1232
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1233
|
+
|
1234
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CopyModelRequest
|
1235
|
+
|
1236
|
+
# Converts hash and nil to an options object
|
1237
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1238
|
+
|
1239
|
+
# Customize the options with defaults
|
1240
|
+
metadata = @config.rpcs.copy_model.metadata.to_h
|
1241
|
+
|
1242
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1243
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1244
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1245
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1246
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1247
|
+
|
1248
|
+
header_params = {}
|
1249
|
+
if request.parent
|
1250
|
+
header_params["parent"] = request.parent
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1254
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1255
|
+
|
1256
|
+
options.apply_defaults timeout: @config.rpcs.copy_model.timeout,
|
1257
|
+
metadata: metadata,
|
1258
|
+
retry_policy: @config.rpcs.copy_model.retry_policy
|
1259
|
+
|
1260
|
+
options.apply_defaults timeout: @config.timeout,
|
1261
|
+
metadata: @config.metadata,
|
1262
|
+
retry_policy: @config.retry_policy
|
1263
|
+
|
1264
|
+
@model_service_stub.call_rpc :copy_model, request, options: options do |response, operation|
|
1265
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1266
|
+
yield response, operation if block_given?
|
1267
|
+
return response
|
1268
|
+
end
|
1269
|
+
rescue ::GRPC::BadStatus => e
|
1270
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1271
|
+
end
|
1272
|
+
|
1160
1273
|
##
|
1161
1274
|
# Imports an externally generated ModelEvaluation.
|
1162
1275
|
#
|
@@ -1334,6 +1447,95 @@ module Google
|
|
1334
1447
|
raise ::Google::Cloud::Error.from_error(e)
|
1335
1448
|
end
|
1336
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
|
+
|
1337
1539
|
##
|
1338
1540
|
# Gets a ModelEvaluation.
|
1339
1541
|
#
|
@@ -1476,13 +1678,11 @@ module Google
|
|
1476
1678
|
# # Call the list_model_evaluations method.
|
1477
1679
|
# result = client.list_model_evaluations request
|
1478
1680
|
#
|
1479
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1480
|
-
# #
|
1481
|
-
#
|
1482
|
-
# # methods are also available for managing paging directly.
|
1483
|
-
# 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|
|
1484
1684
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::ModelEvaluation.
|
1485
|
-
# p
|
1685
|
+
# p item
|
1486
1686
|
# end
|
1487
1687
|
#
|
1488
1688
|
def list_model_evaluations request, options = nil
|
@@ -1672,13 +1872,11 @@ module Google
|
|
1672
1872
|
# # Call the list_model_evaluation_slices method.
|
1673
1873
|
# result = client.list_model_evaluation_slices request
|
1674
1874
|
#
|
1675
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1676
|
-
# #
|
1677
|
-
#
|
1678
|
-
# # methods are also available for managing paging directly.
|
1679
|
-
# 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|
|
1680
1878
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice.
|
1681
|
-
# p
|
1879
|
+
# p item
|
1682
1880
|
# end
|
1683
1881
|
#
|
1684
1882
|
def list_model_evaluation_slices request, options = nil
|
@@ -1904,6 +2102,11 @@ module Google
|
|
1904
2102
|
#
|
1905
2103
|
attr_reader :export_model
|
1906
2104
|
##
|
2105
|
+
# RPC-specific configuration for `copy_model`
|
2106
|
+
# @return [::Gapic::Config::Method]
|
2107
|
+
#
|
2108
|
+
attr_reader :copy_model
|
2109
|
+
##
|
1907
2110
|
# RPC-specific configuration for `import_model_evaluation`
|
1908
2111
|
# @return [::Gapic::Config::Method]
|
1909
2112
|
#
|
@@ -1914,6 +2117,11 @@ module Google
|
|
1914
2117
|
#
|
1915
2118
|
attr_reader :batch_import_model_evaluation_slices
|
1916
2119
|
##
|
2120
|
+
# RPC-specific configuration for `batch_import_evaluated_annotations`
|
2121
|
+
# @return [::Gapic::Config::Method]
|
2122
|
+
#
|
2123
|
+
attr_reader :batch_import_evaluated_annotations
|
2124
|
+
##
|
1917
2125
|
# RPC-specific configuration for `get_model_evaluation`
|
1918
2126
|
# @return [::Gapic::Config::Method]
|
1919
2127
|
#
|
@@ -1954,10 +2162,14 @@ module Google
|
|
1954
2162
|
@merge_version_aliases = ::Gapic::Config::Method.new merge_version_aliases_config
|
1955
2163
|
export_model_config = parent_rpcs.export_model if parent_rpcs.respond_to? :export_model
|
1956
2164
|
@export_model = ::Gapic::Config::Method.new export_model_config
|
2165
|
+
copy_model_config = parent_rpcs.copy_model if parent_rpcs.respond_to? :copy_model
|
2166
|
+
@copy_model = ::Gapic::Config::Method.new copy_model_config
|
1957
2167
|
import_model_evaluation_config = parent_rpcs.import_model_evaluation if parent_rpcs.respond_to? :import_model_evaluation
|
1958
2168
|
@import_model_evaluation = ::Gapic::Config::Method.new import_model_evaluation_config
|
1959
2169
|
batch_import_model_evaluation_slices_config = parent_rpcs.batch_import_model_evaluation_slices if parent_rpcs.respond_to? :batch_import_model_evaluation_slices
|
1960
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
|
1961
2173
|
get_model_evaluation_config = parent_rpcs.get_model_evaluation if parent_rpcs.respond_to? :get_model_evaluation
|
1962
2174
|
@get_model_evaluation = ::Gapic::Config::Method.new get_model_evaluation_config
|
1963
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
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -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
|
-
# #
|
442
|
-
#
|
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
|
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
|
535
|
-
# #
|
536
|
-
# #
|
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 "
|
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
|
-
# #
|
972
|
-
#
|
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
|
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
|
1065
|
-
# #
|
1066
|
-
# #
|
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 "
|
1067
|
+
# puts "No response received."
|
1072
1068
|
# end
|
1073
1069
|
#
|
1074
1070
|
def delete_pipeline_job 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
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|