Cloud AutoML V1 API - Class Google::Cloud::AutoML::V1::AutoML::Rest::ServiceStub (v0.6.0)

Reference documentation and code samples for the Cloud AutoML V1 API class Google::Cloud::AutoML::V1::AutoML::Rest::ServiceStub.

REST service stub for the AutoMl service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#create_dataset

def create_dataset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_dataset REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::CreateDatasetRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_model

def create_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_model REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::CreateModelRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_dataset

def delete_dataset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_dataset REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::DeleteDatasetRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_model

def delete_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_model REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::DeleteModelRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#deploy_model

def deploy_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the deploy_model REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::DeployModelRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#export_data

def export_data(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the export_data REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::ExportDataRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#export_model

def export_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the export_model REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::ExportModelRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_annotation_spec

def get_annotation_spec(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AutoML::V1::AnnotationSpec

Baseline implementation for the get_annotation_spec REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_dataset

def get_dataset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AutoML::V1::Dataset

Baseline implementation for the get_dataset REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::GetDatasetRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_model

def get_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AutoML::V1::Model

Baseline implementation for the get_model REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::GetModelRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_model_evaluation

def get_model_evaluation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AutoML::V1::ModelEvaluation

Baseline implementation for the get_model_evaluation REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#import_data

def import_data(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the import_data REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::ImportDataRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, credentials:) -> ServiceStub
Returns

#list_datasets

def list_datasets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AutoML::V1::ListDatasetsResponse

Baseline implementation for the list_datasets REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::ListDatasetsRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_model_evaluations

def list_model_evaluations(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AutoML::V1::ListModelEvaluationsResponse

Baseline implementation for the list_model_evaluations REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_models

def list_models(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AutoML::V1::ListModelsResponse

Baseline implementation for the list_models REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::ListModelsRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#undeploy_model

def undeploy_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the undeploy_model REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::UndeployModelRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_dataset

def update_dataset(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AutoML::V1::Dataset

Baseline implementation for the update_dataset REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::UpdateDatasetRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_model

def update_model(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AutoML::V1::Model

Baseline implementation for the update_model REST call

Parameters
  • request_pb (::Google::Cloud::AutoML::V1::UpdateModelRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)