google-cloud-ai_platform-v1 0.22.0 → 0.24.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/endpoint_service/client.rb +121 -0
- data/lib/google/cloud/ai_platform/v1/endpoint_service/paths.rb +35 -9
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +2 -2
- data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +57 -10
- data/lib/google/cloud/ai_platform/v1/match_service/client.rb +531 -0
- data/lib/google/cloud/ai_platform/v1/match_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/match_service/paths.rb +52 -0
- data/lib/google/cloud/ai_platform/v1/match_service.rb +50 -0
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +4 -2
- data/lib/google/cloud/ai_platform/v1/model_service/paths.rb +36 -10
- data/lib/google/cloud/ai_platform/v1/pipeline_service/paths.rb +36 -10
- data/lib/google/cloud/ai_platform/v1/prediction_service/paths.rb +35 -9
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +4 -4
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +14 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_service_services_pb.rb +5 -0
- data/lib/google/cloud/aiplatform/v1/entity_type_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/explanation_pb.rb +40 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/match_service_pb.rb +63 -0
- data/lib/google/cloud/aiplatform/v1/match_service_services_pb.rb +49 -0
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +1 -0
- data/proto_docs/google/api/client.rb +10 -1
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +10 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +4 -4
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +6 -5
- data/proto_docs/google/cloud/aiplatform/v1/endpoint_service.rb +50 -0
- data/proto_docs/google/cloud/aiplatform/v1/entity_type.rb +7 -0
- data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +0 -4
- data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +91 -2
- data/proto_docs/google/cloud/aiplatform/v1/feature.rb +5 -4
- data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +8 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_online_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/match_service.rb +156 -0
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +3 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +4 -2
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_experiment.rb +8 -6
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +7 -6
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4fb9d2c0c08f62d6c6e350e8067e9a771da919c7c3465092afd576e7d94f159
|
4
|
+
data.tar.gz: 4e997cf49e37e81613dcaf4ad0aa887c07ff65524c2400b8121ab059ac6a17ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6cdd0917326e4ce3681327bfdd7fc81f0b274bc810a00a05863115f8d4bc192d901b55119c34d262758d1328eb59e6a73285731efdfd405b5c7af84ba53068b
|
7
|
+
data.tar.gz: 636944fb0edbe7846bf0354bafb5f7af97d87b856c4d68c5a0f6668b3e1a15e1d79bbe8878337b3ad85c5822f0e502f9954938ea29092603e3850b27996d9c63
|
@@ -915,6 +915,120 @@ module Google
|
|
915
915
|
raise ::Google::Cloud::Error.from_error(e)
|
916
916
|
end
|
917
917
|
|
918
|
+
##
|
919
|
+
# Updates an existing deployed model. Updatable fields include
|
920
|
+
# `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`,
|
921
|
+
# `disable_container_logging` (v1 only), and `enable_container_logging`
|
922
|
+
# (v1beta1 only).
|
923
|
+
#
|
924
|
+
# @overload mutate_deployed_model(request, options = nil)
|
925
|
+
# Pass arguments to `mutate_deployed_model` via a request object, either of type
|
926
|
+
# {::Google::Cloud::AIPlatform::V1::MutateDeployedModelRequest} or an equivalent Hash.
|
927
|
+
#
|
928
|
+
# @param request [::Google::Cloud::AIPlatform::V1::MutateDeployedModelRequest, ::Hash]
|
929
|
+
# A request object representing the call parameters. Required. To specify no
|
930
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
931
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
932
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
933
|
+
#
|
934
|
+
# @overload mutate_deployed_model(endpoint: nil, deployed_model: nil, update_mask: nil)
|
935
|
+
# Pass arguments to `mutate_deployed_model` via keyword arguments. Note that at
|
936
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
937
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
938
|
+
#
|
939
|
+
# @param endpoint [::String]
|
940
|
+
# Required. The name of the Endpoint resource into which to mutate a
|
941
|
+
# DeployedModel. Format:
|
942
|
+
# `projects/{project}/locations/{location}/endpoints/{endpoint}`
|
943
|
+
# @param deployed_model [::Google::Cloud::AIPlatform::V1::DeployedModel, ::Hash]
|
944
|
+
# Required. The DeployedModel to be mutated within the Endpoint. Only the
|
945
|
+
# following fields can be mutated:
|
946
|
+
#
|
947
|
+
# * `min_replica_count` in either
|
948
|
+
# {::Google::Cloud::AIPlatform::V1::DedicatedResources DedicatedResources} or
|
949
|
+
# {::Google::Cloud::AIPlatform::V1::AutomaticResources AutomaticResources}
|
950
|
+
# * `max_replica_count` in either
|
951
|
+
# {::Google::Cloud::AIPlatform::V1::DedicatedResources DedicatedResources} or
|
952
|
+
# {::Google::Cloud::AIPlatform::V1::AutomaticResources AutomaticResources}
|
953
|
+
# * {::Google::Cloud::AIPlatform::V1::DedicatedResources#autoscaling_metric_specs autoscaling_metric_specs}
|
954
|
+
# * `disable_container_logging` (v1 only)
|
955
|
+
# * `enable_container_logging` (v1beta1 only)
|
956
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
957
|
+
# Required. The update mask applies to the resource. See
|
958
|
+
# {::Google::Protobuf::FieldMask google.protobuf.FieldMask}.
|
959
|
+
#
|
960
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
961
|
+
# @yieldparam response [::Gapic::Operation]
|
962
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
963
|
+
#
|
964
|
+
# @return [::Gapic::Operation]
|
965
|
+
#
|
966
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
967
|
+
#
|
968
|
+
# @example Basic example
|
969
|
+
# require "google/cloud/ai_platform/v1"
|
970
|
+
#
|
971
|
+
# # Create a client object. The client can be reused for multiple calls.
|
972
|
+
# client = Google::Cloud::AIPlatform::V1::EndpointService::Client.new
|
973
|
+
#
|
974
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
975
|
+
# request = Google::Cloud::AIPlatform::V1::MutateDeployedModelRequest.new
|
976
|
+
#
|
977
|
+
# # Call the mutate_deployed_model method.
|
978
|
+
# result = client.mutate_deployed_model request
|
979
|
+
#
|
980
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
981
|
+
# # check the status of an operation, cancel it, or wait for results.
|
982
|
+
# # Here is how to wait for a response.
|
983
|
+
# result.wait_until_done! timeout: 60
|
984
|
+
# if result.response?
|
985
|
+
# p result.response
|
986
|
+
# else
|
987
|
+
# puts "No response received."
|
988
|
+
# end
|
989
|
+
#
|
990
|
+
def mutate_deployed_model request, options = nil
|
991
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
992
|
+
|
993
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::MutateDeployedModelRequest
|
994
|
+
|
995
|
+
# Converts hash and nil to an options object
|
996
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
997
|
+
|
998
|
+
# Customize the options with defaults
|
999
|
+
metadata = @config.rpcs.mutate_deployed_model.metadata.to_h
|
1000
|
+
|
1001
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1002
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1003
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1004
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1005
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1006
|
+
|
1007
|
+
header_params = {}
|
1008
|
+
if request.endpoint
|
1009
|
+
header_params["endpoint"] = request.endpoint
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1013
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1014
|
+
|
1015
|
+
options.apply_defaults timeout: @config.rpcs.mutate_deployed_model.timeout,
|
1016
|
+
metadata: metadata,
|
1017
|
+
retry_policy: @config.rpcs.mutate_deployed_model.retry_policy
|
1018
|
+
|
1019
|
+
options.apply_defaults timeout: @config.timeout,
|
1020
|
+
metadata: @config.metadata,
|
1021
|
+
retry_policy: @config.retry_policy
|
1022
|
+
|
1023
|
+
@endpoint_service_stub.call_rpc :mutate_deployed_model, request, options: options do |response, operation|
|
1024
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1025
|
+
yield response, operation if block_given?
|
1026
|
+
return response
|
1027
|
+
end
|
1028
|
+
rescue ::GRPC::BadStatus => e
|
1029
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1030
|
+
end
|
1031
|
+
|
918
1032
|
##
|
919
1033
|
# Configuration class for the EndpointService API.
|
920
1034
|
#
|
@@ -1085,6 +1199,11 @@ module Google
|
|
1085
1199
|
# @return [::Gapic::Config::Method]
|
1086
1200
|
#
|
1087
1201
|
attr_reader :undeploy_model
|
1202
|
+
##
|
1203
|
+
# RPC-specific configuration for `mutate_deployed_model`
|
1204
|
+
# @return [::Gapic::Config::Method]
|
1205
|
+
#
|
1206
|
+
attr_reader :mutate_deployed_model
|
1088
1207
|
|
1089
1208
|
# @private
|
1090
1209
|
def initialize parent_rpcs = nil
|
@@ -1102,6 +1221,8 @@ module Google
|
|
1102
1221
|
@deploy_model = ::Gapic::Config::Method.new deploy_model_config
|
1103
1222
|
undeploy_model_config = parent_rpcs.undeploy_model if parent_rpcs.respond_to? :undeploy_model
|
1104
1223
|
@undeploy_model = ::Gapic::Config::Method.new undeploy_model_config
|
1224
|
+
mutate_deployed_model_config = parent_rpcs.mutate_deployed_model if parent_rpcs.respond_to? :mutate_deployed_model
|
1225
|
+
@mutate_deployed_model = ::Gapic::Config::Method.new mutate_deployed_model_config
|
1105
1226
|
|
1106
1227
|
yield self if block_given?
|
1107
1228
|
end
|
@@ -27,20 +27,46 @@ module Google
|
|
27
27
|
##
|
28
28
|
# Create a fully-qualified Endpoint resource string.
|
29
29
|
#
|
30
|
-
#
|
30
|
+
# @overload endpoint_path(project:, location:, endpoint:)
|
31
|
+
# The resource will be in the following format:
|
31
32
|
#
|
32
|
-
#
|
33
|
+
# `projects/{project}/locations/{location}/endpoints/{endpoint}`
|
33
34
|
#
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
35
|
+
# @param project [String]
|
36
|
+
# @param location [String]
|
37
|
+
# @param endpoint [String]
|
38
|
+
#
|
39
|
+
# @overload endpoint_path(project:, location:, publisher:, model:)
|
40
|
+
# The resource will be in the following format:
|
41
|
+
#
|
42
|
+
# `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
|
43
|
+
#
|
44
|
+
# @param project [String]
|
45
|
+
# @param location [String]
|
46
|
+
# @param publisher [String]
|
47
|
+
# @param model [String]
|
37
48
|
#
|
38
49
|
# @return [::String]
|
39
|
-
def endpoint_path
|
40
|
-
|
41
|
-
|
50
|
+
def endpoint_path **args
|
51
|
+
resources = {
|
52
|
+
"endpoint:location:project" => (proc do |project:, location:, endpoint:|
|
53
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
54
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
55
|
+
|
56
|
+
"projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
|
57
|
+
end),
|
58
|
+
"location:model:project:publisher" => (proc do |project:, location:, publisher:, model:|
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
60
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "publisher cannot contain /" if publisher.to_s.include? "/"
|
62
|
+
|
63
|
+
"projects/#{project}/locations/#{location}/publishers/#{publisher}/models/#{model}"
|
64
|
+
end)
|
65
|
+
}
|
42
66
|
|
43
|
-
"
|
67
|
+
resource = resources[args.keys.sort.join(":")]
|
68
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
69
|
+
resource.call(**args)
|
44
70
|
end
|
45
71
|
|
46
72
|
##
|
@@ -546,7 +546,7 @@ module Google
|
|
546
546
|
# * `labels`
|
547
547
|
# * `online_serving_config.fixed_node_count`
|
548
548
|
# * `online_serving_config.scaling`
|
549
|
-
# * `online_storage_ttl_days`
|
549
|
+
# * `online_storage_ttl_days`
|
550
550
|
#
|
551
551
|
# @yield [response, operation] Access the result along with the RPC operation
|
552
552
|
# @yieldparam response [::Gapic::Operation]
|
@@ -1089,7 +1089,7 @@ module Google
|
|
1089
1089
|
# * `monitoring_config.import_features_analysis.anomaly_detection_baseline`
|
1090
1090
|
# * `monitoring_config.numerical_threshold_config.value`
|
1091
1091
|
# * `monitoring_config.categorical_threshold_config.value`
|
1092
|
-
# * `offline_storage_ttl_days`
|
1092
|
+
# * `offline_storage_ttl_days`
|
1093
1093
|
#
|
1094
1094
|
# @yield [response, operation] Access the result along with the RPC operation
|
1095
1095
|
# @yieldparam response [::Google::Cloud::AIPlatform::V1::EntityType]
|
@@ -43,6 +43,27 @@ module Google
|
|
43
43
|
"projects/#{project}/locations/#{location}/batchPredictionJobs/#{batch_prediction_job}"
|
44
44
|
end
|
45
45
|
|
46
|
+
##
|
47
|
+
# Create a fully-qualified Context resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param metadata_store [String]
|
56
|
+
# @param context [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def context_path project:, location:, metadata_store:, context:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "metadata_store cannot contain /" if metadata_store.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/metadataStores/#{metadata_store}/contexts/#{context}"
|
65
|
+
end
|
66
|
+
|
46
67
|
##
|
47
68
|
# Create a fully-qualified CustomJob resource string.
|
48
69
|
#
|
@@ -103,20 +124,46 @@ module Google
|
|
103
124
|
##
|
104
125
|
# Create a fully-qualified Endpoint resource string.
|
105
126
|
#
|
106
|
-
#
|
127
|
+
# @overload endpoint_path(project:, location:, endpoint:)
|
128
|
+
# The resource will be in the following format:
|
107
129
|
#
|
108
|
-
#
|
130
|
+
# `projects/{project}/locations/{location}/endpoints/{endpoint}`
|
109
131
|
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
132
|
+
# @param project [String]
|
133
|
+
# @param location [String]
|
134
|
+
# @param endpoint [String]
|
135
|
+
#
|
136
|
+
# @overload endpoint_path(project:, location:, publisher:, model:)
|
137
|
+
# The resource will be in the following format:
|
138
|
+
#
|
139
|
+
# `projects/{project}/locations/{location}/publishers/{publisher}/models/{model}`
|
140
|
+
#
|
141
|
+
# @param project [String]
|
142
|
+
# @param location [String]
|
143
|
+
# @param publisher [String]
|
144
|
+
# @param model [String]
|
113
145
|
#
|
114
146
|
# @return [::String]
|
115
|
-
def endpoint_path
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
147
|
+
def endpoint_path **args
|
148
|
+
resources = {
|
149
|
+
"endpoint:location:project" => (proc do |project:, location:, endpoint:|
|
150
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
151
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
152
|
+
|
153
|
+
"projects/#{project}/locations/#{location}/endpoints/#{endpoint}"
|
154
|
+
end),
|
155
|
+
"location:model:project:publisher" => (proc do |project:, location:, publisher:, model:|
|
156
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
157
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
158
|
+
raise ::ArgumentError, "publisher cannot contain /" if publisher.to_s.include? "/"
|
159
|
+
|
160
|
+
"projects/#{project}/locations/#{location}/publishers/#{publisher}/models/#{model}"
|
161
|
+
end)
|
162
|
+
}
|
163
|
+
|
164
|
+
resource = resources[args.keys.sort.join(":")]
|
165
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
166
|
+
resource.call(**args)
|
120
167
|
end
|
121
168
|
|
122
169
|
##
|