/// <summary>
 /// List management groups for the authenticated user.
 ///
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cacheControl'>
 /// Indicates whether the request should utilize any caches. Populate the
 /// header with 'no-cache' value to bypass existing caches.
 /// </param>
 /// <param name='skiptoken'>
 /// Page continuation token is only used if a previous operation returned a
 /// partial result.
 /// If a previous response contains a nextLink element, the value of the
 /// nextLink element will include a token parameter that specifies a starting
 /// point to use for subsequent calls.
 /// </param>
 public static IPage <ManagementGroupInfo> List(this IManagementGroupsOperations operations, string cacheControl = "no-cache", string skiptoken = default(string))
 {
     return(operations.ListAsync(cacheControl, skiptoken).GetAwaiter().GetResult());
 }
예제 #2
0
 /// <summary>
 /// Gets a list of management groups connected to a workspace.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group. The name is case insensitive.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 public static IEnumerable <ManagementGroup> List(this IManagementGroupsOperations operations, string resourceGroupName, string workspaceName)
 {
     return(operations.ListAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult());
 }