Skip to content

Commit

Permalink
Merge pull request #181 from microsoft/dev/mahartov_mirror_4.1.0
Browse files Browse the repository at this point in the history
Mirror version 4.1.0
  • Loading branch information
laurent-mic authored Dec 9, 2021
2 parents 1c7dd0d + d172040 commit 42aba92
Show file tree
Hide file tree
Showing 24 changed files with 2,242 additions and 361 deletions.
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: 0
minor: 1
system: 'Buildrevision'
exclude_commit: true
assembly_version: 'majorminoronly'
Expand Down
2 changes: 1 addition & 1 deletion scripts/pack-sdk.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ call .\init-dev-cmd.cmd
REM Set Major and Minor package version
SET MAJOR=%CDP_MAJOR_NUMBER_ONLY%
SET MINOR=%CDP_MINOR_NUMBER_ONLY%
SET PATCH=1
SET PATCH=0
if "%MAJOR%"=="" SET MAJOR=0
if "%MINOR%"=="" SET MINOR=0

Expand Down
45 changes: 45 additions & 0 deletions sdk/PowerBI.Api/Extensions/DatasetsOperationsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,51 @@ public static Datasources GetDatasources(this IDatasetsOperations operations, Gu
}
}

/// <summary>
/// Grants the specified user the specified permissions to the specified dataset
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='groupId'>
/// The group id
/// </param>
/// <param name='datasetId'>
/// The dataset id
/// </param>
/// </param>
/// <param name='accessRight'>
/// Details of user access right
/// </param>
public static void PostDatasetUser(this IDatasetsOperations operations, Guid groupId, string datasetId, DatasetUserAccess accessRight)
{
operations.PostDatasetUserAsync(groupId, datasetId, accessRight).GetAwaiter().GetResult();
}

/// <summary>
/// Grants the specified user the specified permissions to the specified dataset
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
/// </param>
/// <param name='groupId'>
/// The group id
/// </param>
/// <param name='datasetId'>
/// The dataset id
/// </param>
/// </param>
/// <param name='accessRight'>
/// Details of user access right
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
public static async Task PostDatasetUserAsync(this IDatasetsOperations operations, Guid groupId, string datasetId, DatasetUserAccess accessRight, CancellationToken cancellationToken = default(CancellationToken))
{
(await operations.PostDatasetUserInGroupWithHttpMessagesAsync(groupId, datasetId, accessRight, null, cancellationToken).ConfigureAwait(false)).Dispose();
}

/// <summary>
/// Updates the dataset datasources using the specified datasource selectors
/// </summary>
Expand Down
Loading

0 comments on commit 42aba92

Please sign in to comment.