/// <summary>Snippet for BatchEnableServices</summary> public void BatchEnableServicesRequestObject() { // Snippet: BatchEnableServices(BatchEnableServicesRequest, CallSettings) // Create client ServiceUsageClient serviceUsageClient = ServiceUsageClient.Create(); // Initialize request argument(s) BatchEnableServicesRequest request = new BatchEnableServicesRequest { Parent = "", ServiceIds = { "", }, }; // Make the request Operation <BatchEnableServicesResponse, OperationMetadata> response = serviceUsageClient.BatchEnableServices(request); // Poll until the returned long-running operation is complete Operation <BatchEnableServicesResponse, OperationMetadata> completedResponse = response.PollUntilCompleted(); // Retrieve the operation result BatchEnableServicesResponse 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 <BatchEnableServicesResponse, OperationMetadata> retrievedResponse = serviceUsageClient.PollOnceBatchEnableServices(operationName); // Check if the retrieved long-running operation has completed if (retrievedResponse.IsCompleted) { // If it has completed, then access the result BatchEnableServicesResponse retrievedResult = retrievedResponse.Result; } // End snippet }