Skip to content

Commit

Permalink
Merge pull request #211 from microsoft/dev/amhersch/mirror_4_22_0
Browse files Browse the repository at this point in the history
mirror SDK 4.22.0
  • Loading branch information
AmosHersch authored Oct 15, 2024
2 parents 8451ccb + db37499 commit 4ad33dd
Show file tree
Hide file tree
Showing 55 changed files with 1,112 additions and 888 deletions.
14 changes: 11 additions & 3 deletions sdk/PowerBI.Api/Extensions/ReportsOperationsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ public static Report CloneReport(this IReportsOperations operations, Guid groupI
/// <param name='reportId'>
/// The report id
/// </param>
public static Stream ExportReport(this IReportsOperations operations, Guid groupId, Guid reportId)
/// <param name='downloadType'>
/// The type of download. Valid values are LiveConnect and IncludeModel.
/// Possible values include: 'IncludeModel', 'LiveConnect'
/// </param>
public static Stream ExportReport(this IReportsOperations operations, Guid groupId, Guid reportId, DownloadType? downloadType = default(DownloadType?))
{
return operations.ExportReportAsync(groupId, reportId).GetAwaiter().GetResult();
}
Expand All @@ -263,12 +267,16 @@ public static Stream ExportReport(this IReportsOperations operations, Guid group
/// <param name='reportId'>
/// The report id
/// </param>
/// <param name='downloadType'>
/// The type of download. Valid values are LiveConnect and IncludeModel.
/// Possible values include: 'IncludeModel', 'LiveConnect'
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task<Stream> ExportReportAsync(this IReportsOperations operations, Guid groupId, Guid reportId, CancellationToken cancellationToken = default(CancellationToken))
public static async Task<Stream> ExportReportAsync(this IReportsOperations operations, Guid groupId, Guid reportId, DownloadType? downloadType = default(DownloadType?), CancellationToken cancellationToken = default(CancellationToken))
{
var _result = await operations.ExportReportInGroupWithHttpMessagesAsync(groupId, reportId, null, cancellationToken).ConfigureAwait(false);
var _result = await operations.ExportReportInGroupWithHttpMessagesAsync(groupId, reportId, downloadType, null,cancellationToken).ConfigureAwait(false);
_result.Request.Dispose();
return _result.Body;
}
Expand Down
78 changes: 45 additions & 33 deletions sdk/PowerBI.Api/Source/Admin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ public Admin(PowerBIClient client)
///
/// ## Permissions
///
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
/// The user must be a Fabric administrator.
///
/// ## Required Scope
///
Expand All @@ -63,7 +62,6 @@ public Admin(PowerBIClient client)
/// ## Limitations
///
/// Maximum 600 requests per hour.
/// &lt;br&gt;&lt;br&gt;
/// </remarks>
/// <param name='tenantKeyCreationRequest'>
/// Tenant key information
Expand Down Expand Up @@ -215,9 +213,8 @@ public Admin(PowerBIClient client)
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - The user must be a Fabric administrator or authenticate using a service
/// principal.
/// - Delegated permissions are supported.
///
/// When running under service prinicipal authentication, an app **must not**
Expand All @@ -231,7 +228,10 @@ public Admin(PowerBIClient client)
/// Relevant only when authenticating via a standard delegated admin access
/// token. Must not be present when authentication via a service principal is
/// used.
/// &lt;br&gt;&lt;br&gt;
///
/// ## Limitations
///
/// Maximum 200 requests per hour.
/// </remarks>
/// <param name='customHeaders'>
/// Headers that will be added to request.
Expand Down Expand Up @@ -363,8 +363,7 @@ public Admin(PowerBIClient client)
///
/// ## Permissions
///
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
/// The user must be a Fabric administrator.
///
/// ## Required Scope
///
Expand Down Expand Up @@ -530,9 +529,8 @@ public Admin(PowerBIClient client)
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - The user must be a Fabric administrator or authenticate using a service
/// principal.
/// - Delegated permissions are supported.
///
/// When running under service prinicipal authentication, an app **must not**
Expand All @@ -546,7 +544,10 @@ public Admin(PowerBIClient client)
/// Relevant only when authenticating via a standard delegated admin access
/// token. Must not be present when authentication via a service principal is
/// used.
/// &lt;br&gt;&lt;br&gt;
///
/// ## Limitations
///
/// Maximum 200 requests per hour.
/// </remarks>
/// <param name='expand'>
/// Expands related entities inline
Expand Down Expand Up @@ -692,13 +693,15 @@ public Admin(PowerBIClient client)
///
/// ## Permissions
///
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
/// The user must be a Fabric administrator.
///
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
/// &lt;br&gt;&lt;br&gt;
///
/// ## Limitations
///
/// Maximum 200 requests per hour.
/// </remarks>
/// <param name='capacityId'>
/// The capacity ID
Expand Down Expand Up @@ -837,9 +840,8 @@ public Admin(PowerBIClient client)
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - The user must be a Fabric administrator or authenticate using a service
/// principal.
/// - Delegated permissions are supported.
///
/// When running under service prinicipal authentication, an app **must not**
Expand All @@ -853,7 +855,10 @@ public Admin(PowerBIClient client)
/// Relevant only when authenticating via a standard delegated admin access
/// token. Must not be present when authentication via a service principal is
/// used.
/// &lt;br&gt;&lt;br&gt;
///
/// ## Limitations
///
/// Maximum 200 requests per hour.
/// </remarks>
/// <param name='top'>
/// Returns only the first n results.
Expand All @@ -863,7 +868,9 @@ public Admin(PowerBIClient client)
/// in the response. Supports `capacities` and `groups`.
/// </param>
/// <param name='filter'>
/// Filters the results based on a boolean condition
/// Returns a subset of a results based on
/// [Odata](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_SystemQueryOptions)
/// filter query parameter condition.
/// </param>
/// <param name='skip'>
/// Skips the first n results. Use with top to fetch results beyond the first
Expand Down Expand Up @@ -1029,9 +1036,8 @@ public Admin(PowerBIClient client)
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - The user must be a Fabric administrator or authenticate using a service
/// principal.
/// - Delegated permissions are supported.
///
/// When running under service prinicipal authentication, an app **must not**
Expand All @@ -1045,7 +1051,10 @@ public Admin(PowerBIClient client)
/// Relevant only when authenticating via a standard delegated admin access
/// token. Must not be present when authentication via a service principal is
/// used.
/// &lt;br&gt;&lt;br&gt;
///
/// ## Limitations
///
/// Maximum 200 requests per hour.
/// </remarks>
/// <param name='capacityId'>
/// The capacity ID
Expand All @@ -1058,7 +1067,9 @@ public Admin(PowerBIClient client)
/// in the response. Supports `capacities` and `groups`.
/// </param>
/// <param name='filter'>
/// Filters the results based on a boolean condition
/// Returns a subset of a results based on
/// [Odata](https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_SystemQueryOptions)
/// filter query parameter condition.
/// </param>
/// <param name='skip'>
/// Skips the first n results. Use with top to fetch results beyond the first
Expand Down Expand Up @@ -1226,9 +1237,8 @@ public Admin(PowerBIClient client)
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - The user must be a Fabric administrator or authenticate using a service
/// principal.
/// - Delegated permissions are supported.
///
/// When running under service prinicipal authentication, an app **must not**
Expand All @@ -1242,7 +1252,10 @@ public Admin(PowerBIClient client)
/// Relevant only when authenticating via a standard delegated admin access
/// token. Must not be present when authentication via a service principal is
/// used.
/// &lt;br&gt;&lt;br&gt;
///
/// ## Limitations
///
/// Maximum 200 requests per hour.
/// </remarks>
/// <param name='capacityId'>
/// The capacity ID
Expand Down Expand Up @@ -1412,9 +1425,8 @@ public Admin(PowerBIClient client)
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - The user must be a Fabric administrator or authenticate using a service
/// principal.
/// - Delegated permissions are supported.
///
/// When running under service prinicipal authentication, an app **must not**
Expand Down
Loading

0 comments on commit 4ad33dd

Please sign in to comment.