/// <summary>Snippet for DeleteBatch</summary> public void DeleteBatch() { // Snippet: DeleteBatch(string, CallSettings) // Create client BatchControllerClient batchControllerClient = BatchControllerClient.Create(); // Initialize request argument(s) string name = "projects/[PROJECT]/locations/[LOCATION]/batches/[BATCH]"; // Make the request batchControllerClient.DeleteBatch(name); // End snippet }
/// <summary>Snippet for DeleteBatch</summary> public void DeleteBatchResourceNames() { // Snippet: DeleteBatch(BatchName, CallSettings) // Create client BatchControllerClient batchControllerClient = BatchControllerClient.Create(); // Initialize request argument(s) BatchName name = BatchName.FromProjectLocationBatch("[PROJECT]", "[LOCATION]", "[BATCH]"); // Make the request batchControllerClient.DeleteBatch(name); // End snippet }
/// <summary>Snippet for DeleteBatch</summary> public void DeleteBatchRequestObject() { // Snippet: DeleteBatch(DeleteBatchRequest, CallSettings) // Create client BatchControllerClient batchControllerClient = BatchControllerClient.Create(); // Initialize request argument(s) DeleteBatchRequest request = new DeleteBatchRequest { BatchName = BatchName.FromProjectLocationBatch("[PROJECT]", "[LOCATION]", "[BATCH]"), }; // Make the request batchControllerClient.DeleteBatch(request); // End snippet }