< Summary

Class:Microsoft.Azure.Batch.Protocol.AccountOperationsExtensions
Assembly:Microsoft.Azure.Batch
File(s):C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\AccountOperationsExtensions.cs
Covered lines:0
Uncovered lines:16
Coverable lines:16
Total lines:173
Line coverage:0% (0 of 16)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
ListSupportedImages(...)-0%100%
ListSupportedImagesAsync()-0%100%
ListPoolNodeCounts(...)-0%100%
ListPoolNodeCountsAsync()-0%100%
ListSupportedImagesNext(...)-0%100%
ListSupportedImagesNextAsync()-0%100%
ListPoolNodeCountsNext(...)-0%100%
ListPoolNodeCountsNextAsync()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\batch\Microsoft.Azure.Batch\src\GeneratedProtocol\AccountOperationsExtensions.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.Batch.Protocol
 12{
 13    using Microsoft.Rest;
 14    using Microsoft.Rest.Azure;
 15    using Models;
 16    using System.Threading;
 17    using System.Threading.Tasks;
 18
 19    /// <summary>
 20    /// Extension methods for AccountOperations.
 21    /// </summary>
 22    public static partial class AccountOperationsExtensions
 23    {
 24            /// <summary>
 25            /// Lists all Virtual Machine Images supported by the Azure Batch service.
 26            /// </summary>
 27            /// <param name='operations'>
 28            /// The operations group for this extension method.
 29            /// </param>
 30            /// <param name='accountListSupportedImagesOptions'>
 31            /// Additional parameters for the operation
 32            /// </param>
 33            public static IPage<ImageInformation> ListSupportedImages(this IAccountOperations operations, AccountListSup
 34            {
 035                return operations.ListSupportedImagesAsync(accountListSupportedImagesOptions).GetAwaiter().GetResult();
 36            }
 37
 38            /// <summary>
 39            /// Lists all Virtual Machine Images supported by the Azure Batch service.
 40            /// </summary>
 41            /// <param name='operations'>
 42            /// The operations group for this extension method.
 43            /// </param>
 44            /// <param name='accountListSupportedImagesOptions'>
 45            /// Additional parameters for the operation
 46            /// </param>
 47            /// <param name='cancellationToken'>
 48            /// The cancellation token.
 49            /// </param>
 50            public static async Task<IPage<ImageInformation>> ListSupportedImagesAsync(this IAccountOperations operation
 51            {
 052                using (var _result = await operations.ListSupportedImagesWithHttpMessagesAsync(accountListSupportedImage
 53                {
 054                    return _result.Body;
 55                }
 056            }
 57
 58            /// <summary>
 59            /// Gets the number of Compute Nodes in each state, grouped by Pool.
 60            /// </summary>
 61            /// <param name='operations'>
 62            /// The operations group for this extension method.
 63            /// </param>
 64            /// <param name='accountListPoolNodeCountsOptions'>
 65            /// Additional parameters for the operation
 66            /// </param>
 67            public static IPage<PoolNodeCounts> ListPoolNodeCounts(this IAccountOperations operations, AccountListPoolNo
 68            {
 069                return operations.ListPoolNodeCountsAsync(accountListPoolNodeCountsOptions).GetAwaiter().GetResult();
 70            }
 71
 72            /// <summary>
 73            /// Gets the number of Compute Nodes in each state, grouped by Pool.
 74            /// </summary>
 75            /// <param name='operations'>
 76            /// The operations group for this extension method.
 77            /// </param>
 78            /// <param name='accountListPoolNodeCountsOptions'>
 79            /// Additional parameters for the operation
 80            /// </param>
 81            /// <param name='cancellationToken'>
 82            /// The cancellation token.
 83            /// </param>
 84            public static async Task<IPage<PoolNodeCounts>> ListPoolNodeCountsAsync(this IAccountOperations operations, 
 85            {
 086                using (var _result = await operations.ListPoolNodeCountsWithHttpMessagesAsync(accountListPoolNodeCountsO
 87                {
 088                    return _result.Body;
 89                }
 090            }
 91
 92            /// <summary>
 93            /// Lists all Virtual Machine Images supported by the Azure Batch service.
 94            /// </summary>
 95            /// <param name='operations'>
 96            /// The operations group for this extension method.
 97            /// </param>
 98            /// <param name='nextPageLink'>
 99            /// The NextLink from the previous successful call to List operation.
 100            /// </param>
 101            /// <param name='accountListSupportedImagesNextOptions'>
 102            /// Additional parameters for the operation
 103            /// </param>
 104            public static IPage<ImageInformation> ListSupportedImagesNext(this IAccountOperations operations, string nex
 105            {
 0106                return operations.ListSupportedImagesNextAsync(nextPageLink, accountListSupportedImagesNextOptions).GetA
 107            }
 108
 109            /// <summary>
 110            /// Lists all Virtual Machine Images supported by the Azure Batch service.
 111            /// </summary>
 112            /// <param name='operations'>
 113            /// The operations group for this extension method.
 114            /// </param>
 115            /// <param name='nextPageLink'>
 116            /// The NextLink from the previous successful call to List operation.
 117            /// </param>
 118            /// <param name='accountListSupportedImagesNextOptions'>
 119            /// Additional parameters for the operation
 120            /// </param>
 121            /// <param name='cancellationToken'>
 122            /// The cancellation token.
 123            /// </param>
 124            public static async Task<IPage<ImageInformation>> ListSupportedImagesNextAsync(this IAccountOperations opera
 125            {
 0126                using (var _result = await operations.ListSupportedImagesNextWithHttpMessagesAsync(nextPageLink, account
 127                {
 0128                    return _result.Body;
 129                }
 0130            }
 131
 132            /// <summary>
 133            /// Gets the number of Compute Nodes in each state, grouped by Pool.
 134            /// </summary>
 135            /// <param name='operations'>
 136            /// The operations group for this extension method.
 137            /// </param>
 138            /// <param name='nextPageLink'>
 139            /// The NextLink from the previous successful call to List operation.
 140            /// </param>
 141            /// <param name='accountListPoolNodeCountsNextOptions'>
 142            /// Additional parameters for the operation
 143            /// </param>
 144            public static IPage<PoolNodeCounts> ListPoolNodeCountsNext(this IAccountOperations operations, string nextPa
 145            {
 0146                return operations.ListPoolNodeCountsNextAsync(nextPageLink, accountListPoolNodeCountsNextOptions).GetAwa
 147            }
 148
 149            /// <summary>
 150            /// Gets the number of Compute Nodes in each state, grouped by Pool.
 151            /// </summary>
 152            /// <param name='operations'>
 153            /// The operations group for this extension method.
 154            /// </param>
 155            /// <param name='nextPageLink'>
 156            /// The NextLink from the previous successful call to List operation.
 157            /// </param>
 158            /// <param name='accountListPoolNodeCountsNextOptions'>
 159            /// Additional parameters for the operation
 160            /// </param>
 161            /// <param name='cancellationToken'>
 162            /// The cancellation token.
 163            /// </param>
 164            public static async Task<IPage<PoolNodeCounts>> ListPoolNodeCountsNextAsync(this IAccountOperations operatio
 165            {
 0166                using (var _result = await operations.ListPoolNodeCountsNextWithHttpMessagesAsync(nextPageLink, accountL
 167                {
 0168                    return _result.Body;
 169                }
 0170            }
 171
 172    }
 173}