Artifact Registry V1 API - Module Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Paths (v0.4.0)

Reference documentation and code samples for the Artifact Registry V1 API module Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Paths.

Path helper methods for the ArtifactRegistry API.

Methods

#docker_image_path

def docker_image_path(project:, location:, repository:, docker_image:) -> ::String

Create a fully-qualified DockerImage resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/repositories/{repository}/dockerImages/{docker_image}

Parameters
  • project (String)
  • location (String)
  • repository (String)
  • docker_image (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#location_path

def location_path(project:, location:) -> ::String

Create a fully-qualified Location resource string.

The resource will be in the following format:

projects/{project}/locations/{location}

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

#project_settings_path

def project_settings_path(project:) -> ::String

Create a fully-qualified ProjectSettings resource string.

The resource will be in the following format:

projects/{project}/projectSettings

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

#repository_path

def repository_path(project:, location:, repository:) -> ::String

Create a fully-qualified Repository resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/repositories/{repository}

Parameters
  • project (String)
  • location (String)
  • repository (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#tag_path

def tag_path(project:, location:, repository:, package:, tag:) -> ::String

Create a fully-qualified Tag resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}

Parameters
  • project (String)
  • location (String)
  • repository (String)
  • package (String)
  • tag (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)