module Google::Cloud::Dialogflow::CX::V3::Environments::Paths
Path helper methods for the Environments
API.
Public Instance Methods
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/environments/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
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/environments/paths.rb, line 60 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
Create a fully-qualified Version
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/versions/{version}`
@param project [String] @param location [String] @param agent [String] @param flow [String] @param version [String]
@return [::String]
# File lib/google/cloud/dialogflow/cx/v3/environments/paths.rb, line 82 def version_path project:, location:, agent:, flow:, version: 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? "/" raise ::ArgumentError, "flow cannot contain /" if flow.to_s.include? "/" "projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/versions/#{version}" end