| | 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 | |
|
| | 11 | | namespace 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 | | { |
| 6 | 37 | | 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 | | { |
| 6 | 56 | | using (var _result = await operations.GetObjectsByObjectIdsWithHttpMessagesAsync(parameters, null, cance |
| | 57 | | { |
| 6 | 58 | | return _result.Body; |
| | 59 | | } |
| 6 | 60 | | } |
| | 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 | | { |
| 0 | 73 | | 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 | | { |
| 0 | 90 | | using (var _result = await operations.GetObjectsByObjectIdsNextWithHttpMessagesAsync(nextLink, null, can |
| | 91 | | { |
| 0 | 92 | | return _result.Body; |
| | 93 | | } |
| 0 | 94 | | } |
| | 95 | |
|
| | 96 | | } |
| | 97 | | } |