| | 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.Language.LUIS.Authoring |
| | 12 | | { |
| | 13 | | using Models; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Threading; |
| | 17 | | using System.Threading.Tasks; |
| | 18 | |
|
| | 19 | | /// <summary> |
| | 20 | | /// Extension methods for Settings. |
| | 21 | | /// </summary> |
| | 22 | | public static partial class SettingsExtensions |
| | 23 | | { |
| | 24 | | /// <summary> |
| | 25 | | /// Gets the settings in a version of the application. |
| | 26 | | /// </summary> |
| | 27 | | /// <param name='operations'> |
| | 28 | | /// The operations group for this extension method. |
| | 29 | | /// </param> |
| | 30 | | /// <param name='appId'> |
| | 31 | | /// The application ID. |
| | 32 | | /// </param> |
| | 33 | | /// <param name='versionId'> |
| | 34 | | /// The version ID. |
| | 35 | | /// </param> |
| | 36 | | /// <param name='cancellationToken'> |
| | 37 | | /// The cancellation token. |
| | 38 | | /// </param> |
| | 39 | | public static async Task<IList<AppVersionSettingObject>> ListAsync(this ISettings operations, System.Guid ap |
| | 40 | | { |
| 0 | 41 | | using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, null, cancellationToke |
| | 42 | | { |
| 0 | 43 | | return _result.Body; |
| | 44 | | } |
| 0 | 45 | | } |
| | 46 | |
|
| | 47 | | /// <summary> |
| | 48 | | /// Updates the settings in a version of the application. |
| | 49 | | /// </summary> |
| | 50 | | /// <param name='operations'> |
| | 51 | | /// The operations group for this extension method. |
| | 52 | | /// </param> |
| | 53 | | /// <param name='appId'> |
| | 54 | | /// The application ID. |
| | 55 | | /// </param> |
| | 56 | | /// <param name='versionId'> |
| | 57 | | /// The version ID. |
| | 58 | | /// </param> |
| | 59 | | /// <param name='listOfAppVersionSettingObject'> |
| | 60 | | /// A list of the updated application version settings. |
| | 61 | | /// </param> |
| | 62 | | /// <param name='cancellationToken'> |
| | 63 | | /// The cancellation token. |
| | 64 | | /// </param> |
| | 65 | | public static async Task<OperationStatus> UpdateAsync(this ISettings operations, System.Guid appId, string v |
| | 66 | | { |
| 0 | 67 | | using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, versionId, listOfAppVersionSett |
| | 68 | | { |
| 0 | 69 | | return _result.Body; |
| | 70 | | } |
| 0 | 71 | | } |
| | 72 | |
|
| | 73 | | } |
| | 74 | | } |