- 0.57.0 (latest)
- 0.56.0
- 0.55.0
- 0.54.0
- 0.53.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.1
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::JobService::Client.
Client for the JobService service.
A service for creating and managing Vertex AI's jobs.
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the JobService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all JobService clients ::Google::Cloud::AIPlatform::V1::JobService::Client.configure do |config| config.timeout = 10.0 end
#cancel_batch_prediction_job
def cancel_batch_prediction_job(request, options = nil) -> ::Google::Protobuf::Empty
def cancel_batch_prediction_job(name: nil) -> ::Google::Protobuf::Empty
Cancels a BatchPredictionJob.
Starts asynchronous cancellation on the BatchPredictionJob. The server
makes the best effort to cancel the job, but success is not
guaranteed. Clients can use
JobService.GetBatchPredictionJob
or other methods to check whether the cancellation succeeded or whether the
job completed despite cancellation. On a successful cancellation,
the BatchPredictionJob is not deleted;instead its
BatchPredictionJob.state
is set to CANCELLED
. Any files already outputted by the job are not
deleted.
def cancel_batch_prediction_job(request, options = nil) -> ::Google::Protobuf::Empty
cancel_batch_prediction_job
via a request object, either of type
CancelBatchPredictionJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CancelBatchPredictionJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def cancel_batch_prediction_job(name: nil) -> ::Google::Protobuf::Empty
cancel_batch_prediction_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the BatchPredictionJob to cancel.
Format:
projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CancelBatchPredictionJobRequest.new # Call the cancel_batch_prediction_job method. result = client.cancel_batch_prediction_job request # The returned object is of type Google::Protobuf::Empty. p result
#cancel_custom_job
def cancel_custom_job(request, options = nil) -> ::Google::Protobuf::Empty
def cancel_custom_job(name: nil) -> ::Google::Protobuf::Empty
Cancels a CustomJob.
Starts asynchronous cancellation on the CustomJob. The server
makes a best effort to cancel the job, but success is not
guaranteed. Clients can use
JobService.GetCustomJob
or other methods to check whether the cancellation succeeded or whether the
job completed despite cancellation. On successful cancellation,
the CustomJob is not deleted; instead it becomes a job with
a CustomJob.error value with
a google.rpc.Status.code of 1, corresponding to
Code.CANCELLED
, and
CustomJob.state is set to
CANCELLED
.
def cancel_custom_job(request, options = nil) -> ::Google::Protobuf::Empty
cancel_custom_job
via a request object, either of type
CancelCustomJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CancelCustomJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def cancel_custom_job(name: nil) -> ::Google::Protobuf::Empty
cancel_custom_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the CustomJob to cancel.
Format:
projects/{project}/locations/{location}/customJobs/{custom_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CancelCustomJobRequest.new # Call the cancel_custom_job method. result = client.cancel_custom_job request # The returned object is of type Google::Protobuf::Empty. p result
#cancel_data_labeling_job
def cancel_data_labeling_job(request, options = nil) -> ::Google::Protobuf::Empty
def cancel_data_labeling_job(name: nil) -> ::Google::Protobuf::Empty
Cancels a DataLabelingJob. Success of cancellation is not guaranteed.
def cancel_data_labeling_job(request, options = nil) -> ::Google::Protobuf::Empty
cancel_data_labeling_job
via a request object, either of type
CancelDataLabelingJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CancelDataLabelingJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def cancel_data_labeling_job(name: nil) -> ::Google::Protobuf::Empty
cancel_data_labeling_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the DataLabelingJob.
Format:
projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CancelDataLabelingJobRequest.new # Call the cancel_data_labeling_job method. result = client.cancel_data_labeling_job request # The returned object is of type Google::Protobuf::Empty. p result
#cancel_hyperparameter_tuning_job
def cancel_hyperparameter_tuning_job(request, options = nil) -> ::Google::Protobuf::Empty
def cancel_hyperparameter_tuning_job(name: nil) -> ::Google::Protobuf::Empty
Cancels a HyperparameterTuningJob.
Starts asynchronous cancellation on the HyperparameterTuningJob. The server
makes a best effort to cancel the job, but success is not
guaranteed. Clients can use
JobService.GetHyperparameterTuningJob
or other methods to check whether the cancellation succeeded or whether the
job completed despite cancellation. On successful cancellation,
the HyperparameterTuningJob is not deleted; instead it becomes a job with
a
HyperparameterTuningJob.error
value with a google.rpc.Status.code of 1,
corresponding to Code.CANCELLED
, and
HyperparameterTuningJob.state
is set to CANCELLED
.
def cancel_hyperparameter_tuning_job(request, options = nil) -> ::Google::Protobuf::Empty
cancel_hyperparameter_tuning_job
via a request object, either of type
CancelHyperparameterTuningJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CancelHyperparameterTuningJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def cancel_hyperparameter_tuning_job(name: nil) -> ::Google::Protobuf::Empty
cancel_hyperparameter_tuning_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the HyperparameterTuningJob to cancel.
Format:
projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CancelHyperparameterTuningJobRequest.new # Call the cancel_hyperparameter_tuning_job method. result = client.cancel_hyperparameter_tuning_job request # The returned object is of type Google::Protobuf::Empty. p result
#cancel_nas_job
def cancel_nas_job(request, options = nil) -> ::Google::Protobuf::Empty
def cancel_nas_job(name: nil) -> ::Google::Protobuf::Empty
Cancels a NasJob.
Starts asynchronous cancellation on the NasJob. The server
makes a best effort to cancel the job, but success is not
guaranteed. Clients can use
JobService.GetNasJob or
other methods to check whether the cancellation succeeded or whether the
job completed despite cancellation. On successful cancellation,
the NasJob is not deleted; instead it becomes a job with
a NasJob.error value with a
google.rpc.Status.code of 1, corresponding to
Code.CANCELLED
, and
NasJob.state is set to
CANCELLED
.
def cancel_nas_job(request, options = nil) -> ::Google::Protobuf::Empty
cancel_nas_job
via a request object, either of type
CancelNasJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CancelNasJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def cancel_nas_job(name: nil) -> ::Google::Protobuf::Empty
cancel_nas_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the NasJob to cancel.
Format:
projects/{project}/locations/{location}/nasJobs/{nas_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CancelNasJobRequest.new # Call the cancel_nas_job method. result = client.cancel_nas_job request # The returned object is of type Google::Protobuf::Empty. p result
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the JobService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_batch_prediction_job
def create_batch_prediction_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::BatchPredictionJob
def create_batch_prediction_job(parent: nil, batch_prediction_job: nil) -> ::Google::Cloud::AIPlatform::V1::BatchPredictionJob
Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.
def create_batch_prediction_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::BatchPredictionJob
create_batch_prediction_job
via a request object, either of type
CreateBatchPredictionJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CreateBatchPredictionJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_batch_prediction_job(parent: nil, batch_prediction_job: nil) -> ::Google::Cloud::AIPlatform::V1::BatchPredictionJob
create_batch_prediction_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the Location to create the
BatchPredictionJob in. Format:
projects/{project}/locations/{location}
- batch_prediction_job (::Google::Cloud::AIPlatform::V1::BatchPredictionJob, ::Hash) — Required. The BatchPredictionJob to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::BatchPredictionJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CreateBatchPredictionJobRequest.new # Call the create_batch_prediction_job method. result = client.create_batch_prediction_job request # The returned object is of type Google::Cloud::AIPlatform::V1::BatchPredictionJob. p result
#create_custom_job
def create_custom_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::CustomJob
def create_custom_job(parent: nil, custom_job: nil) -> ::Google::Cloud::AIPlatform::V1::CustomJob
Creates a CustomJob. A created CustomJob right away will be attempted to be run.
def create_custom_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::CustomJob
create_custom_job
via a request object, either of type
CreateCustomJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CreateCustomJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_custom_job(parent: nil, custom_job: nil) -> ::Google::Cloud::AIPlatform::V1::CustomJob
create_custom_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the Location to create the CustomJob in.
Format:
projects/{project}/locations/{location}
- custom_job (::Google::Cloud::AIPlatform::V1::CustomJob, ::Hash) — Required. The CustomJob to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::CustomJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CreateCustomJobRequest.new # Call the create_custom_job method. result = client.create_custom_job request # The returned object is of type Google::Cloud::AIPlatform::V1::CustomJob. p result
#create_data_labeling_job
def create_data_labeling_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::DataLabelingJob
def create_data_labeling_job(parent: nil, data_labeling_job: nil) -> ::Google::Cloud::AIPlatform::V1::DataLabelingJob
Creates a DataLabelingJob.
def create_data_labeling_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::DataLabelingJob
create_data_labeling_job
via a request object, either of type
CreateDataLabelingJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CreateDataLabelingJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_data_labeling_job(parent: nil, data_labeling_job: nil) -> ::Google::Cloud::AIPlatform::V1::DataLabelingJob
create_data_labeling_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent of the DataLabelingJob.
Format:
projects/{project}/locations/{location}
- data_labeling_job (::Google::Cloud::AIPlatform::V1::DataLabelingJob, ::Hash) — Required. The DataLabelingJob to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::DataLabelingJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CreateDataLabelingJobRequest.new # Call the create_data_labeling_job method. result = client.create_data_labeling_job request # The returned object is of type Google::Cloud::AIPlatform::V1::DataLabelingJob. p result
#create_hyperparameter_tuning_job
def create_hyperparameter_tuning_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob
def create_hyperparameter_tuning_job(parent: nil, hyperparameter_tuning_job: nil) -> ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob
Creates a HyperparameterTuningJob
def create_hyperparameter_tuning_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob
create_hyperparameter_tuning_job
via a request object, either of type
CreateHyperparameterTuningJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CreateHyperparameterTuningJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_hyperparameter_tuning_job(parent: nil, hyperparameter_tuning_job: nil) -> ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob
create_hyperparameter_tuning_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the Location to create the
HyperparameterTuningJob in. Format:
projects/{project}/locations/{location}
- hyperparameter_tuning_job (::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob, ::Hash) — Required. The HyperparameterTuningJob to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CreateHyperparameterTuningJobRequest.new # Call the create_hyperparameter_tuning_job method. result = client.create_hyperparameter_tuning_job request # The returned object is of type Google::Cloud::AIPlatform::V1::HyperparameterTuningJob. p result
#create_model_deployment_monitoring_job
def create_model_deployment_monitoring_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob
def create_model_deployment_monitoring_job(parent: nil, model_deployment_monitoring_job: nil) -> ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob
Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.
def create_model_deployment_monitoring_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob
create_model_deployment_monitoring_job
via a request object, either of type
CreateModelDeploymentMonitoringJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CreateModelDeploymentMonitoringJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_model_deployment_monitoring_job(parent: nil, model_deployment_monitoring_job: nil) -> ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob
create_model_deployment_monitoring_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent of the ModelDeploymentMonitoringJob.
Format:
projects/{project}/locations/{location}
- model_deployment_monitoring_job (::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob, ::Hash) — Required. The ModelDeploymentMonitoringJob to create
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CreateModelDeploymentMonitoringJobRequest.new # Call the create_model_deployment_monitoring_job method. result = client.create_model_deployment_monitoring_job request # The returned object is of type Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob. p result
#create_nas_job
def create_nas_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NasJob
def create_nas_job(parent: nil, nas_job: nil) -> ::Google::Cloud::AIPlatform::V1::NasJob
Creates a NasJob
def create_nas_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NasJob
create_nas_job
via a request object, either of type
CreateNasJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::CreateNasJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def create_nas_job(parent: nil, nas_job: nil) -> ::Google::Cloud::AIPlatform::V1::NasJob
create_nas_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the Location to create the NasJob in.
Format:
projects/{project}/locations/{location}
- nas_job (::Google::Cloud::AIPlatform::V1::NasJob, ::Hash) — Required. The NasJob to create.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::NasJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::CreateNasJobRequest.new # Call the create_nas_job method. result = client.create_nas_job request # The returned object is of type Google::Cloud::AIPlatform::V1::NasJob. p result
#delete_batch_prediction_job
def delete_batch_prediction_job(request, options = nil) -> ::Gapic::Operation
def delete_batch_prediction_job(name: nil) -> ::Gapic::Operation
Deletes a BatchPredictionJob. Can only be called on jobs that already finished.
def delete_batch_prediction_job(request, options = nil) -> ::Gapic::Operation
delete_batch_prediction_job
via a request object, either of type
DeleteBatchPredictionJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::DeleteBatchPredictionJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_batch_prediction_job(name: nil) -> ::Gapic::Operation
delete_batch_prediction_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the BatchPredictionJob resource to be deleted.
Format:
projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::DeleteBatchPredictionJobRequest.new # Call the delete_batch_prediction_job method. result = client.delete_batch_prediction_job request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_custom_job
def delete_custom_job(request, options = nil) -> ::Gapic::Operation
def delete_custom_job(name: nil) -> ::Gapic::Operation
Deletes a CustomJob.
def delete_custom_job(request, options = nil) -> ::Gapic::Operation
delete_custom_job
via a request object, either of type
DeleteCustomJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::DeleteCustomJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_custom_job(name: nil) -> ::Gapic::Operation
delete_custom_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the CustomJob resource to be deleted.
Format:
projects/{project}/locations/{location}/customJobs/{custom_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::DeleteCustomJobRequest.new # Call the delete_custom_job method. result = client.delete_custom_job request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_data_labeling_job
def delete_data_labeling_job(request, options = nil) -> ::Gapic::Operation
def delete_data_labeling_job(name: nil) -> ::Gapic::Operation
Deletes a DataLabelingJob.
def delete_data_labeling_job(request, options = nil) -> ::Gapic::Operation
delete_data_labeling_job
via a request object, either of type
DeleteDataLabelingJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::DeleteDataLabelingJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_data_labeling_job(name: nil) -> ::Gapic::Operation
delete_data_labeling_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the DataLabelingJob to be deleted.
Format:
projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::DeleteDataLabelingJobRequest.new # Call the delete_data_labeling_job method. result = client.delete_data_labeling_job request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_hyperparameter_tuning_job
def delete_hyperparameter_tuning_job(request, options = nil) -> ::Gapic::Operation
def delete_hyperparameter_tuning_job(name: nil) -> ::Gapic::Operation
Deletes a HyperparameterTuningJob.
def delete_hyperparameter_tuning_job(request, options = nil) -> ::Gapic::Operation
delete_hyperparameter_tuning_job
via a request object, either of type
DeleteHyperparameterTuningJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::DeleteHyperparameterTuningJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_hyperparameter_tuning_job(name: nil) -> ::Gapic::Operation
delete_hyperparameter_tuning_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the HyperparameterTuningJob resource to be deleted.
Format:
projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::DeleteHyperparameterTuningJobRequest.new # Call the delete_hyperparameter_tuning_job method. result = client.delete_hyperparameter_tuning_job request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_model_deployment_monitoring_job
def delete_model_deployment_monitoring_job(request, options = nil) -> ::Gapic::Operation
def delete_model_deployment_monitoring_job(name: nil) -> ::Gapic::Operation
Deletes a ModelDeploymentMonitoringJob.
def delete_model_deployment_monitoring_job(request, options = nil) -> ::Gapic::Operation
delete_model_deployment_monitoring_job
via a request object, either of type
DeleteModelDeploymentMonitoringJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::DeleteModelDeploymentMonitoringJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_model_deployment_monitoring_job(name: nil) -> ::Gapic::Operation
delete_model_deployment_monitoring_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the model monitoring job to delete.
Format:
projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::DeleteModelDeploymentMonitoringJobRequest.new # Call the delete_model_deployment_monitoring_job method. result = client.delete_model_deployment_monitoring_job request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#delete_nas_job
def delete_nas_job(request, options = nil) -> ::Gapic::Operation
def delete_nas_job(name: nil) -> ::Gapic::Operation
Deletes a NasJob.
def delete_nas_job(request, options = nil) -> ::Gapic::Operation
delete_nas_job
via a request object, either of type
DeleteNasJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::DeleteNasJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def delete_nas_job(name: nil) -> ::Gapic::Operation
delete_nas_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the NasJob resource to be deleted.
Format:
projects/{project}/locations/{location}/nasJobs/{nas_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::DeleteNasJobRequest.new # Call the delete_nas_job method. result = client.delete_nas_job request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end
#get_batch_prediction_job
def get_batch_prediction_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::BatchPredictionJob
def get_batch_prediction_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::BatchPredictionJob
Gets a BatchPredictionJob
def get_batch_prediction_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::BatchPredictionJob
get_batch_prediction_job
via a request object, either of type
GetBatchPredictionJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::GetBatchPredictionJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_batch_prediction_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::BatchPredictionJob
get_batch_prediction_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the BatchPredictionJob resource.
Format:
projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::BatchPredictionJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::GetBatchPredictionJobRequest.new # Call the get_batch_prediction_job method. result = client.get_batch_prediction_job request # The returned object is of type Google::Cloud::AIPlatform::V1::BatchPredictionJob. p result
#get_custom_job
def get_custom_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::CustomJob
def get_custom_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::CustomJob
Gets a CustomJob.
def get_custom_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::CustomJob
get_custom_job
via a request object, either of type
GetCustomJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::GetCustomJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_custom_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::CustomJob
get_custom_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the CustomJob resource.
Format:
projects/{project}/locations/{location}/customJobs/{custom_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::CustomJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::GetCustomJobRequest.new # Call the get_custom_job method. result = client.get_custom_job request # The returned object is of type Google::Cloud::AIPlatform::V1::CustomJob. p result
#get_data_labeling_job
def get_data_labeling_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::DataLabelingJob
def get_data_labeling_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::DataLabelingJob
Gets a DataLabelingJob.
def get_data_labeling_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::DataLabelingJob
get_data_labeling_job
via a request object, either of type
GetDataLabelingJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::GetDataLabelingJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_data_labeling_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::DataLabelingJob
get_data_labeling_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the DataLabelingJob.
Format:
projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::DataLabelingJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::GetDataLabelingJobRequest.new # Call the get_data_labeling_job method. result = client.get_data_labeling_job request # The returned object is of type Google::Cloud::AIPlatform::V1::DataLabelingJob. p result
#get_hyperparameter_tuning_job
def get_hyperparameter_tuning_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob
def get_hyperparameter_tuning_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob
Gets a HyperparameterTuningJob
def get_hyperparameter_tuning_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob
get_hyperparameter_tuning_job
via a request object, either of type
GetHyperparameterTuningJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::GetHyperparameterTuningJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_hyperparameter_tuning_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob
get_hyperparameter_tuning_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the HyperparameterTuningJob resource.
Format:
projects/{project}/locations/{location}/hyperparameterTuningJobs/{hyperparameter_tuning_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::GetHyperparameterTuningJobRequest.new # Call the get_hyperparameter_tuning_job method. result = client.get_hyperparameter_tuning_job request # The returned object is of type Google::Cloud::AIPlatform::V1::HyperparameterTuningJob. p result
#get_model_deployment_monitoring_job
def get_model_deployment_monitoring_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob
def get_model_deployment_monitoring_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob
Gets a ModelDeploymentMonitoringJob.
def get_model_deployment_monitoring_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob
get_model_deployment_monitoring_job
via a request object, either of type
GetModelDeploymentMonitoringJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::GetModelDeploymentMonitoringJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_model_deployment_monitoring_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob
get_model_deployment_monitoring_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the ModelDeploymentMonitoringJob.
Format:
projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::GetModelDeploymentMonitoringJobRequest.new # Call the get_model_deployment_monitoring_job method. result = client.get_model_deployment_monitoring_job request # The returned object is of type Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob. p result
#get_nas_job
def get_nas_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NasJob
def get_nas_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::NasJob
Gets a NasJob
def get_nas_job(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NasJob
get_nas_job
via a request object, either of type
GetNasJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::GetNasJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_nas_job(name: nil) -> ::Google::Cloud::AIPlatform::V1::NasJob
get_nas_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the NasJob resource.
Format:
projects/{project}/locations/{location}/nasJobs/{nas_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::NasJob)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::GetNasJobRequest.new # Call the get_nas_job method. result = client.get_nas_job request # The returned object is of type Google::Cloud::AIPlatform::V1::NasJob. p result
#get_nas_trial_detail
def get_nas_trial_detail(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NasTrialDetail
def get_nas_trial_detail(name: nil) -> ::Google::Cloud::AIPlatform::V1::NasTrialDetail
Gets a NasTrialDetail.
def get_nas_trial_detail(request, options = nil) -> ::Google::Cloud::AIPlatform::V1::NasTrialDetail
get_nas_trial_detail
via a request object, either of type
GetNasTrialDetailRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::GetNasTrialDetailRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_nas_trial_detail(name: nil) -> ::Google::Cloud::AIPlatform::V1::NasTrialDetail
get_nas_trial_detail
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the NasTrialDetail resource.
Format:
projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::AIPlatform::V1::NasTrialDetail)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::GetNasTrialDetailRequest.new # Call the get_nas_trial_detail method. result = client.get_nas_trial_detail request # The returned object is of type Google::Cloud::AIPlatform::V1::NasTrialDetail. p result
#iam_policy_client
def iam_policy_client() -> Google::Iam::V1::IAMPolicy::Client
Get the associated client for mix-in of the IAMPolicy.
- (Google::Iam::V1::IAMPolicy::Client)
#initialize
def initialize() { |config| ... } -> Client
Create a new JobService client object.
- (config) — Configure the JobService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a client using a custom configuration client = ::Google::Cloud::AIPlatform::V1::JobService::Client.new do |config| config.timeout = 10.0 end
#list_batch_prediction_jobs
def list_batch_prediction_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::BatchPredictionJob>
def list_batch_prediction_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::BatchPredictionJob>
Lists BatchPredictionJobs in a Location.
def list_batch_prediction_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::BatchPredictionJob>
list_batch_prediction_jobs
via a request object, either of type
ListBatchPredictionJobsRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::ListBatchPredictionJobsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_batch_prediction_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::BatchPredictionJob>
list_batch_prediction_jobs
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the Location to list the BatchPredictionJobs
from. Format:
projects/{project}/locations/{location}
-
filter (::String) —
The standard list filter.
Supported fields:
display_name
supports=
,!=
comparisons, and:
wildcard.model_display_name
supports=
,!=
comparisons.state
supports=
,!=
comparisons.create_time
supports=
,!=
,<
,<=
,>
,>=
comparisons.create_time
must be in RFC 3339 format.labels
supports general map functions that is:labels.key=value
- key:value equality `labels.key:* - key existence
Some examples of using the filter are:
state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"
state!="JOB_STATE_FAILED" OR display_name="my_job"
NOT display_name="my_job"
create_time>"2021-05-18T00:00:00Z"
labels.keyA=valueA
labels.keyB:*
- page_size (::Integer) — The standard list page size.
- page_token (::String) — The standard list page token. Typically obtained via ListBatchPredictionJobsResponse.next_page_token of the previous JobService.ListBatchPredictionJobs call.
- read_mask (::Google::Protobuf::FieldMask, ::Hash) — Mask specifying which fields to read.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::BatchPredictionJob>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::BatchPredictionJob>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::ListBatchPredictionJobsRequest.new # Call the list_batch_prediction_jobs method. result = client.list_batch_prediction_jobs request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AIPlatform::V1::BatchPredictionJob. p item end
#list_custom_jobs
def list_custom_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::CustomJob>
def list_custom_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::CustomJob>
Lists CustomJobs in a Location.
def list_custom_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::CustomJob>
list_custom_jobs
via a request object, either of type
ListCustomJobsRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::ListCustomJobsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_custom_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::CustomJob>
list_custom_jobs
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the Location to list the CustomJobs from.
Format:
projects/{project}/locations/{location}
-
filter (::String) —
The standard list filter.
Supported fields:
display_name
supports=
,!=
comparisons, and:
wildcard.state
supports=
,!=
comparisons.create_time
supports=
,!=
,<
,<=
,>
,>=
comparisons.create_time
must be in RFC 3339 format.labels
supports general map functions that is:labels.key=value
- key:value equality `labels.key:* - key existence
Some examples of using the filter are:
state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"
state!="JOB_STATE_FAILED" OR display_name="my_job"
NOT display_name="my_job"
create_time>"2021-05-18T00:00:00Z"
labels.keyA=valueA
labels.keyB:*
- page_size (::Integer) — The standard list page size.
- page_token (::String) — The standard list page token. Typically obtained via ListCustomJobsResponse.next_page_token of the previous JobService.ListCustomJobs call.
- read_mask (::Google::Protobuf::FieldMask, ::Hash) — Mask specifying which fields to read.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::CustomJob>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::CustomJob>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::ListCustomJobsRequest.new # Call the list_custom_jobs method. result = client.list_custom_jobs request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AIPlatform::V1::CustomJob. p item end
#list_data_labeling_jobs
def list_data_labeling_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataLabelingJob>
def list_data_labeling_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataLabelingJob>
Lists DataLabelingJobs in a Location.
def list_data_labeling_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataLabelingJob>
list_data_labeling_jobs
via a request object, either of type
ListDataLabelingJobsRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::ListDataLabelingJobsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_data_labeling_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil, order_by: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataLabelingJob>
list_data_labeling_jobs
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent of the DataLabelingJob.
Format:
projects/{project}/locations/{location}
-
filter (::String) —
The standard list filter.
Supported fields:
display_name
supports=
,!=
comparisons, and:
wildcard.state
supports=
,!=
comparisons.create_time
supports=
,!=
,<
,<=
,>
,>=
comparisons.create_time
must be in RFC 3339 format.labels
supports general map functions that is:labels.key=value
- key:value equality `labels.key:* - key existence
Some examples of using the filter are:
state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"
state!="JOB_STATE_FAILED" OR display_name="my_job"
NOT display_name="my_job"
create_time>"2021-05-18T00:00:00Z"
labels.keyA=valueA
labels.keyB:*
- page_size (::Integer) — The standard list page size.
- page_token (::String) — The standard list page token.
-
read_mask (::Google::Protobuf::FieldMask, ::Hash) — Mask specifying which fields to read. FieldMask represents a set of
symbolic field paths. For example, the mask can be
paths: "name"
. The "name" here is a field in DataLabelingJob. If this field is not set, all fields of the DataLabelingJob are returned. -
order_by (::String) — A comma-separated list of fields to order by, sorted in ascending order by
default.
Use
desc
after a field name for descending.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataLabelingJob>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::DataLabelingJob>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::ListDataLabelingJobsRequest.new # Call the list_data_labeling_jobs method. result = client.list_data_labeling_jobs request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AIPlatform::V1::DataLabelingJob. p item end
#list_hyperparameter_tuning_jobs
def list_hyperparameter_tuning_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob>
def list_hyperparameter_tuning_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob>
Lists HyperparameterTuningJobs in a Location.
def list_hyperparameter_tuning_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob>
list_hyperparameter_tuning_jobs
via a request object, either of type
ListHyperparameterTuningJobsRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::ListHyperparameterTuningJobsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_hyperparameter_tuning_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob>
list_hyperparameter_tuning_jobs
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the Location to list the
HyperparameterTuningJobs from. Format:
projects/{project}/locations/{location}
-
filter (::String) —
The standard list filter.
Supported fields:
display_name
supports=
,!=
comparisons, and:
wildcard.state
supports=
,!=
comparisons.create_time
supports=
,!=
,<
,<=
,>
,>=
comparisons.create_time
must be in RFC 3339 format.labels
supports general map functions that is:labels.key=value
- key:value equality `labels.key:* - key existence
Some examples of using the filter are:
state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"
state!="JOB_STATE_FAILED" OR display_name="my_job"
NOT display_name="my_job"
create_time>"2021-05-18T00:00:00Z"
labels.keyA=valueA
labels.keyB:*
- page_size (::Integer) — The standard list page size.
- page_token (::String) — The standard list page token. Typically obtained via ListHyperparameterTuningJobsResponse.next_page_token of the previous JobService.ListHyperparameterTuningJobs call.
- read_mask (::Google::Protobuf::FieldMask, ::Hash) — Mask specifying which fields to read.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::ListHyperparameterTuningJobsRequest.new # Call the list_hyperparameter_tuning_jobs method. result = client.list_hyperparameter_tuning_jobs request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AIPlatform::V1::HyperparameterTuningJob. p item end
#list_model_deployment_monitoring_jobs
def list_model_deployment_monitoring_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob>
def list_model_deployment_monitoring_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob>
Lists ModelDeploymentMonitoringJobs in a Location.
def list_model_deployment_monitoring_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob>
list_model_deployment_monitoring_jobs
via a request object, either of type
ListModelDeploymentMonitoringJobsRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::ListModelDeploymentMonitoringJobsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_model_deployment_monitoring_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob>
list_model_deployment_monitoring_jobs
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The parent of the ModelDeploymentMonitoringJob.
Format:
projects/{project}/locations/{location}
-
filter (::String) —
The standard list filter.
Supported fields:
display_name
supports=
,!=
comparisons, and:
wildcard.state
supports=
,!=
comparisons.create_time
supports=
,!=
,<
,<=
,>
,>=
comparisons.create_time
must be in RFC 3339 format.labels
supports general map functions that is:labels.key=value
- key:value equality `labels.key:* - key existence
Some examples of using the filter are:
state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"
state!="JOB_STATE_FAILED" OR display_name="my_job"
NOT display_name="my_job"
create_time>"2021-05-18T00:00:00Z"
labels.keyA=valueA
labels.keyB:*
- page_size (::Integer) — The standard list page size.
- page_token (::String) — The standard list page token.
- read_mask (::Google::Protobuf::FieldMask, ::Hash) — Mask specifying which fields to read
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::ListModelDeploymentMonitoringJobsRequest.new # Call the list_model_deployment_monitoring_jobs method. result = client.list_model_deployment_monitoring_jobs request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob. p item end
#list_nas_jobs
def list_nas_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasJob>
def list_nas_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasJob>
Lists NasJobs in a Location.
def list_nas_jobs(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasJob>
list_nas_jobs
via a request object, either of type
ListNasJobsRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::ListNasJobsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_nas_jobs(parent: nil, filter: nil, page_size: nil, page_token: nil, read_mask: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasJob>
list_nas_jobs
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the Location to list the NasJobs
from. Format:
projects/{project}/locations/{location}
-
filter (::String) —
The standard list filter.
Supported fields:
display_name
supports=
,!=
comparisons, and:
wildcard.state
supports=
,!=
comparisons.create_time
supports=
,!=
,<
,<=
,>
,>=
comparisons.create_time
must be in RFC 3339 format.labels
supports general map functions that is:labels.key=value
- key:value equality `labels.key:* - key existence
Some examples of using the filter are:
state="JOB_STATE_SUCCEEDED" AND display_name:"my_job_*"
state!="JOB_STATE_FAILED" OR display_name="my_job"
NOT display_name="my_job"
create_time>"2021-05-18T00:00:00Z"
labels.keyA=valueA
labels.keyB:*
- page_size (::Integer) — The standard list page size.
- page_token (::String) — The standard list page token. Typically obtained via ListNasJobsResponse.next_page_token of the previous JobService.ListNasJobs call.
- read_mask (::Google::Protobuf::FieldMask, ::Hash) — Mask specifying which fields to read.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasJob>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasJob>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::ListNasJobsRequest.new # Call the list_nas_jobs method. result = client.list_nas_jobs request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AIPlatform::V1::NasJob. p item end
#list_nas_trial_details
def list_nas_trial_details(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasTrialDetail>
def list_nas_trial_details(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasTrialDetail>
List top NasTrialDetails of a NasJob.
def list_nas_trial_details(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasTrialDetail>
list_nas_trial_details
via a request object, either of type
ListNasTrialDetailsRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::ListNasTrialDetailsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def list_nas_trial_details(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasTrialDetail>
list_nas_trial_details
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The name of the NasJob resource.
Format:
projects/{project}/locations/{location}/nasJobs/{nas_job}
- page_size (::Integer) — The standard list page size.
- page_token (::String) — The standard list page token. Typically obtained via ListNasTrialDetailsResponse.next_page_token of the previous JobService.ListNasTrialDetails call.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasTrialDetail>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::NasTrialDetail>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::ListNasTrialDetailsRequest.new # Call the list_nas_trial_details method. result = client.list_nas_trial_details request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AIPlatform::V1::NasTrialDetail. p item end
#location_client
def location_client() -> Google::Cloud::Location::Locations::Client
Get the associated client for mix-in of the Locations.
- (Google::Cloud::Location::Locations::Client)
#operations_client
def operations_client() -> ::Google::Cloud::AIPlatform::V1::JobService::Operations
Get the associated client for long-running operations.
#pause_model_deployment_monitoring_job
def pause_model_deployment_monitoring_job(request, options = nil) -> ::Google::Protobuf::Empty
def pause_model_deployment_monitoring_job(name: nil) -> ::Google::Protobuf::Empty
Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to cancel the job. Will mark ModelDeploymentMonitoringJob.state to 'PAUSED'.
def pause_model_deployment_monitoring_job(request, options = nil) -> ::Google::Protobuf::Empty
pause_model_deployment_monitoring_job
via a request object, either of type
PauseModelDeploymentMonitoringJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::PauseModelDeploymentMonitoringJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def pause_model_deployment_monitoring_job(name: nil) -> ::Google::Protobuf::Empty
pause_model_deployment_monitoring_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the ModelDeploymentMonitoringJob to pause.
Format:
projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::PauseModelDeploymentMonitoringJobRequest.new # Call the pause_model_deployment_monitoring_job method. result = client.pause_model_deployment_monitoring_job request # The returned object is of type Google::Protobuf::Empty. p result
#resume_model_deployment_monitoring_job
def resume_model_deployment_monitoring_job(request, options = nil) -> ::Google::Protobuf::Empty
def resume_model_deployment_monitoring_job(name: nil) -> ::Google::Protobuf::Empty
Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A deleted ModelDeploymentMonitoringJob can't be resumed.
def resume_model_deployment_monitoring_job(request, options = nil) -> ::Google::Protobuf::Empty
resume_model_deployment_monitoring_job
via a request object, either of type
ResumeModelDeploymentMonitoringJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::ResumeModelDeploymentMonitoringJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def resume_model_deployment_monitoring_job(name: nil) -> ::Google::Protobuf::Empty
resume_model_deployment_monitoring_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the ModelDeploymentMonitoringJob to resume.
Format:
projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Protobuf::Empty)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::ResumeModelDeploymentMonitoringJobRequest.new # Call the resume_model_deployment_monitoring_job method. result = client.resume_model_deployment_monitoring_job request # The returned object is of type Google::Protobuf::Empty. p result
#search_model_deployment_monitoring_stats_anomalies
def search_model_deployment_monitoring_stats_anomalies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies>
def search_model_deployment_monitoring_stats_anomalies(model_deployment_monitoring_job: nil, deployed_model_id: nil, feature_display_name: nil, objectives: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies>
Searches Model Monitoring Statistics generated within a given time window.
def search_model_deployment_monitoring_stats_anomalies(request, options = nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies>
search_model_deployment_monitoring_stats_anomalies
via a request object, either of type
SearchModelDeploymentMonitoringStatsAnomaliesRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::SearchModelDeploymentMonitoringStatsAnomaliesRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def search_model_deployment_monitoring_stats_anomalies(model_deployment_monitoring_job: nil, deployed_model_id: nil, feature_display_name: nil, objectives: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil) -> ::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies>
search_model_deployment_monitoring_stats_anomalies
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
model_deployment_monitoring_job (::String) — Required. ModelDeploymentMonitoring Job resource name.
Format:
projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job}
- deployed_model_id (::String) — Required. The DeployedModel ID of the [ModelDeploymentMonitoringObjectiveConfig.deployed_model_id].
- feature_display_name (::String) — The feature display name. If specified, only return the stats belonging to this feature. Format: ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.feature_display_name, example: "user_destination".
- objectives (::Array<::Google::Cloud::AIPlatform::V1::SearchModelDeploymentMonitoringStatsAnomaliesRequest::StatsAnomaliesObjective, ::Hash>) — Required. Objectives of the stats to retrieve.
- page_size (::Integer) — The standard list page size.
- page_token (::String) — A page token received from a previous JobService.SearchModelDeploymentMonitoringStatsAnomalies call.
- start_time (::Google::Protobuf::Timestamp, ::Hash) — The earliest timestamp of stats being generated. If not set, indicates fetching stats till the earliest possible one.
- end_time (::Google::Protobuf::Timestamp, ::Hash) — The latest timestamp of stats being generated. If not set, indicates feching stats till the latest possible one.
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies>)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::PagedEnumerable<::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies>)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::SearchModelDeploymentMonitoringStatsAnomaliesRequest.new # Call the search_model_deployment_monitoring_stats_anomalies method. result = client.search_model_deployment_monitoring_stats_anomalies request # The returned object is of type Gapic::PagedEnumerable. You can iterate # over elements, and API calls will be issued to fetch pages as needed. result.each do |item| # Each element is of type ::Google::Cloud::AIPlatform::V1::ModelMonitoringStatsAnomalies. p item end
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_model_deployment_monitoring_job
def update_model_deployment_monitoring_job(request, options = nil) -> ::Gapic::Operation
def update_model_deployment_monitoring_job(model_deployment_monitoring_job: nil, update_mask: nil) -> ::Gapic::Operation
Updates a ModelDeploymentMonitoringJob.
def update_model_deployment_monitoring_job(request, options = nil) -> ::Gapic::Operation
update_model_deployment_monitoring_job
via a request object, either of type
UpdateModelDeploymentMonitoringJobRequest or an equivalent Hash.
- request (::Google::Cloud::AIPlatform::V1::UpdateModelDeploymentMonitoringJobRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_model_deployment_monitoring_job(model_deployment_monitoring_job: nil, update_mask: nil) -> ::Gapic::Operation
update_model_deployment_monitoring_job
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- model_deployment_monitoring_job (::Google::Cloud::AIPlatform::V1::ModelDeploymentMonitoringJob, ::Hash) — Required. The model monitoring configuration which replaces the resource on the server.
-
update_mask (::Google::Protobuf::FieldMask, ::Hash) —
Required. The update mask is used to specify the fields to be overwritten in the ModelDeploymentMonitoringJob resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then only the non-empty fields present in the request will be overwritten. Set the update_mask to
*
to override all fields. For the objective config, the user can either provide the update mask for model_deployment_monitoring_objective_configs or any combination of its nested fields, such as: model_deployment_monitoring_objective_configs.objective_config.training_dataset.Updatable fields:
display_name
model_deployment_monitoring_schedule_config
model_monitoring_alert_config
logging_sampling_strategy
labels
log_ttl
enable_monitoring_pipeline_logs
. andmodel_deployment_monitoring_objective_configs
. ormodel_deployment_monitoring_objective_configs.objective_config.training_dataset
model_deployment_monitoring_objective_configs.objective_config.training_prediction_skew_detection_config
model_deployment_monitoring_objective_configs.objective_config.prediction_drift_detection_config
- (response, operation) — Access the result along with the RPC operation
- response (::Gapic::Operation)
- operation (::GRPC::ActiveCall::Operation)
- (::Gapic::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/ai_platform/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::AIPlatform::V1::JobService::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::AIPlatform::V1::UpdateModelDeploymentMonitoringJobRequest.new # Call the update_model_deployment_monitoring_job method. result = client.update_model_deployment_monitoring_job request # The returned object is of type Gapic::Operation. You can use it to # check the status of an operation, cancel it, or wait for results. # Here is how to wait for a response. result.wait_until_done! timeout: 60 if result.response? p result.response else puts "No response received." end