module Google::Cloud::Dialogflow::CX::V3::Versions::Paths
Path helper methods for the Versions
API.
Public Instance Methods
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/versions/paths.rb, line 41 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
version_path(project:, location:, agent:, flow:, version: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/")
click to toggle source
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/versions/paths.rb, line 63 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