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