google-cloud-ai_platform-v1 0.7.0 → 0.8.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.
- checksums.yaml +4 -4
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +112 -0
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +96 -0
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +15 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +9 -0
- data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/saved_query_pb.rb +36 -0
- data/lib/google/cloud/aiplatform/v1/training_pipeline_pb.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +39 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +23 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_failure_policy.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/saved_query.rb +78 -0
- data/proto_docs/google/cloud/aiplatform/v1/training_pipeline.rb +14 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59a3d37a7fce4cf3caf6b35eb41d7ae112ad5f5aa5f3124fbbd6a926ddc4cf9f
|
4
|
+
data.tar.gz: 404f2fa76f03a06ef44483b9aa69d70910aa5d90b038ed9ee64f7f974e0b7986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c54d12cc3ce58960fbfbf66bff26d24feb626756063fe9a6583444c02d9bf97ac6d67436b4bc51b50aaac6eb54cb7a64878c0b57c20dea63c109cced35523a34
|
7
|
+
data.tar.gz: a05f031abc12a9d9a6b13ced4feb9482f515f681f5ee2e598bd5143aa9304872e93c83b9b1e57f60004ade7766ea4683a53c0d2cde3afa8afb74ba12ff0b478e
|
@@ -977,6 +977,111 @@ module Google
|
|
977
977
|
raise ::Google::Cloud::Error.from_error(e)
|
978
978
|
end
|
979
979
|
|
980
|
+
##
|
981
|
+
# Lists SavedQueries in a Dataset.
|
982
|
+
#
|
983
|
+
# @overload list_saved_queries(request, options = nil)
|
984
|
+
# Pass arguments to `list_saved_queries` via a request object, either of type
|
985
|
+
# {::Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest} or an equivalent Hash.
|
986
|
+
#
|
987
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest, ::Hash]
|
988
|
+
# A request object representing the call parameters. Required. To specify no
|
989
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
990
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
991
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
992
|
+
#
|
993
|
+
# @overload list_saved_queries(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil)
|
994
|
+
# Pass arguments to `list_saved_queries` via keyword arguments. Note that at
|
995
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
996
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
997
|
+
#
|
998
|
+
# @param parent [::String]
|
999
|
+
# Required. The resource name of the Dataset to list SavedQueries from.
|
1000
|
+
# Format:
|
1001
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
1002
|
+
# @param filter [::String]
|
1003
|
+
# The standard list filter.
|
1004
|
+
# @param page_size [::Integer]
|
1005
|
+
# The standard list page size.
|
1006
|
+
# @param page_token [::String]
|
1007
|
+
# The standard list page token.
|
1008
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1009
|
+
# Mask specifying which fields to read.
|
1010
|
+
# @param order_by [::String]
|
1011
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
1012
|
+
# Use "desc" after a field name for descending.
|
1013
|
+
#
|
1014
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1015
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::SavedQuery>]
|
1016
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1017
|
+
#
|
1018
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::SavedQuery>]
|
1019
|
+
#
|
1020
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1021
|
+
#
|
1022
|
+
# @example Basic example
|
1023
|
+
# require "google/cloud/ai_platform/v1"
|
1024
|
+
#
|
1025
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1026
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
1027
|
+
#
|
1028
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1029
|
+
# request = Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest.new
|
1030
|
+
#
|
1031
|
+
# # Call the list_saved_queries method.
|
1032
|
+
# result = client.list_saved_queries request
|
1033
|
+
#
|
1034
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1035
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1036
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1037
|
+
# # methods are also available for managing paging directly.
|
1038
|
+
# result.each do |response|
|
1039
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::SavedQuery.
|
1040
|
+
# p response
|
1041
|
+
# end
|
1042
|
+
#
|
1043
|
+
def list_saved_queries request, options = nil
|
1044
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1045
|
+
|
1046
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest
|
1047
|
+
|
1048
|
+
# Converts hash and nil to an options object
|
1049
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1050
|
+
|
1051
|
+
# Customize the options with defaults
|
1052
|
+
metadata = @config.rpcs.list_saved_queries.metadata.to_h
|
1053
|
+
|
1054
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1055
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1056
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1057
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1058
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1059
|
+
|
1060
|
+
header_params = {}
|
1061
|
+
if request.parent
|
1062
|
+
header_params["parent"] = request.parent
|
1063
|
+
end
|
1064
|
+
|
1065
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1066
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1067
|
+
|
1068
|
+
options.apply_defaults timeout: @config.rpcs.list_saved_queries.timeout,
|
1069
|
+
metadata: metadata,
|
1070
|
+
retry_policy: @config.rpcs.list_saved_queries.retry_policy
|
1071
|
+
|
1072
|
+
options.apply_defaults timeout: @config.timeout,
|
1073
|
+
metadata: @config.metadata,
|
1074
|
+
retry_policy: @config.retry_policy
|
1075
|
+
|
1076
|
+
@dataset_service_stub.call_rpc :list_saved_queries, request, options: options do |response, operation|
|
1077
|
+
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_saved_queries, request, response, operation, options
|
1078
|
+
yield response, operation if block_given?
|
1079
|
+
return response
|
1080
|
+
end
|
1081
|
+
rescue ::GRPC::BadStatus => e
|
1082
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1083
|
+
end
|
1084
|
+
|
980
1085
|
##
|
981
1086
|
# Gets an AnnotationSpec.
|
982
1087
|
#
|
@@ -1347,6 +1452,11 @@ module Google
|
|
1347
1452
|
#
|
1348
1453
|
attr_reader :list_data_items
|
1349
1454
|
##
|
1455
|
+
# RPC-specific configuration for `list_saved_queries`
|
1456
|
+
# @return [::Gapic::Config::Method]
|
1457
|
+
#
|
1458
|
+
attr_reader :list_saved_queries
|
1459
|
+
##
|
1350
1460
|
# RPC-specific configuration for `get_annotation_spec`
|
1351
1461
|
# @return [::Gapic::Config::Method]
|
1352
1462
|
#
|
@@ -1375,6 +1485,8 @@ module Google
|
|
1375
1485
|
@export_data = ::Gapic::Config::Method.new export_data_config
|
1376
1486
|
list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
|
1377
1487
|
@list_data_items = ::Gapic::Config::Method.new list_data_items_config
|
1488
|
+
list_saved_queries_config = parent_rpcs.list_saved_queries if parent_rpcs.respond_to? :list_saved_queries
|
1489
|
+
@list_saved_queries = ::Gapic::Config::Method.new list_saved_queries_config
|
1378
1490
|
get_annotation_spec_config = parent_rpcs.get_annotation_spec if parent_rpcs.respond_to? :get_annotation_spec
|
1379
1491
|
@get_annotation_spec = ::Gapic::Config::Method.new get_annotation_spec_config
|
1380
1492
|
list_annotations_config = parent_rpcs.list_annotations if parent_rpcs.respond_to? :list_annotations
|
@@ -1216,6 +1216,95 @@ module Google
|
|
1216
1216
|
raise ::Google::Cloud::Error.from_error(e)
|
1217
1217
|
end
|
1218
1218
|
|
1219
|
+
##
|
1220
|
+
# Imports a list of externally generated ModelEvaluationSlice.
|
1221
|
+
#
|
1222
|
+
# @overload batch_import_model_evaluation_slices(request, options = nil)
|
1223
|
+
# Pass arguments to `batch_import_model_evaluation_slices` via a request object, either of type
|
1224
|
+
# {::Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesRequest} or an equivalent Hash.
|
1225
|
+
#
|
1226
|
+
# @param request [::Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesRequest, ::Hash]
|
1227
|
+
# A request object representing the call parameters. Required. To specify no
|
1228
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1229
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1230
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1231
|
+
#
|
1232
|
+
# @overload batch_import_model_evaluation_slices(parent: nil, model_evaluation_slices: nil)
|
1233
|
+
# Pass arguments to `batch_import_model_evaluation_slices` via keyword arguments. Note that at
|
1234
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1235
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1236
|
+
#
|
1237
|
+
# @param parent [::String]
|
1238
|
+
# Required. The name of the parent ModelEvaluation resource.
|
1239
|
+
# Format:
|
1240
|
+
# `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
|
1241
|
+
# @param model_evaluation_slices [::Array<::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice, ::Hash>]
|
1242
|
+
# Required. Model evaluation slice resource to be imported.
|
1243
|
+
#
|
1244
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1245
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesResponse]
|
1246
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1247
|
+
#
|
1248
|
+
# @return [::Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesResponse]
|
1249
|
+
#
|
1250
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1251
|
+
#
|
1252
|
+
# @example Basic example
|
1253
|
+
# require "google/cloud/ai_platform/v1"
|
1254
|
+
#
|
1255
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1256
|
+
# client = Google::Cloud::AIPlatform::V1::ModelService::Client.new
|
1257
|
+
#
|
1258
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1259
|
+
# request = Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesRequest.new
|
1260
|
+
#
|
1261
|
+
# # Call the batch_import_model_evaluation_slices method.
|
1262
|
+
# result = client.batch_import_model_evaluation_slices request
|
1263
|
+
#
|
1264
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesResponse.
|
1265
|
+
# p result
|
1266
|
+
#
|
1267
|
+
def batch_import_model_evaluation_slices request, options = nil
|
1268
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1269
|
+
|
1270
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesRequest
|
1271
|
+
|
1272
|
+
# Converts hash and nil to an options object
|
1273
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1274
|
+
|
1275
|
+
# Customize the options with defaults
|
1276
|
+
metadata = @config.rpcs.batch_import_model_evaluation_slices.metadata.to_h
|
1277
|
+
|
1278
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1279
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1280
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1281
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1282
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1283
|
+
|
1284
|
+
header_params = {}
|
1285
|
+
if request.parent
|
1286
|
+
header_params["parent"] = request.parent
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1290
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1291
|
+
|
1292
|
+
options.apply_defaults timeout: @config.rpcs.batch_import_model_evaluation_slices.timeout,
|
1293
|
+
metadata: metadata,
|
1294
|
+
retry_policy: @config.rpcs.batch_import_model_evaluation_slices.retry_policy
|
1295
|
+
|
1296
|
+
options.apply_defaults timeout: @config.timeout,
|
1297
|
+
metadata: @config.metadata,
|
1298
|
+
retry_policy: @config.retry_policy
|
1299
|
+
|
1300
|
+
@model_service_stub.call_rpc :batch_import_model_evaluation_slices, request, options: options do |response, operation|
|
1301
|
+
yield response, operation if block_given?
|
1302
|
+
return response
|
1303
|
+
end
|
1304
|
+
rescue ::GRPC::BadStatus => e
|
1305
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1306
|
+
end
|
1307
|
+
|
1219
1308
|
##
|
1220
1309
|
# Gets a ModelEvaluation.
|
1221
1310
|
#
|
@@ -1787,6 +1876,11 @@ module Google
|
|
1787
1876
|
#
|
1788
1877
|
attr_reader :import_model_evaluation
|
1789
1878
|
##
|
1879
|
+
# RPC-specific configuration for `batch_import_model_evaluation_slices`
|
1880
|
+
# @return [::Gapic::Config::Method]
|
1881
|
+
#
|
1882
|
+
attr_reader :batch_import_model_evaluation_slices
|
1883
|
+
##
|
1790
1884
|
# RPC-specific configuration for `get_model_evaluation`
|
1791
1885
|
# @return [::Gapic::Config::Method]
|
1792
1886
|
#
|
@@ -1829,6 +1923,8 @@ module Google
|
|
1829
1923
|
@export_model = ::Gapic::Config::Method.new export_model_config
|
1830
1924
|
import_model_evaluation_config = parent_rpcs.import_model_evaluation if parent_rpcs.respond_to? :import_model_evaluation
|
1831
1925
|
@import_model_evaluation = ::Gapic::Config::Method.new import_model_evaluation_config
|
1926
|
+
batch_import_model_evaluation_slices_config = parent_rpcs.batch_import_model_evaluation_slices if parent_rpcs.respond_to? :batch_import_model_evaluation_slices
|
1927
|
+
@batch_import_model_evaluation_slices = ::Gapic::Config::Method.new batch_import_model_evaluation_slices_config
|
1832
1928
|
get_model_evaluation_config = parent_rpcs.get_model_evaluation if parent_rpcs.respond_to? :get_model_evaluation
|
1833
1929
|
@get_model_evaluation = ::Gapic::Config::Method.new get_model_evaluation_config
|
1834
1930
|
list_model_evaluations_config = parent_rpcs.list_model_evaluations if parent_rpcs.respond_to? :list_model_evaluations
|
@@ -23,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
23
|
optional :name, :string, 1
|
24
24
|
optional :display_name, :string, 2
|
25
25
|
optional :model, :string, 3
|
26
|
+
optional :model_version_id, :string, 30
|
26
27
|
optional :unmanaged_container_model, :message, 28, "google.cloud.aiplatform.v1.UnmanagedContainerModel"
|
27
28
|
optional :input_config, :message, 4, "google.cloud.aiplatform.v1.BatchPredictionJob.InputConfig"
|
28
29
|
optional :model_parameters, :message, 5, "google.protobuf.Value"
|
@@ -12,6 +12,7 @@ require 'google/cloud/aiplatform/v1/annotation_spec_pb'
|
|
12
12
|
require 'google/cloud/aiplatform/v1/data_item_pb'
|
13
13
|
require 'google/cloud/aiplatform/v1/dataset_pb'
|
14
14
|
require 'google/cloud/aiplatform/v1/operation_pb'
|
15
|
+
require 'google/cloud/aiplatform/v1/saved_query_pb'
|
15
16
|
require 'google/longrunning/operations_pb'
|
16
17
|
require 'google/protobuf/field_mask_pb'
|
17
18
|
|
@@ -79,6 +80,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
79
80
|
repeated :data_items, :message, 1, "google.cloud.aiplatform.v1.DataItem"
|
80
81
|
optional :next_page_token, :string, 2
|
81
82
|
end
|
83
|
+
add_message "google.cloud.aiplatform.v1.ListSavedQueriesRequest" do
|
84
|
+
optional :parent, :string, 1
|
85
|
+
optional :filter, :string, 2
|
86
|
+
optional :page_size, :int32, 3
|
87
|
+
optional :page_token, :string, 4
|
88
|
+
optional :read_mask, :message, 5, "google.protobuf.FieldMask"
|
89
|
+
optional :order_by, :string, 6
|
90
|
+
end
|
91
|
+
add_message "google.cloud.aiplatform.v1.ListSavedQueriesResponse" do
|
92
|
+
repeated :saved_queries, :message, 1, "google.cloud.aiplatform.v1.SavedQuery"
|
93
|
+
optional :next_page_token, :string, 2
|
94
|
+
end
|
82
95
|
add_message "google.cloud.aiplatform.v1.GetAnnotationSpecRequest" do
|
83
96
|
optional :name, :string, 1
|
84
97
|
optional :read_mask, :message, 2, "google.protobuf.FieldMask"
|
@@ -117,6 +130,8 @@ module Google
|
|
117
130
|
ExportDataOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportDataOperationMetadata").msgclass
|
118
131
|
ListDataItemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListDataItemsRequest").msgclass
|
119
132
|
ListDataItemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListDataItemsResponse").msgclass
|
133
|
+
ListSavedQueriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListSavedQueriesRequest").msgclass
|
134
|
+
ListSavedQueriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListSavedQueriesResponse").msgclass
|
120
135
|
GetAnnotationSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetAnnotationSpecRequest").msgclass
|
121
136
|
ListAnnotationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListAnnotationsRequest").msgclass
|
122
137
|
ListAnnotationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListAnnotationsResponse").msgclass
|
@@ -50,6 +50,8 @@ module Google
|
|
50
50
|
rpc :ExportData, ::Google::Cloud::AIPlatform::V1::ExportDataRequest, ::Google::Longrunning::Operation
|
51
51
|
# Lists DataItems in a Dataset.
|
52
52
|
rpc :ListDataItems, ::Google::Cloud::AIPlatform::V1::ListDataItemsRequest, ::Google::Cloud::AIPlatform::V1::ListDataItemsResponse
|
53
|
+
# Lists SavedQueries in a Dataset.
|
54
|
+
rpc :ListSavedQueries, ::Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest, ::Google::Cloud::AIPlatform::V1::ListSavedQueriesResponse
|
53
55
|
# Gets an AnnotationSpec.
|
54
56
|
rpc :GetAnnotationSpec, ::Google::Cloud::AIPlatform::V1::GetAnnotationSpecRequest, ::Google::Cloud::AIPlatform::V1::AnnotationSpec
|
55
57
|
# Lists Annotations belongs to a dataitem
|
@@ -32,6 +32,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
32
32
|
add_message "google.cloud.aiplatform.v1.DeployedModel" do
|
33
33
|
optional :id, :string, 1
|
34
34
|
optional :model, :string, 2
|
35
|
+
optional :model_version_id, :string, 18
|
35
36
|
optional :display_name, :string, 3
|
36
37
|
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
37
38
|
optional :explanation_spec, :message, 9, "google.cloud.aiplatform.v1.ExplanationSpec"
|
@@ -93,6 +93,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
93
93
|
optional :parent, :string, 1
|
94
94
|
optional :model_evaluation, :message, 2, "google.cloud.aiplatform.v1.ModelEvaluation"
|
95
95
|
end
|
96
|
+
add_message "google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest" do
|
97
|
+
optional :parent, :string, 1
|
98
|
+
repeated :model_evaluation_slices, :message, 2, "google.cloud.aiplatform.v1.ModelEvaluationSlice"
|
99
|
+
end
|
100
|
+
add_message "google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse" do
|
101
|
+
repeated :imported_model_evaluation_slices, :string, 1
|
102
|
+
end
|
96
103
|
add_message "google.cloud.aiplatform.v1.GetModelEvaluationRequest" do
|
97
104
|
optional :name, :string, 1
|
98
105
|
end
|
@@ -146,6 +153,8 @@ module Google
|
|
146
153
|
ExportModelOperationMetadata::OutputInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportModelOperationMetadata.OutputInfo").msgclass
|
147
154
|
ExportModelResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportModelResponse").msgclass
|
148
155
|
ImportModelEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ImportModelEvaluationRequest").msgclass
|
156
|
+
BatchImportModelEvaluationSlicesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest").msgclass
|
157
|
+
BatchImportModelEvaluationSlicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse").msgclass
|
149
158
|
GetModelEvaluationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetModelEvaluationRequest").msgclass
|
150
159
|
ListModelEvaluationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListModelEvaluationsRequest").msgclass
|
151
160
|
ListModelEvaluationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListModelEvaluationsResponse").msgclass
|
@@ -63,6 +63,8 @@ module Google
|
|
63
63
|
rpc :ExportModel, ::Google::Cloud::AIPlatform::V1::ExportModelRequest, ::Google::Longrunning::Operation
|
64
64
|
# Imports an externally generated ModelEvaluation.
|
65
65
|
rpc :ImportModelEvaluation, ::Google::Cloud::AIPlatform::V1::ImportModelEvaluationRequest, ::Google::Cloud::AIPlatform::V1::ModelEvaluation
|
66
|
+
# Imports a list of externally generated ModelEvaluationSlice.
|
67
|
+
rpc :BatchImportModelEvaluationSlices, ::Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesRequest, ::Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesResponse
|
66
68
|
# Gets a ModelEvaluation.
|
67
69
|
rpc :GetModelEvaluation, ::Google::Cloud::AIPlatform::V1::GetModelEvaluationRequest, ::Google::Cloud::AIPlatform::V1::ModelEvaluation
|
68
70
|
# Lists ModelEvaluations in a Model.
|
@@ -22,6 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
22
|
repeated :predictions, :message, 1, "google.protobuf.Value"
|
23
23
|
optional :deployed_model_id, :string, 2
|
24
24
|
optional :model, :string, 3
|
25
|
+
optional :model_version_id, :string, 5
|
25
26
|
optional :model_display_name, :string, 4
|
26
27
|
end
|
27
28
|
add_message "google.cloud.aiplatform.v1.RawPredictRequest" do
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/aiplatform/v1/saved_query.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf/struct_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
10
|
+
|
11
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
|
+
add_file("google/cloud/aiplatform/v1/saved_query.proto", :syntax => :proto3) do
|
13
|
+
add_message "google.cloud.aiplatform.v1.SavedQuery" do
|
14
|
+
optional :name, :string, 1
|
15
|
+
optional :display_name, :string, 2
|
16
|
+
optional :metadata, :message, 12, "google.protobuf.Value"
|
17
|
+
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
18
|
+
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
19
|
+
optional :annotation_filter, :string, 5
|
20
|
+
optional :problem_type, :string, 6
|
21
|
+
optional :annotation_spec_count, :int32, 10
|
22
|
+
optional :etag, :string, 8
|
23
|
+
optional :support_automl_training, :bool, 9
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
module Google
|
29
|
+
module Cloud
|
30
|
+
module AIPlatform
|
31
|
+
module V1
|
32
|
+
SavedQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.SavedQuery").msgclass
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -38,6 +38,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
38
38
|
optional :dataset_id, :string, 1
|
39
39
|
optional :annotations_filter, :string, 6
|
40
40
|
optional :annotation_schema_uri, :string, 9
|
41
|
+
optional :saved_query_id, :string, 7
|
41
42
|
oneof :split do
|
42
43
|
optional :fraction_split, :message, 2, "google.cloud.aiplatform.v1.FractionSplit"
|
43
44
|
optional :filter_split, :message, 3, "google.cloud.aiplatform.v1.FilterSplit"
|
@@ -41,6 +41,9 @@ module Google
|
|
41
41
|
#
|
42
42
|
# The model resource name may contain version id or version alias to specify
|
43
43
|
# the version, if no version is specified, the default version will be used.
|
44
|
+
# @!attribute [r] model_version_id
|
45
|
+
# @return [::String]
|
46
|
+
# Output only. The version ID of the Model that produces the predictions via this job.
|
44
47
|
# @!attribute [rw] unmanaged_container_model
|
45
48
|
# @return [::Google::Cloud::AIPlatform::V1::UnmanagedContainerModel]
|
46
49
|
# Contains model information necessary to perform batch prediction without
|
@@ -243,6 +243,45 @@ module Google
|
|
243
243
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
244
244
|
end
|
245
245
|
|
246
|
+
# Request message for {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_saved_queries DatasetService.ListSavedQueries}.
|
247
|
+
# @!attribute [rw] parent
|
248
|
+
# @return [::String]
|
249
|
+
# Required. The resource name of the Dataset to list SavedQueries from.
|
250
|
+
# Format:
|
251
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
252
|
+
# @!attribute [rw] filter
|
253
|
+
# @return [::String]
|
254
|
+
# The standard list filter.
|
255
|
+
# @!attribute [rw] page_size
|
256
|
+
# @return [::Integer]
|
257
|
+
# The standard list page size.
|
258
|
+
# @!attribute [rw] page_token
|
259
|
+
# @return [::String]
|
260
|
+
# The standard list page token.
|
261
|
+
# @!attribute [rw] read_mask
|
262
|
+
# @return [::Google::Protobuf::FieldMask]
|
263
|
+
# Mask specifying which fields to read.
|
264
|
+
# @!attribute [rw] order_by
|
265
|
+
# @return [::String]
|
266
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
267
|
+
# Use "desc" after a field name for descending.
|
268
|
+
class ListSavedQueriesRequest
|
269
|
+
include ::Google::Protobuf::MessageExts
|
270
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
271
|
+
end
|
272
|
+
|
273
|
+
# Response message for {::Google::Cloud::AIPlatform::V1::DatasetService::Client#list_saved_queries DatasetService.ListSavedQueries}.
|
274
|
+
# @!attribute [rw] saved_queries
|
275
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::SavedQuery>]
|
276
|
+
# A list of SavedQueries that match the specified filter in the request.
|
277
|
+
# @!attribute [rw] next_page_token
|
278
|
+
# @return [::String]
|
279
|
+
# The standard List next-page token.
|
280
|
+
class ListSavedQueriesResponse
|
281
|
+
include ::Google::Protobuf::MessageExts
|
282
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
283
|
+
end
|
284
|
+
|
246
285
|
# Request message for {::Google::Cloud::AIPlatform::V1::DatasetService::Client#get_annotation_spec DatasetService.GetAnnotationSpec}.
|
247
286
|
# @!attribute [rw] name
|
248
287
|
# @return [::String]
|
@@ -151,6 +151,9 @@ module Google
|
|
151
151
|
#
|
152
152
|
# The resource name may contain version id or version alias to specify the
|
153
153
|
# version, if no version is specified, the default version will be deployed.
|
154
|
+
# @!attribute [r] model_version_id
|
155
|
+
# @return [::String]
|
156
|
+
# Output only. The version ID of the model that is deployed.
|
154
157
|
# @!attribute [rw] display_name
|
155
158
|
# @return [::String]
|
156
159
|
# The display name of the DeployedModel. If not provided upon creation,
|
@@ -364,6 +364,29 @@ module Google
|
|
364
364
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
365
365
|
end
|
366
366
|
|
367
|
+
# Request message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#batch_import_model_evaluation_slices ModelService.BatchImportModelEvaluationSlices}
|
368
|
+
# @!attribute [rw] parent
|
369
|
+
# @return [::String]
|
370
|
+
# Required. The name of the parent ModelEvaluation resource.
|
371
|
+
# Format:
|
372
|
+
# `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}`
|
373
|
+
# @!attribute [rw] model_evaluation_slices
|
374
|
+
# @return [::Array<::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice>]
|
375
|
+
# Required. Model evaluation slice resource to be imported.
|
376
|
+
class BatchImportModelEvaluationSlicesRequest
|
377
|
+
include ::Google::Protobuf::MessageExts
|
378
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
379
|
+
end
|
380
|
+
|
381
|
+
# Response message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#batch_import_model_evaluation_slices ModelService.BatchImportModelEvaluationSlices}
|
382
|
+
# @!attribute [r] imported_model_evaluation_slices
|
383
|
+
# @return [::Array<::String>]
|
384
|
+
# Output only. List of imported {::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice#name ModelEvaluationSlice.name}.
|
385
|
+
class BatchImportModelEvaluationSlicesResponse
|
386
|
+
include ::Google::Protobuf::MessageExts
|
387
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
388
|
+
end
|
389
|
+
|
367
390
|
# Request message for {::Google::Cloud::AIPlatform::V1::ModelService::Client#get_model_evaluation ModelService.GetModelEvaluation}.
|
368
391
|
# @!attribute [rw] name
|
369
392
|
# @return [::String]
|
@@ -21,7 +21,7 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module AIPlatform
|
23
23
|
module V1
|
24
|
-
#
|
24
|
+
# Represents the failure policy of a pipeline. Currently, the default of a
|
25
25
|
# pipeline is that the pipeline will continue to run until no more tasks can be
|
26
26
|
# executed, also known as PIPELINE_FAILURE_POLICY_FAIL_SLOW. However, if a
|
27
27
|
# pipeline is set to PIPELINE_FAILURE_POLICY_FAIL_FAST, it will stop scheduling
|
@@ -64,6 +64,10 @@ module Google
|
|
64
64
|
# @return [::String]
|
65
65
|
# Output only. The resource name of the Model which is deployed as the DeployedModel that
|
66
66
|
# this prediction hits.
|
67
|
+
# @!attribute [r] model_version_id
|
68
|
+
# @return [::String]
|
69
|
+
# Output only. The version ID of the Model which is deployed as the DeployedModel that
|
70
|
+
# this prediction hits.
|
67
71
|
# @!attribute [r] model_display_name
|
68
72
|
# @return [::String]
|
69
73
|
# Output only. The {::Google::Cloud::AIPlatform::V1::Model#display_name display name} of the Model which is deployed as
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2022 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module AIPlatform
|
23
|
+
module V1
|
24
|
+
# A SavedQuery is a view of the dataset. It references a subset of annotations
|
25
|
+
# by problem type and filters.
|
26
|
+
# @!attribute [r] name
|
27
|
+
# @return [::String]
|
28
|
+
# Output only. Resource name of the SavedQuery.
|
29
|
+
# @!attribute [rw] display_name
|
30
|
+
# @return [::String]
|
31
|
+
# Required. The user-defined name of the SavedQuery.
|
32
|
+
# The name can be up to 128 characters long and can consist of any UTF-8
|
33
|
+
# characters.
|
34
|
+
# @!attribute [rw] metadata
|
35
|
+
# @return [::Google::Protobuf::Value]
|
36
|
+
# Some additional information about the SavedQuery.
|
37
|
+
# @!attribute [r] create_time
|
38
|
+
# @return [::Google::Protobuf::Timestamp]
|
39
|
+
# Output only. Timestamp when this SavedQuery was created.
|
40
|
+
# @!attribute [r] update_time
|
41
|
+
# @return [::Google::Protobuf::Timestamp]
|
42
|
+
# Output only. Timestamp when SavedQuery was last updated.
|
43
|
+
# @!attribute [r] annotation_filter
|
44
|
+
# @return [::String]
|
45
|
+
# Output only. Filters on the Annotations in the dataset.
|
46
|
+
# @!attribute [rw] problem_type
|
47
|
+
# @return [::String]
|
48
|
+
# Required. Problem type of the SavedQuery.
|
49
|
+
# Allowed values:
|
50
|
+
# * IMAGE_CLASSIFICATION_SINGLE_LABEL
|
51
|
+
# * IMAGE_CLASSIFICATION_MULTI_LABEL
|
52
|
+
# * IMAGE_BOUNDING_POLY
|
53
|
+
# * IMAGE_BOUNDING_BOX
|
54
|
+
# * TEXT_CLASSIFICATION_SINGLE_LABEL
|
55
|
+
# * TEXT_CLASSIFICATION_MULTI_LABEL
|
56
|
+
# * TEXT_EXTRACTION
|
57
|
+
# * TEXT_SENTIMENT
|
58
|
+
# * VIDEO_CLASSIFICATION
|
59
|
+
# * VIDEO_OBJECT_TRACKING
|
60
|
+
# @!attribute [r] annotation_spec_count
|
61
|
+
# @return [::Integer]
|
62
|
+
# Output only. Number of AnnotationSpecs in the context of the SavedQuery.
|
63
|
+
# @!attribute [rw] etag
|
64
|
+
# @return [::String]
|
65
|
+
# Used to perform a consistent read-modify-write update. If not set, a blind
|
66
|
+
# "overwrite" update happens.
|
67
|
+
# @!attribute [r] support_automl_training
|
68
|
+
# @return [::Boolean]
|
69
|
+
# Output only. If the Annotations belonging to the SavedQuery can be used for AutoML
|
70
|
+
# training.
|
71
|
+
class SavedQuery
|
72
|
+
include ::Google::Protobuf::MessageExts
|
73
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -248,6 +248,20 @@ module Google
|
|
248
248
|
# When used in conjunction with {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotations_filter annotations_filter}, the Annotations used
|
249
249
|
# for training are filtered by both {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotations_filter annotations_filter} and
|
250
250
|
# {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotation_schema_uri annotation_schema_uri}.
|
251
|
+
# @!attribute [rw] saved_query_id
|
252
|
+
# @return [::String]
|
253
|
+
# Only applicable to Datasets that have SavedQueries.
|
254
|
+
#
|
255
|
+
# The ID of a SavedQuery (annotation set) under the Dataset specified by
|
256
|
+
# {::Google::Cloud::AIPlatform::V1::InputDataConfig#dataset_id dataset_id} used for filtering Annotations for training.
|
257
|
+
#
|
258
|
+
# Only Annotations that are associated with this SavedQuery are used in
|
259
|
+
# respectively training. When used in conjunction with
|
260
|
+
# {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotations_filter annotations_filter}, the Annotations used for training are filtered by
|
261
|
+
# both {::Google::Cloud::AIPlatform::V1::InputDataConfig#saved_query_id saved_query_id} and {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotations_filter annotations_filter}.
|
262
|
+
#
|
263
|
+
# Only one of {::Google::Cloud::AIPlatform::V1::InputDataConfig#saved_query_id saved_query_id} and {::Google::Cloud::AIPlatform::V1::InputDataConfig#annotation_schema_uri annotation_schema_uri} should be
|
264
|
+
# specified as both of them represent the same thing: problem type.
|
251
265
|
class InputDataConfig
|
252
266
|
include ::Google::Protobuf::MessageExts
|
253
267
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-ai_platform-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -356,6 +356,7 @@ files:
|
|
356
356
|
- lib/google/cloud/aiplatform/v1/pipeline_state_pb.rb
|
357
357
|
- lib/google/cloud/aiplatform/v1/prediction_service_pb.rb
|
358
358
|
- lib/google/cloud/aiplatform/v1/prediction_service_services_pb.rb
|
359
|
+
- lib/google/cloud/aiplatform/v1/saved_query_pb.rb
|
359
360
|
- lib/google/cloud/aiplatform/v1/specialist_pool_pb.rb
|
360
361
|
- lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb
|
361
362
|
- lib/google/cloud/aiplatform/v1/specialist_pool_service_services_pb.rb
|
@@ -436,6 +437,7 @@ files:
|
|
436
437
|
- proto_docs/google/cloud/aiplatform/v1/pipeline_service.rb
|
437
438
|
- proto_docs/google/cloud/aiplatform/v1/pipeline_state.rb
|
438
439
|
- proto_docs/google/cloud/aiplatform/v1/prediction_service.rb
|
440
|
+
- proto_docs/google/cloud/aiplatform/v1/saved_query.rb
|
439
441
|
- proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.rb
|
440
442
|
- proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.rb
|
441
443
|
- proto_docs/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.rb
|