module Google::Cloud::Vision::V1::ImageAnnotator::Paths
Path helper methods for the ImageAnnotator
API.
Public Instance Methods
product_set_path(project:, location:, product_set: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified ProductSet resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/productSets/{product_set}`
@param project [String] @param location [String] @param product_set [String]
@return [::String]
# File lib/google/cloud/vision/v1/image_annotator/paths.rb, line 39 def product_set_path project:, location:, product_set: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/productSets/#{product_set}" end