< Summary

Class:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring.SettingsExtensions
Assembly:Microsoft.Azure.CognitiveServices.Language.LUIS.Authoring
File(s):C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\SettingsExtensions.cs
Covered lines:0
Uncovered lines:6
Coverable lines:6
Total lines:74
Line coverage:0% (0 of 6)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
ListAsync()-0%100%
UpdateAsync()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Authoring\src\Generated\SettingsExtensions.cs

#LineLine coverage
 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
 11namespace 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            {
 041                using (var _result = await operations.ListWithHttpMessagesAsync(appId, versionId, null, cancellationToke
 42                {
 043                    return _result.Body;
 44                }
 045            }
 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            {
 067                using (var _result = await operations.UpdateWithHttpMessagesAsync(appId, versionId, listOfAppVersionSett
 68                {
 069                    return _result.Body;
 70                }
 071            }
 72
 73    }
 74}

Methods/Properties

ListAsync()
UpdateAsync()