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

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

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

Inherits

  • Object

Methods

#create_cached_content

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

Baseline implementation for the create_cached_content REST call

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

#delete_cached_content

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

Baseline implementation for the delete_cached_content 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_cached_content

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

Baseline implementation for the get_cached_content REST call

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

#list_cached_contents

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

Baseline implementation for the list_cached_contents REST call

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

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_cached_content

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

Baseline implementation for the update_cached_content REST call

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