module Google::Cloud::Workflows::Executions::V1beta::Executions::Paths

Path helper methods for the Executions API.

Public Instance Methods

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

Create a fully-qualified Execution resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/workflows/{workflow}/executions/{execution}`

@param project [String] @param location [String] @param workflow [String] @param execution [String]

@return [::String]

# File lib/google/cloud/workflows/executions/v1beta/executions/paths.rb, line 41
def execution_path project:, location:, workflow:, execution:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
  raise ::ArgumentError, "workflow cannot contain /" if workflow.to_s.include? "/"

  "projects/#{project}/locations/#{location}/workflows/#{workflow}/executions/#{execution}"
end
workflow_path(project:, location:, workflow: raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/") click to toggle source

Create a fully-qualified Workflow resource string.

The resource will be in the following format:

`projects/{project}/locations/{location}/workflows/{workflow}`

@param project [String] @param location [String] @param workflow [String]

@return [::String]

# File lib/google/cloud/workflows/executions/v1beta/executions/paths.rb, line 61
def workflow_path project:, location:, workflow:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
  raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"

  "projects/#{project}/locations/#{location}/workflows/#{workflow}"
end