Gets a workflow using Ruby.
require "google/cloud/workflows/v1" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Workflows::V1::Workflows::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Workflows::V1::GetWorkflowRequest.new # Call the get_workflow method. result = client.get_workflow request # The returned object is of type Google::Cloud::Workflows::V1::Workflow. p result
To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.