google-cloud-ai_platform-v1 0.9.1 → 0.12.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 +2 -0
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +192 -0
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +47 -42
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +4 -1
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +18 -14
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +1 -1
- data/lib/google/cloud/aiplatform/v1/index_pb.rb +30 -0
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +16 -0
- data/lib/google/cloud/aiplatform/v1/index_service_services_pb.rb +4 -0
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +7 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/custom_job.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/dataset_service.rb +2 -0
- data/proto_docs/google/cloud/aiplatform/v1/explanation.rb +2 -2
- data/proto_docs/google/cloud/aiplatform/v1/index.rb +88 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_service.rb +40 -0
- data/proto_docs/google/cloud/aiplatform/v1/job_service.rb +47 -42
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_monitoring.rb +2 -4
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +4 -1
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +26 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_service.rb +18 -13
- data/proto_docs/google/cloud/aiplatform/v1/saved_query.rb +1 -0
- data/proto_docs/google/cloud/aiplatform/v1/study.rb +7 -7
- data/proto_docs/google/cloud/aiplatform/v1/types.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/vizier_service.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e0f0901e313ad5a36849d8860a23ab471ed9d3cf26e0cc26013c91d6f00225d
|
4
|
+
data.tar.gz: 77fed0c78f95acfbf3f4a09c016fc4bdea3c2279545272a7376ece04915327b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2425933e026298ed84a4929c64ce202e01e8a142f5b6b7ae1b318de8111a1e173cc8753bd4a5691f534c2b984835cbbcc0142b3a412304c9799922fbb1ed6fb5
|
7
|
+
data.tar.gz: 27824c873457b05039a76ab8f3343e7a2421158dae41f7d8eaa9d0ad1fd5c1d5b66c63a9ae182a03b75a287ae192695720770d1e38212fcc82f7c76ce533c4e5
|
@@ -495,6 +495,7 @@ module Google
|
|
495
495
|
# * A key including a space must be quoted. `labels."a key"`.
|
496
496
|
#
|
497
497
|
# Some examples:
|
498
|
+
#
|
498
499
|
# * `displayName="myDisplayName"`
|
499
500
|
# * `labels.myKey="myValue"`
|
500
501
|
# @param page_size [::Integer]
|
@@ -507,6 +508,7 @@ module Google
|
|
507
508
|
# A comma-separated list of fields to order by, sorted in ascending order.
|
508
509
|
# Use "desc" after a field name for descending.
|
509
510
|
# Supported fields:
|
511
|
+
#
|
510
512
|
# * `display_name`
|
511
513
|
# * `create_time`
|
512
514
|
# * `update_time`
|
@@ -665,6 +665,184 @@ module Google
|
|
665
665
|
raise ::Google::Cloud::Error.from_error(e)
|
666
666
|
end
|
667
667
|
|
668
|
+
##
|
669
|
+
# Add/update Datapoints into an Index.
|
670
|
+
#
|
671
|
+
# @overload upsert_datapoints(request, options = nil)
|
672
|
+
# Pass arguments to `upsert_datapoints` via a request object, either of type
|
673
|
+
# {::Google::Cloud::AIPlatform::V1::UpsertDatapointsRequest} or an equivalent Hash.
|
674
|
+
#
|
675
|
+
# @param request [::Google::Cloud::AIPlatform::V1::UpsertDatapointsRequest, ::Hash]
|
676
|
+
# A request object representing the call parameters. Required. To specify no
|
677
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
678
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
679
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
680
|
+
#
|
681
|
+
# @overload upsert_datapoints(index: nil, datapoints: nil)
|
682
|
+
# Pass arguments to `upsert_datapoints` via keyword arguments. Note that at
|
683
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
684
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
685
|
+
#
|
686
|
+
# @param index [::String]
|
687
|
+
# Required. The name of the Index resource to be updated.
|
688
|
+
# Format:
|
689
|
+
# `projects/{project}/locations/{location}/indexes/{index}`
|
690
|
+
# @param datapoints [::Array<::Google::Cloud::AIPlatform::V1::IndexDatapoint, ::Hash>]
|
691
|
+
# A list of datapoints to be created/updated.
|
692
|
+
#
|
693
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
694
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::UpsertDatapointsResponse]
|
695
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
696
|
+
#
|
697
|
+
# @return [::Google::Cloud::AIPlatform::V1::UpsertDatapointsResponse]
|
698
|
+
#
|
699
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
700
|
+
#
|
701
|
+
# @example Basic example
|
702
|
+
# require "google/cloud/ai_platform/v1"
|
703
|
+
#
|
704
|
+
# # Create a client object. The client can be reused for multiple calls.
|
705
|
+
# client = Google::Cloud::AIPlatform::V1::IndexService::Client.new
|
706
|
+
#
|
707
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
708
|
+
# request = Google::Cloud::AIPlatform::V1::UpsertDatapointsRequest.new
|
709
|
+
#
|
710
|
+
# # Call the upsert_datapoints method.
|
711
|
+
# result = client.upsert_datapoints request
|
712
|
+
#
|
713
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::UpsertDatapointsResponse.
|
714
|
+
# p result
|
715
|
+
#
|
716
|
+
def upsert_datapoints request, options = nil
|
717
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
718
|
+
|
719
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::UpsertDatapointsRequest
|
720
|
+
|
721
|
+
# Converts hash and nil to an options object
|
722
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
723
|
+
|
724
|
+
# Customize the options with defaults
|
725
|
+
metadata = @config.rpcs.upsert_datapoints.metadata.to_h
|
726
|
+
|
727
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
728
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
729
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
730
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
731
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
732
|
+
|
733
|
+
header_params = {}
|
734
|
+
if request.index
|
735
|
+
header_params["index"] = request.index
|
736
|
+
end
|
737
|
+
|
738
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
739
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
740
|
+
|
741
|
+
options.apply_defaults timeout: @config.rpcs.upsert_datapoints.timeout,
|
742
|
+
metadata: metadata,
|
743
|
+
retry_policy: @config.rpcs.upsert_datapoints.retry_policy
|
744
|
+
|
745
|
+
options.apply_defaults timeout: @config.timeout,
|
746
|
+
metadata: @config.metadata,
|
747
|
+
retry_policy: @config.retry_policy
|
748
|
+
|
749
|
+
@index_service_stub.call_rpc :upsert_datapoints, request, options: options do |response, operation|
|
750
|
+
yield response, operation if block_given?
|
751
|
+
return response
|
752
|
+
end
|
753
|
+
rescue ::GRPC::BadStatus => e
|
754
|
+
raise ::Google::Cloud::Error.from_error(e)
|
755
|
+
end
|
756
|
+
|
757
|
+
##
|
758
|
+
# Remove Datapoints from an Index.
|
759
|
+
#
|
760
|
+
# @overload remove_datapoints(request, options = nil)
|
761
|
+
# Pass arguments to `remove_datapoints` via a request object, either of type
|
762
|
+
# {::Google::Cloud::AIPlatform::V1::RemoveDatapointsRequest} or an equivalent Hash.
|
763
|
+
#
|
764
|
+
# @param request [::Google::Cloud::AIPlatform::V1::RemoveDatapointsRequest, ::Hash]
|
765
|
+
# A request object representing the call parameters. Required. To specify no
|
766
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
767
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
768
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
769
|
+
#
|
770
|
+
# @overload remove_datapoints(index: nil, datapoint_ids: nil)
|
771
|
+
# Pass arguments to `remove_datapoints` via keyword arguments. Note that at
|
772
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
773
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
774
|
+
#
|
775
|
+
# @param index [::String]
|
776
|
+
# Required. The name of the Index resource to be updated.
|
777
|
+
# Format:
|
778
|
+
# `projects/{project}/locations/{location}/indexes/{index}`
|
779
|
+
# @param datapoint_ids [::Array<::String>]
|
780
|
+
# A list of datapoint ids to be deleted.
|
781
|
+
#
|
782
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
783
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::RemoveDatapointsResponse]
|
784
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
785
|
+
#
|
786
|
+
# @return [::Google::Cloud::AIPlatform::V1::RemoveDatapointsResponse]
|
787
|
+
#
|
788
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
789
|
+
#
|
790
|
+
# @example Basic example
|
791
|
+
# require "google/cloud/ai_platform/v1"
|
792
|
+
#
|
793
|
+
# # Create a client object. The client can be reused for multiple calls.
|
794
|
+
# client = Google::Cloud::AIPlatform::V1::IndexService::Client.new
|
795
|
+
#
|
796
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
797
|
+
# request = Google::Cloud::AIPlatform::V1::RemoveDatapointsRequest.new
|
798
|
+
#
|
799
|
+
# # Call the remove_datapoints method.
|
800
|
+
# result = client.remove_datapoints request
|
801
|
+
#
|
802
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::RemoveDatapointsResponse.
|
803
|
+
# p result
|
804
|
+
#
|
805
|
+
def remove_datapoints request, options = nil
|
806
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
807
|
+
|
808
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::RemoveDatapointsRequest
|
809
|
+
|
810
|
+
# Converts hash and nil to an options object
|
811
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
812
|
+
|
813
|
+
# Customize the options with defaults
|
814
|
+
metadata = @config.rpcs.remove_datapoints.metadata.to_h
|
815
|
+
|
816
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
817
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
818
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
819
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
820
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
821
|
+
|
822
|
+
header_params = {}
|
823
|
+
if request.index
|
824
|
+
header_params["index"] = request.index
|
825
|
+
end
|
826
|
+
|
827
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
828
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
829
|
+
|
830
|
+
options.apply_defaults timeout: @config.rpcs.remove_datapoints.timeout,
|
831
|
+
metadata: metadata,
|
832
|
+
retry_policy: @config.rpcs.remove_datapoints.retry_policy
|
833
|
+
|
834
|
+
options.apply_defaults timeout: @config.timeout,
|
835
|
+
metadata: @config.metadata,
|
836
|
+
retry_policy: @config.retry_policy
|
837
|
+
|
838
|
+
@index_service_stub.call_rpc :remove_datapoints, request, options: options do |response, operation|
|
839
|
+
yield response, operation if block_given?
|
840
|
+
return response
|
841
|
+
end
|
842
|
+
rescue ::GRPC::BadStatus => e
|
843
|
+
raise ::Google::Cloud::Error.from_error(e)
|
844
|
+
end
|
845
|
+
|
668
846
|
##
|
669
847
|
# Configuration class for the IndexService API.
|
670
848
|
#
|
@@ -825,6 +1003,16 @@ module Google
|
|
825
1003
|
# @return [::Gapic::Config::Method]
|
826
1004
|
#
|
827
1005
|
attr_reader :delete_index
|
1006
|
+
##
|
1007
|
+
# RPC-specific configuration for `upsert_datapoints`
|
1008
|
+
# @return [::Gapic::Config::Method]
|
1009
|
+
#
|
1010
|
+
attr_reader :upsert_datapoints
|
1011
|
+
##
|
1012
|
+
# RPC-specific configuration for `remove_datapoints`
|
1013
|
+
# @return [::Gapic::Config::Method]
|
1014
|
+
#
|
1015
|
+
attr_reader :remove_datapoints
|
828
1016
|
|
829
1017
|
# @private
|
830
1018
|
def initialize parent_rpcs = nil
|
@@ -838,6 +1026,10 @@ module Google
|
|
838
1026
|
@update_index = ::Gapic::Config::Method.new update_index_config
|
839
1027
|
delete_index_config = parent_rpcs.delete_index if parent_rpcs.respond_to? :delete_index
|
840
1028
|
@delete_index = ::Gapic::Config::Method.new delete_index_config
|
1029
|
+
upsert_datapoints_config = parent_rpcs.upsert_datapoints if parent_rpcs.respond_to? :upsert_datapoints
|
1030
|
+
@upsert_datapoints = ::Gapic::Config::Method.new upsert_datapoints_config
|
1031
|
+
remove_datapoints_config = parent_rpcs.remove_datapoints if parent_rpcs.respond_to? :remove_datapoints
|
1032
|
+
@remove_datapoints = ::Gapic::Config::Method.new remove_datapoints_config
|
841
1033
|
|
842
1034
|
yield self if block_given?
|
843
1035
|
end
|
@@ -387,19 +387,17 @@ module Google
|
|
387
387
|
#
|
388
388
|
# Supported fields:
|
389
389
|
#
|
390
|
-
# * `display_name` supports
|
391
|
-
#
|
392
|
-
# * `
|
390
|
+
# * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
|
391
|
+
# * `state` supports `=`, `!=` comparisons.
|
392
|
+
# * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
|
393
|
+
# `create_time` must be in RFC 3339 format.
|
393
394
|
#
|
394
395
|
# Some examples of using the filter are:
|
395
396
|
#
|
396
|
-
#
|
397
|
-
#
|
398
|
-
#
|
399
|
-
#
|
400
|
-
# * `NOT display_name="my_job"`
|
401
|
-
#
|
402
|
-
# * `state="JOB_STATE_FAILED"`
|
397
|
+
# * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
|
398
|
+
# * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
|
399
|
+
# * `NOT display_name="my_job"`
|
400
|
+
# * `create_time>"2021-05-18T00:00:00Z"`
|
403
401
|
# @param page_size [::Integer]
|
404
402
|
# The standard list page size.
|
405
403
|
# @param page_token [::String]
|
@@ -873,19 +871,17 @@ module Google
|
|
873
871
|
#
|
874
872
|
# Supported fields:
|
875
873
|
#
|
876
|
-
# * `display_name` supports
|
877
|
-
#
|
878
|
-
# * `
|
874
|
+
# * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
|
875
|
+
# * `state` supports `=`, `!=` comparisons.
|
876
|
+
# * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
|
877
|
+
# `create_time` must be in RFC 3339 format.
|
879
878
|
#
|
880
879
|
# Some examples of using the filter are:
|
881
880
|
#
|
882
|
-
#
|
883
|
-
#
|
884
|
-
#
|
885
|
-
#
|
886
|
-
# * `NOT display_name="my_job"`
|
887
|
-
#
|
888
|
-
# * `state="JOB_STATE_FAILED"`
|
881
|
+
# * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
|
882
|
+
# * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
|
883
|
+
# * `NOT display_name="my_job"`
|
884
|
+
# * `create_time>"2021-05-18T00:00:00Z"`
|
889
885
|
# @param page_size [::Integer]
|
890
886
|
# The standard list page size.
|
891
887
|
# @param page_token [::String]
|
@@ -1354,19 +1350,17 @@ module Google
|
|
1354
1350
|
#
|
1355
1351
|
# Supported fields:
|
1356
1352
|
#
|
1357
|
-
# * `display_name` supports
|
1358
|
-
#
|
1359
|
-
# * `
|
1353
|
+
# * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
|
1354
|
+
# * `state` supports `=`, `!=` comparisons.
|
1355
|
+
# * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
|
1356
|
+
# `create_time` must be in RFC 3339 format.
|
1360
1357
|
#
|
1361
1358
|
# Some examples of using the filter are:
|
1362
1359
|
#
|
1363
|
-
#
|
1364
|
-
#
|
1365
|
-
#
|
1366
|
-
#
|
1367
|
-
# * `NOT display_name="my_job"`
|
1368
|
-
#
|
1369
|
-
# * `state="JOB_STATE_FAILED"`
|
1360
|
+
# * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
|
1361
|
+
# * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
|
1362
|
+
# * `NOT display_name="my_job"`
|
1363
|
+
# * `create_time>"2021-05-18T00:00:00Z"`
|
1370
1364
|
# @param page_size [::Integer]
|
1371
1365
|
# The standard list page size.
|
1372
1366
|
# @param page_token [::String]
|
@@ -1841,21 +1835,18 @@ module Google
|
|
1841
1835
|
#
|
1842
1836
|
# Supported fields:
|
1843
1837
|
#
|
1844
|
-
# * `display_name` supports
|
1845
|
-
#
|
1846
|
-
# * `state` supports
|
1847
|
-
#
|
1848
|
-
#
|
1838
|
+
# * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
|
1839
|
+
# * `model_display_name` supports `=`, `!=` comparisons.
|
1840
|
+
# * `state` supports `=`, `!=` comparisons.
|
1841
|
+
# * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
|
1842
|
+
# `create_time` must be in RFC 3339 format.
|
1849
1843
|
#
|
1850
1844
|
# Some examples of using the filter are:
|
1851
1845
|
#
|
1852
|
-
#
|
1853
|
-
#
|
1854
|
-
#
|
1855
|
-
#
|
1856
|
-
# * `NOT display_name="my_job"`
|
1857
|
-
#
|
1858
|
-
# * `state="JOB_STATE_FAILED"`
|
1846
|
+
# * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
|
1847
|
+
# * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
|
1848
|
+
# * `NOT display_name="my_job"`
|
1849
|
+
# * `create_time>"2021-05-18T00:00:00Z"`
|
1859
1850
|
# @param page_size [::Integer]
|
1860
1851
|
# The standard list page size.
|
1861
1852
|
# @param page_token [::String]
|
@@ -2444,6 +2435,20 @@ module Google
|
|
2444
2435
|
# Format: `projects/{project}/locations/{location}`
|
2445
2436
|
# @param filter [::String]
|
2446
2437
|
# The standard list filter.
|
2438
|
+
#
|
2439
|
+
# Supported fields:
|
2440
|
+
#
|
2441
|
+
# * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
|
2442
|
+
# * `state` supports `=`, `!=` comparisons.
|
2443
|
+
# * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
|
2444
|
+
# `create_time` must be in RFC 3339 format.
|
2445
|
+
#
|
2446
|
+
# Some examples of using the filter are:
|
2447
|
+
#
|
2448
|
+
# * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
|
2449
|
+
# * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
|
2450
|
+
# * `NOT display_name="my_job"`
|
2451
|
+
# * `create_time>"2021-05-18T00:00:00Z"`
|
2447
2452
|
# @param page_size [::Integer]
|
2448
2453
|
# The standard list page size.
|
2449
2454
|
# @param page_token [::String]
|
@@ -420,6 +420,7 @@ module Google
|
|
420
420
|
# * A key including a space must be quoted. `labels."a key"`.
|
421
421
|
#
|
422
422
|
# Some examples:
|
423
|
+
#
|
423
424
|
# * `model=1234`
|
424
425
|
# * `displayName="myDisplayName"`
|
425
426
|
# * `labels.myKey="myValue"`
|
@@ -436,6 +437,7 @@ module Google
|
|
436
437
|
# A comma-separated list of fields to order by, sorted in ascending order.
|
437
438
|
# Use "desc" after a field name for descending.
|
438
439
|
# Supported fields:
|
440
|
+
#
|
439
441
|
# * `display_name`
|
440
442
|
# * `create_time`
|
441
443
|
# * `update_time`
|
@@ -550,6 +552,7 @@ module Google
|
|
550
552
|
# * A key including a space must be quoted. `labels."a key"`.
|
551
553
|
#
|
552
554
|
# Some examples:
|
555
|
+
#
|
553
556
|
# * `labels.myKey="myValue"`
|
554
557
|
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
555
558
|
# Mask specifying which fields to read.
|
@@ -954,7 +957,7 @@ module Google
|
|
954
957
|
# @param version_aliases [::Array<::String>]
|
955
958
|
# Required. The set of version aliases to merge.
|
956
959
|
# The alias should be at most 128 characters, and match
|
957
|
-
# `[a-z][a-
|
960
|
+
# `[a-z][a-zA-Z0-9-]{0,126}[a-z-0-9]`.
|
958
961
|
# Add the `-` prefix to an alias means removing that alias from the version.
|
959
962
|
# `-` is NOT counted in the 128 characters. Example: `-golden` means removing
|
960
963
|
# the `golden` alias from the version.
|
@@ -386,21 +386,22 @@ module Google
|
|
386
386
|
# Format: `projects/{project}/locations/{location}`
|
387
387
|
# @param filter [::String]
|
388
388
|
# The standard list filter.
|
389
|
-
# Supported fields:
|
390
389
|
#
|
391
|
-
#
|
390
|
+
# Supported fields:
|
392
391
|
#
|
393
|
-
# * `
|
392
|
+
# * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
|
393
|
+
# * `state` supports `=`, `!=` comparisons.
|
394
|
+
# * `training_task_definition` `=`, `!=` comparisons, and `:` wildcard.
|
395
|
+
# * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
|
396
|
+
# `create_time` must be in RFC 3339 format.
|
394
397
|
#
|
395
398
|
# Some examples of using the filter are:
|
396
399
|
#
|
397
|
-
#
|
398
|
-
#
|
399
|
-
#
|
400
|
-
#
|
401
|
-
#
|
402
|
-
#
|
403
|
-
# * `state="PIPELINE_STATE_FAILED"`
|
400
|
+
# * `state="PIPELINE_STATE_SUCCEEDED" AND display_name:"my_pipeline_*"`
|
401
|
+
# * `state!="PIPELINE_STATE_FAILED" OR display_name="my_pipeline"`
|
402
|
+
# * `NOT display_name="my_pipeline"`
|
403
|
+
# * `create_time>"2021-05-18T00:00:00Z"`
|
404
|
+
# * `training_task_definition:"*automl_text_classification*"`
|
404
405
|
# @param page_size [::Integer]
|
405
406
|
# The standard list page size.
|
406
407
|
# @param page_token [::String]
|
@@ -868,7 +869,7 @@ module Google
|
|
868
869
|
# @param options [::Gapic::CallOptions, ::Hash]
|
869
870
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
870
871
|
#
|
871
|
-
# @overload list_pipeline_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil)
|
872
|
+
# @overload list_pipeline_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, order_by: nil, read_mask: nil)
|
872
873
|
# Pass arguments to `list_pipeline_jobs` via keyword arguments. Note that at
|
873
874
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
874
875
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -883,8 +884,8 @@ module Google
|
|
883
884
|
# * `pipeline_name`: Supports `=` and `!=` comparisons.
|
884
885
|
# * `display_name`: Supports `=`, `!=` comparisons, and `:` wildcard.
|
885
886
|
# * `pipeline_job_user_id`: Supports `=`, `!=` comparisons, and `:` wildcard.
|
886
|
-
#
|
887
|
-
# display_name:\"*step*\"
|
887
|
+
# for example, can check if pipeline's display_name contains *step* by
|
888
|
+
# doing display_name:\"*step*\"
|
888
889
|
# * `state`: Supports `=` and `!=` comparisons.
|
889
890
|
# * `create_time`: Supports `=`, `!=`, `<`, `>`, `<=`, and `>=` comparisons.
|
890
891
|
# Values must be in RFC 3339 format.
|
@@ -895,7 +896,7 @@ module Google
|
|
895
896
|
# * `labels`: Supports key-value equality and key presence.
|
896
897
|
# * `template_uri`: Supports `=`, `!=` comparisons, and `:` wildcard.
|
897
898
|
# * `template_metadata.version`: Supports `=`, `!=` comparisons, and `:`
|
898
|
-
#
|
899
|
+
# wildcard.
|
899
900
|
#
|
900
901
|
# Filter expressions can be combined together using logical operators
|
901
902
|
# (`AND` & `OR`).
|
@@ -927,10 +928,13 @@ module Google
|
|
927
928
|
# there are multiple jobs having the same create time, order them by the end
|
928
929
|
# time in ascending order. if order_by is not specified, it will order by
|
929
930
|
# default order is create time in descending order. Supported fields:
|
931
|
+
#
|
930
932
|
# * `create_time`
|
931
933
|
# * `update_time`
|
932
934
|
# * `end_time`
|
933
935
|
# * `start_time`
|
936
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
937
|
+
# Mask specifying which fields to read.
|
934
938
|
#
|
935
939
|
# @yield [response, operation] Access the result along with the RPC operation
|
936
940
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::PipelineJob>]
|
@@ -664,7 +664,7 @@ module Google
|
|
664
664
|
# Required. The project and location that the Study belongs to.
|
665
665
|
# Format: `projects/{project}/locations/{location}/studies/{study}`
|
666
666
|
# @param suggestion_count [::Integer]
|
667
|
-
# Required. The number of suggestions requested.
|
667
|
+
# Required. The number of suggestions requested. It must be positive.
|
668
668
|
# @param client_id [::String]
|
669
669
|
# Required. The identifier of the client that is requesting the suggestion.
|
670
670
|
#
|
@@ -22,6 +22,31 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
22
22
|
map :labels, :string, :string, 9
|
23
23
|
optional :create_time, :message, 10, "google.protobuf.Timestamp"
|
24
24
|
optional :update_time, :message, 11, "google.protobuf.Timestamp"
|
25
|
+
optional :index_stats, :message, 14, "google.cloud.aiplatform.v1.IndexStats"
|
26
|
+
optional :index_update_method, :enum, 16, "google.cloud.aiplatform.v1.Index.IndexUpdateMethod"
|
27
|
+
end
|
28
|
+
add_enum "google.cloud.aiplatform.v1.Index.IndexUpdateMethod" do
|
29
|
+
value :INDEX_UPDATE_METHOD_UNSPECIFIED, 0
|
30
|
+
value :BATCH_UPDATE, 1
|
31
|
+
value :STREAM_UPDATE, 2
|
32
|
+
end
|
33
|
+
add_message "google.cloud.aiplatform.v1.IndexDatapoint" do
|
34
|
+
optional :datapoint_id, :string, 1
|
35
|
+
repeated :feature_vector, :float, 2
|
36
|
+
repeated :restricts, :message, 4, "google.cloud.aiplatform.v1.IndexDatapoint.Restriction"
|
37
|
+
optional :crowding_tag, :message, 5, "google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag"
|
38
|
+
end
|
39
|
+
add_message "google.cloud.aiplatform.v1.IndexDatapoint.Restriction" do
|
40
|
+
optional :namespace, :string, 1
|
41
|
+
repeated :allow_list, :string, 2
|
42
|
+
repeated :deny_list, :string, 3
|
43
|
+
end
|
44
|
+
add_message "google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag" do
|
45
|
+
optional :crowding_attribute, :string, 1
|
46
|
+
end
|
47
|
+
add_message "google.cloud.aiplatform.v1.IndexStats" do
|
48
|
+
optional :vectors_count, :int64, 1
|
49
|
+
optional :shards_count, :int32, 2
|
25
50
|
end
|
26
51
|
end
|
27
52
|
end
|
@@ -31,6 +56,11 @@ module Google
|
|
31
56
|
module AIPlatform
|
32
57
|
module V1
|
33
58
|
Index = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Index").msgclass
|
59
|
+
Index::IndexUpdateMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.Index.IndexUpdateMethod").enummodule
|
60
|
+
IndexDatapoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint").msgclass
|
61
|
+
IndexDatapoint::Restriction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint.Restriction").msgclass
|
62
|
+
IndexDatapoint::CrowdingTag = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexDatapoint.CrowdingTag").msgclass
|
63
|
+
IndexStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.IndexStats").msgclass
|
34
64
|
end
|
35
65
|
end
|
36
66
|
end
|
@@ -47,6 +47,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
47
47
|
add_message "google.cloud.aiplatform.v1.DeleteIndexRequest" do
|
48
48
|
optional :name, :string, 1
|
49
49
|
end
|
50
|
+
add_message "google.cloud.aiplatform.v1.UpsertDatapointsRequest" do
|
51
|
+
optional :index, :string, 1
|
52
|
+
repeated :datapoints, :message, 2, "google.cloud.aiplatform.v1.IndexDatapoint"
|
53
|
+
end
|
54
|
+
add_message "google.cloud.aiplatform.v1.UpsertDatapointsResponse" do
|
55
|
+
end
|
56
|
+
add_message "google.cloud.aiplatform.v1.RemoveDatapointsRequest" do
|
57
|
+
optional :index, :string, 1
|
58
|
+
repeated :datapoint_ids, :string, 2
|
59
|
+
end
|
60
|
+
add_message "google.cloud.aiplatform.v1.RemoveDatapointsResponse" do
|
61
|
+
end
|
50
62
|
add_message "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata" do
|
51
63
|
repeated :content_validation_stats, :message, 1, "google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.ContentValidationStats"
|
52
64
|
optional :data_bytes_count, :int64, 2
|
@@ -89,6 +101,10 @@ module Google
|
|
89
101
|
UpdateIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpdateIndexRequest").msgclass
|
90
102
|
UpdateIndexOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpdateIndexOperationMetadata").msgclass
|
91
103
|
DeleteIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.DeleteIndexRequest").msgclass
|
104
|
+
UpsertDatapointsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpsertDatapointsRequest").msgclass
|
105
|
+
UpsertDatapointsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.UpsertDatapointsResponse").msgclass
|
106
|
+
RemoveDatapointsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.RemoveDatapointsRequest").msgclass
|
107
|
+
RemoveDatapointsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.RemoveDatapointsResponse").msgclass
|
92
108
|
NearestNeighborSearchOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata").msgclass
|
93
109
|
NearestNeighborSearchOperationMetadata::RecordError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError").msgclass
|
94
110
|
NearestNeighborSearchOperationMetadata::RecordError::RecordErrorType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType").enummodule
|
@@ -45,6 +45,10 @@ module Google
|
|
45
45
|
# An Index can only be deleted when all its
|
46
46
|
# [DeployedIndexes][google.cloud.aiplatform.v1.Index.deployed_indexes] had been undeployed.
|
47
47
|
rpc :DeleteIndex, ::Google::Cloud::AIPlatform::V1::DeleteIndexRequest, ::Google::Longrunning::Operation
|
48
|
+
# Add/update Datapoints into an Index.
|
49
|
+
rpc :UpsertDatapoints, ::Google::Cloud::AIPlatform::V1::UpsertDatapointsRequest, ::Google::Cloud::AIPlatform::V1::UpsertDatapointsResponse
|
50
|
+
# Remove Datapoints from an Index.
|
51
|
+
rpc :RemoveDatapoints, ::Google::Cloud::AIPlatform::V1::RemoveDatapointsRequest, ::Google::Cloud::AIPlatform::V1::RemoveDatapointsResponse
|
48
52
|
end
|
49
53
|
|
50
54
|
Stub = Service.rpc_stub_class
|
@@ -54,6 +54,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
54
54
|
value :DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED, 0
|
55
55
|
value :DEDICATED_RESOURCES, 1
|
56
56
|
value :AUTOMATIC_RESOURCES, 2
|
57
|
+
value :SHARED_RESOURCES, 3
|
57
58
|
end
|
58
59
|
add_message "google.cloud.aiplatform.v1.PredictSchemata" do
|
59
60
|
optional :instance_schema_uri, :string, 1
|
@@ -42,6 +42,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
42
42
|
optional :gcs_output_directory, :string, 2
|
43
43
|
map :parameter_values, :string, :message, 3, "google.protobuf.Value"
|
44
44
|
optional :failure_policy, :enum, 4, "google.cloud.aiplatform.v1.PipelineFailurePolicy"
|
45
|
+
map :input_artifacts, :string, :message, 5, "google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact"
|
46
|
+
end
|
47
|
+
add_message "google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact" do
|
48
|
+
oneof :kind do
|
49
|
+
optional :artifact_id, :string, 1
|
50
|
+
end
|
45
51
|
end
|
46
52
|
add_message "google.cloud.aiplatform.v1.PipelineTemplateMetadata" do
|
47
53
|
optional :version, :string, 3
|
@@ -108,6 +114,7 @@ module Google
|
|
108
114
|
module V1
|
109
115
|
PipelineJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PipelineJob").msgclass
|
110
116
|
PipelineJob::RuntimeConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig").msgclass
|
117
|
+
PipelineJob::RuntimeConfig::InputArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PipelineJob.RuntimeConfig.InputArtifact").msgclass
|
111
118
|
PipelineTemplateMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PipelineTemplateMetadata").msgclass
|
112
119
|
PipelineJobDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PipelineJobDetail").msgclass
|
113
120
|
PipelineTaskDetail = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.aiplatform.v1.PipelineTaskDetail").msgclass
|
@@ -53,6 +53,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
53
53
|
optional :page_size, :int32, 3
|
54
54
|
optional :page_token, :string, 4
|
55
55
|
optional :order_by, :string, 6
|
56
|
+
optional :read_mask, :message, 7, "google.protobuf.FieldMask"
|
56
57
|
end
|
57
58
|
add_message "google.cloud.aiplatform.v1.ListPipelineJobsResponse" do
|
58
59
|
repeated :pipeline_jobs, :message, 1, "google.cloud.aiplatform.v1.PipelineJob"
|