Artifact Registry V1 API - Module Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Paths (v0.13.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)

#file_path

def file_path(project:, location:, repository:, file:) -> ::String

Create a fully-qualified File resource string.

The resource will be in the following format:

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

Parameters
  • project (String)
  • location (String)
  • repository (String)
  • file (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)

#maven_artifact_path

def maven_artifact_path(project:, location:, repository:, maven_artifact:) -> ::String

Create a fully-qualified MavenArtifact resource string.

The resource will be in the following format:

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

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

#npm_package_path

def npm_package_path(project:, location:, repository:, npm_package:) -> ::String

Create a fully-qualified NpmPackage resource string.

The resource will be in the following format:

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

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

#package_path

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

Create a fully-qualified Package resource string.

The resource will be in the following format:

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

Parameters
  • project (String)
  • location (String)
  • repository (String)
  • package (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)

#python_package_path

def python_package_path(project:, location:, repository:, python_package:) -> ::String

Create a fully-qualified PythonPackage resource string.

The resource will be in the following format:

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

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

#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)

#secret_version_path

def secret_version_path(project:, secret:, secret_version:) -> ::String

Create a fully-qualified SecretVersion resource string.

The resource will be in the following format:

projects/{project}/secrets/{secret}/versions/{secret_version}

Parameters
  • project (String)
  • secret (String)
  • secret_version (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)

#version_path

def version_path(project:, location:, repository:, package:, version:) -> ::String

Create a fully-qualified Version resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}

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

#vpcsc_config_path

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

Create a fully-qualified VpcscConfig resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/vpcscConfig

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