< Summary

Class:Microsoft.Azure.Graph.RBAC.DeletedApplicationsOperationsExtensions
Assembly:Microsoft.Azure.Graph.RBAC
File(s):C:\Git\azure-sdk-for-net\sdk\graphrbac\Microsoft.Azure.Graph.RBAC\src\Generated\DeletedApplicationsOperationsExtensions.cs
Covered lines:0
Uncovered lines:16
Coverable lines:16
Total lines:158
Line coverage:0% (0 of 16)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
Restore(...)-0%100%
RestoreAsync()-0%100%
List(...)-0%100%
ListAsync()-0%100%
HardDelete(...)-0%100%
HardDeleteAsync()-0%100%
ListNext(...)-0%100%
ListNextAsync()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\graphrbac\Microsoft.Azure.Graph.RBAC\src\Generated\DeletedApplicationsOperationsExtensions.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.Graph.RBAC
 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 DeletedApplicationsOperations.
 21    /// </summary>
 22    public static partial class DeletedApplicationsOperationsExtensions
 23    {
 24            /// <summary>
 25            /// Restores the deleted application in the directory.
 26            /// </summary>
 27            /// <param name='operations'>
 28            /// The operations group for this extension method.
 29            /// </param>
 30            /// <param name='objectId'>
 31            /// Application object ID.
 32            /// </param>
 33            public static Application Restore(this IDeletedApplicationsOperations operations, string objectId)
 34            {
 035                return operations.RestoreAsync(objectId).GetAwaiter().GetResult();
 36            }
 37
 38            /// <summary>
 39            /// Restores the deleted application in the directory.
 40            /// </summary>
 41            /// <param name='operations'>
 42            /// The operations group for this extension method.
 43            /// </param>
 44            /// <param name='objectId'>
 45            /// Application object ID.
 46            /// </param>
 47            /// <param name='cancellationToken'>
 48            /// The cancellation token.
 49            /// </param>
 50            public static async Task<Application> RestoreAsync(this IDeletedApplicationsOperations operations, string ob
 51            {
 052                using (var _result = await operations.RestoreWithHttpMessagesAsync(objectId, null, cancellationToken).Co
 53                {
 054                    return _result.Body;
 55                }
 056            }
 57
 58            /// <summary>
 59            /// Gets a list of deleted applications in the directory.
 60            /// </summary>
 61            /// <param name='operations'>
 62            /// The operations group for this extension method.
 63            /// </param>
 64            /// <param name='filter'>
 65            /// The filter to apply to the operation.
 66            /// </param>
 67            public static IPage<Application> List(this IDeletedApplicationsOperations operations, string filter = defaul
 68            {
 069                return operations.ListAsync(filter).GetAwaiter().GetResult();
 70            }
 71
 72            /// <summary>
 73            /// Gets a list of deleted applications in the directory.
 74            /// </summary>
 75            /// <param name='operations'>
 76            /// The operations group for this extension method.
 77            /// </param>
 78            /// <param name='filter'>
 79            /// The filter to apply to the operation.
 80            /// </param>
 81            /// <param name='cancellationToken'>
 82            /// The cancellation token.
 83            /// </param>
 84            public static async Task<IPage<Application>> ListAsync(this IDeletedApplicationsOperations operations, strin
 85            {
 086                using (var _result = await operations.ListWithHttpMessagesAsync(filter, null, cancellationToken).Configu
 87                {
 088                    return _result.Body;
 89                }
 090            }
 91
 92            /// <summary>
 93            /// Hard-delete an application.
 94            /// </summary>
 95            /// <param name='operations'>
 96            /// The operations group for this extension method.
 97            /// </param>
 98            /// <param name='applicationObjectId'>
 99            /// Application object ID.
 100            /// </param>
 101            public static void HardDelete(this IDeletedApplicationsOperations operations, string applicationObjectId)
 102            {
 0103                operations.HardDeleteAsync(applicationObjectId).GetAwaiter().GetResult();
 0104            }
 105
 106            /// <summary>
 107            /// Hard-delete an application.
 108            /// </summary>
 109            /// <param name='operations'>
 110            /// The operations group for this extension method.
 111            /// </param>
 112            /// <param name='applicationObjectId'>
 113            /// Application object ID.
 114            /// </param>
 115            /// <param name='cancellationToken'>
 116            /// The cancellation token.
 117            /// </param>
 118            public static async Task HardDeleteAsync(this IDeletedApplicationsOperations operations, string applicationO
 119            {
 0120                (await operations.HardDeleteWithHttpMessagesAsync(applicationObjectId, null, cancellationToken).Configur
 0121            }
 122
 123            /// <summary>
 124            /// Gets a list of deleted applications in the directory.
 125            /// </summary>
 126            /// <param name='operations'>
 127            /// The operations group for this extension method.
 128            /// </param>
 129            /// <param name='nextLink'>
 130            /// Next link for the list operation.
 131            /// </param>
 132            public static IPage<Application> ListNext(this IDeletedApplicationsOperations operations, string nextLink)
 133            {
 0134                return operations.ListNextAsync(nextLink).GetAwaiter().GetResult();
 135            }
 136
 137            /// <summary>
 138            /// Gets a list of deleted applications in the directory.
 139            /// </summary>
 140            /// <param name='operations'>
 141            /// The operations group for this extension method.
 142            /// </param>
 143            /// <param name='nextLink'>
 144            /// Next link for the list operation.
 145            /// </param>
 146            /// <param name='cancellationToken'>
 147            /// The cancellation token.
 148            /// </param>
 149            public static async Task<IPage<Application>> ListNextAsync(this IDeletedApplicationsOperations operations, s
 150            {
 0151                using (var _result = await operations.ListNextWithHttpMessagesAsync(nextLink, null, cancellationToken).C
 152                {
 0153                    return _result.Body;
 154                }
 0155            }
 156
 157    }
 158}