-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'powerbi/master' into release-4.20.0
- Loading branch information
Showing
11 changed files
with
1,049 additions
and
40 deletions.
There are no files selected for viewing
98 changes: 98 additions & 0 deletions
98
sdk/PowerBI.Api/Extensions/V2/ReportsOperationsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
// <auto-generated> | ||
// Code generated by Microsoft (R) AutoRest Code Generator. | ||
// Changes may cause incorrect behavior and will be lost if the code is | ||
// regenerated. | ||
// </auto-generated> | ||
|
||
namespace Microsoft.PowerBI.Api | ||
{ | ||
using Models; | ||
using System.IO; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// Extension methods for ReportsOperations. | ||
/// </summary> | ||
public static partial class ReportsOperationsExtensions | ||
{ | ||
/// <summary> | ||
/// Binds the specified data source of the paginated report from the specified | ||
/// workspace to the specified gateway, optionally with a given data source ID. | ||
/// If you don't supply a specific data source ID, the data source will be | ||
/// bound to the first matching data source in the gateway. | ||
/// </summary> | ||
/// <remarks> | ||
/// | ||
/// ## Permissions | ||
/// | ||
/// This API call can be called by a service principal profile. | ||
/// | ||
/// ## Required Delegated Scopes | ||
/// | ||
/// Workspace.Read.All or Workspace.ReadWrite.All | ||
/// | ||
/// ## Limitations | ||
/// | ||
/// Only supports the on-premises data gateway | ||
/// <br><br> | ||
/// </remarks> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='groupId'> | ||
/// The workspace ID | ||
/// </param> | ||
/// <param name='reportId'> | ||
/// The report ID | ||
/// </param> | ||
/// <param name='rdlBindToGatewayRequest'> | ||
/// The bind to gateway request payload. | ||
/// </param> | ||
public static void BindToGateway(this IReportsOperations operations, System.Guid groupId, System.Guid reportId, RdlBindToGatewayRequest rdlBindToGatewayRequest) | ||
{ | ||
operations.BindToGatewayInGroupAsync(groupId, reportId, rdlBindToGatewayRequest).GetAwaiter().GetResult(); | ||
} | ||
|
||
/// <summary> | ||
/// Binds the specified data source of the paginated report from the specified | ||
/// workspace to the specified gateway, optionally with a given data source ID. | ||
/// If you don't supply a specific data source ID, the data source will be | ||
/// bound to the first matching data source in the gateway. | ||
/// </summary> | ||
/// <remarks> | ||
/// | ||
/// ## Permissions | ||
/// | ||
/// This API call can be called by a service principal profile. | ||
/// | ||
/// ## Required Delegated Scopes | ||
/// | ||
/// Workspace.Read.All or Workspace.ReadWrite.All | ||
/// | ||
/// ## Limitations | ||
/// | ||
/// Only supports the on-premises data gateway | ||
/// <br><br> | ||
/// </remarks> | ||
/// <param name='operations'> | ||
/// The operations group for this extension method. | ||
/// </param> | ||
/// <param name='groupId'> | ||
/// The workspace ID | ||
/// </param> | ||
/// <param name='reportId'> | ||
/// The report ID | ||
/// </param> | ||
/// <param name='rdlBindToGatewayRequest'> | ||
/// The bind to gateway request payload. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
public static async Task BindToGatewayAsync(this IReportsOperations operations, System.Guid groupId, System.Guid reportId, RdlBindToGatewayRequest rdlBindToGatewayRequest, CancellationToken cancellationToken = default(CancellationToken)) | ||
{ | ||
(await operations.BindToGatewayInGroupWithHttpMessagesAsync(groupId, reportId, rdlBindToGatewayRequest, null, cancellationToken).ConfigureAwait(false)).Dispose(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.