Module: Google::Cloud::Dialogflow::V2::Contexts::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/dialogflow/v2/contexts/paths.rb
Overview
Path helper methods for the Contexts API.
Instance Method Summary collapse
-
#context_path(project:, session:, context:) ⇒ String
Create a fully-qualified Context resource string.
Instance Method Details
#context_path(project:, session:, context:) ⇒ String
Create a fully-qualified Context resource string.
The resource will be in the following format:
projects/{project}/agent/sessions/{session}/contexts/{context}
39 40 41 42 43 44 |
# File 'lib/google/cloud/dialogflow/v2/contexts/paths.rb', line 39 def context_path project:, session:, context: raise ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ArgumentError, "session cannot contain /" if session.to_s.include? "/" "projects/#{project}/agent/sessions/#{session}/contexts/#{context}" end |