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
- request_pb (::Google::Cloud::AIPlatform::V1::CreateCachedContentRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::AIPlatform::V1::CachedContent)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AIPlatform::V1::CachedContent) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::AIPlatform::V1::DeleteCachedContentRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (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
- request_pb (::Google::Cloud::AIPlatform::V1::GetCachedContentRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::AIPlatform::V1::CachedContent)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AIPlatform::V1::CachedContent) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::AIPlatform::V1::ListCachedContentsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::AIPlatform::V1::ListCachedContentsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AIPlatform::V1::ListCachedContentsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> Logger
The logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (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
- request_pb (::Google::Cloud::AIPlatform::V1::UpdateCachedContentRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::AIPlatform::V1::CachedContent)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::AIPlatform::V1::CachedContent) — A result object deserialized from the server's reply
- (::ArgumentError)