Module: Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Paths
- Extended by:
- Paths
- Included in:
- Client, Paths, Rest::Client
- Defined in:
- lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb
Overview
Path helper methods for the ContactCenterInsights API.
Instance Method Summary collapse
-
#analysis_path(**args) ⇒ ::String
Create a fully-qualified Analysis resource string.
-
#analysis_rule_path(project:, location:, analysis_rule:) ⇒ ::String
Create a fully-qualified AnalysisRule resource string.
-
#conversation_path(**args) ⇒ ::String
Create a fully-qualified Conversation resource string.
-
#conversation_profile_path(project:, location:, conversation_profile:) ⇒ ::String
Create a fully-qualified ConversationProfile resource string.
-
#encryption_spec_path(project:, location:) ⇒ ::String
Create a fully-qualified EncryptionSpec resource string.
-
#feedback_label_path(**args) ⇒ ::String
Create a fully-qualified FeedbackLabel resource string.
-
#issue_model_path(project:, location:, issue_model:) ⇒ ::String
Create a fully-qualified IssueModel resource string.
-
#issue_path(project:, location:, issue_model:, issue:) ⇒ ::String
Create a fully-qualified Issue resource string.
-
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
-
#participant_path(**args) ⇒ ::String
Create a fully-qualified Participant resource string.
-
#phrase_matcher_path(project:, location:, phrase_matcher:) ⇒ ::String
Create a fully-qualified PhraseMatcher resource string.
-
#qa_question_path(project:, location:, qa_scorecard:, revision:, qa_question:) ⇒ ::String
Create a fully-qualified QaQuestion resource string.
-
#qa_scorecard_path(project:, location:, qa_scorecard:) ⇒ ::String
Create a fully-qualified QaScorecard resource string.
-
#qa_scorecard_result_path(project:, location:, qa_scorecard_result:) ⇒ ::String
Create a fully-qualified QaScorecardResult resource string.
-
#qa_scorecard_revision_path(project:, location:, qa_scorecard:, revision:) ⇒ ::String
Create a fully-qualified QaScorecardRevision resource string.
-
#recognizer_path(project:, location:, recognizer:) ⇒ ::String
Create a fully-qualified Recognizer resource string.
-
#settings_path(project:, location:) ⇒ ::String
Create a fully-qualified Settings resource string.
-
#view_path(project:, location:, view:) ⇒ ::String
Create a fully-qualified View resource string.
Instance Method Details
#analysis_path(project:, location:, conversation:, analysis:) ⇒ ::String #analysis_path(project:, location:, authorized_view_set:, authorized_view:, conversation:, analysis:) ⇒ ::String
Create a fully-qualified Analysis resource string.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 53 def analysis_path **args resources = { "analysis:conversation:location:project" => (proc do |project:, location:, conversation:, analysis:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "conversation cannot contain /" if conversation.to_s.include? "/" "projects/#{project}/locations/#{location}/conversations/#{conversation}/analyses/#{analysis}" end), "analysis:authorized_view:authorized_view_set:conversation:location:project" => (proc do |project:, location:, authorized_view_set:, authorized_view:, conversation:, analysis:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "authorized_view_set cannot contain /" if .to_s.include? "/" raise ::ArgumentError, "authorized_view cannot contain /" if .to_s.include? "/" raise ::ArgumentError, "conversation cannot contain /" if conversation.to_s.include? "/" "projects/#{project}/locations/#{location}/authorizedViewSets/#{}/authorizedViews/#{}/conversations/#{conversation}/analyses/#{analysis}" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |
#analysis_rule_path(project:, location:, analysis_rule:) ⇒ ::String
Create a fully-qualified AnalysisRule resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/analysisRules/{analysis_rule}
90 91 92 93 94 95 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 90 def analysis_rule_path project:, location:, analysis_rule: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/analysisRules/#{analysis_rule}" end |
#conversation_path(project:, location:, conversation:) ⇒ ::String #conversation_path(project:, location:, authorized_view_set:, authorized_view:, conversation:) ⇒ ::String
Create a fully-qualified Conversation resource string.
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 121 def conversation_path **args resources = { "conversation:location:project" => (proc do |project:, location:, conversation:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/conversations/#{conversation}" end), "authorized_view:authorized_view_set:conversation:location:project" => (proc do |project:, location:, authorized_view_set:, authorized_view:, conversation:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "authorized_view_set cannot contain /" if .to_s.include? "/" raise ::ArgumentError, "authorized_view cannot contain /" if .to_s.include? "/" "projects/#{project}/locations/#{location}/authorizedViewSets/#{}/authorizedViews/#{}/conversations/#{conversation}" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |
#conversation_profile_path(project:, location:, conversation_profile:) ⇒ ::String
Create a fully-qualified ConversationProfile resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/conversationProfiles/{conversation_profile}
156 157 158 159 160 161 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 156 def conversation_profile_path project:, location:, conversation_profile: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/conversationProfiles/#{conversation_profile}" end |
#encryption_spec_path(project:, location:) ⇒ ::String
Create a fully-qualified EncryptionSpec resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/encryptionSpec
174 175 176 177 178 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 174 def encryption_spec_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}/encryptionSpec" end |
#feedback_label_path(project:, location:, conversation:, feedback_label:) ⇒ ::String #feedback_label_path(project:, location:, authorized_view_set:, authorized_view:, conversation:, feedback_label:) ⇒ ::String
Create a fully-qualified FeedbackLabel resource string.
206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 206 def feedback_label_path **args resources = { "conversation:feedback_label:location:project" => (proc do |project:, location:, conversation:, feedback_label:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "conversation cannot contain /" if conversation.to_s.include? "/" "projects/#{project}/locations/#{location}/conversations/#{conversation}/feedbackLabels/#{feedback_label}" end), "authorized_view:authorized_view_set:conversation:feedback_label:location:project" => (proc do |project:, location:, authorized_view_set:, authorized_view:, conversation:, feedback_label:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "authorized_view_set cannot contain /" if .to_s.include? "/" raise ::ArgumentError, "authorized_view cannot contain /" if .to_s.include? "/" raise ::ArgumentError, "conversation cannot contain /" if conversation.to_s.include? "/" "projects/#{project}/locations/#{location}/authorizedViewSets/#{}/authorizedViews/#{}/conversations/#{conversation}/feedbackLabels/#{feedback_label}" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |
#issue_model_path(project:, location:, issue_model:) ⇒ ::String
Create a fully-qualified IssueModel resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/issueModels/{issue_model}
264 265 266 267 268 269 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 264 def issue_model_path project:, location:, issue_model: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/issueModels/#{issue_model}" end |
#issue_path(project:, location:, issue_model:, issue:) ⇒ ::String
Create a fully-qualified Issue resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}
244 245 246 247 248 249 250 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 244 def issue_path project:, location:, issue_model:, issue: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "issue_model cannot contain /" if issue_model.to_s.include? "/" "projects/#{project}/locations/#{location}/issueModels/#{issue_model}/issues/#{issue}" end |
#location_path(project:, location:) ⇒ ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
282 283 284 285 286 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 282 def location_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}" end |
#participant_path(project:, conversation:, participant:) ⇒ ::String #participant_path(project:, location:, conversation:, participant:) ⇒ ::String
Create a fully-qualified Participant resource string.
311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 311 def participant_path **args resources = { "conversation:participant:project" => (proc do |project:, conversation:, participant:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "conversation cannot contain /" if conversation.to_s.include? "/" "projects/#{project}/conversations/#{conversation}/participants/#{participant}" end), "conversation:location:participant:project" => (proc do |project:, location:, conversation:, participant:| raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "conversation cannot contain /" if conversation.to_s.include? "/" "projects/#{project}/locations/#{location}/conversations/#{conversation}/participants/#{participant}" end) } resource = resources[args.keys.sort.join(":")] raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil? resource.call(**args) end |
#phrase_matcher_path(project:, location:, phrase_matcher:) ⇒ ::String
Create a fully-qualified PhraseMatcher resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
345 346 347 348 349 350 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 345 def phrase_matcher_path project:, location:, phrase_matcher: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/phraseMatchers/#{phrase_matcher}" end |
#qa_question_path(project:, location:, qa_scorecard:, revision:, qa_question:) ⇒ ::String
Create a fully-qualified QaQuestion resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question}
366 367 368 369 370 371 372 373 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 366 def qa_question_path project:, location:, qa_scorecard:, revision:, qa_question: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "qa_scorecard cannot contain /" if qa_scorecard.to_s.include? "/" raise ::ArgumentError, "revision cannot contain /" if revision.to_s.include? "/" "projects/#{project}/locations/#{location}/qaScorecards/#{qa_scorecard}/revisions/#{revision}/qaQuestions/#{qa_question}" end |
#qa_scorecard_path(project:, location:, qa_scorecard:) ⇒ ::String
Create a fully-qualified QaScorecard resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}
387 388 389 390 391 392 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 387 def qa_scorecard_path project:, location:, qa_scorecard: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/qaScorecards/#{qa_scorecard}" end |
#qa_scorecard_result_path(project:, location:, qa_scorecard_result:) ⇒ ::String
Create a fully-qualified QaScorecardResult resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result}
406 407 408 409 410 411 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 406 def qa_scorecard_result_path project:, location:, qa_scorecard_result: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/qaScorecardResults/#{qa_scorecard_result}" end |
#qa_scorecard_revision_path(project:, location:, qa_scorecard:, revision:) ⇒ ::String
Create a fully-qualified QaScorecardRevision resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision}
426 427 428 429 430 431 432 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 426 def qa_scorecard_revision_path project:, location:, qa_scorecard:, revision: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" raise ::ArgumentError, "qa_scorecard cannot contain /" if qa_scorecard.to_s.include? "/" "projects/#{project}/locations/#{location}/qaScorecards/#{qa_scorecard}/revisions/#{revision}" end |
#recognizer_path(project:, location:, recognizer:) ⇒ ::String
Create a fully-qualified Recognizer resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/recognizers/{recognizer}
446 447 448 449 450 451 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 446 def recognizer_path project:, location:, recognizer: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/recognizers/#{recognizer}" end |
#settings_path(project:, location:) ⇒ ::String
Create a fully-qualified Settings resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/settings
464 465 466 467 468 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 464 def settings_path project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" "projects/#{project}/locations/#{location}/settings" end |
#view_path(project:, location:, view:) ⇒ ::String
Create a fully-qualified View resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/views/{view}
482 483 484 485 486 487 |
# File 'lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb', line 482 def view_path project:, location:, view: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/" raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/" "projects/#{project}/locations/#{location}/views/#{view}" end |