Secret Manager V1 API - Module Google::Cloud::SecretManager::V1::SecretManagerService::Paths (v0.20.0)

Reference documentation and code samples for the Secret Manager V1 API module Google::Cloud::SecretManager::V1::SecretManagerService::Paths.

Path helper methods for the SecretManagerService API.

Methods

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

#secret_path

def secret_path(project:, secret:) -> ::String

Create a fully-qualified Secret resource string.

The resource will be in the following format:

projects/{project}/secrets/{secret}

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

#topic_path

def topic_path(project:, topic:) -> ::String

Create a fully-qualified Topic resource string.

The resource will be in the following format:

projects/{project}/topics/{topic}

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