/// <summary> /// Assigns the specified workspace to the specified dataflow storage account. /// </summary> /// <remarks> /// **Note**: To perform this operation, the user must be an admin on the /// specified workspace and the Power BI dataflow storage account must be /// enabled. To unassign the specified workspace from a Power BI dataflow /// storage account, an empty GUID (00000000-0000-0000-0000-000000000000) /// should be provided as dataflowStorageId.<br/><br/>**Required /// scope**: StorageAccount.ReadWrite.All and Workspace.ReadWrite.All /// <br/>To set the permissions scope, see [Register an /// app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// The workspace id /// </param> /// <param name='requestParameters'> /// Assign to Power BI dataflow storage account parameters /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task AssignToDataflowStorageAsync(this IGroupsOperations operations, System.Guid groupId, AssignToDataflowStorageRequest requestParameters, CancellationToken cancellationToken = default(CancellationToken)) { (await operations.AssignToDataflowStorageWithHttpMessagesAsync(groupId, requestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Assigns the specified workspace to the specified dataflow storage account. /// </summary> /// <remarks> /// **Note**: To perform this operation, the user must be an admin on the /// specified workspace and the Power BI dataflow storage account must be /// enabled. To unassign the specified workspace from a Power BI dataflow /// storage account, an empty GUID (00000000-0000-0000-0000-000000000000) /// should be provided as dataflowStorageId.<br/><br/>**Required /// scope**: StorageAccount.ReadWrite.All and Workspace.ReadWrite.All /// <br/>To set the permissions scope, see [Register an /// app](https://docs.microsoft.com/power-bi/developer/register-app). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// The workspace id /// </param> /// <param name='requestParameters'> /// Assign to Power BI dataflow storage account parameters /// </param> public static void AssignToDataflowStorage(this IGroupsOperations operations, System.Guid groupId, AssignToDataflowStorageRequest requestParameters) { operations.AssignToDataflowStorageAsync(groupId, requestParameters).GetAwaiter().GetResult(); }