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

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

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

Inherits

  • Object

Methods

#cancel_tuning_job

def cancel_tuning_job(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the cancel_tuning_job REST call

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

#create_tuning_job

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

Baseline implementation for the create_tuning_job 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)

#get_tuning_job

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

Baseline implementation for the get_tuning_job 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_tuning_jobs

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

Baseline implementation for the list_tuning_jobs 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)