Module: Google::Cloud::Sql::V1beta4::SqlDataService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/sql/v1beta4/sql_data_service/paths.rb
Overview
Path helper methods for the SqlDataService API.
Instance Method Summary collapse
-
#instance_path(project:, instance:) ⇒ ::String
Create a fully-qualified Instance resource string.
Instance Method Details
#instance_path(project:, instance:) ⇒ ::String
Create a fully-qualified Instance resource string.
The resource will be in the following format:
projects/{project}/instances/{instance}
38 39 40 41 42 |
# File 'lib/google/cloud/sql/v1beta4/sql_data_service/paths.rb', line 38 def instance_path project:, instance: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/instances/#{instance}" end |