google-cloud-ai_platform-v1 0.32.0 → 0.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +516 -0
- data/lib/google/cloud/ai_platform/v1/dataset_service/paths.rb +21 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/client.rb +1796 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/operations.rb +787 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service/paths.rb +111 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_admin_service.rb +51 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/client.rb +431 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service/paths.rb +54 -0
- data/lib/google/cloud/ai_platform/v1/feature_online_store_service.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/client.rb +1498 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/credentials.rb +47 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/operations.rb +787 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service/paths.rb +139 -0
- data/lib/google/cloud/ai_platform/v1/feature_registry_service.rb +51 -0
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +20 -7
- data/lib/google/cloud/ai_platform/v1/featurestore_service/paths.rb +53 -8
- data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +17 -0
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +2 -2
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1.rb +3 -0
- data/lib/google/cloud/aiplatform/v1/custom_job_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +9 -1
- data/lib/google/cloud/aiplatform/v1/dataset_service_services_pb.rb +10 -0
- data/lib/google/cloud/aiplatform/v1/dataset_version_pb.rb +47 -0
- data/lib/google/cloud/aiplatform/v1/feature_group_pb.rb +50 -0
- data/lib/google/cloud/aiplatform/v1/feature_online_store_admin_service_pb.rb +79 -0
- data/lib/google/cloud/aiplatform/v1/feature_online_store_admin_service_services_pb.rb +71 -0
- data/lib/google/cloud/aiplatform/v1/feature_online_store_pb.rb +50 -0
- data/lib/google/cloud/aiplatform/v1/feature_online_store_service_pb.rb +56 -0
- data/lib/google/cloud/aiplatform/v1/feature_online_store_service_services_pb.rb +44 -0
- data/lib/google/cloud/aiplatform/v1/feature_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/feature_registry_service_pb.rb +66 -0
- data/lib/google/cloud/aiplatform/v1/feature_registry_service_services_pb.rb +64 -0
- data/lib/google/cloud/aiplatform/v1/feature_view_pb.rb +51 -0
- data/lib/google/cloud/aiplatform/v1/feature_view_sync_pb.rb +51 -0
- data/lib/google/cloud/aiplatform/v1/index_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/machine_resources_pb.rb +2 -1
- data/lib/google/cloud/aiplatform/v1/model_monitoring_pb.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/prediction_service_pb.rb +3 -1
- data/lib/google/cloud/aiplatform/v1/study_pb.rb +5 -1
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +6 -0
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +99 -2
- data/proto_docs/google/cloud/aiplatform/v1/dataset_version.rb +48 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/feature.rb +21 -10
- data/proto_docs/google/cloud/aiplatform/v1/feature_group.rb +91 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store.rb +124 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_admin_service.rb +458 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_online_store_service.rb +102 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_registry_service.rb +208 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_view.rb +131 -0
- data/proto_docs/google/cloud/aiplatform/v1/feature_view_sync.rb +48 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +32 -7
- data/proto_docs/google/cloud/aiplatform/v1/index.rb +58 -5
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +9 -5
- data/proto_docs/google/cloud/aiplatform/v1/machine_resources.rb +21 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +5 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +3 -1
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_service.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/prediction_service.rb +28 -0
- data/proto_docs/google/cloud/aiplatform/v1/study.rb +75 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +2 -2
- metadata +35 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb52548f5d070c67fa9b16c58f2d65cefb1059cd0edc93c8272f32c320f0018f
|
4
|
+
data.tar.gz: f9923f1d5b4d903cf2517cf2a9cb89c081550d0bcb459401883feb270cda29ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0dc9e95af82684f6357b43b3bb57675703b8accc2594a089f8fd732ff04a5bdfb8f5dc439ba2a681da16c7b29ec48d711c8c6e16cdfc6434d6b4b253b334955
|
7
|
+
data.tar.gz: 339a7a84d83d3a68d02c1585c5e5d4a7b5186fa2f48518100d6bca9d19384ae3e7a470ec053088a11b660d0f302b616999c490896b3a9bf97c1b4dc52bb9e7b3
|
@@ -872,6 +872,487 @@ module Google
|
|
872
872
|
raise ::Google::Cloud::Error.from_error(e)
|
873
873
|
end
|
874
874
|
|
875
|
+
##
|
876
|
+
# Create a version from a Dataset.
|
877
|
+
#
|
878
|
+
# @overload create_dataset_version(request, options = nil)
|
879
|
+
# Pass arguments to `create_dataset_version` via a request object, either of type
|
880
|
+
# {::Google::Cloud::AIPlatform::V1::CreateDatasetVersionRequest} or an equivalent Hash.
|
881
|
+
#
|
882
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CreateDatasetVersionRequest, ::Hash]
|
883
|
+
# A request object representing the call parameters. Required. To specify no
|
884
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
885
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
886
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
887
|
+
#
|
888
|
+
# @overload create_dataset_version(parent: nil, dataset_version: nil)
|
889
|
+
# Pass arguments to `create_dataset_version` via keyword arguments. Note that at
|
890
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
891
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
892
|
+
#
|
893
|
+
# @param parent [::String]
|
894
|
+
# Required. The name of the Dataset resource.
|
895
|
+
# Format:
|
896
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
897
|
+
# @param dataset_version [::Google::Cloud::AIPlatform::V1::DatasetVersion, ::Hash]
|
898
|
+
# Required. The version to be created. The same CMEK policies with the
|
899
|
+
# original Dataset will be applied the dataset version. So here we don't need
|
900
|
+
# to specify the EncryptionSpecType here.
|
901
|
+
#
|
902
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
903
|
+
# @yieldparam response [::Gapic::Operation]
|
904
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
905
|
+
#
|
906
|
+
# @return [::Gapic::Operation]
|
907
|
+
#
|
908
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
909
|
+
#
|
910
|
+
# @example Basic example
|
911
|
+
# require "google/cloud/ai_platform/v1"
|
912
|
+
#
|
913
|
+
# # Create a client object. The client can be reused for multiple calls.
|
914
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
915
|
+
#
|
916
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
917
|
+
# request = Google::Cloud::AIPlatform::V1::CreateDatasetVersionRequest.new
|
918
|
+
#
|
919
|
+
# # Call the create_dataset_version method.
|
920
|
+
# result = client.create_dataset_version request
|
921
|
+
#
|
922
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
923
|
+
# # check the status of an operation, cancel it, or wait for results.
|
924
|
+
# # Here is how to wait for a response.
|
925
|
+
# result.wait_until_done! timeout: 60
|
926
|
+
# if result.response?
|
927
|
+
# p result.response
|
928
|
+
# else
|
929
|
+
# puts "No response received."
|
930
|
+
# end
|
931
|
+
#
|
932
|
+
def create_dataset_version request, options = nil
|
933
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
934
|
+
|
935
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateDatasetVersionRequest
|
936
|
+
|
937
|
+
# Converts hash and nil to an options object
|
938
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
939
|
+
|
940
|
+
# Customize the options with defaults
|
941
|
+
metadata = @config.rpcs.create_dataset_version.metadata.to_h
|
942
|
+
|
943
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
944
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
945
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
946
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
947
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
948
|
+
|
949
|
+
header_params = {}
|
950
|
+
if request.parent
|
951
|
+
header_params["parent"] = request.parent
|
952
|
+
end
|
953
|
+
|
954
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
955
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
956
|
+
|
957
|
+
options.apply_defaults timeout: @config.rpcs.create_dataset_version.timeout,
|
958
|
+
metadata: metadata,
|
959
|
+
retry_policy: @config.rpcs.create_dataset_version.retry_policy
|
960
|
+
|
961
|
+
options.apply_defaults timeout: @config.timeout,
|
962
|
+
metadata: @config.metadata,
|
963
|
+
retry_policy: @config.retry_policy
|
964
|
+
|
965
|
+
@dataset_service_stub.call_rpc :create_dataset_version, request, options: options do |response, operation|
|
966
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
967
|
+
yield response, operation if block_given?
|
968
|
+
return response
|
969
|
+
end
|
970
|
+
rescue ::GRPC::BadStatus => e
|
971
|
+
raise ::Google::Cloud::Error.from_error(e)
|
972
|
+
end
|
973
|
+
|
974
|
+
##
|
975
|
+
# Deletes a Dataset version.
|
976
|
+
#
|
977
|
+
# @overload delete_dataset_version(request, options = nil)
|
978
|
+
# Pass arguments to `delete_dataset_version` via a request object, either of type
|
979
|
+
# {::Google::Cloud::AIPlatform::V1::DeleteDatasetVersionRequest} or an equivalent Hash.
|
980
|
+
#
|
981
|
+
# @param request [::Google::Cloud::AIPlatform::V1::DeleteDatasetVersionRequest, ::Hash]
|
982
|
+
# A request object representing the call parameters. Required. To specify no
|
983
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
984
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
985
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
986
|
+
#
|
987
|
+
# @overload delete_dataset_version(name: nil)
|
988
|
+
# Pass arguments to `delete_dataset_version` via keyword arguments. Note that at
|
989
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
990
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
991
|
+
#
|
992
|
+
# @param name [::String]
|
993
|
+
# Required. The resource name of the Dataset version to delete.
|
994
|
+
# Format:
|
995
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
|
996
|
+
#
|
997
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
998
|
+
# @yieldparam response [::Gapic::Operation]
|
999
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1000
|
+
#
|
1001
|
+
# @return [::Gapic::Operation]
|
1002
|
+
#
|
1003
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1004
|
+
#
|
1005
|
+
# @example Basic example
|
1006
|
+
# require "google/cloud/ai_platform/v1"
|
1007
|
+
#
|
1008
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1009
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
1010
|
+
#
|
1011
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1012
|
+
# request = Google::Cloud::AIPlatform::V1::DeleteDatasetVersionRequest.new
|
1013
|
+
#
|
1014
|
+
# # Call the delete_dataset_version method.
|
1015
|
+
# result = client.delete_dataset_version request
|
1016
|
+
#
|
1017
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1018
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1019
|
+
# # Here is how to wait for a response.
|
1020
|
+
# result.wait_until_done! timeout: 60
|
1021
|
+
# if result.response?
|
1022
|
+
# p result.response
|
1023
|
+
# else
|
1024
|
+
# puts "No response received."
|
1025
|
+
# end
|
1026
|
+
#
|
1027
|
+
def delete_dataset_version request, options = nil
|
1028
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1029
|
+
|
1030
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteDatasetVersionRequest
|
1031
|
+
|
1032
|
+
# Converts hash and nil to an options object
|
1033
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1034
|
+
|
1035
|
+
# Customize the options with defaults
|
1036
|
+
metadata = @config.rpcs.delete_dataset_version.metadata.to_h
|
1037
|
+
|
1038
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1039
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1040
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1041
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1042
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1043
|
+
|
1044
|
+
header_params = {}
|
1045
|
+
if request.name
|
1046
|
+
header_params["name"] = request.name
|
1047
|
+
end
|
1048
|
+
|
1049
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1050
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1051
|
+
|
1052
|
+
options.apply_defaults timeout: @config.rpcs.delete_dataset_version.timeout,
|
1053
|
+
metadata: metadata,
|
1054
|
+
retry_policy: @config.rpcs.delete_dataset_version.retry_policy
|
1055
|
+
|
1056
|
+
options.apply_defaults timeout: @config.timeout,
|
1057
|
+
metadata: @config.metadata,
|
1058
|
+
retry_policy: @config.retry_policy
|
1059
|
+
|
1060
|
+
@dataset_service_stub.call_rpc :delete_dataset_version, request, options: options do |response, operation|
|
1061
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1062
|
+
yield response, operation if block_given?
|
1063
|
+
return response
|
1064
|
+
end
|
1065
|
+
rescue ::GRPC::BadStatus => e
|
1066
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
##
|
1070
|
+
# Gets a Dataset version.
|
1071
|
+
#
|
1072
|
+
# @overload get_dataset_version(request, options = nil)
|
1073
|
+
# Pass arguments to `get_dataset_version` via a request object, either of type
|
1074
|
+
# {::Google::Cloud::AIPlatform::V1::GetDatasetVersionRequest} or an equivalent Hash.
|
1075
|
+
#
|
1076
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetDatasetVersionRequest, ::Hash]
|
1077
|
+
# A request object representing the call parameters. Required. To specify no
|
1078
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1079
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1080
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1081
|
+
#
|
1082
|
+
# @overload get_dataset_version(name: nil, read_mask: nil)
|
1083
|
+
# Pass arguments to `get_dataset_version` via keyword arguments. Note that at
|
1084
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1085
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1086
|
+
#
|
1087
|
+
# @param name [::String]
|
1088
|
+
# Required. The resource name of the Dataset version to delete.
|
1089
|
+
# Format:
|
1090
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
|
1091
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1092
|
+
# Mask specifying which fields to read.
|
1093
|
+
#
|
1094
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1095
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::DatasetVersion]
|
1096
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1097
|
+
#
|
1098
|
+
# @return [::Google::Cloud::AIPlatform::V1::DatasetVersion]
|
1099
|
+
#
|
1100
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1101
|
+
#
|
1102
|
+
# @example Basic example
|
1103
|
+
# require "google/cloud/ai_platform/v1"
|
1104
|
+
#
|
1105
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1106
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
1107
|
+
#
|
1108
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1109
|
+
# request = Google::Cloud::AIPlatform::V1::GetDatasetVersionRequest.new
|
1110
|
+
#
|
1111
|
+
# # Call the get_dataset_version method.
|
1112
|
+
# result = client.get_dataset_version request
|
1113
|
+
#
|
1114
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::DatasetVersion.
|
1115
|
+
# p result
|
1116
|
+
#
|
1117
|
+
def get_dataset_version request, options = nil
|
1118
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1119
|
+
|
1120
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetDatasetVersionRequest
|
1121
|
+
|
1122
|
+
# Converts hash and nil to an options object
|
1123
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1124
|
+
|
1125
|
+
# Customize the options with defaults
|
1126
|
+
metadata = @config.rpcs.get_dataset_version.metadata.to_h
|
1127
|
+
|
1128
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1129
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1130
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1131
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1132
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1133
|
+
|
1134
|
+
header_params = {}
|
1135
|
+
if request.name
|
1136
|
+
header_params["name"] = request.name
|
1137
|
+
end
|
1138
|
+
|
1139
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1140
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1141
|
+
|
1142
|
+
options.apply_defaults timeout: @config.rpcs.get_dataset_version.timeout,
|
1143
|
+
metadata: metadata,
|
1144
|
+
retry_policy: @config.rpcs.get_dataset_version.retry_policy
|
1145
|
+
|
1146
|
+
options.apply_defaults timeout: @config.timeout,
|
1147
|
+
metadata: @config.metadata,
|
1148
|
+
retry_policy: @config.retry_policy
|
1149
|
+
|
1150
|
+
@dataset_service_stub.call_rpc :get_dataset_version, request, options: options do |response, operation|
|
1151
|
+
yield response, operation if block_given?
|
1152
|
+
return response
|
1153
|
+
end
|
1154
|
+
rescue ::GRPC::BadStatus => e
|
1155
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
##
|
1159
|
+
# Lists DatasetVersions in a Dataset.
|
1160
|
+
#
|
1161
|
+
# @overload list_dataset_versions(request, options = nil)
|
1162
|
+
# Pass arguments to `list_dataset_versions` via a request object, either of type
|
1163
|
+
# {::Google::Cloud::AIPlatform::V1::ListDatasetVersionsRequest} or an equivalent Hash.
|
1164
|
+
#
|
1165
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListDatasetVersionsRequest, ::Hash]
|
1166
|
+
# A request object representing the call parameters. Required. To specify no
|
1167
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1168
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1169
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1170
|
+
#
|
1171
|
+
# @overload list_dataset_versions(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil)
|
1172
|
+
# Pass arguments to `list_dataset_versions` via keyword arguments. Note that at
|
1173
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1174
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1175
|
+
#
|
1176
|
+
# @param parent [::String]
|
1177
|
+
# Required. The resource name of the Dataset to list DatasetVersions from.
|
1178
|
+
# Format:
|
1179
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}`
|
1180
|
+
# @param filter [::String]
|
1181
|
+
# Optional. The standard list filter.
|
1182
|
+
# @param page_size [::Integer]
|
1183
|
+
# Optional. The standard list page size.
|
1184
|
+
# @param page_token [::String]
|
1185
|
+
# Optional. The standard list page token.
|
1186
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1187
|
+
# Optional. Mask specifying which fields to read.
|
1188
|
+
# @param order_by [::String]
|
1189
|
+
# Optional. A comma-separated list of fields to order by, sorted in ascending
|
1190
|
+
# order. Use "desc" after a field name for descending.
|
1191
|
+
#
|
1192
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1193
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DatasetVersion>]
|
1194
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1195
|
+
#
|
1196
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DatasetVersion>]
|
1197
|
+
#
|
1198
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1199
|
+
#
|
1200
|
+
# @example Basic example
|
1201
|
+
# require "google/cloud/ai_platform/v1"
|
1202
|
+
#
|
1203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1204
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
1205
|
+
#
|
1206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1207
|
+
# request = Google::Cloud::AIPlatform::V1::ListDatasetVersionsRequest.new
|
1208
|
+
#
|
1209
|
+
# # Call the list_dataset_versions method.
|
1210
|
+
# result = client.list_dataset_versions request
|
1211
|
+
#
|
1212
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1213
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1214
|
+
# result.each do |item|
|
1215
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::DatasetVersion.
|
1216
|
+
# p item
|
1217
|
+
# end
|
1218
|
+
#
|
1219
|
+
def list_dataset_versions request, options = nil
|
1220
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1221
|
+
|
1222
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListDatasetVersionsRequest
|
1223
|
+
|
1224
|
+
# Converts hash and nil to an options object
|
1225
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1226
|
+
|
1227
|
+
# Customize the options with defaults
|
1228
|
+
metadata = @config.rpcs.list_dataset_versions.metadata.to_h
|
1229
|
+
|
1230
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1231
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1232
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1233
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1234
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1235
|
+
|
1236
|
+
header_params = {}
|
1237
|
+
if request.parent
|
1238
|
+
header_params["parent"] = request.parent
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1242
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1243
|
+
|
1244
|
+
options.apply_defaults timeout: @config.rpcs.list_dataset_versions.timeout,
|
1245
|
+
metadata: metadata,
|
1246
|
+
retry_policy: @config.rpcs.list_dataset_versions.retry_policy
|
1247
|
+
|
1248
|
+
options.apply_defaults timeout: @config.timeout,
|
1249
|
+
metadata: @config.metadata,
|
1250
|
+
retry_policy: @config.retry_policy
|
1251
|
+
|
1252
|
+
@dataset_service_stub.call_rpc :list_dataset_versions, request, options: options do |response, operation|
|
1253
|
+
response = ::Gapic::PagedEnumerable.new @dataset_service_stub, :list_dataset_versions, request, response, operation, options
|
1254
|
+
yield response, operation if block_given?
|
1255
|
+
return response
|
1256
|
+
end
|
1257
|
+
rescue ::GRPC::BadStatus => e
|
1258
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1259
|
+
end
|
1260
|
+
|
1261
|
+
##
|
1262
|
+
# Restores a dataset version.
|
1263
|
+
#
|
1264
|
+
# @overload restore_dataset_version(request, options = nil)
|
1265
|
+
# Pass arguments to `restore_dataset_version` via a request object, either of type
|
1266
|
+
# {::Google::Cloud::AIPlatform::V1::RestoreDatasetVersionRequest} or an equivalent Hash.
|
1267
|
+
#
|
1268
|
+
# @param request [::Google::Cloud::AIPlatform::V1::RestoreDatasetVersionRequest, ::Hash]
|
1269
|
+
# A request object representing the call parameters. Required. To specify no
|
1270
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1271
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1272
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1273
|
+
#
|
1274
|
+
# @overload restore_dataset_version(name: nil)
|
1275
|
+
# Pass arguments to `restore_dataset_version` via keyword arguments. Note that at
|
1276
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1277
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1278
|
+
#
|
1279
|
+
# @param name [::String]
|
1280
|
+
# Required. The name of the DatasetVersion resource.
|
1281
|
+
# Format:
|
1282
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
|
1283
|
+
#
|
1284
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1285
|
+
# @yieldparam response [::Gapic::Operation]
|
1286
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1287
|
+
#
|
1288
|
+
# @return [::Gapic::Operation]
|
1289
|
+
#
|
1290
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1291
|
+
#
|
1292
|
+
# @example Basic example
|
1293
|
+
# require "google/cloud/ai_platform/v1"
|
1294
|
+
#
|
1295
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1296
|
+
# client = Google::Cloud::AIPlatform::V1::DatasetService::Client.new
|
1297
|
+
#
|
1298
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1299
|
+
# request = Google::Cloud::AIPlatform::V1::RestoreDatasetVersionRequest.new
|
1300
|
+
#
|
1301
|
+
# # Call the restore_dataset_version method.
|
1302
|
+
# result = client.restore_dataset_version request
|
1303
|
+
#
|
1304
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1305
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1306
|
+
# # Here is how to wait for a response.
|
1307
|
+
# result.wait_until_done! timeout: 60
|
1308
|
+
# if result.response?
|
1309
|
+
# p result.response
|
1310
|
+
# else
|
1311
|
+
# puts "No response received."
|
1312
|
+
# end
|
1313
|
+
#
|
1314
|
+
def restore_dataset_version request, options = nil
|
1315
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1316
|
+
|
1317
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::RestoreDatasetVersionRequest
|
1318
|
+
|
1319
|
+
# Converts hash and nil to an options object
|
1320
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1321
|
+
|
1322
|
+
# Customize the options with defaults
|
1323
|
+
metadata = @config.rpcs.restore_dataset_version.metadata.to_h
|
1324
|
+
|
1325
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1326
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1327
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1328
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1329
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1330
|
+
|
1331
|
+
header_params = {}
|
1332
|
+
if request.name
|
1333
|
+
header_params["name"] = request.name
|
1334
|
+
end
|
1335
|
+
|
1336
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1337
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1338
|
+
|
1339
|
+
options.apply_defaults timeout: @config.rpcs.restore_dataset_version.timeout,
|
1340
|
+
metadata: metadata,
|
1341
|
+
retry_policy: @config.rpcs.restore_dataset_version.retry_policy
|
1342
|
+
|
1343
|
+
options.apply_defaults timeout: @config.timeout,
|
1344
|
+
metadata: @config.metadata,
|
1345
|
+
retry_policy: @config.retry_policy
|
1346
|
+
|
1347
|
+
@dataset_service_stub.call_rpc :restore_dataset_version, request, options: options do |response, operation|
|
1348
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1349
|
+
yield response, operation if block_given?
|
1350
|
+
return response
|
1351
|
+
end
|
1352
|
+
rescue ::GRPC::BadStatus => e
|
1353
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1354
|
+
end
|
1355
|
+
|
875
1356
|
##
|
876
1357
|
# Lists DataItems in a Dataset.
|
877
1358
|
#
|
@@ -1697,6 +2178,31 @@ module Google
|
|
1697
2178
|
#
|
1698
2179
|
attr_reader :export_data
|
1699
2180
|
##
|
2181
|
+
# RPC-specific configuration for `create_dataset_version`
|
2182
|
+
# @return [::Gapic::Config::Method]
|
2183
|
+
#
|
2184
|
+
attr_reader :create_dataset_version
|
2185
|
+
##
|
2186
|
+
# RPC-specific configuration for `delete_dataset_version`
|
2187
|
+
# @return [::Gapic::Config::Method]
|
2188
|
+
#
|
2189
|
+
attr_reader :delete_dataset_version
|
2190
|
+
##
|
2191
|
+
# RPC-specific configuration for `get_dataset_version`
|
2192
|
+
# @return [::Gapic::Config::Method]
|
2193
|
+
#
|
2194
|
+
attr_reader :get_dataset_version
|
2195
|
+
##
|
2196
|
+
# RPC-specific configuration for `list_dataset_versions`
|
2197
|
+
# @return [::Gapic::Config::Method]
|
2198
|
+
#
|
2199
|
+
attr_reader :list_dataset_versions
|
2200
|
+
##
|
2201
|
+
# RPC-specific configuration for `restore_dataset_version`
|
2202
|
+
# @return [::Gapic::Config::Method]
|
2203
|
+
#
|
2204
|
+
attr_reader :restore_dataset_version
|
2205
|
+
##
|
1700
2206
|
# RPC-specific configuration for `list_data_items`
|
1701
2207
|
# @return [::Gapic::Config::Method]
|
1702
2208
|
#
|
@@ -1743,6 +2249,16 @@ module Google
|
|
1743
2249
|
@import_data = ::Gapic::Config::Method.new import_data_config
|
1744
2250
|
export_data_config = parent_rpcs.export_data if parent_rpcs.respond_to? :export_data
|
1745
2251
|
@export_data = ::Gapic::Config::Method.new export_data_config
|
2252
|
+
create_dataset_version_config = parent_rpcs.create_dataset_version if parent_rpcs.respond_to? :create_dataset_version
|
2253
|
+
@create_dataset_version = ::Gapic::Config::Method.new create_dataset_version_config
|
2254
|
+
delete_dataset_version_config = parent_rpcs.delete_dataset_version if parent_rpcs.respond_to? :delete_dataset_version
|
2255
|
+
@delete_dataset_version = ::Gapic::Config::Method.new delete_dataset_version_config
|
2256
|
+
get_dataset_version_config = parent_rpcs.get_dataset_version if parent_rpcs.respond_to? :get_dataset_version
|
2257
|
+
@get_dataset_version = ::Gapic::Config::Method.new get_dataset_version_config
|
2258
|
+
list_dataset_versions_config = parent_rpcs.list_dataset_versions if parent_rpcs.respond_to? :list_dataset_versions
|
2259
|
+
@list_dataset_versions = ::Gapic::Config::Method.new list_dataset_versions_config
|
2260
|
+
restore_dataset_version_config = parent_rpcs.restore_dataset_version if parent_rpcs.respond_to? :restore_dataset_version
|
2261
|
+
@restore_dataset_version = ::Gapic::Config::Method.new restore_dataset_version_config
|
1746
2262
|
list_data_items_config = parent_rpcs.list_data_items if parent_rpcs.respond_to? :list_data_items
|
1747
2263
|
@list_data_items = ::Gapic::Config::Method.new list_data_items_config
|
1748
2264
|
search_data_items_config = parent_rpcs.search_data_items if parent_rpcs.respond_to? :search_data_items
|
@@ -85,6 +85,27 @@ module Google
|
|
85
85
|
"projects/#{project}/locations/#{location}/datasets/#{dataset}"
|
86
86
|
end
|
87
87
|
|
88
|
+
##
|
89
|
+
# Create a fully-qualified DatasetVersion resource string.
|
90
|
+
#
|
91
|
+
# The resource will be in the following format:
|
92
|
+
#
|
93
|
+
# `projects/{project}/locations/{location}/datasets/{dataset}/datasetVersions/{dataset_version}`
|
94
|
+
#
|
95
|
+
# @param project [String]
|
96
|
+
# @param location [String]
|
97
|
+
# @param dataset [String]
|
98
|
+
# @param dataset_version [String]
|
99
|
+
#
|
100
|
+
# @return [::String]
|
101
|
+
def dataset_version_path project:, location:, dataset:, dataset_version:
|
102
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
103
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
104
|
+
raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
|
105
|
+
|
106
|
+
"projects/#{project}/locations/#{location}/datasets/#{dataset}/datasetVersions/#{dataset_version}"
|
107
|
+
end
|
108
|
+
|
88
109
|
##
|
89
110
|
# Create a fully-qualified Location resource string.
|
90
111
|
#
|