Cloud Spanner Database Admin V1 API - Module Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Paths (v0.20.0)

Reference documentation and code samples for the Cloud Spanner Database Admin V1 API module Google::Cloud::Spanner::Admin::Database::V1::DatabaseAdmin::Paths.

Path helper methods for the DatabaseAdmin API.

Methods

#backup_path

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

Create a fully-qualified Backup resource string.

The resource will be in the following format:

projects/{project}/instances/{instance}/backups/{backup}

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

#backup_schedule_path

def backup_schedule_path(project:, instance:, database:, schedule:) -> ::String

Create a fully-qualified BackupSchedule resource string.

The resource will be in the following format:

projects/{project}/instances/{instance}/databases/{database}/backupSchedules/{schedule}

Parameters
  • project (String)
  • instance (String)
  • database (String)
  • schedule (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)

#crypto_key_version_path

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

Create a fully-qualified CryptoKeyVersion resource string.

The resource will be in the following format:

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

Parameters
  • project (String)
  • location (String)
  • key_ring (String)
  • crypto_key (String)
  • crypto_key_version (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#database_path

def database_path(project:, instance:, database:) -> ::String

Create a fully-qualified Database resource string.

The resource will be in the following format:

projects/{project}/instances/{instance}/databases/{database}

Parameters
  • project (String)
  • instance (String)
  • database (String)
Returns
  • (::String)
Raises
  • (::ArgumentError)

#instance_path

def instance_path(project:, instance:) -> ::String

Create a fully-qualified Instance resource string.

The resource will be in the following format:

projects/{project}/instances/{instance}

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