module Google::Cloud::PubSub::V1::SchemaService::Paths
Path helper methods for the SchemaService
API.
Public Instance Methods
project_path(project: "projects/
click to toggle source
Create a fully-qualified Project resource string.
The resource will be in the following format:
`projects/{project}`
@param project [String]
@return [::String]
# File lib/google/cloud/pubsub/v1/schema_service/paths.rb, line 37 def project_path project: "projects/#{project}" end
schema_path(project:, schema: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
Create a fully-qualified Schema
resource string.
The resource will be in the following format:
`projects/{project}/schemas/{schema}`
@param project [String] @param schema [String]
@return [::String]
# File lib/google/cloud/pubsub/v1/schema_service/paths.rb, line 52 def schema_path project:, schema: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/schemas/#{schema}" end