Module: Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/vision/v1p3beta1/image_annotator/paths.rb
Overview
Path helper methods for the ImageAnnotator API.
Instance Method Summary collapse
-
#product_set_path(project:, location:, product_set:) ⇒ ::String
Create a fully-qualified ProductSet resource string.
Instance Method Details
#product_set_path(project:, location:, product_set:) ⇒ ::String
Create a fully-qualified ProductSet resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/productSets/{product_set}
39 40 41 42 43 44 |
# File 'lib/google/cloud/vision/v1p3beta1/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 |