module Google::Cloud::Dialogflow::CX::V3::EntityTypes::Paths

Path helper methods for the EntityTypes API.

Public Instance Methods

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

Create a fully-qualified Agent resource string.

The resource will be in the following format:

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

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

@return [::String]

# File lib/google/cloud/dialogflow/cx/v3/entity_types/paths.rb, line 40
def agent_path project:, location:, agent:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/agents/#{agent}"
end
entity_type_path(project:, location:, agent:, entity_type: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified EntityType resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/agents/{agent}/entityTypes/{entity_type}`

@param project [String] @param location [String] @param agent [String] @param entity_type [String]

@return [::String]

# File lib/google/cloud/dialogflow/cx/v3/entity_types/paths.rb, line 60
def entity_type_path project:, location:, agent:, entity_type:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"

  "projects/#{project}/locations/#{location}/agents/#{agent}/entityTypes/#{entity_type}"
end