Cloud Spanner V1 API - Module Google::Cloud::Spanner::V1::Spanner::Paths (v0.12.0)

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

Path helper methods for the Spanner API.

Methods

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

#session_path

def session_path(project:, instance:, database:, session:) -> ::String

Create a fully-qualified Session resource string.

The resource will be in the following format:

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

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