module Google::Cloud::Retail::V2::PredictionService::Paths
Path helper methods for the PredictionService
API.
Public Instance Methods
product_path(project:, location:, catalog:, branch:, product: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Product
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/catalogs/{catalog}/branches/{branch}/products/{product}`
@param project [String] @param location [String] @param catalog [String] @param branch [String] @param product [String]
@return [::String]
# File lib/google/cloud/retail/v2/prediction_service/paths.rb, line 41 def product_path project:, location:, catalog:, branch:, product: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "catalog cannot contain /" if catalog.to_s.include? "/" raise ::ArgumentError, "branch cannot contain /" if branch.to_s.include? "/" "projects/#{project}/locations/#{location}/catalogs/#{catalog}/branches/#{branch}/products/#{product}" end