Path helper methods for the Spanner API.
Extended By
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)