/// <summary>Snippet for BatchCreateJobs</summary> public void BatchCreateJobs_RequestObject() { // Snippet: BatchCreateJobs(BatchCreateJobsRequest,CallSettings) // Create client JobServiceClient jobServiceClient = JobServiceClient.Create(); // Initialize request argument(s) BatchCreateJobsRequest request = new BatchCreateJobsRequest { Parent = new TenantName("[PROJECT]", "[TENANT]").ToString(), Jobs = { }, }; // Make the request Operation <JobOperationResult, BatchOperationMetadata> response = jobServiceClient.BatchCreateJobs(request); // Poll until the returned long-running operation is complete Operation <JobOperationResult, BatchOperationMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result JobOperationResult result = completedResponse.Result; // Or get the name of the operation string operationName = response.Name; // This name can be stored, then the long-running operation retrieved later by name Operation <JobOperationResult, BatchOperationMetadata> retrievedResponse = jobServiceClient.PollOnceBatchCreateJobs(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result JobOperationResult retrievedResult = retrievedResponse.Result; } // End snippet }