/// <summary>Snippet for GetBatchJobAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetBatchJobRequestObjectAsync() { // Create client BatchJobServiceClient batchJobServiceClient = await BatchJobServiceClient.CreateAsync(); // Initialize request argument(s) GetBatchJobRequest request = new GetBatchJobRequest { ResourceNameAsBatchJobName = BatchJobName.FromCustomerBatchJob("[CUSTOMER]", "[BATCH_JOB]"), }; // Make the request BatchJob response = await batchJobServiceClient.GetBatchJobAsync(request); }
/// <summary>Snippet for GetBatchJobAsync</summary> public async Task GetBatchJobResourceNamesAsync() { // Snippet: GetBatchJobAsync(BatchJobName, CallSettings) // Additional: GetBatchJobAsync(BatchJobName, CancellationToken) // Create client BatchJobServiceClient batchJobServiceClient = await BatchJobServiceClient.CreateAsync(); // Initialize request argument(s) BatchJobName resourceName = BatchJobName.FromCustomerBatchJob("[CUSTOMER]", "[BATCH_JOB]"); // Make the request BatchJob response = await batchJobServiceClient.GetBatchJobAsync(resourceName); // End snippet }
/// <summary>Snippet for GetBatchJobAsync</summary> public async Task GetBatchJobAsync() { // Snippet: GetBatchJobAsync(string, CallSettings) // Additional: GetBatchJobAsync(string, CancellationToken) // Create client BatchJobServiceClient batchJobServiceClient = await BatchJobServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER]/batchJobs/[BATCH_JOB]"; // Make the request BatchJob response = await batchJobServiceClient.GetBatchJobAsync(resourceName); // End snippet }