Example #1
0
 /// <summary>
 /// Get entity from servicePrincipals by key
 /// </summary>
 /// <remarks>
 /// Represents an Azure Active Directory object. The directoryObject type is
 /// the base type for many other directory entity types.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='servicePrincipalId'>
 /// key: id of servicePrincipal
 /// </param>
 /// <param name='consistencyLevel'>
 /// Indicates the requested consistency level. Documentation URL:
 /// https://developer.microsoft.com/en-us/office/blogs/microsoft-graph-advanced-queries-for-directory-objects-are-now-generally-available/
 /// </param>
 /// <param name='select'>
 /// Select properties to be returned
 /// </param>
 /// <param name='expand'>
 /// Expand related entities
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <MicrosoftGraphServicePrincipal> GetServicePrincipalAsync(this IServicePrincipalsOperations operations, string servicePrincipalId, string consistencyLevel = default(string), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetServicePrincipalWithHttpMessagesAsync(servicePrincipalId, consistencyLevel, select, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }