Skip to content

Commit 497d81f

Browse files
authored
chore: add region tags to workflows quickstart (GoogleCloudPlatform#8562)
* add tags for libraries and execution * missing whitespace
1 parent 27fdda4 commit 497d81f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

workflows/cloud-client/src/main/java/com/example/workflows/WorkflowsQuickstart.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.example.workflows;
1818

1919
// [START workflows_api_quickstart]
20-
20+
// [START workflows_api_quickstart_client_libraries]
2121
// Imports the Google Cloud client library
2222

2323
import com.google.cloud.workflows.executions.v1.CreateExecutionRequest;
@@ -26,6 +26,7 @@
2626
import com.google.cloud.workflows.executions.v1.WorkflowName;
2727
import java.io.IOException;
2828
import java.util.concurrent.ExecutionException;
29+
// [END workflows_api_quickstart_client_libraries]
2930

3031
public class WorkflowsQuickstart {
3132

@@ -51,6 +52,7 @@ public static void workflowsQuickstart(String projectId, String location, String
5152
// to be created once, and can be reused for multiple requests. After completing all of your
5253
// requests, call the "close" method on the client to safely clean up any remaining background
5354
// resources.
55+
// [START workflows_api_quickstart_execution]
5456
try (ExecutionsClient executionsClient = ExecutionsClient.create()) {
5557
// Construct the fully qualified location path.
5658
WorkflowName parent = WorkflowName.of(projectId, location, workflow);
@@ -88,6 +90,7 @@ public static void workflowsQuickstart(String projectId, String location, String
8890
}
8991
}
9092
}
93+
// [END workflows_api_quickstart_execution]
9194
}
9295
}
9396
// [END workflows_api_quickstart]

0 commit comments

Comments
 (0)