google-cloud-ai_platform-v1 0.18.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/ai_platform/v1/dataset_service/client.rb +36 -46
- data/lib/google/cloud/ai_platform/v1/dataset_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/endpoint_service/client.rb +20 -22
- data/lib/google/cloud/ai_platform/v1/endpoint_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/featurestore_online_serving_service/client.rb +6 -6
- data/lib/google/cloud/ai_platform/v1/featurestore_service/client.rb +176 -68
- data/lib/google/cloud/ai_platform/v1/featurestore_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/client.rb +24 -26
- data/lib/google/cloud/ai_platform/v1/index_endpoint_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/index_service/client.rb +16 -18
- data/lib/google/cloud/ai_platform/v1/index_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/job_service/client.rb +777 -60
- data/lib/google/cloud/ai_platform/v1/job_service/credentials.rb +2 -1
- data/lib/google/cloud/ai_platform/v1/job_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/job_service/paths.rb +40 -0
- data/lib/google/cloud/ai_platform/v1/metadata_service/client.rb +52 -62
- data/lib/google/cloud/ai_platform/v1/metadata_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/migration_service/client.rb +8 -10
- data/lib/google/cloud/ai_platform/v1/migration_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/model_service/client.rb +254 -42
- data/lib/google/cloud/ai_platform/v1/model_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/pipeline_service/client.rb +16 -20
- data/lib/google/cloud/ai_platform/v1/pipeline_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/client.rb +16 -18
- data/lib/google/cloud/ai_platform/v1/specialist_pool_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/client.rb +50 -60
- data/lib/google/cloud/ai_platform/v1/tensorboard_service/operations.rb +12 -14
- data/lib/google/cloud/ai_platform/v1/version.rb +1 -1
- data/lib/google/cloud/ai_platform/v1/vizier_service/client.rb +17 -21
- data/lib/google/cloud/ai_platform/v1/vizier_service/operations.rb +12 -14
- data/lib/google/cloud/aiplatform/v1/accelerator_type_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/batch_prediction_job_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/dataset_pb.rb +9 -0
- data/lib/google/cloud/aiplatform/v1/dataset_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/endpoint_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/evaluated_annotation_pb.rb +63 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_pb.rb +49 -0
- data/lib/google/cloud/aiplatform/v1/featurestore_service_services_pb.rb +11 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_pb.rb +2 -0
- data/lib/google/cloud/aiplatform/v1/index_endpoint_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/index_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/job_service_pb.rb +46 -0
- data/lib/google/cloud/aiplatform/v1/job_service_services_pb.rb +26 -0
- data/lib/google/cloud/aiplatform/v1/metadata_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/model_evaluation_slice_pb.rb +28 -0
- data/lib/google/cloud/aiplatform/v1/model_pb.rb +5 -0
- data/lib/google/cloud/aiplatform/v1/model_service_pb.rb +31 -0
- data/lib/google/cloud/aiplatform/v1/model_service_services_pb.rb +12 -2
- data/lib/google/cloud/aiplatform/v1/nas_job_pb.rb +123 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_job_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/pipeline_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/service_networking_pb.rb +25 -0
- data/lib/google/cloud/aiplatform/v1/specialist_pool_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/study_pb.rb +6 -0
- data/lib/google/cloud/aiplatform/v1/tensorboard_service_pb.rb +1 -0
- data/lib/google/cloud/aiplatform/v1/vizier_service_services_pb.rb +1 -1
- data/proto_docs/google/cloud/aiplatform/v1/accelerator_type.rb +4 -0
- data/proto_docs/google/cloud/aiplatform/v1/batch_prediction_job.rb +14 -1
- data/proto_docs/google/cloud/aiplatform/v1/dataset.rb +23 -0
- data/proto_docs/google/cloud/aiplatform/v1/endpoint.rb +8 -2
- data/proto_docs/google/cloud/aiplatform/v1/evaluated_annotation.rb +190 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore.rb +9 -0
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_monitoring.rb +6 -8
- data/proto_docs/google/cloud/aiplatform/v1/featurestore_service.rb +128 -0
- data/proto_docs/google/cloud/aiplatform/v1/index_endpoint.rb +10 -3
- data/proto_docs/google/cloud/aiplatform/v1/job_service.rb +166 -0
- data/proto_docs/google/cloud/aiplatform/v1/job_state.rb +2 -5
- data/proto_docs/google/cloud/aiplatform/v1/model.rb +31 -11
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation.rb +6 -5
- data/proto_docs/google/cloud/aiplatform/v1/model_evaluation_slice.rb +131 -0
- data/proto_docs/google/cloud/aiplatform/v1/model_service.rb +83 -0
- data/proto_docs/google/cloud/aiplatform/v1/nas_job.rb +306 -0
- data/proto_docs/google/cloud/aiplatform/v1/pipeline_job.rb +5 -0
- data/proto_docs/google/cloud/aiplatform/v1/service_networking.rb +39 -0
- data/proto_docs/google/cloud/aiplatform/v1/study.rb +22 -0
- data/proto_docs/google/cloud/aiplatform/v1/tensorboard_service.rb +2 -1
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +19 -11
@@ -435,13 +435,11 @@ module Google
|
|
435
435
|
# # Call the list_custom_jobs method.
|
436
436
|
# result = client.list_custom_jobs request
|
437
437
|
#
|
438
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
439
|
-
# #
|
440
|
-
#
|
441
|
-
# # methods are also available for managing paging directly.
|
442
|
-
# result.each do |response|
|
438
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
439
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
440
|
+
# result.each do |item|
|
443
441
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::CustomJob.
|
444
|
-
# p
|
442
|
+
# p item
|
445
443
|
# end
|
446
444
|
#
|
447
445
|
def list_custom_jobs request, options = nil
|
@@ -529,14 +527,14 @@ module Google
|
|
529
527
|
# # Call the delete_custom_job method.
|
530
528
|
# result = client.delete_custom_job request
|
531
529
|
#
|
532
|
-
# # The returned object is of type Gapic::Operation. You can use
|
533
|
-
# #
|
534
|
-
# #
|
530
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
531
|
+
# # check the status of an operation, cancel it, or wait for results.
|
532
|
+
# # Here is how to wait for a response.
|
535
533
|
# result.wait_until_done! timeout: 60
|
536
534
|
# if result.response?
|
537
535
|
# p result.response
|
538
536
|
# else
|
539
|
-
# puts "
|
537
|
+
# puts "No response received."
|
540
538
|
# end
|
541
539
|
#
|
542
540
|
def delete_custom_job request, options = nil
|
@@ -931,13 +929,11 @@ module Google
|
|
931
929
|
# # Call the list_data_labeling_jobs method.
|
932
930
|
# result = client.list_data_labeling_jobs request
|
933
931
|
#
|
934
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
935
|
-
# #
|
936
|
-
#
|
937
|
-
# # methods are also available for managing paging directly.
|
938
|
-
# result.each do |response|
|
932
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
933
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
934
|
+
# result.each do |item|
|
939
935
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::DataLabelingJob.
|
940
|
-
# p
|
936
|
+
# p item
|
941
937
|
# end
|
942
938
|
#
|
943
939
|
def list_data_labeling_jobs request, options = nil
|
@@ -1025,14 +1021,14 @@ module Google
|
|
1025
1021
|
# # Call the delete_data_labeling_job method.
|
1026
1022
|
# result = client.delete_data_labeling_job request
|
1027
1023
|
#
|
1028
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1029
|
-
# #
|
1030
|
-
# #
|
1024
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1025
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1026
|
+
# # Here is how to wait for a response.
|
1031
1027
|
# result.wait_until_done! timeout: 60
|
1032
1028
|
# if result.response?
|
1033
1029
|
# p result.response
|
1034
1030
|
# else
|
1035
|
-
# puts "
|
1031
|
+
# puts "No response received."
|
1036
1032
|
# end
|
1037
1033
|
#
|
1038
1034
|
def delete_data_labeling_job request, options = nil
|
@@ -1415,13 +1411,11 @@ module Google
|
|
1415
1411
|
# # Call the list_hyperparameter_tuning_jobs method.
|
1416
1412
|
# result = client.list_hyperparameter_tuning_jobs request
|
1417
1413
|
#
|
1418
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1419
|
-
# #
|
1420
|
-
#
|
1421
|
-
# # methods are also available for managing paging directly.
|
1422
|
-
# result.each do |response|
|
1414
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1415
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1416
|
+
# result.each do |item|
|
1423
1417
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob.
|
1424
|
-
# p
|
1418
|
+
# p item
|
1425
1419
|
# end
|
1426
1420
|
#
|
1427
1421
|
def list_hyperparameter_tuning_jobs request, options = nil
|
@@ -1509,14 +1503,14 @@ module Google
|
|
1509
1503
|
# # Call the delete_hyperparameter_tuning_job method.
|
1510
1504
|
# result = client.delete_hyperparameter_tuning_job request
|
1511
1505
|
#
|
1512
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1513
|
-
# #
|
1514
|
-
# #
|
1506
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1507
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1508
|
+
# # Here is how to wait for a response.
|
1515
1509
|
# result.wait_until_done! timeout: 60
|
1516
1510
|
# if result.response?
|
1517
1511
|
# p result.response
|
1518
1512
|
# else
|
1519
|
-
# puts "
|
1513
|
+
# puts "No response received."
|
1520
1514
|
# end
|
1521
1515
|
#
|
1522
1516
|
def delete_hyperparameter_tuning_job request, options = nil
|
@@ -1661,6 +1655,686 @@ module Google
|
|
1661
1655
|
raise ::Google::Cloud::Error.from_error(e)
|
1662
1656
|
end
|
1663
1657
|
|
1658
|
+
##
|
1659
|
+
# Creates a NasJob
|
1660
|
+
#
|
1661
|
+
# @overload create_nas_job(request, options = nil)
|
1662
|
+
# Pass arguments to `create_nas_job` via a request object, either of type
|
1663
|
+
# {::Google::Cloud::AIPlatform::V1::CreateNasJobRequest} or an equivalent Hash.
|
1664
|
+
#
|
1665
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CreateNasJobRequest, ::Hash]
|
1666
|
+
# A request object representing the call parameters. Required. To specify no
|
1667
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1668
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1669
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1670
|
+
#
|
1671
|
+
# @overload create_nas_job(parent: nil, nas_job: nil)
|
1672
|
+
# Pass arguments to `create_nas_job` via keyword arguments. Note that at
|
1673
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1674
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1675
|
+
#
|
1676
|
+
# @param parent [::String]
|
1677
|
+
# Required. The resource name of the Location to create the NasJob in.
|
1678
|
+
# Format: `projects/{project}/locations/{location}`
|
1679
|
+
# @param nas_job [::Google::Cloud::AIPlatform::V1::NasJob, ::Hash]
|
1680
|
+
# Required. The NasJob to create.
|
1681
|
+
#
|
1682
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1683
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::NasJob]
|
1684
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1685
|
+
#
|
1686
|
+
# @return [::Google::Cloud::AIPlatform::V1::NasJob]
|
1687
|
+
#
|
1688
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1689
|
+
#
|
1690
|
+
# @example Basic example
|
1691
|
+
# require "google/cloud/ai_platform/v1"
|
1692
|
+
#
|
1693
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1694
|
+
# client = Google::Cloud::AIPlatform::V1::JobService::Client.new
|
1695
|
+
#
|
1696
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1697
|
+
# request = Google::Cloud::AIPlatform::V1::CreateNasJobRequest.new
|
1698
|
+
#
|
1699
|
+
# # Call the create_nas_job method.
|
1700
|
+
# result = client.create_nas_job request
|
1701
|
+
#
|
1702
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::NasJob.
|
1703
|
+
# p result
|
1704
|
+
#
|
1705
|
+
def create_nas_job request, options = nil
|
1706
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1707
|
+
|
1708
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CreateNasJobRequest
|
1709
|
+
|
1710
|
+
# Converts hash and nil to an options object
|
1711
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1712
|
+
|
1713
|
+
# Customize the options with defaults
|
1714
|
+
metadata = @config.rpcs.create_nas_job.metadata.to_h
|
1715
|
+
|
1716
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1717
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1718
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1719
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1720
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1721
|
+
|
1722
|
+
header_params = {}
|
1723
|
+
if request.parent
|
1724
|
+
header_params["parent"] = request.parent
|
1725
|
+
end
|
1726
|
+
|
1727
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1728
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1729
|
+
|
1730
|
+
options.apply_defaults timeout: @config.rpcs.create_nas_job.timeout,
|
1731
|
+
metadata: metadata,
|
1732
|
+
retry_policy: @config.rpcs.create_nas_job.retry_policy
|
1733
|
+
|
1734
|
+
options.apply_defaults timeout: @config.timeout,
|
1735
|
+
metadata: @config.metadata,
|
1736
|
+
retry_policy: @config.retry_policy
|
1737
|
+
|
1738
|
+
@job_service_stub.call_rpc :create_nas_job, request, options: options do |response, operation|
|
1739
|
+
yield response, operation if block_given?
|
1740
|
+
return response
|
1741
|
+
end
|
1742
|
+
rescue ::GRPC::BadStatus => e
|
1743
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1744
|
+
end
|
1745
|
+
|
1746
|
+
##
|
1747
|
+
# Gets a NasJob
|
1748
|
+
#
|
1749
|
+
# @overload get_nas_job(request, options = nil)
|
1750
|
+
# Pass arguments to `get_nas_job` via a request object, either of type
|
1751
|
+
# {::Google::Cloud::AIPlatform::V1::GetNasJobRequest} or an equivalent Hash.
|
1752
|
+
#
|
1753
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetNasJobRequest, ::Hash]
|
1754
|
+
# A request object representing the call parameters. Required. To specify no
|
1755
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1756
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1757
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1758
|
+
#
|
1759
|
+
# @overload get_nas_job(name: nil)
|
1760
|
+
# Pass arguments to `get_nas_job` via keyword arguments. Note that at
|
1761
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1762
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1763
|
+
#
|
1764
|
+
# @param name [::String]
|
1765
|
+
# Required. The name of the NasJob resource.
|
1766
|
+
# Format:
|
1767
|
+
# `projects/{project}/locations/{location}/nasJobs/{nas_job}`
|
1768
|
+
#
|
1769
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1770
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::NasJob]
|
1771
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1772
|
+
#
|
1773
|
+
# @return [::Google::Cloud::AIPlatform::V1::NasJob]
|
1774
|
+
#
|
1775
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1776
|
+
#
|
1777
|
+
# @example Basic example
|
1778
|
+
# require "google/cloud/ai_platform/v1"
|
1779
|
+
#
|
1780
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1781
|
+
# client = Google::Cloud::AIPlatform::V1::JobService::Client.new
|
1782
|
+
#
|
1783
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1784
|
+
# request = Google::Cloud::AIPlatform::V1::GetNasJobRequest.new
|
1785
|
+
#
|
1786
|
+
# # Call the get_nas_job method.
|
1787
|
+
# result = client.get_nas_job request
|
1788
|
+
#
|
1789
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::NasJob.
|
1790
|
+
# p result
|
1791
|
+
#
|
1792
|
+
def get_nas_job request, options = nil
|
1793
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1794
|
+
|
1795
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetNasJobRequest
|
1796
|
+
|
1797
|
+
# Converts hash and nil to an options object
|
1798
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1799
|
+
|
1800
|
+
# Customize the options with defaults
|
1801
|
+
metadata = @config.rpcs.get_nas_job.metadata.to_h
|
1802
|
+
|
1803
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1804
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1805
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1806
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1807
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1808
|
+
|
1809
|
+
header_params = {}
|
1810
|
+
if request.name
|
1811
|
+
header_params["name"] = request.name
|
1812
|
+
end
|
1813
|
+
|
1814
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1815
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1816
|
+
|
1817
|
+
options.apply_defaults timeout: @config.rpcs.get_nas_job.timeout,
|
1818
|
+
metadata: metadata,
|
1819
|
+
retry_policy: @config.rpcs.get_nas_job.retry_policy
|
1820
|
+
|
1821
|
+
options.apply_defaults timeout: @config.timeout,
|
1822
|
+
metadata: @config.metadata,
|
1823
|
+
retry_policy: @config.retry_policy
|
1824
|
+
|
1825
|
+
@job_service_stub.call_rpc :get_nas_job, request, options: options do |response, operation|
|
1826
|
+
yield response, operation if block_given?
|
1827
|
+
return response
|
1828
|
+
end
|
1829
|
+
rescue ::GRPC::BadStatus => e
|
1830
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1831
|
+
end
|
1832
|
+
|
1833
|
+
##
|
1834
|
+
# Lists NasJobs in a Location.
|
1835
|
+
#
|
1836
|
+
# @overload list_nas_jobs(request, options = nil)
|
1837
|
+
# Pass arguments to `list_nas_jobs` via a request object, either of type
|
1838
|
+
# {::Google::Cloud::AIPlatform::V1::ListNasJobsRequest} or an equivalent Hash.
|
1839
|
+
#
|
1840
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListNasJobsRequest, ::Hash]
|
1841
|
+
# A request object representing the call parameters. Required. To specify no
|
1842
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1843
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1844
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1845
|
+
#
|
1846
|
+
# @overload list_nas_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil)
|
1847
|
+
# Pass arguments to `list_nas_jobs` via keyword arguments. Note that at
|
1848
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1849
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1850
|
+
#
|
1851
|
+
# @param parent [::String]
|
1852
|
+
# Required. The resource name of the Location to list the NasJobs
|
1853
|
+
# from. Format: `projects/{project}/locations/{location}`
|
1854
|
+
# @param filter [::String]
|
1855
|
+
# The standard list filter.
|
1856
|
+
#
|
1857
|
+
# Supported fields:
|
1858
|
+
#
|
1859
|
+
# * `display_name` supports `=`, `!=` comparisons, and `:` wildcard.
|
1860
|
+
# * `state` supports `=`, `!=` comparisons.
|
1861
|
+
# * `create_time` supports `=`, `!=`,`<`, `<=`,`>`, `>=` comparisons.
|
1862
|
+
# `create_time` must be in RFC 3339 format.
|
1863
|
+
# * `labels` supports general map functions that is:
|
1864
|
+
# `labels.key=value` - key:value equality
|
1865
|
+
# `labels.key:* - key existence
|
1866
|
+
#
|
1867
|
+
# Some examples of using the filter are:
|
1868
|
+
#
|
1869
|
+
# * `state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"`
|
1870
|
+
# * `state!="JOB_STATE_FAILED" OR display_name="my_job"`
|
1871
|
+
# * `NOT display_name="my_job"`
|
1872
|
+
# * `create_time>"2021-05-18T00:00:00Z"`
|
1873
|
+
# * `labels.keyA=valueA`
|
1874
|
+
# * `labels.keyB:*`
|
1875
|
+
# @param page_size [::Integer]
|
1876
|
+
# The standard list page size.
|
1877
|
+
# @param page_token [::String]
|
1878
|
+
# The standard list page token.
|
1879
|
+
# Typically obtained via
|
1880
|
+
# {::Google::Cloud::AIPlatform::V1::ListNasJobsResponse#next_page_token ListNasJobsResponse.next_page_token}
|
1881
|
+
# of the previous
|
1882
|
+
# {::Google::Cloud::AIPlatform::V1::JobService::Client#list_nas_jobs JobService.ListNasJobs}
|
1883
|
+
# call.
|
1884
|
+
# @param read_mask [::Google::Protobuf::FieldMask, ::Hash]
|
1885
|
+
# Mask specifying which fields to read.
|
1886
|
+
#
|
1887
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1888
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasJob>]
|
1889
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1890
|
+
#
|
1891
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasJob>]
|
1892
|
+
#
|
1893
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1894
|
+
#
|
1895
|
+
# @example Basic example
|
1896
|
+
# require "google/cloud/ai_platform/v1"
|
1897
|
+
#
|
1898
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1899
|
+
# client = Google::Cloud::AIPlatform::V1::JobService::Client.new
|
1900
|
+
#
|
1901
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1902
|
+
# request = Google::Cloud::AIPlatform::V1::ListNasJobsRequest.new
|
1903
|
+
#
|
1904
|
+
# # Call the list_nas_jobs method.
|
1905
|
+
# result = client.list_nas_jobs request
|
1906
|
+
#
|
1907
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1908
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1909
|
+
# result.each do |item|
|
1910
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::NasJob.
|
1911
|
+
# p item
|
1912
|
+
# end
|
1913
|
+
#
|
1914
|
+
def list_nas_jobs request, options = nil
|
1915
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1916
|
+
|
1917
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListNasJobsRequest
|
1918
|
+
|
1919
|
+
# Converts hash and nil to an options object
|
1920
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1921
|
+
|
1922
|
+
# Customize the options with defaults
|
1923
|
+
metadata = @config.rpcs.list_nas_jobs.metadata.to_h
|
1924
|
+
|
1925
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1926
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1927
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1928
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
1929
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1930
|
+
|
1931
|
+
header_params = {}
|
1932
|
+
if request.parent
|
1933
|
+
header_params["parent"] = request.parent
|
1934
|
+
end
|
1935
|
+
|
1936
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1937
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1938
|
+
|
1939
|
+
options.apply_defaults timeout: @config.rpcs.list_nas_jobs.timeout,
|
1940
|
+
metadata: metadata,
|
1941
|
+
retry_policy: @config.rpcs.list_nas_jobs.retry_policy
|
1942
|
+
|
1943
|
+
options.apply_defaults timeout: @config.timeout,
|
1944
|
+
metadata: @config.metadata,
|
1945
|
+
retry_policy: @config.retry_policy
|
1946
|
+
|
1947
|
+
@job_service_stub.call_rpc :list_nas_jobs, request, options: options do |response, operation|
|
1948
|
+
response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_nas_jobs, request, response, operation, options
|
1949
|
+
yield response, operation if block_given?
|
1950
|
+
return response
|
1951
|
+
end
|
1952
|
+
rescue ::GRPC::BadStatus => e
|
1953
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1954
|
+
end
|
1955
|
+
|
1956
|
+
##
|
1957
|
+
# Deletes a NasJob.
|
1958
|
+
#
|
1959
|
+
# @overload delete_nas_job(request, options = nil)
|
1960
|
+
# Pass arguments to `delete_nas_job` via a request object, either of type
|
1961
|
+
# {::Google::Cloud::AIPlatform::V1::DeleteNasJobRequest} or an equivalent Hash.
|
1962
|
+
#
|
1963
|
+
# @param request [::Google::Cloud::AIPlatform::V1::DeleteNasJobRequest, ::Hash]
|
1964
|
+
# A request object representing the call parameters. Required. To specify no
|
1965
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1966
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1967
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1968
|
+
#
|
1969
|
+
# @overload delete_nas_job(name: nil)
|
1970
|
+
# Pass arguments to `delete_nas_job` via keyword arguments. Note that at
|
1971
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1972
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1973
|
+
#
|
1974
|
+
# @param name [::String]
|
1975
|
+
# Required. The name of the NasJob resource to be deleted.
|
1976
|
+
# Format:
|
1977
|
+
# `projects/{project}/locations/{location}/nasJobs/{nas_job}`
|
1978
|
+
#
|
1979
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1980
|
+
# @yieldparam response [::Gapic::Operation]
|
1981
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1982
|
+
#
|
1983
|
+
# @return [::Gapic::Operation]
|
1984
|
+
#
|
1985
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1986
|
+
#
|
1987
|
+
# @example Basic example
|
1988
|
+
# require "google/cloud/ai_platform/v1"
|
1989
|
+
#
|
1990
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1991
|
+
# client = Google::Cloud::AIPlatform::V1::JobService::Client.new
|
1992
|
+
#
|
1993
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1994
|
+
# request = Google::Cloud::AIPlatform::V1::DeleteNasJobRequest.new
|
1995
|
+
#
|
1996
|
+
# # Call the delete_nas_job method.
|
1997
|
+
# result = client.delete_nas_job request
|
1998
|
+
#
|
1999
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2000
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2001
|
+
# # Here is how to wait for a response.
|
2002
|
+
# result.wait_until_done! timeout: 60
|
2003
|
+
# if result.response?
|
2004
|
+
# p result.response
|
2005
|
+
# else
|
2006
|
+
# puts "No response received."
|
2007
|
+
# end
|
2008
|
+
#
|
2009
|
+
def delete_nas_job request, options = nil
|
2010
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2011
|
+
|
2012
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::DeleteNasJobRequest
|
2013
|
+
|
2014
|
+
# Converts hash and nil to an options object
|
2015
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2016
|
+
|
2017
|
+
# Customize the options with defaults
|
2018
|
+
metadata = @config.rpcs.delete_nas_job.metadata.to_h
|
2019
|
+
|
2020
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2021
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2022
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2023
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
2024
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2025
|
+
|
2026
|
+
header_params = {}
|
2027
|
+
if request.name
|
2028
|
+
header_params["name"] = request.name
|
2029
|
+
end
|
2030
|
+
|
2031
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2032
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2033
|
+
|
2034
|
+
options.apply_defaults timeout: @config.rpcs.delete_nas_job.timeout,
|
2035
|
+
metadata: metadata,
|
2036
|
+
retry_policy: @config.rpcs.delete_nas_job.retry_policy
|
2037
|
+
|
2038
|
+
options.apply_defaults timeout: @config.timeout,
|
2039
|
+
metadata: @config.metadata,
|
2040
|
+
retry_policy: @config.retry_policy
|
2041
|
+
|
2042
|
+
@job_service_stub.call_rpc :delete_nas_job, request, options: options do |response, operation|
|
2043
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2044
|
+
yield response, operation if block_given?
|
2045
|
+
return response
|
2046
|
+
end
|
2047
|
+
rescue ::GRPC::BadStatus => e
|
2048
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2049
|
+
end
|
2050
|
+
|
2051
|
+
##
|
2052
|
+
# Cancels a NasJob.
|
2053
|
+
# Starts asynchronous cancellation on the NasJob. The server
|
2054
|
+
# makes a best effort to cancel the job, but success is not
|
2055
|
+
# guaranteed. Clients can use
|
2056
|
+
# {::Google::Cloud::AIPlatform::V1::JobService::Client#get_nas_job JobService.GetNasJob} or
|
2057
|
+
# other methods to check whether the cancellation succeeded or whether the
|
2058
|
+
# job completed despite cancellation. On successful cancellation,
|
2059
|
+
# the NasJob is not deleted; instead it becomes a job with
|
2060
|
+
# a {::Google::Cloud::AIPlatform::V1::NasJob#error NasJob.error} value with a
|
2061
|
+
# {::Google::Rpc::Status#code google.rpc.Status.code} of 1, corresponding to
|
2062
|
+
# `Code.CANCELLED`, and
|
2063
|
+
# {::Google::Cloud::AIPlatform::V1::NasJob#state NasJob.state} is set to
|
2064
|
+
# `CANCELLED`.
|
2065
|
+
#
|
2066
|
+
# @overload cancel_nas_job(request, options = nil)
|
2067
|
+
# Pass arguments to `cancel_nas_job` via a request object, either of type
|
2068
|
+
# {::Google::Cloud::AIPlatform::V1::CancelNasJobRequest} or an equivalent Hash.
|
2069
|
+
#
|
2070
|
+
# @param request [::Google::Cloud::AIPlatform::V1::CancelNasJobRequest, ::Hash]
|
2071
|
+
# A request object representing the call parameters. Required. To specify no
|
2072
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2073
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2074
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2075
|
+
#
|
2076
|
+
# @overload cancel_nas_job(name: nil)
|
2077
|
+
# Pass arguments to `cancel_nas_job` via keyword arguments. Note that at
|
2078
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2079
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2080
|
+
#
|
2081
|
+
# @param name [::String]
|
2082
|
+
# Required. The name of the NasJob to cancel.
|
2083
|
+
# Format:
|
2084
|
+
# `projects/{project}/locations/{location}/nasJobs/{nas_job}`
|
2085
|
+
#
|
2086
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2087
|
+
# @yieldparam response [::Google::Protobuf::Empty]
|
2088
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2089
|
+
#
|
2090
|
+
# @return [::Google::Protobuf::Empty]
|
2091
|
+
#
|
2092
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2093
|
+
#
|
2094
|
+
# @example Basic example
|
2095
|
+
# require "google/cloud/ai_platform/v1"
|
2096
|
+
#
|
2097
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2098
|
+
# client = Google::Cloud::AIPlatform::V1::JobService::Client.new
|
2099
|
+
#
|
2100
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2101
|
+
# request = Google::Cloud::AIPlatform::V1::CancelNasJobRequest.new
|
2102
|
+
#
|
2103
|
+
# # Call the cancel_nas_job method.
|
2104
|
+
# result = client.cancel_nas_job request
|
2105
|
+
#
|
2106
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2107
|
+
# p result
|
2108
|
+
#
|
2109
|
+
def cancel_nas_job request, options = nil
|
2110
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2111
|
+
|
2112
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::CancelNasJobRequest
|
2113
|
+
|
2114
|
+
# Converts hash and nil to an options object
|
2115
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2116
|
+
|
2117
|
+
# Customize the options with defaults
|
2118
|
+
metadata = @config.rpcs.cancel_nas_job.metadata.to_h
|
2119
|
+
|
2120
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2121
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2122
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2123
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
2124
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2125
|
+
|
2126
|
+
header_params = {}
|
2127
|
+
if request.name
|
2128
|
+
header_params["name"] = request.name
|
2129
|
+
end
|
2130
|
+
|
2131
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2132
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2133
|
+
|
2134
|
+
options.apply_defaults timeout: @config.rpcs.cancel_nas_job.timeout,
|
2135
|
+
metadata: metadata,
|
2136
|
+
retry_policy: @config.rpcs.cancel_nas_job.retry_policy
|
2137
|
+
|
2138
|
+
options.apply_defaults timeout: @config.timeout,
|
2139
|
+
metadata: @config.metadata,
|
2140
|
+
retry_policy: @config.retry_policy
|
2141
|
+
|
2142
|
+
@job_service_stub.call_rpc :cancel_nas_job, request, options: options do |response, operation|
|
2143
|
+
yield response, operation if block_given?
|
2144
|
+
return response
|
2145
|
+
end
|
2146
|
+
rescue ::GRPC::BadStatus => e
|
2147
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2148
|
+
end
|
2149
|
+
|
2150
|
+
##
|
2151
|
+
# Gets a NasTrialDetail.
|
2152
|
+
#
|
2153
|
+
# @overload get_nas_trial_detail(request, options = nil)
|
2154
|
+
# Pass arguments to `get_nas_trial_detail` via a request object, either of type
|
2155
|
+
# {::Google::Cloud::AIPlatform::V1::GetNasTrialDetailRequest} or an equivalent Hash.
|
2156
|
+
#
|
2157
|
+
# @param request [::Google::Cloud::AIPlatform::V1::GetNasTrialDetailRequest, ::Hash]
|
2158
|
+
# A request object representing the call parameters. Required. To specify no
|
2159
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2160
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2161
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2162
|
+
#
|
2163
|
+
# @overload get_nas_trial_detail(name: nil)
|
2164
|
+
# Pass arguments to `get_nas_trial_detail` via keyword arguments. Note that at
|
2165
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2166
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2167
|
+
#
|
2168
|
+
# @param name [::String]
|
2169
|
+
# Required. The name of the NasTrialDetail resource.
|
2170
|
+
# Format:
|
2171
|
+
# `projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}`
|
2172
|
+
#
|
2173
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2174
|
+
# @yieldparam response [::Google::Cloud::AIPlatform::V1::NasTrialDetail]
|
2175
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2176
|
+
#
|
2177
|
+
# @return [::Google::Cloud::AIPlatform::V1::NasTrialDetail]
|
2178
|
+
#
|
2179
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2180
|
+
#
|
2181
|
+
# @example Basic example
|
2182
|
+
# require "google/cloud/ai_platform/v1"
|
2183
|
+
#
|
2184
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2185
|
+
# client = Google::Cloud::AIPlatform::V1::JobService::Client.new
|
2186
|
+
#
|
2187
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2188
|
+
# request = Google::Cloud::AIPlatform::V1::GetNasTrialDetailRequest.new
|
2189
|
+
#
|
2190
|
+
# # Call the get_nas_trial_detail method.
|
2191
|
+
# result = client.get_nas_trial_detail request
|
2192
|
+
#
|
2193
|
+
# # The returned object is of type Google::Cloud::AIPlatform::V1::NasTrialDetail.
|
2194
|
+
# p result
|
2195
|
+
#
|
2196
|
+
def get_nas_trial_detail request, options = nil
|
2197
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2198
|
+
|
2199
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::GetNasTrialDetailRequest
|
2200
|
+
|
2201
|
+
# Converts hash and nil to an options object
|
2202
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2203
|
+
|
2204
|
+
# Customize the options with defaults
|
2205
|
+
metadata = @config.rpcs.get_nas_trial_detail.metadata.to_h
|
2206
|
+
|
2207
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2208
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2209
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2210
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
2211
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2212
|
+
|
2213
|
+
header_params = {}
|
2214
|
+
if request.name
|
2215
|
+
header_params["name"] = request.name
|
2216
|
+
end
|
2217
|
+
|
2218
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2219
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2220
|
+
|
2221
|
+
options.apply_defaults timeout: @config.rpcs.get_nas_trial_detail.timeout,
|
2222
|
+
metadata: metadata,
|
2223
|
+
retry_policy: @config.rpcs.get_nas_trial_detail.retry_policy
|
2224
|
+
|
2225
|
+
options.apply_defaults timeout: @config.timeout,
|
2226
|
+
metadata: @config.metadata,
|
2227
|
+
retry_policy: @config.retry_policy
|
2228
|
+
|
2229
|
+
@job_service_stub.call_rpc :get_nas_trial_detail, request, options: options do |response, operation|
|
2230
|
+
yield response, operation if block_given?
|
2231
|
+
return response
|
2232
|
+
end
|
2233
|
+
rescue ::GRPC::BadStatus => e
|
2234
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2235
|
+
end
|
2236
|
+
|
2237
|
+
##
|
2238
|
+
# List top NasTrialDetails of a NasJob.
|
2239
|
+
#
|
2240
|
+
# @overload list_nas_trial_details(request, options = nil)
|
2241
|
+
# Pass arguments to `list_nas_trial_details` via a request object, either of type
|
2242
|
+
# {::Google::Cloud::AIPlatform::V1::ListNasTrialDetailsRequest} or an equivalent Hash.
|
2243
|
+
#
|
2244
|
+
# @param request [::Google::Cloud::AIPlatform::V1::ListNasTrialDetailsRequest, ::Hash]
|
2245
|
+
# A request object representing the call parameters. Required. To specify no
|
2246
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2247
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2248
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2249
|
+
#
|
2250
|
+
# @overload list_nas_trial_details(parent: nil, page_size: nil, page_token: nil)
|
2251
|
+
# Pass arguments to `list_nas_trial_details` via keyword arguments. Note that at
|
2252
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2253
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2254
|
+
#
|
2255
|
+
# @param parent [::String]
|
2256
|
+
# Required. The name of the NasJob resource.
|
2257
|
+
# Format:
|
2258
|
+
# `projects/{project}/locations/{location}/nasJobs/{nas_job}`
|
2259
|
+
# @param page_size [::Integer]
|
2260
|
+
# The standard list page size.
|
2261
|
+
# @param page_token [::String]
|
2262
|
+
# The standard list page token.
|
2263
|
+
# Typically obtained via
|
2264
|
+
# {::Google::Cloud::AIPlatform::V1::ListNasTrialDetailsResponse#next_page_token ListNasTrialDetailsResponse.next_page_token}
|
2265
|
+
# of the previous
|
2266
|
+
# {::Google::Cloud::AIPlatform::V1::JobService::Client#list_nas_trial_details JobService.ListNasTrialDetails}
|
2267
|
+
# call.
|
2268
|
+
#
|
2269
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2270
|
+
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasTrialDetail>]
|
2271
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2272
|
+
#
|
2273
|
+
# @return [::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasTrialDetail>]
|
2274
|
+
#
|
2275
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2276
|
+
#
|
2277
|
+
# @example Basic example
|
2278
|
+
# require "google/cloud/ai_platform/v1"
|
2279
|
+
#
|
2280
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2281
|
+
# client = Google::Cloud::AIPlatform::V1::JobService::Client.new
|
2282
|
+
#
|
2283
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2284
|
+
# request = Google::Cloud::AIPlatform::V1::ListNasTrialDetailsRequest.new
|
2285
|
+
#
|
2286
|
+
# # Call the list_nas_trial_details method.
|
2287
|
+
# result = client.list_nas_trial_details request
|
2288
|
+
#
|
2289
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2290
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2291
|
+
# result.each do |item|
|
2292
|
+
# # Each element is of type ::Google::Cloud::AIPlatform::V1::NasTrialDetail.
|
2293
|
+
# p item
|
2294
|
+
# end
|
2295
|
+
#
|
2296
|
+
def list_nas_trial_details request, options = nil
|
2297
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2298
|
+
|
2299
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AIPlatform::V1::ListNasTrialDetailsRequest
|
2300
|
+
|
2301
|
+
# Converts hash and nil to an options object
|
2302
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2303
|
+
|
2304
|
+
# Customize the options with defaults
|
2305
|
+
metadata = @config.rpcs.list_nas_trial_details.metadata.to_h
|
2306
|
+
|
2307
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2308
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2309
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2310
|
+
gapic_version: ::Google::Cloud::AIPlatform::V1::VERSION
|
2311
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2312
|
+
|
2313
|
+
header_params = {}
|
2314
|
+
if request.parent
|
2315
|
+
header_params["parent"] = request.parent
|
2316
|
+
end
|
2317
|
+
|
2318
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2319
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2320
|
+
|
2321
|
+
options.apply_defaults timeout: @config.rpcs.list_nas_trial_details.timeout,
|
2322
|
+
metadata: metadata,
|
2323
|
+
retry_policy: @config.rpcs.list_nas_trial_details.retry_policy
|
2324
|
+
|
2325
|
+
options.apply_defaults timeout: @config.timeout,
|
2326
|
+
metadata: @config.metadata,
|
2327
|
+
retry_policy: @config.retry_policy
|
2328
|
+
|
2329
|
+
@job_service_stub.call_rpc :list_nas_trial_details, request, options: options do |response, operation|
|
2330
|
+
response = ::Gapic::PagedEnumerable.new @job_service_stub, :list_nas_trial_details, request, response, operation, options
|
2331
|
+
yield response, operation if block_given?
|
2332
|
+
return response
|
2333
|
+
end
|
2334
|
+
rescue ::GRPC::BadStatus => e
|
2335
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2336
|
+
end
|
2337
|
+
|
1664
2338
|
##
|
1665
2339
|
# Creates a BatchPredictionJob. A BatchPredictionJob once created will
|
1666
2340
|
# right away be attempted to start.
|
@@ -1912,13 +2586,11 @@ module Google
|
|
1912
2586
|
# # Call the list_batch_prediction_jobs method.
|
1913
2587
|
# result = client.list_batch_prediction_jobs request
|
1914
2588
|
#
|
1915
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1916
|
-
# #
|
1917
|
-
#
|
1918
|
-
# # methods are also available for managing paging directly.
|
1919
|
-
# result.each do |response|
|
2589
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2590
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2591
|
+
# result.each do |item|
|
1920
2592
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::BatchPredictionJob.
|
1921
|
-
# p
|
2593
|
+
# p item
|
1922
2594
|
# end
|
1923
2595
|
#
|
1924
2596
|
def list_batch_prediction_jobs request, options = nil
|
@@ -2007,14 +2679,14 @@ module Google
|
|
2007
2679
|
# # Call the delete_batch_prediction_job method.
|
2008
2680
|
# result = client.delete_batch_prediction_job request
|
2009
2681
|
#
|
2010
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2011
|
-
# #
|
2012
|
-
# #
|
2682
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2683
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2684
|
+
# # Here is how to wait for a response.
|
2013
2685
|
# result.wait_until_done! timeout: 60
|
2014
2686
|
# if result.response?
|
2015
2687
|
# p result.response
|
2016
2688
|
# else
|
2017
|
-
# puts "
|
2689
|
+
# puts "No response received."
|
2018
2690
|
# end
|
2019
2691
|
#
|
2020
2692
|
def delete_batch_prediction_job request, options = nil
|
@@ -2311,13 +2983,11 @@ module Google
|
|
2311
2983
|
# # Call the search_model_deployment_monitoring_stats_anomalies method.
|
2312
2984
|
# result = client.search_model_deployment_monitoring_stats_anomalies request
|
2313
2985
|
#
|
2314
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2315
|
-
# #
|
2316
|
-
#
|
2317
|
-
# # methods are also available for managing paging directly.
|
2318
|
-
# result.each do |response|
|
2986
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2987
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2988
|
+
# result.each do |item|
|
2319
2989
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies.
|
2320
|
-
# p
|
2990
|
+
# p item
|
2321
2991
|
# end
|
2322
2992
|
#
|
2323
2993
|
def search_model_deployment_monitoring_stats_anomalies request, options = nil
|
@@ -2518,13 +3188,11 @@ module Google
|
|
2518
3188
|
# # Call the list_model_deployment_monitoring_jobs method.
|
2519
3189
|
# result = client.list_model_deployment_monitoring_jobs request
|
2520
3190
|
#
|
2521
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2522
|
-
# #
|
2523
|
-
#
|
2524
|
-
# # methods are also available for managing paging directly.
|
2525
|
-
# result.each do |response|
|
3191
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3192
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3193
|
+
# result.each do |item|
|
2526
3194
|
# # Each element is of type ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob.
|
2527
|
-
# p
|
3195
|
+
# p item
|
2528
3196
|
# end
|
2529
3197
|
#
|
2530
3198
|
def list_model_deployment_monitoring_jobs request, options = nil
|
@@ -2638,14 +3306,14 @@ module Google
|
|
2638
3306
|
# # Call the update_model_deployment_monitoring_job method.
|
2639
3307
|
# result = client.update_model_deployment_monitoring_job request
|
2640
3308
|
#
|
2641
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2642
|
-
# #
|
2643
|
-
# #
|
3309
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3310
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3311
|
+
# # Here is how to wait for a response.
|
2644
3312
|
# result.wait_until_done! timeout: 60
|
2645
3313
|
# if result.response?
|
2646
3314
|
# p result.response
|
2647
3315
|
# else
|
2648
|
-
# puts "
|
3316
|
+
# puts "No response received."
|
2649
3317
|
# end
|
2650
3318
|
#
|
2651
3319
|
def update_model_deployment_monitoring_job request, options = nil
|
@@ -2733,14 +3401,14 @@ module Google
|
|
2733
3401
|
# # Call the delete_model_deployment_monitoring_job method.
|
2734
3402
|
# result = client.delete_model_deployment_monitoring_job request
|
2735
3403
|
#
|
2736
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2737
|
-
# #
|
2738
|
-
# #
|
3404
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
3405
|
+
# # check the status of an operation, cancel it, or wait for results.
|
3406
|
+
# # Here is how to wait for a response.
|
2739
3407
|
# result.wait_until_done! timeout: 60
|
2740
3408
|
# if result.response?
|
2741
3409
|
# p result.response
|
2742
3410
|
# else
|
2743
|
-
# puts "
|
3411
|
+
# puts "No response received."
|
2744
3412
|
# end
|
2745
3413
|
#
|
2746
3414
|
def delete_model_deployment_monitoring_job request, options = nil
|
@@ -3175,6 +3843,41 @@ module Google
|
|
3175
3843
|
#
|
3176
3844
|
attr_reader :cancel_hyperparameter_tuning_job
|
3177
3845
|
##
|
3846
|
+
# RPC-specific configuration for `create_nas_job`
|
3847
|
+
# @return [::Gapic::Config::Method]
|
3848
|
+
#
|
3849
|
+
attr_reader :create_nas_job
|
3850
|
+
##
|
3851
|
+
# RPC-specific configuration for `get_nas_job`
|
3852
|
+
# @return [::Gapic::Config::Method]
|
3853
|
+
#
|
3854
|
+
attr_reader :get_nas_job
|
3855
|
+
##
|
3856
|
+
# RPC-specific configuration for `list_nas_jobs`
|
3857
|
+
# @return [::Gapic::Config::Method]
|
3858
|
+
#
|
3859
|
+
attr_reader :list_nas_jobs
|
3860
|
+
##
|
3861
|
+
# RPC-specific configuration for `delete_nas_job`
|
3862
|
+
# @return [::Gapic::Config::Method]
|
3863
|
+
#
|
3864
|
+
attr_reader :delete_nas_job
|
3865
|
+
##
|
3866
|
+
# RPC-specific configuration for `cancel_nas_job`
|
3867
|
+
# @return [::Gapic::Config::Method]
|
3868
|
+
#
|
3869
|
+
attr_reader :cancel_nas_job
|
3870
|
+
##
|
3871
|
+
# RPC-specific configuration for `get_nas_trial_detail`
|
3872
|
+
# @return [::Gapic::Config::Method]
|
3873
|
+
#
|
3874
|
+
attr_reader :get_nas_trial_detail
|
3875
|
+
##
|
3876
|
+
# RPC-specific configuration for `list_nas_trial_details`
|
3877
|
+
# @return [::Gapic::Config::Method]
|
3878
|
+
#
|
3879
|
+
attr_reader :list_nas_trial_details
|
3880
|
+
##
|
3178
3881
|
# RPC-specific configuration for `create_batch_prediction_job`
|
3179
3882
|
# @return [::Gapic::Config::Method]
|
3180
3883
|
#
|
@@ -3272,6 +3975,20 @@ module Google
|
|
3272
3975
|
@delete_hyperparameter_tuning_job = ::Gapic::Config::Method.new delete_hyperparameter_tuning_job_config
|
3273
3976
|
cancel_hyperparameter_tuning_job_config = parent_rpcs.cancel_hyperparameter_tuning_job if parent_rpcs.respond_to? :cancel_hyperparameter_tuning_job
|
3274
3977
|
@cancel_hyperparameter_tuning_job = ::Gapic::Config::Method.new cancel_hyperparameter_tuning_job_config
|
3978
|
+
create_nas_job_config = parent_rpcs.create_nas_job if parent_rpcs.respond_to? :create_nas_job
|
3979
|
+
@create_nas_job = ::Gapic::Config::Method.new create_nas_job_config
|
3980
|
+
get_nas_job_config = parent_rpcs.get_nas_job if parent_rpcs.respond_to? :get_nas_job
|
3981
|
+
@get_nas_job = ::Gapic::Config::Method.new get_nas_job_config
|
3982
|
+
list_nas_jobs_config = parent_rpcs.list_nas_jobs if parent_rpcs.respond_to? :list_nas_jobs
|
3983
|
+
@list_nas_jobs = ::Gapic::Config::Method.new list_nas_jobs_config
|
3984
|
+
delete_nas_job_config = parent_rpcs.delete_nas_job if parent_rpcs.respond_to? :delete_nas_job
|
3985
|
+
@delete_nas_job = ::Gapic::Config::Method.new delete_nas_job_config
|
3986
|
+
cancel_nas_job_config = parent_rpcs.cancel_nas_job if parent_rpcs.respond_to? :cancel_nas_job
|
3987
|
+
@cancel_nas_job = ::Gapic::Config::Method.new cancel_nas_job_config
|
3988
|
+
get_nas_trial_detail_config = parent_rpcs.get_nas_trial_detail if parent_rpcs.respond_to? :get_nas_trial_detail
|
3989
|
+
@get_nas_trial_detail = ::Gapic::Config::Method.new get_nas_trial_detail_config
|
3990
|
+
list_nas_trial_details_config = parent_rpcs.list_nas_trial_details if parent_rpcs.respond_to? :list_nas_trial_details
|
3991
|
+
@list_nas_trial_details = ::Gapic::Config::Method.new list_nas_trial_details_config
|
3275
3992
|
create_batch_prediction_job_config = parent_rpcs.create_batch_prediction_job if parent_rpcs.respond_to? :create_batch_prediction_job
|
3276
3993
|
@create_batch_prediction_job = ::Gapic::Config::Method.new create_batch_prediction_job_config
|
3277
3994
|
get_batch_prediction_job_config = parent_rpcs.get_batch_prediction_job if parent_rpcs.respond_to? :get_batch_prediction_job
|