module Google::Cloud::Retail::V2::CatalogService::Paths
Path helper methods for the CatalogService
API.
Public Instance Methods
Create a fully-qualified Branch resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/catalogs/{catalog}/branches/{branch}`
@param project [String] @param location [String] @param catalog [String] @param branch [String]
@return [::String]
# File lib/google/cloud/retail/v2/catalog_service/paths.rb, line 40 def branch_path project:, location:, catalog:, branch: 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? "/" "projects/#{project}/locations/#{location}/catalogs/#{catalog}/branches/#{branch}" end
Create a fully-qualified Catalog resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/catalogs/{catalog}`
@param project [String] @param location [String] @param catalog [String]
@return [::String]
# File lib/google/cloud/retail/v2/catalog_service/paths.rb, line 60 def catalog_path project:, location:, catalog: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/catalogs/#{catalog}" end
Create a fully-qualified Location resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}`
@param project [String] @param location [String]
@return [::String]
# File lib/google/cloud/retail/v2/catalog_service/paths.rb, line 78 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end