/// <summary>
 /// Lists all the Dedicated capacities for the given subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IEnumerable <DedicatedCapacity> > ListAsync(this ICapacitiesOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Returns a list of capacities the user has access to.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Capacity.Read.All or Capacity.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='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Capacities> GetCapacitiesAsync(this ICapacitiesOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetCapacitiesWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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>
 /// &lt;br/&gt;**Required scope**: Capacity.Read.All or Capacity.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='capacityId'>
 /// The capacity Id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Workloads> GetWorkloadsAsync(this ICapacitiesOperations operations, System.Guid capacityId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWorkloadsWithHttpMessagesAsync(capacityId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists eligible SKUs for PowerBI Dedicated resource provider.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SkuEnumerationForNewResourceResult> ListSkusAsync(this ICapacitiesOperations operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListSkusWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 5
0
 /// <summary>
 /// Returns a list of refreshables for all capacities of which the user has
 /// access to.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Capacity.Read.All or Capacity.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='top'>
 /// Returns only the first n results.
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline, receives a comma-separated list of data
 /// types. Supported: capacities and groups
 /// </param>
 /// <param name='filter'>
 /// Filters the results based on a boolean condition
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results. Use with top to fetch results beyond the first
 /// 1000.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Refreshables> GetRefreshablesAsync(this ICapacitiesOperations operations, int top, string expand = default(string), string filter = default(string), int?skip = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetRefreshablesWithHttpMessagesAsync(top, expand, filter, skip, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DedicatedCapacity> BeginUpdateAsync(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName, DedicatedCapacityUpdateParameters capacityUpdateParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, capacityUpdateParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Gets details about 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 a minimum of 3 characters,
 /// and a maximum of 63.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DedicatedCapacity> GetDetailsAsync(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetDetailsWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 8
0
 /// <summary>
 /// Returns the specified refreshable for the specified capacity the user has
 /// access to
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Capacity.Read.All or Capacity.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='capacityId'>
 /// The capacity id
 /// </param>
 /// <param name='refreshableId'>
 /// The refreshable id
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline, receives a comma-separated list of data
 /// types. Supported: capacities and groups
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Refreshables> GetRefreshableForCapacityAsync(this ICapacitiesOperations operations, System.Guid capacityId, string refreshableId, string expand = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetRefreshableForCapacityWithHttpMessagesAsync(capacityId, refreshableId, expand, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Esempio n. 9
0
 /// <summary>
 /// Returns the specified refreshable for the specified capacity the user has
 /// access to
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Capacity.Read.All or Capacity.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='capacityId'>
 /// The capacity id
 /// </param>
 /// <param name='refreshableId'>
 /// The refreshable id
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline, receives a comma-separated list of data
 /// types. Supported: capacities and groups
 /// </param>
 public static Refreshables GetRefreshableForCapacity(this ICapacitiesOperations operations, System.Guid capacityId, string refreshableId, string expand = default(string))
 {
     return(operations.GetRefreshableForCapacityAsync(capacityId, refreshableId, expand).GetAwaiter().GetResult());
 }
Esempio n. 10
0
 /// <summary>
 /// Returns a list of refreshables for the specified capacity the user has
 /// access to
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Capacity.Read.All or Capacity.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='capacityId'>
 /// The capacity id
 /// </param>
 /// <param name='top'>
 /// Returns only the first n results.
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline, receives a comma-separated list of data
 /// types. Supported: capacities and groups
 /// </param>
 /// <param name='filter'>
 /// Filters the results based on a boolean condition
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results. Use with top to fetch results beyond the first
 /// 1000.
 /// </param>
 public static Refreshables GetRefreshablesForCapacity(this ICapacitiesOperations operations, System.Guid capacityId, int top, string expand = default(string), string filter = default(string), int?skip = default(int?))
 {
     return(operations.GetRefreshablesForCapacityAsync(capacityId, top, expand, filter, skip).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Unassigns the provided workspaces from capacity.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.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'>
 /// Admin assign workspaces to shared capacity parameters
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UnassignWorkspacesFromCapacityAsync(this ICapacitiesOperations operations, UnassignWorkspacesCapacityRequest requestParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.UnassignWorkspacesFromCapacityWithHttpMessagesAsync(requestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Unassigns the provided workspaces from capacity.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.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'>
 /// Admin assign workspaces to shared capacity parameters
 /// </param>
 public static void UnassignWorkspacesFromCapacity(this ICapacitiesOperations operations, UnassignWorkspacesCapacityRequest requestParameters)
 {
     operations.UnassignWorkspacesFromCapacityAsync(requestParameters).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Changes the state of a specific workload to Enabled or Disabled. When
 /// enabling a workload the maximum memory percentage that the workload can
 /// consume must be set.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Capacity.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='capacityId'>
 /// The capacity Id
 /// </param>
 /// <param name='workloadName'>
 /// The name of the workload
 /// </param>
 /// <param name='workload'>
 /// Patch workload parameters
 /// </param>
 public static void PatchWorkload(this ICapacitiesOperations operations, System.Guid capacityId, string workloadName, PatchWorkloadRequest workload)
 {
     operations.PatchWorkloadAsync(capacityId, workloadName, workload).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Resumes operation of the specified Dedicated capacity instance.
 /// </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>
 public static void BeginResume(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName)
 {
     operations.BeginResumeAsync(resourceGroupName, dedicatedCapacityName).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Lists eligible SKUs for a PowerBI Dedicated resource.
 /// </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='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <SkuEnumerationForExistingResourceResult> ListSkusForCapacityAsync(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListSkusForCapacityWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Lists eligible SKUs for a PowerBI Dedicated resource.
 /// </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>
 public static SkuEnumerationForExistingResourceResult ListSkusForCapacity(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName)
 {
     return(operations.ListSkusForCapacityAsync(resourceGroupName, dedicatedCapacityName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets details about 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 a minimum of 3 characters,
 /// and a maximum of 63.
 /// </param>
 public static DedicatedCapacity GetDetails(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName)
 {
     return(operations.GetDetailsAsync(resourceGroupName, dedicatedCapacityName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Resumes operation of the specified Dedicated capacity instance.
 /// </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='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginResumeAsync(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginResumeWithHttpMessagesAsync(resourceGroupName, dedicatedCapacityName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Returns the current state of a workload and if the workload is enabled also
 /// returns the maximum memory percentage that the workload can consume.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Capacity.Read.All or Capacity.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='capacityId'>
 /// The capacity Id
 /// </param>
 /// <param name='workloadName'>
 /// The name of the workload
 /// </param>
 public static Workload GetWorkload(this ICapacitiesOperations operations, System.Guid capacityId, string workloadName)
 {
     return(operations.GetWorkloadAsync(capacityId, workloadName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Provisions the specified Dedicated capacity based on the configuration
 /// specified in the request.
 /// </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 a minimum of 3 characters,
 /// and a maximum of 63.
 /// </param>
 /// <param name='capacityParameters'>
 /// Contains the information used to provision the Dedicated capacity.
 /// </param>
 public static DedicatedCapacity Create(this ICapacitiesOperations operations, string resourceGroupName, string dedicatedCapacityName, DedicatedCapacity capacityParameters)
 {
     return(operations.CreateAsync(resourceGroupName, dedicatedCapacityName, capacityParameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Changes the state of a specific workload to Enabled or Disabled. When
 /// enabling a workload the maximum memory percentage that the workload can
 /// consume must be set.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Capacity.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='capacityId'>
 /// The capacity Id
 /// </param>
 /// <param name='workloadName'>
 /// The name of the workload
 /// </param>
 /// <param name='workload'>
 /// Patch workload parameters
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task PatchWorkloadAsync(this ICapacitiesOperations operations, System.Guid capacityId, string workloadName, PatchWorkloadRequest workload, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.PatchWorkloadWithHttpMessagesAsync(capacityId, workloadName, workload, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <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>
 /// &lt;br/&gt;**Required scope**: Capacity.Read.All or Capacity.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='capacityId'>
 /// The capacity Id
 /// </param>
 public static Workloads GetWorkloads(this ICapacitiesOperations operations, System.Guid capacityId)
 {
     return(operations.GetWorkloadsAsync(capacityId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns a list of capacities the user has access to.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Capacity.Read.All or Capacity.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>
 public static Capacities GetCapacities(this ICapacitiesOperations operations)
 {
     return(operations.GetCapacitiesAsync().GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all the Dedicated capacities for the given subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IEnumerable <DedicatedCapacity> List(this ICapacitiesOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Esempio n. 25
0
 internal CustomCapacitiesOperations(ICapacitiesOperations inner, PowerBIDedicatedManagementClient client)
 {
     this.innerCapacityOperations = inner;
     this.client = client;
 }
 /// <summary>
 /// Lists eligible SKUs for PowerBI Dedicated resource provider.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static SkuEnumerationForNewResourceResult ListSkus(this ICapacitiesOperations operations)
 {
     return(operations.ListSkusAsync().GetAwaiter().GetResult());
 }
Esempio n. 27
0
 /// <summary>
 /// Returns a list of refreshables for all capacities of which the user has
 /// access to.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Capacity.Read.All or Capacity.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='top'>
 /// Returns only the first n results.
 /// </param>
 /// <param name='expand'>
 /// Expands related entities inline, receives a comma-separated list of data
 /// types. Supported: capacities and groups
 /// </param>
 /// <param name='filter'>
 /// Filters the results based on a boolean condition
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results. Use with top to fetch results beyond the first
 /// 1000.
 /// </param>
 public static Refreshables GetRefreshables(this ICapacitiesOperations operations, int top, string expand = default(string), string filter = default(string), int?skip = default(int?))
 {
     return(operations.GetRefreshablesAsync(top, expand, filter, skip).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets all the Dedicated capacities for the given resource group.
 /// </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>
 public static IEnumerable <DedicatedCapacity> ListByResourceGroup(this ICapacitiesOperations operations, string resourceGroupName)
 {
     return(operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult());
 }