Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev/alonyeshurun/mirror 4.2.0 #185

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
5aa697a
Merged PR 223700: Update description for Gateways - Update Datasource…
v-trisshores Dec 9, 2021
7675388
Merged PR 206298: Update the summary & description for Capacities rou…
v-trisshores Dec 16, 2021
a0a64e1
Merged PR 214155: Update definitions #6
v-trisshores Dec 16, 2021
36bf9cc
Merged PR 215466: Update Admin-GetRefreshables page
v-trisshores Dec 16, 2021
193ddbd
Merged PR 217092: Refresh history info
v-trisshores Dec 16, 2021
c7d449f
Merged PR 217757: Add link to credentialType definition
v-trisshores Dec 16, 2021
1c924ec
Merged PR 213742: Update definitions #5
v-trisshores Dec 16, 2021
ed466a5
Merged PR 206508: Fix casing of API call examples for all routes
v-trisshores Dec 16, 2021
5cce423
Merged PR 219897: Remove trailing whitespace in swagger field names
v-trisshores Dec 19, 2021
9ab9e9d
Merged PR 205988: Update the summary and description for reports routes
v-trisshores Dec 20, 2021
f398924
Merged PR 222133: Fix GetDashboardUsersAsAdmin path
ayeshurun Dec 26, 2021
dcd5e0a
Merged PR 225980: Add workspaceId in AdminApp
Jan 4, 2022
2c5a7e3
Merged PR 227629: Consistency check 1
v-trisshores Jan 6, 2022
28efdb0
Merged PR 228173: Add widelySharedArtifacts APIs
Jan 6, 2022
d003887
Merged PR 228447: Remove Reports API preview message
v-trisshores Jan 7, 2022
dff2cba
Merged PR 228430: Fix principal type
v-trisshores Jan 9, 2022
8692979
Merged PR 222202: UPN support for GetUserArtifactAccessAsAdmin
v-trisshores Jan 10, 2022
7b81b9e
Merged PR 229449: Fixed PostDatasetUser doc
Jan 11, 2022
3fbefcf
Merged PR 229173: Update README.md
laurent-mic Jan 11, 2022
377261a
Merged PR 229238: Remove preview status from Scanner APIs (WorkspaceI…
v-trisshores Jan 12, 2022
2cbf0ee
Merged PR 229668: Update Admin-PostWorkspaceInfo API
v-trisshores Jan 12, 2022
b21bc85
Merged PR 229242: In-preview language consistency
v-trisshores Jan 12, 2022
d513d80
Merged PR 229202: UPN consistency pass
v-trisshores Jan 12, 2022
9be6843
Merged PR 229574: Casing fixes
v-trisshores Jan 12, 2022
80daf10
Merged PR 224813: Power BI API for Goals.
Jan 12, 2022
83befc7
Merged PR 214880: [Embedded][CSharp SDK] Adding DeleteDashboard & Del…
ayeshurun Jan 19, 2022
e0401c4
Merged PR 231756: Version Bump to 4.2
Jan 20, 2022
733fb55
Merge remote-tracking branch 'ado/dev/alonyeshurun/version4.2.0' into…
ayeshurun Mar 13, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pipelines/pipeline.user.windows.official.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version:
name: 'sdk version'
major: 4
minor: 1
minor: 2
system: 'Buildrevision'
exclude_commit: true
assembly_version: 'majorminoronly'
Expand Down
37 changes: 37 additions & 0 deletions sdk/PowerBI.Api/Extensions/DashboardsOperationsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,43 @@ public static async Task<Dashboard> GetDashboardAsync(this IDashboardsOperations
}
}

/// <summary>
/// Deletes the specified dashboard
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='groupId'>
/// The group id
/// </param>
/// <param name='dashboardId'>
/// The dashboard id
/// </param>
public static void DeleteDashboard(this IDashboardsOperations operations, Guid groupId, Guid dashboardId)
{
operations.DeleteDashboardAsync(groupId, dashboardId).GetAwaiter().GetResult();
}

/// <summary>
/// Deletes the specified dashboard
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='groupId'>
/// The group id
/// </param>
/// <param name='dashboardId'>
/// The dashboard id
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task DeleteDashboardAsync(this IDashboardsOperations operations, Guid groupId, Guid dashboardId, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.DeleteDashboardInGroupWithHttpMessagesAsync(groupId, dashboardId, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
/// Returns a list of dashboards from the specified workspace for an
/// organization with an administrative scope.
Expand Down
27 changes: 18 additions & 9 deletions sdk/PowerBI.Api/Source/Admin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public Admin(PowerBIClient client)
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -222,7 +222,7 @@ public async Task<HttpOperationResponse<TenantKey>> AddPowerBIEncryptionKeyWithH
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -362,7 +362,7 @@ public async Task<HttpOperationResponse<TenantKeys>> GetPowerBIEncryptionKeysWit
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -533,7 +533,7 @@ public async Task<HttpOperationResponse<TenantKey>> RotatePowerBIEncryptionKeyWi
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -687,7 +687,7 @@ public async Task<HttpOperationResponse<Capacities>> GetCapacitiesAsAdminWithHtt
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -826,14 +826,17 @@ public async Task<HttpOperationResponse> PatchCapacityAsAdminWithHttpMessagesAsy
/// </summary>
/// <remarks>
///
/// Power BI retains a seven-day refresh history for each dataset, up to a
/// maximum of sixty refreshes.
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -1009,14 +1012,17 @@ public async Task<HttpOperationResponse<Refreshables>> GetRefreshablesWithHttpMe
/// </summary>
/// <remarks>
///
/// Power BI retains a seven-day refresh history for each dataset, up to a
/// maximum of sixty refreshes.
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -1197,14 +1203,17 @@ public async Task<HttpOperationResponse<Refreshables>> GetRefreshablesForCapacit
/// </summary>
/// <remarks>
///
/// Power BI retains a seven-day refresh history for each dataset, up to a
/// maximum of sixty refreshes.
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -1384,7 +1393,7 @@ public async Task<HttpOperationResponse<Refreshables>> GetRefreshableForCapacity
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down
54 changes: 36 additions & 18 deletions sdk/PowerBI.Api/Source/AdminExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static partial class AdminExtensions
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -57,7 +57,7 @@ public static TenantKey AddPowerBIEncryptionKey(this IAdmin operations, TenantKe
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -97,7 +97,7 @@ public static async Task<TenantKey> AddPowerBIEncryptionKeyAsync(this IAdmin ope
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand All @@ -124,7 +124,7 @@ public static TenantKeys GetPowerBIEncryptionKeys(this IAdmin operations)
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -155,7 +155,7 @@ public static async Task<TenantKeys> GetPowerBIEncryptionKeysAsync(this IAdmin o
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -190,7 +190,7 @@ public static TenantKey RotatePowerBIEncryptionKey(this IAdmin operations, Syste
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -233,7 +233,7 @@ public static async Task<TenantKey> RotatePowerBIEncryptionKeyAsync(this IAdmin
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -263,7 +263,7 @@ public static Capacities GetCapacitiesAsAdmin(this IAdmin operations, string exp
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -298,7 +298,7 @@ public static async Task<Capacities> GetCapacitiesAsAdminAsync(this IAdmin opera
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -330,7 +330,7 @@ public static void PatchCapacityAsAdmin(this IAdmin operations, System.Guid capa
/// The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator).
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -359,14 +359,17 @@ public static async Task PatchCapacityAsAdminAsync(this IAdmin operations, Syste
/// </summary>
/// <remarks>
///
/// Power BI retains a seven-day refresh history for each dataset, up to a
/// maximum of sixty refreshes.
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -400,14 +403,17 @@ public static Refreshables GetRefreshables(this IAdmin operations, int top, stri
/// </summary>
/// <remarks>
///
/// Power BI retains a seven-day refresh history for each dataset, up to a
/// maximum of sixty refreshes.
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -448,14 +454,17 @@ public static async Task<Refreshables> GetRefreshablesAsync(this IAdmin operatio
/// </summary>
/// <remarks>
///
/// Power BI retains a seven-day refresh history for each dataset, up to a
/// maximum of sixty refreshes.
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -493,14 +502,17 @@ public static Refreshables GetRefreshablesForCapacity(this IAdmin operations, Sy
/// </summary>
/// <remarks>
///
/// Power BI retains a seven-day refresh history for each dataset, up to a
/// maximum of sixty refreshes.
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -544,14 +556,17 @@ public static async Task<Refreshables> GetRefreshablesForCapacityAsync(this IAdm
/// </summary>
/// <remarks>
///
/// Power BI retains a seven-day refresh history for each dataset, up to a
/// maximum of sixty refreshes.
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -582,14 +597,17 @@ public static Refreshables GetRefreshableForCapacity(this IAdmin operations, Sys
/// </summary>
/// <remarks>
///
/// Power BI retains a seven-day refresh history for each dataset, up to a
/// maximum of sixty refreshes.
///
/// ## Permissions
///
/// - The user must have administrator rights (such as Office 365 Global
/// Administrator or Power BI Service Administrator) or authenticate using a
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -636,7 +654,7 @@ public static async Task<Refreshables> GetRefreshableForCapacityAsync(this IAdmi
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down Expand Up @@ -687,7 +705,7 @@ public static ActivityEventResponse GetActivityEvents(this IAdmin operations, st
/// service principal.
/// - Delegated permissions are supported.
///
/// ## Required scope
/// ## Required Scope
///
/// Tenant.Read.All or Tenant.ReadWrite.All
///
Expand Down