/// <summary> /// Returns the current state of the specified capacity workloads, if a /// workload is enabled also returns the maximum memory percentage that the /// workload can consume. /// </summary> /// <remarks> /// <br/>**Required scope**: Capacity.Read.All or Capacity.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='capacityId'> /// The capacity Id /// </param> public static Workloads GetWorkloads(this ICapacitiesOperations operations, System.Guid capacityId) { return(operations.GetWorkloadsAsync(capacityId).GetAwaiter().GetResult()); }