module Google::Cloud::Dialogflow::CX::V3::Experiments::Paths
Path helper methods for the Experiments
API.
Public Instance Methods
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/experiments/paths.rb, line 41 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 Experiment
resource string.
The resource will be in the following format:
`projects/{project}/locations/{location}/agents/{agent}/environments/{environment}/experiments/{experiment}`
@param project [String] @param location [String] @param agent [String] @param environment [String] @param experiment [String]
@return [::String]
# File lib/google/cloud/dialogflow/cx/v3/experiments/paths.rb, line 63 def experiment_path project:, location:, agent:, environment:, experiment: 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, "environment cannot contain /" if environment.to_s.include? "/" "projects/#{project}/locations/#{location}/agents/#{agent}/environments/#{environment}/experiments/#{experiment}" 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/experiments/paths.rb, line 86 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