google-cloud-ai_platform-v1 0.14.0 → 0.16.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/README.md +1 -1
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +157 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/paths.rb +21 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +103 -0
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +9 -1
- 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_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +34 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_online_service_pb.rb +13 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_online_service_services_pb.rb +6 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +1 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/aiplatform/v1/annotation_spec.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +10 -1
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/data_labeling_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +7 -2
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +129 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +47 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/hyperparameter_tuning_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/index.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/job_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/model_deployment_monitoring_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +9 -0
- data/proto_docs/google/cloud/aiplatform/v1/operation.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +3 -3
- data/proto_docs/google/cloud/aiplatform/v1/specialist_pool.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard.rb +1 -1
- 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: 804093fd89318fcc105ad9179cf3543f501fd7f084ab3b3e5ea3547925670c6f
|
4
|
+
data.tar.gz: b23fe659b2c2f041c25108eaba4b4c5208829d5934a4deaf49cb3fc4e1583606
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c5bcf56c96f0d879dddff0e2de4cd6525a100d54d9e752933bf114ebd706ea23ce7d788a1a4529234495cab6b6796391ccb16d4aee1d34bb69d1e789b7090e63
|
7
|
+
data.tar.gz: e3f80e129635eda2f455c1a405ae255573edf069ed84cf96109cb5b5cc3b47b2a5ba3daa680e5289789d73015a4f2ffd4d5ed93a4bef5ddf8d998201f8147b49
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -979,6 +979,156 @@ module Google
|
|
979
979
|
raise ::Google::Cloud::Error.from_error(e)
|
980
980
|
end
|
981
981
|
|
982
|
+
##
|
983
|
+
# Searches DataItems in a Dataset.
|
984
|
+
#
|
985
|
+
# @overload search_data_items(request, options = nil)
|
986
|
+
# Pass arguments to `search_data_items` via a request object, either of type
|
987
|
+
# {::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest} or an equivalent Hash.
|
988
|
+
#
|
989
|
+
# @param request [::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest, ::Hash]
|
990
|
+
# A request object representing the call parameters. Required. To specify no
|
991
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
992
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
993
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
994
|
+
#
|
995
|
+
# @overload search_data_items(order_by_data_item: nil, order_by_annotation: nil, dataset: nil, saved_query: nil, data_labeling_job: nil, data_item_filter: nil, annotations_filter: nil, annotation_filters: nil, field_mask: nil, annotations_limit: nil, page_size: nil, order_by: nil, page_token: nil)
|
996
|
+
# Pass arguments to `search_data_items` via keyword arguments. Note that at
|
997
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
998
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
999
|
+
#
|
1000
|
+
# @param order_by_data_item [::String]
|
1001
|
+
# A comma-separated list of data item fields to order by, sorted in
|
1002
|
+
# ascending order. Use "desc" after a field name for descending.
|
1003
|
+
# @param order_by_annotation [::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest::OrderByAnnotation, ::Hash]
|
1004
|
+
# Expression that allows ranking results based on annotation's property.
|
1005
|
+
# @param dataset [::String]
|
1006
|
+
# Required. The resource name of the Dataset from which to search DataItems.
|
1007
|
+
# Format:
|
1008
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
1009
|
+
# @param saved_query [::String]
|
1010
|
+
# The resource name of a SavedQuery(annotation set in UI).
|
1011
|
+
# Format:
|
1012
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
|
1013
|
+
# All of the search will be done in the context of this SavedQuery.
|
1014
|
+
# @param data_labeling_job [::String]
|
1015
|
+
# The resource name of a DataLabelingJob.
|
1016
|
+
# Format:
|
1017
|
+
# `projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}`
|
1018
|
+
# If this field is set, all of the search will be done in the context of
|
1019
|
+
# this DataLabelingJob.
|
1020
|
+
# @param data_item_filter [::String]
|
1021
|
+
# An expression for filtering the DataItem that will be returned.
|
1022
|
+
#
|
1023
|
+
# * `data_item_id` - for = or !=.
|
1024
|
+
# * `labeled` - for = or !=.
|
1025
|
+
# * `has_annotation(ANNOTATION_SPEC_ID)` - true only for DataItem that
|
1026
|
+
# have at least one annotation with annotation_spec_id =
|
1027
|
+
# `ANNOTATION_SPEC_ID` in the context of SavedQuery or DataLabelingJob.
|
1028
|
+
#
|
1029
|
+
# For example:
|
1030
|
+
#
|
1031
|
+
# * `data_item=1`
|
1032
|
+
# * `has_annotation(5)`
|
1033
|
+
# @param annotations_filter [::String]
|
1034
|
+
# An expression for filtering the Annotations that will be returned per
|
1035
|
+
# DataItem.
|
1036
|
+
# * `annotation_spec_id` - for = or !=.
|
1037
|
+
# @param annotation_filters [::Array<::String>]
|
1038
|
+
# An expression that specifies what Annotations will be returned per
|
1039
|
+
# DataItem. Annotations satisfied either of the conditions will be returned.
|
1040
|
+
# * `annotation_spec_id` - for = or !=.
|
1041
|
+
# Must specify `saved_query_id=` - saved query id that annotations should
|
1042
|
+
# belong to.
|
1043
|
+
# @param field_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1044
|
+
# Mask specifying which fields of {::Google::Cloud::AIPlatform::V1::DataItemView DataItemView} to read.
|
1045
|
+
# @param annotations_limit [::Integer]
|
1046
|
+
# If set, only up to this many of Annotations will be returned per
|
1047
|
+
# DataItemView. The maximum value is 1000. If not set, the maximum value will
|
1048
|
+
# be used.
|
1049
|
+
# @param page_size [::Integer]
|
1050
|
+
# Requested page size. Server may return fewer results than requested.
|
1051
|
+
# Default and maximum page size is 100.
|
1052
|
+
# @param order_by [::String]
|
1053
|
+
# A comma-separated list of fields to order by, sorted in ascending order.
|
1054
|
+
# Use "desc" after a field name for descending.
|
1055
|
+
# @param page_token [::String]
|
1056
|
+
# A token identifying a page of results for the server to return
|
1057
|
+
# Typically obtained via
|
1058
|
+
# {::Google::Cloud::AIPlatform::V1::SearchDataItemsResponse#next_page_token SearchDataItemsResponse.next_page_token} of the previous
|
1059
|
+
# {::Google::Cloud::AIPlatform::V1::DatasetService::Client#search_data_items DatasetService.SearchDataItems} call.
|
1060
|
+
#
|
1061
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1062
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataItemView>]
|
1063
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1064
|
+
#
|
1065
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataItemView>]
|
1066
|
+
#
|
1067
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1068
|
+
#
|
1069
|
+
# @example Basic example
|
1070
|
+
# require "google/cloud/ai_platform/v1"
|
1071
|
+
#
|
1072
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1073
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
1074
|
+
#
|
1075
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1076
|
+
# request = Google::Cloud::AIPlatform::V1::SearchDataItemsRequest.new
|
1077
|
+
#
|
1078
|
+
# # Call the search_data_items method.
|
1079
|
+
# result = client.search_data_items request
|
1080
|
+
#
|
1081
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1082
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1083
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1084
|
+
# # methods are also available for managing paging directly.
|
1085
|
+
# result.each do |response|
|
1086
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::DataItemView.
|
1087
|
+
# p response
|
1088
|
+
# end
|
1089
|
+
#
|
1090
|
+
def search_data_items request, options = nil
|
1091
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1092
|
+
|
1093
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest
|
1094
|
+
|
1095
|
+
# Converts hash and nil to an options object
|
1096
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1097
|
+
|
1098
|
+
# Customize the options with defaults
|
1099
|
+
metadata = @config.rpcs.search_data_items.metadata.to_h
|
1100
|
+
|
1101
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1102
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1103
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1104
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1105
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1106
|
+
|
1107
|
+
header_params = {}
|
1108
|
+
if request.dataset
|
1109
|
+
header_params["dataset"] = request.dataset
|
1110
|
+
end
|
1111
|
+
|
1112
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1113
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1114
|
+
|
1115
|
+
options.apply_defaults timeout: @config.rpcs.search_data_items.timeout,
|
1116
|
+
metadata: metadata,
|
1117
|
+
retry_policy: @config.rpcs.search_data_items.retry_policy
|
1118
|
+
|
1119
|
+
options.apply_defaults timeout: @config.timeout,
|
1120
|
+
metadata: @config.metadata,
|
1121
|
+
retry_policy: @config.retry_policy
|
1122
|
+
|
1123
|
+
@dataset_service_stub.call_rpc :search_data_items, request, options: options do |response, operation|
|
1124
|
+
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :search_data_items, request, response, operation, options
|
1125
|
+
yield response, operation if block_given?
|
1126
|
+
return response
|
1127
|
+
end
|
1128
|
+
rescue ::GRPC::BadStatus => e
|
1129
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1130
|
+
end
|
1131
|
+
|
982
1132
|
##
|
983
1133
|
# Lists SavedQueries in a Dataset.
|
984
1134
|
#
|
@@ -1454,6 +1604,11 @@ module Google
|
|
1454
1604
|
#
|
1455
1605
|
attr_reader :list_data_items
|
1456
1606
|
##
|
1607
|
+
# RPC-specific configuration for `search_data_items`
|
1608
|
+
# @return [::Gapic::Config::Method]
|
1609
|
+
#
|
1610
|
+
attr_reader :search_data_items
|
1611
|
+
##
|
1457
1612
|
# RPC-specific configuration for `list_saved_queries`
|
1458
1613
|
# @return [::Gapic::Config::Method]
|
1459
1614
|
#
|
@@ -1487,6 +1642,8 @@ module Google
|
|
1487
1642
|
@export_data = ::Gapic::Config::Method.new export_data_config
|
1488
1643
|
list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
|
1489
1644
|
@list_data_items = ::Gapic::Config::Method.new list_data_items_config
|
1645
|
+
search_data_items_config = parent_rpcs.search_data_items if parent_rpcs.respond_to? :search_data_items
|
1646
|
+
@search_data_items = ::Gapic::Config::Method.new search_data_items_config
|
1490
1647
|
list_saved_queries_config = parent_rpcs.list_saved_queries if parent_rpcs.respond_to? :list_saved_queries
|
1491
1648
|
@list_saved_queries = ::Gapic::Config::Method.new list_saved_queries_config
|
1492
1649
|
get_annotation_spec_config = parent_rpcs.get_annotation_spec if parent_rpcs.respond_to? :get_annotation_spec
|
@@ -102,6 +102,27 @@ module Google
|
|
102
102
|
"projects/#{project}/locations/#{location}"
|
103
103
|
end
|
104
104
|
|
105
|
+
##
|
106
|
+
# Create a fully-qualified SavedQuery resource string.
|
107
|
+
#
|
108
|
+
# The resource will be in the following format:
|
109
|
+
#
|
110
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}`
|
111
|
+
#
|
112
|
+
# @param project [String]
|
113
|
+
# @param location [String]
|
114
|
+
# @param dataset [String]
|
115
|
+
# @param saved_query [String]
|
116
|
+
#
|
117
|
+
# @return [::String]
|
118
|
+
def saved_query_path project:, location:, dataset:, saved_query:
|
119
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
120
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
121
|
+
raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
|
122
|
+
|
123
|
+
"projects/#{project}/locations/#{location}/datasets/#{dataset}/savedQueries/#{saved_query}"
|
124
|
+
end
|
125
|
+
|
105
126
|
extend self
|
106
127
|
end
|
107
128
|
end
|
@@ -371,6 +371,102 @@ module Google
|
|
371
371
|
raise ::Google::Cloud::Error.from_error(e)
|
372
372
|
end
|
373
373
|
|
374
|
+
##
|
375
|
+
# Writes Feature values of one or more entities of an EntityType.
|
376
|
+
#
|
377
|
+
# The Feature values are merged into existing entities if any. The Feature
|
378
|
+
# values to be written must have timestamp within the online storage
|
379
|
+
# retention.
|
380
|
+
#
|
381
|
+
# @overload write_feature_values(request, options = nil)
|
382
|
+
# Pass arguments to `write_feature_values` via a request object, either of type
|
383
|
+
# {::Google::Cloud::AIPlatform::V1::WriteFeatureValuesRequest} or an equivalent Hash.
|
384
|
+
#
|
385
|
+
# @param request [::Google::Cloud::AIPlatform::V1::WriteFeatureValuesRequest, ::Hash]
|
386
|
+
# A request object representing the call parameters. Required. To specify no
|
387
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
388
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
389
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
390
|
+
#
|
391
|
+
# @overload write_feature_values(entity_type: nil, payloads: nil)
|
392
|
+
# Pass arguments to `write_feature_values` via keyword arguments. Note that at
|
393
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
394
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
395
|
+
#
|
396
|
+
# @param entity_type [::String]
|
397
|
+
# Required. The resource name of the EntityType for the entities being written.
|
398
|
+
# Value format: `projects/{project}/locations/{location}/featurestores/
|
399
|
+
# \\{featurestore}/entityTypes/\\{entityType}`. For example,
|
400
|
+
# for a machine learning model predicting user clicks on a website, an
|
401
|
+
# EntityType ID could be `user`.
|
402
|
+
# @param payloads [::Array<::Google::Cloud::AIPlatform::V1::WriteFeatureValuesPayload, ::Hash>]
|
403
|
+
# Required. The entities to be written. Up to 100,000 feature values can be written
|
404
|
+
# across all `payloads`.
|
405
|
+
#
|
406
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
407
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::WriteFeatureValuesResponse]
|
408
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
409
|
+
#
|
410
|
+
# @return [::Google::Cloud::AIPlatform::V1::WriteFeatureValuesResponse]
|
411
|
+
#
|
412
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
413
|
+
#
|
414
|
+
# @example Basic example
|
415
|
+
# require "google/cloud/ai_platform/v1"
|
416
|
+
#
|
417
|
+
# # Create a client object. The client can be reused for multiple calls.
|
418
|
+
# client = Google::Cloud::AIPlatform::V1::FeaturestoreOnlineServingService::Client.new
|
419
|
+
#
|
420
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
421
|
+
# request = Google::Cloud::AIPlatform::V1::WriteFeatureValuesRequest.new
|
422
|
+
#
|
423
|
+
# # Call the write_feature_values method.
|
424
|
+
# result = client.write_feature_values request
|
425
|
+
#
|
426
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::WriteFeatureValuesResponse.
|
427
|
+
# p result
|
428
|
+
#
|
429
|
+
def write_feature_values request, options = nil
|
430
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
431
|
+
|
432
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::WriteFeatureValuesRequest
|
433
|
+
|
434
|
+
# Converts hash and nil to an options object
|
435
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
436
|
+
|
437
|
+
# Customize the options with defaults
|
438
|
+
metadata = @config.rpcs.write_feature_values.metadata.to_h
|
439
|
+
|
440
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
441
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
442
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
443
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
444
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
445
|
+
|
446
|
+
header_params = {}
|
447
|
+
if request.entity_type
|
448
|
+
header_params["entity_type"] = request.entity_type
|
449
|
+
end
|
450
|
+
|
451
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
452
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
453
|
+
|
454
|
+
options.apply_defaults timeout: @config.rpcs.write_feature_values.timeout,
|
455
|
+
metadata: metadata,
|
456
|
+
retry_policy: @config.rpcs.write_feature_values.retry_policy
|
457
|
+
|
458
|
+
options.apply_defaults timeout: @config.timeout,
|
459
|
+
metadata: @config.metadata,
|
460
|
+
retry_policy: @config.retry_policy
|
461
|
+
|
462
|
+
@featurestore_online_serving_service_stub.call_rpc :write_feature_values, request, options: options do |response, operation|
|
463
|
+
yield response, operation if block_given?
|
464
|
+
return response
|
465
|
+
end
|
466
|
+
rescue ::GRPC::BadStatus => e
|
467
|
+
raise ::Google::Cloud::Error.from_error(e)
|
468
|
+
end
|
469
|
+
|
374
470
|
##
|
375
471
|
# Configuration class for the FeaturestoreOnlineServingService API.
|
376
472
|
#
|
@@ -516,6 +612,11 @@ module Google
|
|
516
612
|
# @return [::Gapic::Config::Method]
|
517
613
|
#
|
518
614
|
attr_reader :streaming_read_feature_values
|
615
|
+
##
|
616
|
+
# RPC-specific configuration for `write_feature_values`
|
617
|
+
# @return [::Gapic::Config::Method]
|
618
|
+
#
|
619
|
+
attr_reader :write_feature_values
|
519
620
|
|
520
621
|
# @private
|
521
622
|
def initialize parent_rpcs = nil
|
@@ -523,6 +624,8 @@ module Google
|
|
523
624
|
@read_feature_values = ::Gapic::Config::Method.new read_feature_values_config
|
524
625
|
streaming_read_feature_values_config = parent_rpcs.streaming_read_feature_values if parent_rpcs.respond_to? :streaming_read_feature_values
|
525
626
|
@streaming_read_feature_values = ::Gapic::Config::Method.new streaming_read_feature_values_config
|
627
|
+
write_feature_values_config = parent_rpcs.write_feature_values if parent_rpcs.respond_to? :write_feature_values
|
628
|
+
@write_feature_values = ::Gapic::Config::Method.new write_feature_values_config
|
526
629
|
|
527
630
|
yield self if block_given?
|
528
631
|
end
|
@@ -198,7 +198,7 @@ module Google
|
|
198
198
|
# @param options [::Gapic::CallOptions, ::Hash]
|
199
199
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
200
200
|
#
|
201
|
-
# @overload upload_model(parent: nil, parent_model: nil, model_id: nil, model: nil)
|
201
|
+
# @overload upload_model(parent: nil, parent_model: nil, model_id: nil, model: nil, service_account: nil)
|
202
202
|
# Pass arguments to `upload_model` via keyword arguments. Note that at
|
203
203
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
204
204
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -217,6 +217,14 @@ module Google
|
|
217
217
|
# `[a-z0-9_-]`. The first character cannot be a number or hyphen.
|
218
218
|
# @param model [::Google::Cloud::AIPlatform::V1::Model, ::Hash]
|
219
219
|
# Required. The Model to create.
|
220
|
+
# @param service_account [::String]
|
221
|
+
# Optional. The user-provided custom service account to use to do the model
|
222
|
+
# upload. If empty, [Vertex AI Service
|
223
|
+
# Agent](https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)
|
224
|
+
# will be used. Users uploading the Model must have the
|
225
|
+
# `iam.serviceAccounts.actAs` permission on this service account. Also, this
|
226
|
+
# account must belong to the project specified in the `parent` field and have
|
227
|
+
# all necessary read permissions.
|
220
228
|
#
|
221
229
|
# @yield [response, operation] Access the result along with the RPC operation
|
222
230
|
# @yieldparam response [::Gapic::Operation]
|
@@ -29,6 +29,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
29
29
|
optional :model_parameters, :message, 5, "google.protobuf.Value"
|
30
30
|
optional :output_config, :message, 6, "google.cloud.aiplatform.v1.BatchPredictionJob.OutputConfig"
|
31
31
|
optional :dedicated_resources, :message, 7, "google.cloud.aiplatform.v1.BatchDedicatedResources"
|
32
|
+
optional :service_account, :string, 29
|
32
33
|
optional :manual_batch_tuning_parameters, :message, 8, "google.cloud.aiplatform.v1.ManualBatchTuningParameters"
|
33
34
|
optional :generate_explanation, :bool, 23
|
34
35
|
optional :explanation_spec, :message, 25, "google.cloud.aiplatform.v1.ExplanationSpec"
|
@@ -23,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
23
|
optional :etag, :string, 6
|
24
24
|
map :labels, :string, :string, 7
|
25
25
|
optional :encryption_spec, :message, 11, "google.cloud.aiplatform.v1.EncryptionSpec"
|
26
|
+
optional :metadata_artifact, :string, 17
|
26
27
|
end
|
27
28
|
add_message "google.cloud.aiplatform.v1.ImportDataConfig" do
|
28
29
|
map :data_item_labels, :string, :string, 2
|
@@ -80,6 +80,36 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
80
80
|
repeated :data_items, :message, 1, "google.cloud.aiplatform.v1.DataItem"
|
81
81
|
optional :next_page_token, :string, 2
|
82
82
|
end
|
83
|
+
add_message "google.cloud.aiplatform.v1.SearchDataItemsRequest" do
|
84
|
+
optional :dataset, :string, 1
|
85
|
+
optional :saved_query, :string, 2
|
86
|
+
optional :data_labeling_job, :string, 3
|
87
|
+
optional :data_item_filter, :string, 4
|
88
|
+
optional :annotations_filter, :string, 5
|
89
|
+
repeated :annotation_filters, :string, 11
|
90
|
+
optional :field_mask, :message, 6, "google.protobuf.FieldMask"
|
91
|
+
optional :annotations_limit, :int32, 7
|
92
|
+
optional :page_size, :int32, 8
|
93
|
+
optional :order_by, :string, 9
|
94
|
+
optional :page_token, :string, 10
|
95
|
+
oneof :order do
|
96
|
+
optional :order_by_data_item, :string, 12
|
97
|
+
optional :order_by_annotation, :message, 13, "google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation"
|
98
|
+
end
|
99
|
+
end
|
100
|
+
add_message "google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation" do
|
101
|
+
optional :saved_query, :string, 1
|
102
|
+
optional :order_by, :string, 2
|
103
|
+
end
|
104
|
+
add_message "google.cloud.aiplatform.v1.SearchDataItemsResponse" do
|
105
|
+
repeated :data_item_views, :message, 1, "google.cloud.aiplatform.v1.DataItemView"
|
106
|
+
optional :next_page_token, :string, 2
|
107
|
+
end
|
108
|
+
add_message "google.cloud.aiplatform.v1.DataItemView" do
|
109
|
+
optional :data_item, :message, 1, "google.cloud.aiplatform.v1.DataItem"
|
110
|
+
repeated :annotations, :message, 2, "google.cloud.aiplatform.v1.Annotation"
|
111
|
+
optional :has_truncated_annotations, :bool, 3
|
112
|
+
end
|
83
113
|
add_message "google.cloud.aiplatform.v1.ListSavedQueriesRequest" do
|
84
114
|
optional :parent, :string, 1
|
85
115
|
optional :filter, :string, 2
|
@@ -130,6 +160,10 @@ module Google
|
|
130
160
|
ExportDataOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ExportDataOperationMetadata").msgclass
|
131
161
|
ListDataItemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListDataItemsRequest").msgclass
|
132
162
|
ListDataItemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListDataItemsResponse").msgclass
|
163
|
+
SearchDataItemsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.SearchDataItemsRequest").msgclass
|
164
|
+
SearchDataItemsRequest::OrderByAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.SearchDataItemsRequest.OrderByAnnotation").msgclass
|
165
|
+
SearchDataItemsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.SearchDataItemsResponse").msgclass
|
166
|
+
DataItemView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DataItemView").msgclass
|
133
167
|
ListSavedQueriesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListSavedQueriesRequest").msgclass
|
134
168
|
ListSavedQueriesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ListSavedQueriesResponse").msgclass
|
135
169
|
GetAnnotationSpecRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.GetAnnotationSpecRequest").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
|
+
# Searches DataItems in a Dataset.
|
54
|
+
rpc :SearchDataItems, ::Google::Cloud::AIPlatform::V1::SearchDataItemsRequest, ::Google::Cloud::AIPlatform::V1::SearchDataItemsResponse
|
53
55
|
# Lists SavedQueries in a Dataset.
|
54
56
|
rpc :ListSavedQueries, ::Google::Cloud::AIPlatform::V1::ListSavedQueriesRequest, ::Google::Cloud::AIPlatform::V1::ListSavedQueriesResponse
|
55
57
|
# Gets an AnnotationSpec.
|
@@ -13,6 +13,16 @@ require 'google/protobuf/timestamp_pb'
|
|
13
13
|
|
14
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
15
|
add_file("google/cloud/aiplatform/v1/featurestore_online_service.proto", :syntax => :proto3) do
|
16
|
+
add_message "google.cloud.aiplatform.v1.WriteFeatureValuesRequest" do
|
17
|
+
optional :entity_type, :string, 1
|
18
|
+
repeated :payloads, :message, 2, "google.cloud.aiplatform.v1.WriteFeatureValuesPayload"
|
19
|
+
end
|
20
|
+
add_message "google.cloud.aiplatform.v1.WriteFeatureValuesPayload" do
|
21
|
+
optional :entity_id, :string, 1
|
22
|
+
map :feature_values, :string, :message, 2, "google.cloud.aiplatform.v1.FeatureValue"
|
23
|
+
end
|
24
|
+
add_message "google.cloud.aiplatform.v1.WriteFeatureValuesResponse" do
|
25
|
+
end
|
16
26
|
add_message "google.cloud.aiplatform.v1.ReadFeatureValuesRequest" do
|
17
27
|
optional :entity_type, :string, 1
|
18
28
|
optional :entity_id, :string, 2
|
@@ -71,6 +81,9 @@ module Google
|
|
71
81
|
module Cloud
|
72
82
|
module AIPlatform
|
73
83
|
module V1
|
84
|
+
WriteFeatureValuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.WriteFeatureValuesRequest").msgclass
|
85
|
+
WriteFeatureValuesPayload = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.WriteFeatureValuesPayload").msgclass
|
86
|
+
WriteFeatureValuesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.WriteFeatureValuesResponse").msgclass
|
74
87
|
ReadFeatureValuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReadFeatureValuesRequest").msgclass
|
75
88
|
ReadFeatureValuesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReadFeatureValuesResponse").msgclass
|
76
89
|
ReadFeatureValuesResponse::FeatureDescriptor = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.ReadFeatureValuesResponse.FeatureDescriptor").msgclass
|
@@ -41,6 +41,12 @@ module Google
|
|
41
41
|
# for different entities may be broken
|
42
42
|
# up across multiple responses.
|
43
43
|
rpc :StreamingReadFeatureValues, ::Google::Cloud::AIPlatform::V1::StreamingReadFeatureValuesRequest, stream(::Google::Cloud::AIPlatform::V1::ReadFeatureValuesResponse)
|
44
|
+
# Writes Feature values of one or more entities of an EntityType.
|
45
|
+
#
|
46
|
+
# The Feature values are merged into existing entities if any. The Feature
|
47
|
+
# values to be written must have timestamp within the online storage
|
48
|
+
# retention.
|
49
|
+
rpc :WriteFeatureValues, ::Google::Cloud::AIPlatform::V1::WriteFeatureValuesRequest, ::Google::Cloud::AIPlatform::V1::WriteFeatureValuesResponse
|
44
50
|
end
|
45
51
|
|
46
52
|
Stub = Service.rpc_stub_class
|
@@ -209,6 +209,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
209
209
|
optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
|
210
210
|
optional :imported_entity_count, :int64, 2
|
211
211
|
optional :imported_feature_value_count, :int64, 3
|
212
|
+
repeated :source_uris, :string, 4
|
212
213
|
optional :invalid_row_count, :int64, 6
|
213
214
|
optional :timestamp_outside_retention_rows_count, :int64, 7
|
214
215
|
end
|
@@ -22,6 +22,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
22
|
optional :parent_model, :string, 4
|
23
23
|
optional :model_id, :string, 5
|
24
24
|
optional :model, :message, 2, "google.cloud.aiplatform.v1.Model"
|
25
|
+
optional :service_account, :string, 6
|
25
26
|
end
|
26
27
|
add_message "google.cloud.aiplatform.v1.UploadModelOperationMetadata" do
|
27
28
|
optional :generic_metadata, :message, 1, "google.cloud.aiplatform.v1.GenericOperationMetadata"
|