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

Path helper methods for the Agents 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/agents/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
agent_validation_result_path(project:, location:, agent: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified AgentValidationResult resource string.

The resource will be in the following format:

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

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

@return [::String]

# File lib/google/cloud/dialogflow/cx/v3/agents/paths.rb, line 59
def agent_validation_result_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}/validationResult"
end
environment_path(project:, location:, agent:, environment: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Environment resource string.

The resource will be in the following format:

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

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

@return [::String]

# File lib/google/cloud/dialogflow/cx/v3/agents/paths.rb, line 79
def environment_path project:, location:, agent:, environment:
  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}/environments/#{environment}"
end
flow_path(project:, location:, agent:, flow: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Flow resource string.

The resource will be in the following format:

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

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

@return [::String]

# File lib/google/cloud/dialogflow/cx/v3/agents/paths.rb, line 100
def flow_path project:, location:, agent:, flow:
  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}/flows/#{flow}"
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/dialogflow/cx/v3/agents/paths.rb, line 119
def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

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

Create a fully-qualified SecuritySettings resource string.

The resource will be in the following format:

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

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

@return [::String]

# File lib/google/cloud/dialogflow/cx/v3/agents/paths.rb, line 137
def security_settings_path project:, location:, security_settings:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/securitySettings/#{security_settings}"
end