/// <summary>Snippet for GetExecutionAsync</summary> public async Task GetExecutionAsync() { // Snippet: GetExecutionAsync(string, CallSettings) // Additional: GetExecutionAsync(string, CancellationToken) // Create client ExecutionsClient executionsClient = await ExecutionsClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]/executions/[EXECUTION]"; // Make the request Execution response = await executionsClient.GetExecutionAsync(name); // End snippet }
/// <summary>Snippet for GetExecutionAsync</summary> public async Task GetExecutionResourceNamesAsync() { // Snippet: GetExecutionAsync(ExecutionName, CallSettings) // Additional: GetExecutionAsync(ExecutionName, CancellationToken) // Create client ExecutionsClient executionsClient = await ExecutionsClient.CreateAsync(); // Initialize request argument(s) ExecutionName name = ExecutionName.FromProjectLocationWorkflowExecution("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[EXECUTION]"); // Make the request Execution response = await executionsClient.GetExecutionAsync(name); // End snippet }
/// <summary>Snippet for GetExecutionAsync</summary> public async Task GetExecutionRequestObjectAsync() { // Snippet: GetExecutionAsync(GetExecutionRequest, CallSettings) // Additional: GetExecutionAsync(GetExecutionRequest, CancellationToken) // Create client ExecutionsClient executionsClient = await ExecutionsClient.CreateAsync(); // Initialize request argument(s) GetExecutionRequest request = new GetExecutionRequest { ExecutionName = ExecutionName.FromProjectLocationWorkflowExecution("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[EXECUTION]"), View = ExecutionView.Unspecified, }; // Make the request Execution response = await executionsClient.GetExecutionAsync(request); // End snippet }