/// <summary>
 /// Assigns **"My Workspace"** to the specified capacity.
 /// </summary>
 /// <remarks>
 /// **Note**: To perform this operation, the user must have admin or assign
 /// permissions on the capacity. To unassign **"My Workspace"** from a
 /// capacity, Empty Guid (00000000-0000-0000-0000-000000000000) should be
 /// provided as capacityId.  &lt;br/&gt;&lt;br/&gt;**Required scope**:
 /// Capacity.ReadWrite.All and Workspace.ReadWrite.All &lt;br/&gt;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='requestParameters'>
 /// Assign to capacity parameters
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task AssignMyWorkspaceToCapacityAsync(this IGroupsOperations operations, AssignToCapacityRequest requestParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.AssignMyWorkspaceToCapacityWithHttpMessagesAsync(requestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }