/// <summary> /// Get entities from servicePrincipals /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </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='top'> /// Show only the first n items /// </param> /// <param name='skip'> /// Skip the first n items /// </param> /// <param name='search'> /// Search items by search phrases /// </param> /// <param name='filter'> /// Filter items by property values /// </param> /// <param name='count'> /// Include count of items /// </param> /// <param name='orderby'> /// Order items by property values /// </param> /// <param name='select'> /// Select properties to be returned /// </param> /// <param name='expand'> /// Expand related entities /// </param> public static ListServicePrincipalOKResponse ListServicePrincipal(this IServicePrincipalsOperations operations, string consistencyLevel = default(string), int?top = default(int?), int?skip = default(int?), string search = default(string), string filter = default(string), bool?count = default(bool?), IList <string> orderby = default(IList <string>), IList <string> select = default(IList <string>), IList <string> expand = default(IList <string>)) { return(operations.ListServicePrincipalAsync(consistencyLevel, top, skip, search, filter, count, orderby, select, expand).GetAwaiter().GetResult()); }