< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
GetVersionPredictionAsync()-100%100%
GetSlotPredictionAsync()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\cognitiveservices\Language.LUIS.Runtime\src\Generated\PredictionOperationsExtensions.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.Runtime
 12{
 13    using Models;
 14    using System.Threading;
 15    using System.Threading.Tasks;
 16
 17    /// <summary>
 18    /// Extension methods for PredictionOperations.
 19    /// </summary>
 20    public static partial class PredictionOperationsExtensions
 21    {
 22            /// <summary>
 23            /// Gets the predictions for an application version.
 24            /// </summary>
 25            /// <param name='operations'>
 26            /// The operations group for this extension method.
 27            /// </param>
 28            /// <param name='appId'>
 29            /// The application ID.
 30            /// </param>
 31            /// <param name='versionId'>
 32            /// The application version ID.
 33            /// </param>
 34            /// <param name='predictionRequest'>
 35            /// The prediction request parameters.
 36            /// </param>
 37            /// <param name='verbose'>
 38            /// Indicates whether to get extra metadata for the entities predictions or
 39            /// not.
 40            /// </param>
 41            /// <param name='showAllIntents'>
 42            /// Indicates whether to return all the intents in the response or just the top
 43            /// intent.
 44            /// </param>
 45            /// <param name='log'>
 46            /// Indicates whether to log the endpoint query or not.
 47            /// </param>
 48            /// <param name='cancellationToken'>
 49            /// The cancellation token.
 50            /// </param>
 51            public static async Task<PredictionResponse> GetVersionPredictionAsync(this IPredictionOperations operations
 52            {
 253                using (var _result = await operations.GetVersionPredictionWithHttpMessagesAsync(appId, versionId, predic
 54                {
 255                    return _result.Body;
 56                }
 257            }
 58
 59            /// <summary>
 60            /// Gets the predictions for an application slot.
 61            /// </summary>
 62            /// <param name='operations'>
 63            /// The operations group for this extension method.
 64            /// </param>
 65            /// <param name='appId'>
 66            /// The application ID.
 67            /// </param>
 68            /// <param name='slotName'>
 69            /// The application slot name.
 70            /// </param>
 71            /// <param name='predictionRequest'>
 72            /// The prediction request parameters.
 73            /// </param>
 74            /// <param name='verbose'>
 75            /// Indicates whether to get extra metadata for the entities predictions or
 76            /// not.
 77            /// </param>
 78            /// <param name='showAllIntents'>
 79            /// Indicates whether to return all the intents in the response or just the top
 80            /// intent.
 81            /// </param>
 82            /// <param name='log'>
 83            /// Indicates whether to log the endpoint query or not.
 84            /// </param>
 85            /// <param name='cancellationToken'>
 86            /// The cancellation token.
 87            /// </param>
 88            public static async Task<PredictionResponse> GetSlotPredictionAsync(this IPredictionOperations operations, S
 89            {
 690                using (var _result = await operations.GetSlotPredictionWithHttpMessagesAsync(appId, slotName, prediction
 91                {
 292                    return _result.Body;
 93                }
 294            }
 95
 96    }
 97}