Recommendations AI V1beta1 API - Class Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Rest::ServiceStub (v0.6.1)

Reference documentation and code samples for the Recommendations AI V1beta1 API class Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#create_catalog_item

def create_catalog_item(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem

Baseline implementation for the create_catalog_item REST call

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

#delete_catalog_item

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

Baseline implementation for the delete_catalog_item REST call

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

#get_catalog_item

def get_catalog_item(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem

Baseline implementation for the get_catalog_item REST call

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

#import_catalog_items

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

Baseline implementation for the import_catalog_items REST call

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

#initialize

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

#list_catalog_items

def list_catalog_items(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::RecommendationEngine::V1beta1::ListCatalogItemsResponse

Baseline implementation for the list_catalog_items REST call

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

#update_catalog_item

def update_catalog_item(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::RecommendationEngine::V1beta1::CatalogItem

Baseline implementation for the update_catalog_item REST call

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