module Google::Cloud::Spanner::V1::Spanner::Paths

def database_path project:, instance:, database:

Returns:
  • (::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