/// <summary>Snippet for CreateExecutionAsync</summary> public async Task CreateExecutionAsync() { // Snippet: CreateExecutionAsync(string, Execution, CallSettings) // Additional: CreateExecutionAsync(string, Execution, CancellationToken) // Create client ExecutionsClient executionsClient = await ExecutionsClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]"; Execution execution = new Execution(); // Make the request Execution response = await executionsClient.CreateExecutionAsync(parent, execution); // End snippet }
/// <summary>Snippet for CreateExecutionAsync</summary> public async Task CreateExecutionResourceNamesAsync() { // Snippet: CreateExecutionAsync(WorkflowName, Execution, CallSettings) // Additional: CreateExecutionAsync(WorkflowName, Execution, CancellationToken) // Create client ExecutionsClient executionsClient = await ExecutionsClient.CreateAsync(); // Initialize request argument(s) WorkflowName parent = WorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"); Execution execution = new Execution(); // Make the request Execution response = await executionsClient.CreateExecutionAsync(parent, execution); // End snippet }
/// <summary>Snippet for CreateExecutionAsync</summary> public async Task CreateExecutionRequestObjectAsync() { // Snippet: CreateExecutionAsync(CreateExecutionRequest, CallSettings) // Additional: CreateExecutionAsync(CreateExecutionRequest, CancellationToken) // Create client ExecutionsClient executionsClient = await ExecutionsClient.CreateAsync(); // Initialize request argument(s) CreateExecutionRequest request = new CreateExecutionRequest { ParentAsWorkflowName = WorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"), Execution = new Execution(), }; // Make the request Execution response = await executionsClient.CreateExecutionAsync(request); // End snippet }