/// <summary>Snippet for DeleteBatchAsync</summary> public async Task DeleteBatchResourceNamesAsync() { // Snippet: DeleteBatchAsync(BatchName, CallSettings) // Additional: DeleteBatchAsync(BatchName, CancellationToken) // Create client BatchControllerClient batchControllerClient = await BatchControllerClient.CreateAsync(); // Initialize request argument(s) BatchName name = BatchName.FromProjectLocationBatch("[PROJECT]", "[LOCATION]", "[BATCH]"); // Make the request await batchControllerClient.DeleteBatchAsync(name); // End snippet }
/// <summary>Snippet for DeleteBatchAsync</summary> public async Task DeleteBatchAsync() { // Snippet: DeleteBatchAsync(string, CallSettings) // Additional: DeleteBatchAsync(string, CancellationToken) // Create client BatchControllerClient batchControllerClient = await BatchControllerClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/batches/[BATCH]"; // Make the request await batchControllerClient.DeleteBatchAsync(name); // End snippet }