module Grafeas::V1::Grafeas::Paths
Path helper methods for the Grafeas
API.
Public Instance Methods
note_path(project:, note: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Note resource string.
The resource will be in the following format:
`projects/{project}/notes/{note}`
@param project [String] @param note [String]
@return [::String]
# File lib/grafeas/v1/grafeas/paths.rb, line 36 def note_path project:, note: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/notes/#{note}" end
occurrence_path(project:, occurrence: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Occurrence resource string.
The resource will be in the following format:
`projects/{project}/occurrences/{occurrence}`
@param project [String] @param occurrence [String]
@return [::String]
# File lib/grafeas/v1/grafeas/paths.rb, line 53 def occurrence_path project:, occurrence: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/occurrences/#{occurrence}" end
project_path(project: "projects/
click to toggle source
Create a fully-qualified Project resource string.
The resource will be in the following format:
`projects/{project}`
@param project [String]
@return [::String]
# File lib/grafeas/v1/grafeas/paths.rb, line 69 def project_path project: "projects/#{project}" end