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

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)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#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)

#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)

#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_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)