module Google::Cloud::Spanner::V1::Spanner::Paths
def database_path project:, instance:, database:
-
(::String)
-
Parameters:
-
database
(String
) -- -
instance
(String
) -- -
project
(String
) --
def database_path project:, instance:, database: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" "projects/#{project}/instances/#{instance}/databases/#{database}" end
def session_path project:, instance:, database:, session:
-
(::String)
-
Parameters:
-
session
(String
) -- -
database
(String
) -- -
instance
(String
) -- -
project
(String
) --
def session_path project:, instance:, database:, session: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "instance cannot contain /" if instance.to_s.include? "/" raise ::ArgumentError, "database cannot contain /" if database.to_s.include? "/" "projects/#{project}/instances/#{instance}/databases/#{database}/sessions/#{session}" end