module Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Paths

Path helper methods for the ContactCenterInsights API.

Public Instance Methods

analysis_path(project:, location:, conversation:, analysis: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Analysis resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}`

@param project [String] @param location [String] @param conversation [String] @param analysis [String]

@return [::String]

# File lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb, line 40
def analysis_path 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
conversation_path(project:, location:, conversation: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Conversation resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/conversations/{conversation}`

@param project [String] @param location [String] @param conversation [String]

@return [::String]

# File lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb, line 60
def conversation_path 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
issue_model_path(project:, location:, issue_model: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified IssueModel resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/issueModels/{issue_model}`

@param project [String] @param location [String] @param issue_model [String]

@return [::String]

# File lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb, line 100
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: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Issue resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue}`

@param project [String] @param location [String] @param issue_model [String] @param issue [String]

@return [::String]

# File lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb, line 80
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: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Location resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}`

@param project [String] @param location [String]

@return [::String]

# File lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb, line 118
def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}"
end
participant_path(**args) click to toggle source

Create a fully-qualified Participant resource string.

@overload participant_path(project:, conversation:, participant:)

The resource will be in the following format:

`projects/{project}/conversations/{conversation}/participants/{participant}`

@param project [String]
@param conversation [String]
@param participant [String]

@overload participant_path(project:, location:, conversation:, participant:)

The resource will be in the following format:

`projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}`

@param project [String]
@param location [String]
@param conversation [String]
@param participant [String]

@return [::String]

# File lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb, line 147
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: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified PhraseMatcher resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}`

@param project [String] @param location [String] @param phrase_matcher [String]

@return [::String]

# File lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb, line 181
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
settings_path(project:, location: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Settings resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/settings`

@param project [String] @param location [String]

@return [::String]

# File lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb, line 199
def settings_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}/settings"
end