< Summary

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

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
GetObjectsByObjectIds(...)-100%100%
GetObjectsByObjectIdsAsync()-100%100%
GetObjectsByObjectIdsNext(...)-0%100%
GetObjectsByObjectIdsNextAsync()-0%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\graphrbac\Microsoft.Azure.Graph.RBAC\src\Generated\ObjectsOperationsExtensions.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 ObjectsOperations.
 21    /// </summary>
 22    public static partial class ObjectsOperationsExtensions
 23    {
 24            /// <summary>
 25            /// Gets the directory objects specified in a list of object IDs. You can also
 26            /// specify which resource collections (users, groups, etc.) should be searched
 27            /// by specifying the optional types parameter.
 28            /// </summary>
 29            /// <param name='operations'>
 30            /// The operations group for this extension method.
 31            /// </param>
 32            /// <param name='parameters'>
 33            /// Objects filtering parameters.
 34            /// </param>
 35            public static IPage<DirectoryObject> GetObjectsByObjectIds(this IObjectsOperations operations, GetObjectsPar
 36            {
 637                return operations.GetObjectsByObjectIdsAsync(parameters).GetAwaiter().GetResult();
 38            }
 39
 40            /// <summary>
 41            /// Gets the directory objects specified in a list of object IDs. You can also
 42            /// specify which resource collections (users, groups, etc.) should be searched
 43            /// by specifying the optional types parameter.
 44            /// </summary>
 45            /// <param name='operations'>
 46            /// The operations group for this extension method.
 47            /// </param>
 48            /// <param name='parameters'>
 49            /// Objects filtering parameters.
 50            /// </param>
 51            /// <param name='cancellationToken'>
 52            /// The cancellation token.
 53            /// </param>
 54            public static async Task<IPage<DirectoryObject>> GetObjectsByObjectIdsAsync(this IObjectsOperations operatio
 55            {
 656                using (var _result = await operations.GetObjectsByObjectIdsWithHttpMessagesAsync(parameters, null, cance
 57                {
 658                    return _result.Body;
 59                }
 660            }
 61
 62            /// <summary>
 63            /// Gets AD group membership for the specified AD object IDs.
 64            /// </summary>
 65            /// <param name='operations'>
 66            /// The operations group for this extension method.
 67            /// </param>
 68            /// <param name='nextLink'>
 69            /// Next link for the list operation.
 70            /// </param>
 71            public static IPage<DirectoryObject> GetObjectsByObjectIdsNext(this IObjectsOperations operations, string ne
 72            {
 073                return operations.GetObjectsByObjectIdsNextAsync(nextLink).GetAwaiter().GetResult();
 74            }
 75
 76            /// <summary>
 77            /// Gets AD group membership for the specified AD object IDs.
 78            /// </summary>
 79            /// <param name='operations'>
 80            /// The operations group for this extension method.
 81            /// </param>
 82            /// <param name='nextLink'>
 83            /// Next link for the list operation.
 84            /// </param>
 85            /// <param name='cancellationToken'>
 86            /// The cancellation token.
 87            /// </param>
 88            public static async Task<IPage<DirectoryObject>> GetObjectsByObjectIdsNextAsync(this IObjectsOperations oper
 89            {
 090                using (var _result = await operations.GetObjectsByObjectIdsNextWithHttpMessagesAsync(nextLink, null, can
 91                {
 092                    return _result.Body;
 93                }
 094            }
 95
 96    }
 97}