| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.CognitiveServices.Knowledge.QnAMaker |
| | | 12 | | { |
| | | 13 | | using Models; |
| | | 14 | | using System.Threading; |
| | | 15 | | using System.Threading.Tasks; |
| | | 16 | | |
| | | 17 | | /// <summary> |
| | | 18 | | /// Extension methods for Operations. |
| | | 19 | | /// </summary> |
| | | 20 | | public static partial class OperationsExtensions |
| | | 21 | | { |
| | | 22 | | /// <summary> |
| | | 23 | | /// Gets details of a specific long running operation. |
| | | 24 | | /// </summary> |
| | | 25 | | /// <param name='operations'> |
| | | 26 | | /// The operations group for this extension method. |
| | | 27 | | /// </param> |
| | | 28 | | /// <param name='operationId'> |
| | | 29 | | /// Operation id. |
| | | 30 | | /// </param> |
| | | 31 | | /// <param name='cancellationToken'> |
| | | 32 | | /// The cancellation token. |
| | | 33 | | /// </param> |
| | | 34 | | public static async Task<Operation> GetDetailsAsync(this IOperations operations, string operationId, Cancell |
| | | 35 | | { |
| | 0 | 36 | | using (var _result = await operations.GetDetailsWithHttpMessagesAsync(operationId, null, cancellationTok |
| | | 37 | | { |
| | 0 | 38 | | return _result.Body; |
| | | 39 | | } |
| | 0 | 40 | | } |
| | | 41 | | |
| | | 42 | | } |
| | | 43 | | } |