/// <summary>
 /// Updates the current state of the specified Dedicated capacity.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the Azure Resource group of which a given PowerBIDedicated
 /// capacity is part. This name must be at least 1 character in length, and no
 /// more than 90.
 /// </param>
 /// <param name='dedicatedCapacityName'>
 /// The name of the Dedicated capacity. It must be at least 3 characters in
 /// length, and no more than 63.
 /// </param>
 /// <param name='capacityUpdateParameters'>
 /// Request object that contains the updated information for the capacity.
 /// </param>
 public static DedicatedCapacity Update(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters)
 {
     return(operations.UpdateAsync(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters).GetAwaiter().GetResult());
 }