Module Grafeas::V1::Grafeas::Paths (v0.3.1)

Path helper methods for the Grafeas API.

Methods

#note_path

def note_path(project:, note:) -> ::String

Create a fully-qualified Note resource string.

The resource will be in the following format:

projects/{project}/notes/{note}

Parameters
  • project (String)
  • note (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#occurrence_path

def occurrence_path(project:, occurrence:) -> ::String

Create a fully-qualified Occurrence resource string.

The resource will be in the following format:

projects/{project}/occurrences/{occurrence}

Parameters
  • project (String)
  • occurrence (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#project_path

def project_path(project:) -> ::String

Create a fully-qualified Project resource string.

The resource will be in the following format:

projects/{project}

Parameter
  • project (String)
Returns
  • (::String)