/// <summary>
 /// Gets a workspace active directory admin
 /// </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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <WorkspaceAadAdminInfo> GetAsync(this IWorkspaceAadAdminsOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates or updates a workspace active directory admin
 /// </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>
 /// <param name='aadAdminInfo'>
 /// Workspace active directory administrator properties
 /// </param>
 public static WorkspaceAadAdminInfo CreateOrUpdate(this IWorkspaceAadAdminsOperations operations, string resourceGroupName, string workspaceName, WorkspaceAadAdminInfo aadAdminInfo)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, workspaceName, aadAdminInfo).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes a workspace active directory admin
 /// </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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IWorkspaceAadAdminsOperations operations, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, workspaceName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Gets a workspace active directory admin
 /// </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 WorkspaceAadAdminInfo Get(this IWorkspaceAadAdminsOperations operations, string resourceGroupName, string workspaceName)
 {
     return(operations.GetAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes a workspace active directory admin
 /// </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 void BeginDelete(this IWorkspaceAadAdminsOperations operations, string resourceGroupName, string workspaceName)
 {
     operations.BeginDeleteAsync(resourceGroupName, workspaceName).GetAwaiter().GetResult();
 }