module Google::Cloud::RecommendationEngine::V1beta1::CatalogService::Paths
Path helper methods for the CatalogService
API.
Public Instance Methods
catalog_item_path_path(project:, location:, catalog:, catalog_item_path: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified CatalogItemPath resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/catalogs/{catalog}/catalogItems/{catalog_item_path=**}`
@param project [String] @param location [String] @param catalog [String] @param catalog_item_path [String]
@return [::String]
# File lib/google/cloud/recommendation_engine/v1beta1/catalog_service/paths.rb, line 59 def catalog_item_path_path project:, location:, catalog:, catalog_item_path: 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}/catalogItems/#{catalog_item_path}" end
catalog_path(project:, location:, catalog: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
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/recommendation_engine/v1beta1/catalog_service/paths.rb, line 39 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