Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::ModelService::Rest::ServiceStub (v0.56.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::ModelService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#batch_import_evaluated_annotations

def batch_import_evaluated_annotations(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AIPlatform::V1::BatchImportEvaluatedAnnotationsResponse

Baseline implementation for the batch_import_evaluated_annotations REST call

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

#batch_import_model_evaluation_slices

def batch_import_model_evaluation_slices(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AIPlatform::V1::BatchImportModelEvaluationSlicesResponse

Baseline implementation for the batch_import_model_evaluation_slices REST call

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

#copy_model

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

Baseline implementation for the copy_model REST call

Parameters
  • request_pb (::Google::Cloud::AIPlatform::V1::CopyModelRequest) — 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
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_model_version

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

Baseline implementation for the delete_model_version REST call

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

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#export_model

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

Baseline implementation for the export_model REST call

Parameters
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::AIPlatform::V1::Model

Baseline implementation for the get_model REST call

Parameters
  • request_pb (::Google::Cloud::AIPlatform::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::AIPlatform::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)

#get_model_evaluation_slice

def get_model_evaluation_slice(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AIPlatform::V1::ModelEvaluationSlice

Baseline implementation for the get_model_evaluation_slice REST call

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

#import_model_evaluation

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

Baseline implementation for the import_model_evaluation REST call

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

#initialize

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

#list_model_evaluation_slices

def list_model_evaluation_slices(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AIPlatform::V1::ListModelEvaluationSlicesResponse

Baseline implementation for the list_model_evaluation_slices REST call

Parameters
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::AIPlatform::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_model_versions

def list_model_versions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::AIPlatform::V1::ListModelVersionsResponse

Baseline implementation for the list_model_versions 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::AIPlatform::V1::ListModelsResponse

Baseline implementation for the list_models REST call

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

#merge_version_aliases

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

Baseline implementation for the merge_version_aliases REST call

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

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_explanation_dataset

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

Baseline implementation for the update_explanation_dataset REST call

Parameters
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::AIPlatform::V1::Model

Baseline implementation for the update_model REST call

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

#upload_model

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

Baseline implementation for the upload_model REST call

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