Module: Google::Cloud::DataQnA::V1alpha::QuestionService::Paths
- Extended by:
- Paths
- Defined in:
- lib/google/cloud/dataqna/v1alpha/question_service/paths.rb
Overview
Path helper methods for the QuestionService API.
Instance Method Summary collapse
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#question_path(project:, location:, question:) ⇒ ::String
Create a fully-qualified Question resource string.
-
#user_feedback_path(project:, location:, question:) ⇒ ::String
Create a fully-qualified UserFeedback resource string.
Instance Method Details
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
38 39 40 41 42 |
# File 'lib/google/cloud/dataqna/v1alpha/question_service/paths.rb', line 38 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#question_path(project:, location:, question:) ⇒ ::String
Create a fully-qualified Question resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/questions/{question}
56 57 58 59 60 61 |
# File 'lib/google/cloud/dataqna/v1alpha/question_service/paths.rb', line 56 def question_path project:, location:, question: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/questions/#{question}" end |
#user_feedback_path(project:, location:, question:) ⇒ ::String
Create a fully-qualified UserFeedback resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/questions/{question}/userFeedback
75 76 77 78 79 80 |
# File 'lib/google/cloud/dataqna/v1alpha/question_service/paths.rb', line 75 def user_feedback_path project:, location:, question: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/questions/#{question}/userFeedback" end |