Secret Manager V1 API - Module Google::Cloud::SecretManager::V1::SecretOperationsService::Paths (v2.1.0)

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

Path helper methods for the SecretOperationsService API.

Methods

#backup_path

def backup_path(project:, location:, backup:) -> ::String

Create a fully-qualified Backup resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/backups/{backup}

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

#crypto_key_path

def crypto_key_path(project:, location:, key_ring:, crypto_key:) -> ::String

Create a fully-qualified CryptoKey resource string.

The resource will be in the following format:

projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}

Parameters
  • project (String)
  • location (String)
  • key_ring (String)
  • crypto_key (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_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
def secret_path(project:, location:, secret:) -> ::String

Create a fully-qualified Secret resource string.

Overloads
def secret_path(project:, secret:) -> ::String
The resource will be in the following format:

projects/{project}/secrets/{secret}

Parameters
  • project (String)
  • secret (String)
def secret_path(project:, location:, secret:) -> ::String
The resource will be in the following format:

projects/{project}/locations/{location}/secrets/{secret}

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