module Google::Cloud::Workflows::V1::Workflows::Paths

Path helper methods for the Workflows API.

Public Instance Methods

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/workflows/v1/workflows/paths.rb, line 38
def location_path project:, location:
  raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"

  "projects/#{project}/locations/#{location}"
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/v1/workflows/paths.rb, line 56
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