Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::ProductService::Rest::ServiceStub.
REST service stub for the ProductService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#add_fulfillment_places
def add_fulfillment_places(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the add_fulfillment_places REST call
- request_pb (::Google::Cloud::Retail::V2::AddFulfillmentPlacesRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#add_local_inventories
def add_local_inventories(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the add_local_inventories REST call
- request_pb (::Google::Cloud::Retail::V2::AddLocalInventoriesRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_product
def create_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Product
Baseline implementation for the create_product REST call
- request_pb (::Google::Cloud::Retail::V2::CreateProductRequest) — 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::Retail::V2::Product)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::Product) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_product
def delete_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_product REST call
- request_pb (::Google::Cloud::Retail::V2::DeleteProductRequest) — 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)
#get_product
def get_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Product
Baseline implementation for the get_product REST call
- request_pb (::Google::Cloud::Retail::V2::GetProductRequest) — 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::Retail::V2::Product)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::Product) — A result object deserialized from the server's reply
- (::ArgumentError)
#import_products
def import_products(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the import_products REST call
- request_pb (::Google::Cloud::Retail::V2::ImportProductsRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_products
def list_products(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ListProductsResponse
Baseline implementation for the list_products REST call
- request_pb (::Google::Cloud::Retail::V2::ListProductsRequest) — 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::Retail::V2::ListProductsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::ListProductsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#remove_fulfillment_places
def remove_fulfillment_places(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the remove_fulfillment_places REST call
- request_pb (::Google::Cloud::Retail::V2::RemoveFulfillmentPlacesRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#remove_local_inventories
def remove_local_inventories(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the remove_local_inventories REST call
- request_pb (::Google::Cloud::Retail::V2::RemoveLocalInventoriesRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#set_inventory
def set_inventory(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation
Baseline implementation for the set_inventory REST call
- request_pb (::Google::Cloud::Retail::V2::SetInventoryRequest) — 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::Longrunning::Operation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Longrunning::Operation) — A result object deserialized from the server's reply
- (::ArgumentError)
#update_product
def update_product(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Product
Baseline implementation for the update_product REST call
- request_pb (::Google::Cloud::Retail::V2::UpdateProductRequest) — 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::Retail::V2::Product)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Retail::V2::Product) — A result object deserialized from the server's reply
- (::ArgumentError)