diff --git a/.pipelines/pipeline.user.windows.official.yml b/.pipelines/pipeline.user.windows.official.yml
index bcaf0604..050a2f06 100644
--- a/.pipelines/pipeline.user.windows.official.yml
+++ b/.pipelines/pipeline.user.windows.official.yml
@@ -1,7 +1,7 @@
version:
name: 'sdk version'
major: 3
- minor: 23
+ minor: 28
system: 'Buildrevision'
exclude_commit: true
assembly_version: 'majorminoronly'
diff --git a/scripts/pack-sdk-dev.cmd b/scripts/pack-sdk-dev.cmd
index 2c11033d..c7590129 100644
--- a/scripts/pack-sdk-dev.cmd
+++ b/scripts/pack-sdk-dev.cmd
@@ -11,7 +11,7 @@ if "%VERSION%"=="" SET VERSION=0.0.1111
echo ========================================
echo "Pack PowerBI.Api.csproj Release - AnyCPU..."
echo ========================================
-call msbuild %~dp0..\sdk\PowerBI.Api\PowerBI.Api.csproj /t:pack /p:Configuration=Release /p:PackageVersion=%VERSION% /p:PackageOutputPath=%~dp0..\pack\Dev
+call msbuild %~dp0..\sdk\PowerBI.Api\PowerBI.Api.csproj /t:pack /p:Configuration=Release /p:PackageVersion=%VERSION%-dev /p:PackageOutputPath=%~dp0..\pack\Dev
set EX=%ERRORLEVEL%
if "%EX%" neq "0" (
diff --git a/sdk/PowerBI.Api.Tests/ImportsTests.cs b/sdk/PowerBI.Api.Tests/ImportsTests.cs
index 123d882b..d0634731 100644
--- a/sdk/PowerBI.Api.Tests/ImportsTests.cs
+++ b/sdk/PowerBI.Api.Tests/ImportsTests.cs
@@ -107,6 +107,76 @@ public async Task PostImportFileWithNameAndSkipReport()
}
}
+ [TestMethod]
+ public async Task PostImportFileWithNameAndNotOverrideReport()
+ {
+ var datasetDisplayName = "TestDataset";
+ var importResponse = CreateSampleImportResponse();
+ var overrideReportLabel = false;
+
+ using (var handler = new FakeHttpClientHandler(importResponse))
+ using (var client = CreatePowerBIClient(handler))
+ using (var stream = new MemoryStream())
+ {
+ await client.Imports.PostImportWithFileAsync(stream, datasetDisplayName, overrideReportLabel: overrideReportLabel);
+ var expectedRequesetUrl = $"https://api.powerbi.com/v1.0/myorg/imports?datasetDisplayName={datasetDisplayName}&overrideReportLabel={overrideReportLabel}";
+ Assert.AreEqual(expectedRequesetUrl, handler.Request.RequestUri.ToString());
+ }
+ }
+
+ [TestMethod]
+ public async Task PostImportFileWithNameAndNotOverrideModel()
+ {
+ var datasetDisplayName = "TestDataset";
+ var importResponse = CreateSampleImportResponse();
+ var overrideModelLabel = false;
+
+ using (var handler = new FakeHttpClientHandler(importResponse))
+ using (var client = CreatePowerBIClient(handler))
+ using (var stream = new MemoryStream())
+ {
+ await client.Imports.PostImportWithFileAsync(stream, datasetDisplayName, overrideModelLabel: overrideModelLabel);
+ var expectedRequesetUrl = $"https://api.powerbi.com/v1.0/myorg/imports?datasetDisplayName={datasetDisplayName}&overrideModelLabel={overrideModelLabel}";
+ Assert.AreEqual(expectedRequesetUrl, handler.Request.RequestUri.ToString());
+ }
+ }
+
+ [TestMethod]
+ public async Task PostImportFileWithNameAndNotOverrideLabels()
+ {
+ var datasetDisplayName = "TestDataset";
+ var importResponse = CreateSampleImportResponse();
+ var overrideReportLabel = false;
+ var overrideModelLabel = false;
+
+ using (var handler = new FakeHttpClientHandler(importResponse))
+ using (var client = CreatePowerBIClient(handler))
+ using (var stream = new MemoryStream())
+ {
+ await client.Imports.PostImportWithFileAsync(stream, datasetDisplayName, overrideReportLabel: overrideReportLabel, overrideModelLabel: overrideModelLabel);
+ var expectedRequesetUrl = $"https://api.powerbi.com/v1.0/myorg/imports?datasetDisplayName={datasetDisplayName}&overrideReportLabel={overrideReportLabel}&overrideModelLabel={overrideModelLabel}";
+ Assert.AreEqual(expectedRequesetUrl, handler.Request.RequestUri.ToString());
+ }
+ }
+
+ [TestMethod]
+ public async Task PostImportFileWithNameAndOverrideLabels()
+ {
+ var datasetDisplayName = "TestDataset";
+ var importResponse = CreateSampleImportResponse();
+ var overrideReportLabel = true;
+ var overrideModelLabel = true;
+
+ using (var handler = new FakeHttpClientHandler(importResponse))
+ using (var client = CreatePowerBIClient(handler))
+ using (var stream = new MemoryStream())
+ {
+ await client.Imports.PostImportWithFileAsync(stream, datasetDisplayName, overrideReportLabel: overrideReportLabel, overrideModelLabel: overrideModelLabel);
+ var expectedRequesetUrl = $"https://api.powerbi.com/v1.0/myorg/imports?datasetDisplayName={datasetDisplayName}&overrideReportLabel={overrideReportLabel}&overrideModelLabel={overrideModelLabel}";
+ Assert.AreEqual(expectedRequesetUrl, handler.Request.RequestUri.ToString());
+ }
+ }
+
[TestMethod]
public async Task PostImportWithFileWithNameAndConflictAndSkipReport()
{
diff --git a/sdk/PowerBI.Api/Extensions/ImportsOperationsExtensions.cs b/sdk/PowerBI.Api/Extensions/ImportsOperationsExtensions.cs
index 31f5b757..808ffedd 100644
--- a/sdk/PowerBI.Api/Extensions/ImportsOperationsExtensions.cs
+++ b/sdk/PowerBI.Api/Extensions/ImportsOperationsExtensions.cs
@@ -66,9 +66,15 @@ public static Imports GetImports(this IImportsOperations operations, Guid groupI
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
- public static Import PostImport(this IImportsOperations operations, Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?))
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
+ public static Import PostImport(this IImportsOperations operations, Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?))
{
- return operations.PostImportAsync(groupId, datasetDisplayName, importInfo, nameConflict, skipReport).GetAwaiter().GetResult();
+ return operations.PostImportAsync(groupId, datasetDisplayName, importInfo, nameConflict, skipReport, overrideReportLabel, overrideModelLabel).GetAwaiter().GetResult();
}
///
@@ -92,12 +98,18 @@ public static Imports GetImports(this IImportsOperations operations, Guid groupI
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
///
/// The cancellation token.
///
- public static async Task PostImportAsync(this IImportsOperations operations, Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task PostImportAsync(this IImportsOperations operations, Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.PostImportInGroupWithHttpMessagesAsync(groupId, datasetDisplayName, importInfo, nameConflict, skipReport, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.PostImportInGroupWithHttpMessagesAsync(groupId, datasetDisplayName, importInfo, nameConflict, skipReport, overrideReportLabel, overrideModelLabel, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -198,9 +210,15 @@ public static TemporaryUploadLocation CreateTemporaryUploadLocation(this IImport
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
- public static Import PostImportWithFile(this IImportsOperations operations, Guid groupId, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?))
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
+ public static Import PostImportWithFile(this IImportsOperations operations, Guid groupId, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?))
{
- return Task.Factory.StartNew(s => ((IImportsOperations)s).PostImportFileWithHttpMessage(groupId, fileStream, datasetDisplayName, nameConflict, skipReport), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult().Body;
+ return Task.Factory.StartNew(s => ((IImportsOperations)s).PostImportFileWithHttpMessage(groupId, fileStream, datasetDisplayName, nameConflict, skipReport, overrideReportLabel, overrideModelLabel), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult().Body;
}
///
@@ -225,12 +243,18 @@ public static TemporaryUploadLocation CreateTemporaryUploadLocation(this IImport
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
///
/// The cancellation token.
///
- public static async Task PostImportWithFileAsync(this IImportsOperations operations, Guid groupId, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task PostImportWithFileAsync(this IImportsOperations operations, Guid groupId, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.PostImportFileWithHttpMessage(groupId, fileStream, datasetDisplayName, nameConflict, skipReport, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.PostImportFileWithHttpMessage(groupId, fileStream, datasetDisplayName, nameConflict, skipReport, overrideReportLabel, overrideModelLabel, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/sdk/PowerBI.Api/Imports/IImportsOperations.cs b/sdk/PowerBI.Api/Imports/IImportsOperations.cs
index fb25b68f..ba7f5f05 100644
--- a/sdk/PowerBI.Api/Imports/IImportsOperations.cs
+++ b/sdk/PowerBI.Api/Imports/IImportsOperations.cs
@@ -28,10 +28,16 @@ public partial interface IImportsOperations
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
/// Optional custom headers
/// Optional cancellation token
///
- Task> PostImportFileWithHttpMessage(Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> PostImportFileWithHttpMessage(Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Uploads a PBIX file to the specified group
@@ -51,12 +57,18 @@ public partial interface IImportsOperations
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
///
/// Optional custom headers
///
///
/// Optional cancellation token
///
- Task> PostImportFileWithHttpMessage(Guid? groupId, Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> PostImportFileWithHttpMessage(Guid? groupId, Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/PowerBI.Api/Imports/ImportsOperations.cs b/sdk/PowerBI.Api/Imports/ImportsOperations.cs
index 1dd4b76a..41caadfd 100644
--- a/sdk/PowerBI.Api/Imports/ImportsOperations.cs
+++ b/sdk/PowerBI.Api/Imports/ImportsOperations.cs
@@ -48,13 +48,19 @@ public int PostImportTimeoutInMinutes
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
///
/// Optional custom headers
///
///
/// Optional cancellation token
///
- public async Task> PostImportFileWithHttpMessage(Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> PostImportFileWithHttpMessage(Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
return await PostImportFileWithHttpMessage(
groupId: null,
@@ -62,6 +68,8 @@ public int PostImportTimeoutInMinutes
datasetDisplayName: datasetDisplayName,
nameConflict: nameConflict,
skipReport: skipReport,
+ overrideReportLabel: overrideReportLabel,
+ overrideModelLabel: overrideModelLabel,
customHeaders: customHeaders,
cancellationToken: cancellationToken);
}
@@ -84,13 +92,19 @@ public int PostImportTimeoutInMinutes
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
///
/// Optional custom headers
///
///
/// Optional cancellation token
///
- public async Task> PostImportFileWithHttpMessage(Guid? groupId, Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> PostImportFileWithHttpMessage(Guid? groupId, Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Tracing
string _invocationId = null;
@@ -103,6 +117,8 @@ public int PostImportTimeoutInMinutes
tracingParameters.Add("datasetDisplayName", datasetDisplayName);
tracingParameters.Add("nameConflict", nameConflict);
tracingParameters.Add("skipReport", skipReport);
+ tracingParameters.Add("overrideReportLabel", overrideReportLabel);
+ tracingParameters.Add("overrideModelLabel", overrideModelLabel);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "PostImport", tracingParameters);
}
@@ -119,15 +135,15 @@ public int PostImportTimeoutInMinutes
if (file.Length > 1 * GB)
{
- return await UploadLargeFile(groupId, file, datasetDisplayName, nameConflict, skipReport, customHeaders, cancellationToken);
+ return await UploadLargeFile(groupId, file, datasetDisplayName, nameConflict, skipReport, overrideReportLabel, overrideModelLabel, customHeaders, cancellationToken);
}
else
{
- return await UploadFile(groupId, file, datasetDisplayName, nameConflict, skipReport, customHeaders, cancellationToken);
+ return await UploadFile(groupId, file, datasetDisplayName, nameConflict, skipReport, overrideReportLabel, overrideModelLabel, customHeaders, cancellationToken);
}
}
- private async Task> UploadFile(Guid? groupId, Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ private async Task> UploadFile(Guid? groupId, Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -155,6 +171,15 @@ public int PostImportTimeoutInMinutes
{
_queryParameters.Add(string.Format("skipReport={0}", skipReport));
}
+ if (overrideReportLabel != null)
+ {
+ _queryParameters.Add(string.Format("overrideReportLabel={0}", overrideReportLabel));
+ }
+ if (overrideModelLabel != null)
+ {
+ _queryParameters.Add(string.Format("overrideModelLabel={0}", overrideModelLabel));
+ }
+
if (_queryParameters.Count > 0)
{
_url += "?" + string.Join("&", _queryParameters);
@@ -254,7 +279,7 @@ public int PostImportTimeoutInMinutes
}
- private async Task> UploadLargeFile(Guid? groupId, Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ private async Task> UploadLargeFile(Guid? groupId, Stream file, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
TemporaryUploadLocation temporaryUploadLocation;
@@ -285,11 +310,11 @@ public int PostImportTimeoutInMinutes
if (groupId == null)
{
- return await powerBIClient.Imports.PostImportWithHttpMessagesAsync(datasetDisplayName, new ImportInfo { FileUrl = temporaryUploadLocation.Url }, nameConflict, skipReport);
+ return await powerBIClient.Imports.PostImportWithHttpMessagesAsync(datasetDisplayName, new ImportInfo { FileUrl = temporaryUploadLocation.Url }, nameConflict, skipReport, overrideReportLabel, overrideModelLabel);
}
else
{
- return await powerBIClient.Imports.PostImportInGroupWithHttpMessagesAsync(groupId.Value, datasetDisplayName, new ImportInfo { FileUrl = temporaryUploadLocation.Url }, nameConflict, skipReport);
+ return await powerBIClient.Imports.PostImportInGroupWithHttpMessagesAsync(groupId.Value, datasetDisplayName, new ImportInfo { FileUrl = temporaryUploadLocation.Url }, nameConflict, skipReport, overrideReportLabel, overrideModelLabel);
}
}
}
diff --git a/sdk/PowerBI.Api/Imports/ImportsOperationsExtensions.cs b/sdk/PowerBI.Api/Imports/ImportsOperationsExtensions.cs
index 120b7b6c..9a5b457b 100644
--- a/sdk/PowerBI.Api/Imports/ImportsOperationsExtensions.cs
+++ b/sdk/PowerBI.Api/Imports/ImportsOperationsExtensions.cs
@@ -29,9 +29,15 @@ public static partial class ImportsOperationsExtensions
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
- public static Import PostImportWithFileInGroup(this IImportsOperations operations, Guid groupId, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?))
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
+ public static Import PostImportWithFileInGroup(this IImportsOperations operations, Guid groupId, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?))
{
- return Task.Factory.StartNew(s => ((IImportsOperations)s).PostImportFileWithHttpMessage(groupId, fileStream, datasetDisplayName, nameConflict), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult().Body;
+ return Task.Factory.StartNew(s => ((IImportsOperations)s).PostImportFileWithHttpMessage(groupId, fileStream, datasetDisplayName, nameConflict, overrideReportLabel: overrideReportLabel, overrideModelLabel: overrideModelLabel), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult().Body;
}
///
@@ -55,12 +61,18 @@ public static partial class ImportsOperationsExtensions
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
///
/// The cancellation token.
///
- public static async Task PostImportWithFileAsyncInGroup(this IImportsOperations operations, Guid groupId, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task PostImportWithFileAsyncInGroup(this IImportsOperations operations, Guid groupId, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.PostImportFileWithHttpMessage(groupId, fileStream, datasetDisplayName, nameConflict, skipReport, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.PostImportFileWithHttpMessage(groupId, fileStream, datasetDisplayName, nameConflict, skipReport, overrideReportLabel, overrideModelLabel, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -84,9 +96,15 @@ public static partial class ImportsOperationsExtensions
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
- public static Import PostImportWithFile(this IImportsOperations operations, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?))
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
+ public static Import PostImportWithFile(this IImportsOperations operations, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?))
{
- return Task.Factory.StartNew(s => ((IImportsOperations)s).PostImportFileWithHttpMessage(fileStream, datasetDisplayName, nameConflict, skipReport), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult().Body;
+ return Task.Factory.StartNew(s => ((IImportsOperations)s).PostImportFileWithHttpMessage(fileStream, datasetDisplayName, nameConflict, skipReport, overrideReportLabel, overrideModelLabel), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult().Body;
}
///
@@ -107,12 +125,18 @@ public static partial class ImportsOperationsExtensions
///
/// Determines whether to skip report import, if specified value must be 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of PBIX file, service default value is true.
+ ///
///
/// The cancellation token.
///
- public static async Task PostImportWithFileAsync(this IImportsOperations operations, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task PostImportWithFileAsync(this IImportsOperations operations, Stream fileStream, string datasetDisplayName = default(string), ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.PostImportFileWithHttpMessage(fileStream, datasetDisplayName, nameConflict, skipReport, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.PostImportFileWithHttpMessage(fileStream, datasetDisplayName, nameConflict, skipReport, overrideReportLabel, overrideModelLabel, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/sdk/PowerBI.Api/Source/Admin.cs b/sdk/PowerBI.Api/Source/Admin.cs
index 425297dd..b4d1fa1c 100644
--- a/sdk/PowerBI.Api/Source/Admin.cs
+++ b/sdk/PowerBI.Api/Source/Admin.cs
@@ -347,7 +347,7 @@ public Admin(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// Tenant key id
+ /// The tenant key ID
///
///
/// Tenant key information
@@ -654,7 +654,7 @@ public Admin(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// Patch capacity information
@@ -969,7 +969,7 @@ public Admin(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity id
+ /// The capacity ID
///
///
/// Returns only the first n results.
@@ -1150,10 +1150,10 @@ public Admin(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity id
+ /// The capacity ID
///
///
- /// The refreshable id
+ /// The refreshable ID
///
///
/// Expands related entities inline, receives a comma-separated list of data
@@ -1318,7 +1318,7 @@ public Admin(PowerBIClient client)
/// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
/// are supported. <br/>To call this API, provide either a continuation
/// token or both a start and end date time. StartDateTime and EndDateTime must
- /// be in the same UTC day.
+ /// be in the same UTC day and should be wrapped in ''.
///
///
/// Start date and time of the window for audit event results. Must be in ISO
diff --git a/sdk/PowerBI.Api/Source/AdminExtensions.cs b/sdk/PowerBI.Api/Source/AdminExtensions.cs
index 98d6fe25..60cb3b0d 100644
--- a/sdk/PowerBI.Api/Source/AdminExtensions.cs
+++ b/sdk/PowerBI.Api/Source/AdminExtensions.cs
@@ -126,7 +126,7 @@ public static TenantKeys GetPowerBIEncryptionKeys(this IAdmin operations)
/// The operations group for this extension method.
///
///
- /// Tenant key id
+ /// The tenant key ID
///
///
/// Tenant key information
@@ -151,7 +151,7 @@ public static TenantKey RotatePowerBIEncryptionKey(this IAdmin operations, Syste
/// The operations group for this extension method.
///
///
- /// Tenant key id
+ /// The tenant key ID
///
///
/// Tenant key information
@@ -234,7 +234,7 @@ public static TenantKey RotatePowerBIEncryptionKey(this IAdmin operations, Syste
/// The operations group for this extension method.
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// Patch capacity information
@@ -259,7 +259,7 @@ public static void PatchCapacityAsAdmin(this IAdmin operations, System.Guid capa
/// The operations group for this extension method.
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// Patch capacity information
@@ -363,7 +363,7 @@ public static void PatchCapacityAsAdmin(this IAdmin operations, System.Guid capa
/// The operations group for this extension method.
///
///
- /// The capacity id
+ /// The capacity ID
///
///
/// Returns only the first n results.
@@ -401,7 +401,7 @@ public static void PatchCapacityAsAdmin(this IAdmin operations, System.Guid capa
/// The operations group for this extension method.
///
///
- /// The capacity id
+ /// The capacity ID
///
///
/// Returns only the first n results.
@@ -445,10 +445,10 @@ public static void PatchCapacityAsAdmin(this IAdmin operations, System.Guid capa
/// The operations group for this extension method.
///
///
- /// The capacity id
+ /// The capacity ID
///
///
- /// The refreshable id
+ /// The refreshable ID
///
///
/// Expands related entities inline, receives a comma-separated list of data
@@ -476,10 +476,10 @@ public static void PatchCapacityAsAdmin(this IAdmin operations, System.Guid capa
/// The operations group for this extension method.
///
///
- /// The capacity id
+ /// The capacity ID
///
///
- /// The refreshable id
+ /// The refreshable ID
///
///
/// Expands related entities inline, receives a comma-separated list of data
@@ -508,7 +508,7 @@ public static void PatchCapacityAsAdmin(this IAdmin operations, System.Guid capa
/// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
/// are supported. <br/>To call this API, provide either a continuation
/// token or both a start and end date time. StartDateTime and EndDateTime must
- /// be in the same UTC day.
+ /// be in the same UTC day and should be wrapped in ''.
///
///
/// The operations group for this extension method.
@@ -545,7 +545,7 @@ public static void PatchCapacityAsAdmin(this IAdmin operations, System.Guid capa
/// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
/// are supported. <br/>To call this API, provide either a continuation
/// token or both a start and end date time. StartDateTime and EndDateTime must
- /// be in the same UTC day.
+ /// be in the same UTC day and should be wrapped in ''.
///
///
/// The operations group for this extension method.
diff --git a/sdk/PowerBI.Api/Source/AppsOperations.cs b/sdk/PowerBI.Api/Source/AppsOperations.cs
index d20df2e1..cdea24e7 100644
--- a/sdk/PowerBI.Api/Source/AppsOperations.cs
+++ b/sdk/PowerBI.Api/Source/AppsOperations.cs
@@ -188,7 +188,7 @@ public AppsOperations(PowerBIClient client)
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
/// Headers that will be added to request.
@@ -325,7 +325,7 @@ public AppsOperations(PowerBIClient client)
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
/// Headers that will be added to request.
@@ -462,10 +462,10 @@ public AppsOperations(PowerBIClient client)
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
- /// The report id
+ /// The report ID
///
///
/// Headers that will be added to request.
@@ -605,7 +605,7 @@ public AppsOperations(PowerBIClient client)
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
/// Headers that will be added to request.
@@ -743,10 +743,10 @@ public AppsOperations(PowerBIClient client)
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Headers that will be added to request.
@@ -886,10 +886,10 @@ public AppsOperations(PowerBIClient client)
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Headers that will be added to request.
@@ -1032,13 +1032,13 @@ public AppsOperations(PowerBIClient client)
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Headers that will be added to request.
@@ -1169,5 +1169,292 @@ public AppsOperations(PowerBIClient client)
return _result;
}
+ ///
+ /// Returns a list of apps in the orginization (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app). Query
+ /// parameter $top is mandatory to access this API
+ ///
+ ///
+ /// The requested number of entries in the refresh history. If not provided,
+ /// the default is all available entries.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetAppsAsAdminWithHttpMessagesAsync(int top, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (top < 1)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "top", 1);
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("top", top);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "GetAppsAsAdmin", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/admin/apps").ToString();
+ List _queryParameters = new List();
+ _queryParameters.Add(string.Format("$top={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(top, Client.SerializationSettings).Trim('"'))));
+ if (_queryParameters.Count > 0)
+ {
+ _url += "?" + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ if (_httpResponse.Content != null) {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ }
+ else {
+ _responseContent = string.Empty;
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new HttpOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// Returns a list of users that have access to the specified app (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The app ID
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetAppUsersAsAdminWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("appId", appId);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "GetAppUsersAsAdmin", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/admin/apps/{appId}/users").ToString();
+ _url = _url.Replace("{appId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(appId, Client.SerializationSettings).Trim('"')));
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ if (_httpResponse.Content != null) {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ }
+ else {
+ _responseContent = string.Empty;
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new HttpOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
}
}
diff --git a/sdk/PowerBI.Api/Source/AppsOperationsExtensions.cs b/sdk/PowerBI.Api/Source/AppsOperationsExtensions.cs
index 1a55ef2e..5a5d919e 100644
--- a/sdk/PowerBI.Api/Source/AppsOperationsExtensions.cs
+++ b/sdk/PowerBI.Api/Source/AppsOperationsExtensions.cs
@@ -68,7 +68,7 @@ public static Apps GetApps(this IAppsOperations operations)
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
public static App GetApp(this IAppsOperations operations, System.Guid appId)
{
@@ -88,7 +88,7 @@ public static App GetApp(this IAppsOperations operations, System.Guid appId)
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
/// The cancellation token.
@@ -114,7 +114,7 @@ public static App GetApp(this IAppsOperations operations, System.Guid appId)
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
public static Reports GetReports(this IAppsOperations operations, System.Guid appId)
{
@@ -134,7 +134,7 @@ public static Reports GetReports(this IAppsOperations operations, System.Guid ap
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
/// The cancellation token.
@@ -160,10 +160,10 @@ public static Reports GetReports(this IAppsOperations operations, System.Guid ap
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
- /// The report id
+ /// The report ID
///
public static Report GetReport(this IAppsOperations operations, System.Guid appId, System.Guid reportId)
{
@@ -183,10 +183,10 @@ public static Report GetReport(this IAppsOperations operations, System.Guid appI
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
- /// The report id
+ /// The report ID
///
///
/// The cancellation token.
@@ -213,7 +213,7 @@ public static Report GetReport(this IAppsOperations operations, System.Guid appI
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
public static Dashboards GetDashboards(this IAppsOperations operations, System.Guid appId)
{
@@ -234,7 +234,7 @@ public static Dashboards GetDashboards(this IAppsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
/// The cancellation token.
@@ -261,10 +261,10 @@ public static Dashboards GetDashboards(this IAppsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
public static Dashboard GetDashboard(this IAppsOperations operations, System.Guid appId, System.Guid dashboardId)
{
@@ -285,10 +285,10 @@ public static Dashboard GetDashboard(this IAppsOperations operations, System.Gui
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The cancellation token.
@@ -315,10 +315,10 @@ public static Dashboard GetDashboard(this IAppsOperations operations, System.Gui
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
public static Tiles GetTiles(this IAppsOperations operations, System.Guid appId, System.Guid dashboardId)
{
@@ -339,10 +339,10 @@ public static Tiles GetTiles(this IAppsOperations operations, System.Guid appId,
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The cancellation token.
@@ -372,13 +372,13 @@ public static Tiles GetTiles(this IAppsOperations operations, System.Guid appId,
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
public static Tile GetTile(this IAppsOperations operations, System.Guid appId, System.Guid dashboardId, System.Guid tileId)
{
@@ -402,13 +402,13 @@ public static Tile GetTile(this IAppsOperations operations, System.Guid appId, S
/// The operations group for this extension method.
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// The cancellation token.
@@ -421,5 +421,105 @@ public static Tile GetTile(this IAppsOperations operations, System.Guid appId, S
}
}
+ ///
+ /// Returns a list of apps in the orginization (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app). Query
+ /// parameter $top is mandatory to access this API
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The requested number of entries in the refresh history. If not provided,
+ /// the default is all available entries.
+ ///
+ public static Apps GetAppsAsAdmin(this IAppsOperations operations, int top)
+ {
+ return operations.GetAppsAsAdminAsync(top).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of apps in the orginization (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app). Query
+ /// parameter $top is mandatory to access this API
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The requested number of entries in the refresh history. If not provided,
+ /// the default is all available entries.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAppsAsAdminAsync(this IAppsOperations operations, int top, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetAppsAsAdminWithHttpMessagesAsync(top, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// Returns a list of users that have access to the specified app (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The app ID
+ ///
+ public static AppUsers GetAppUsersAsAdmin(this IAppsOperations operations, System.Guid appId)
+ {
+ return operations.GetAppUsersAsAdminAsync(appId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of users that have access to the specified app (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The app ID
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetAppUsersAsAdminAsync(this IAppsOperations operations, System.Guid appId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetAppUsersAsAdminWithHttpMessagesAsync(appId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
}
}
diff --git a/sdk/PowerBI.Api/Source/CapacitiesOperations.cs b/sdk/PowerBI.Api/Source/CapacitiesOperations.cs
index b81ed146..473802a1 100644
--- a/sdk/PowerBI.Api/Source/CapacitiesOperations.cs
+++ b/sdk/PowerBI.Api/Source/CapacitiesOperations.cs
@@ -191,7 +191,7 @@ public CapacitiesOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// Headers that will be added to request.
@@ -331,7 +331,7 @@ public CapacitiesOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// The name of the workload
@@ -486,7 +486,7 @@ public CapacitiesOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// The name of the workload
@@ -803,7 +803,7 @@ public CapacitiesOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity id
+ /// The capacity ID
///
///
/// Returns only the first n results.
@@ -980,10 +980,10 @@ public CapacitiesOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity id
+ /// The capacity ID
///
///
- /// The refreshable id
+ /// The refreshable ID
///
///
/// Expands related entities inline, receives a comma-separated list of data
@@ -1137,7 +1137,7 @@ public CapacitiesOperations(PowerBIClient client)
}
///
- /// Assigns the provided workspaces to the specified capacity.
+ /// Assigns the provided workspaces to the specified premium capacity.
///
///
/// **Note:** The user must have administrator rights (such as Office 365
@@ -1173,10 +1173,6 @@ public CapacitiesOperations(PowerBIClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "requestParameters");
}
- if (requestParameters != null)
- {
- requestParameters.Validate();
- }
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
@@ -1408,5 +1404,145 @@ public CapacitiesOperations(PowerBIClient client)
return _result;
}
+ ///
+ /// Returns a list of users that have access to the specified workspace
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The capacity ID
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetCapacityUsersAsAdminWithHttpMessagesAsync(System.Guid capacityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("capacityId", capacityId);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "GetCapacityUsersAsAdmin", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/admin/capacities/{capacityId}/users").ToString();
+ _url = _url.Replace("{capacityId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(capacityId, Client.SerializationSettings).Trim('"')));
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ if (_httpResponse.Content != null) {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ }
+ else {
+ _responseContent = string.Empty;
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new HttpOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
}
}
diff --git a/sdk/PowerBI.Api/Source/CapacitiesOperationsExtensions.cs b/sdk/PowerBI.Api/Source/CapacitiesOperationsExtensions.cs
index 4ea5c71f..e6b03ad2 100644
--- a/sdk/PowerBI.Api/Source/CapacitiesOperationsExtensions.cs
+++ b/sdk/PowerBI.Api/Source/CapacitiesOperationsExtensions.cs
@@ -70,7 +70,7 @@ public static Capacities GetCapacities(this ICapacitiesOperations operations)
/// The operations group for this extension method.
///
///
- /// The capacity Id
+ /// The capacity ID
///
public static Workloads GetWorkloads(this ICapacitiesOperations operations, System.Guid capacityId)
{
@@ -94,7 +94,7 @@ public static Workloads GetWorkloads(this ICapacitiesOperations operations, Syst
/// The operations group for this extension method.
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// The cancellation token.
@@ -123,7 +123,7 @@ public static Workloads GetWorkloads(this ICapacitiesOperations operations, Syst
/// The operations group for this extension method.
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// The name of the workload
@@ -149,7 +149,7 @@ public static Workload GetWorkload(this ICapacitiesOperations operations, System
/// The operations group for this extension method.
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// The name of the workload
@@ -181,7 +181,7 @@ public static Workload GetWorkload(this ICapacitiesOperations operations, System
/// The operations group for this extension method.
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// The name of the workload
@@ -210,7 +210,7 @@ public static void PatchWorkload(this ICapacitiesOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// The name of the workload
@@ -307,7 +307,7 @@ public static void PatchWorkload(this ICapacitiesOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The capacity id
+ /// The capacity ID
///
///
/// Returns only the first n results.
@@ -341,7 +341,7 @@ public static void PatchWorkload(this ICapacitiesOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The capacity id
+ /// The capacity ID
///
///
/// Returns only the first n results.
@@ -381,10 +381,10 @@ public static void PatchWorkload(this ICapacitiesOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The capacity id
+ /// The capacity ID
///
///
- /// The refreshable id
+ /// The refreshable ID
///
///
/// Expands related entities inline, receives a comma-separated list of data
@@ -408,10 +408,10 @@ public static void PatchWorkload(this ICapacitiesOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The capacity id
+ /// The capacity ID
///
///
- /// The refreshable id
+ /// The refreshable ID
///
///
/// Expands related entities inline, receives a comma-separated list of data
@@ -429,7 +429,7 @@ public static void PatchWorkload(this ICapacitiesOperations operations, System.G
}
///
- /// Assigns the provided workspaces to the specified capacity.
+ /// Assigns the provided workspaces to the specified premium capacity.
///
///
/// **Note:** The user must have administrator rights (such as Office 365
@@ -450,7 +450,7 @@ public static void AssignWorkspacesToCapacity(this ICapacitiesOperations operati
}
///
- /// Assigns the provided workspaces to the specified capacity.
+ /// Assigns the provided workspaces to the specified premium capacity.
///
///
/// **Note:** The user must have administrator rights (such as Office 365
@@ -518,5 +518,57 @@ public static void UnassignWorkspacesFromCapacity(this ICapacitiesOperations ope
(await operations.UnassignWorkspacesFromCapacityWithHttpMessagesAsync(requestParameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// Returns a list of users that have access to the specified workspace
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The capacity ID
+ ///
+ public static Refreshables GetCapacityUsersAsAdmin(this ICapacitiesOperations operations, System.Guid capacityId)
+ {
+ return operations.GetCapacityUsersAsAdminAsync(capacityId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of users that have access to the specified workspace
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The capacity ID
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetCapacityUsersAsAdminAsync(this ICapacitiesOperations operations, System.Guid capacityId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetCapacityUsersAsAdminWithHttpMessagesAsync(capacityId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
}
}
diff --git a/sdk/PowerBI.Api/Source/DashboardsOperations.cs b/sdk/PowerBI.Api/Source/DashboardsOperations.cs
index 6b2737fb..606c2a91 100644
--- a/sdk/PowerBI.Api/Source/DashboardsOperations.cs
+++ b/sdk/PowerBI.Api/Source/DashboardsOperations.cs
@@ -341,7 +341,7 @@ public DashboardsOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Headers that will be added to request.
@@ -480,7 +480,7 @@ public DashboardsOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Headers that will be added to request.
@@ -619,10 +619,10 @@ public DashboardsOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Headers that will be added to request.
@@ -755,7 +755,7 @@ public DashboardsOperations(PowerBIClient client)
/// Clones the specified tile from **"My Workspace"**.
///
///
- /// <br/>If target report id and target dataset are not specified, the
+ /// <br/>If target report ID and target dataset are not specified, the
/// following can occur:<li>When a tile clone is performed within the
/// same workspace, the report and dataset links will be cloned from the source
/// tile.</li><li>When cloning a tile within a different workspace,
@@ -768,10 +768,10 @@ public DashboardsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Clone tile parameters
@@ -933,7 +933,7 @@ public DashboardsOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Headers that will be added to request.
@@ -1069,7 +1069,7 @@ public DashboardsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Add dashboard parameters
@@ -1229,10 +1229,10 @@ public DashboardsOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Headers that will be added to request.
@@ -1373,10 +1373,10 @@ public DashboardsOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Headers that will be added to request.
@@ -1517,13 +1517,13 @@ public DashboardsOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Headers that will be added to request.
@@ -1658,7 +1658,7 @@ public DashboardsOperations(PowerBIClient client)
/// Clones the specified tile from the specified workspace.
///
///
- /// <br/>If target report id and target dataset are missing, the
+ /// <br/>If target report ID and target dataset are missing, the
/// following can occur:<li>When a tile clone is performed within the
/// same workspace, the report and dataset links will be cloned from the source
/// tile.</li><li>If you are cloning a tile within a different
@@ -1671,13 +1671,13 @@ public DashboardsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Clone tile parameters
@@ -1855,10 +1855,10 @@ public DashboardsOperations(PowerBIClient client)
/// document along with considerations and limitations section.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Generate token parameters
@@ -2020,7 +2020,7 @@ public DashboardsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -2362,7 +2362,7 @@ public DashboardsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Headers that will be added to request.
@@ -2489,5 +2489,146 @@ public DashboardsOperations(PowerBIClient client)
return _result;
}
+ ///
+ /// Returns a list of users that have access to the specified dashboard
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API or
+ /// authenticate via service principal. <br/>This API allows 200 requests
+ /// per hour at maximum. <br/><br/>**Required scope**:
+ /// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
+ /// are supported. <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The dashboard ID
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetDashboardUsersAsAdminWithHttpMessagesAsync(System.Guid dashboardId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("dashboardId", dashboardId);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "GetDashboardUsersAsAdmin", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/admin/dashboards/{dashboardId}/users").ToString();
+ _url = _url.Replace("{dashboardId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(dashboardId, Client.SerializationSettings).Trim('"')));
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ if (_httpResponse.Content != null) {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ }
+ else {
+ _responseContent = string.Empty;
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new HttpOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
}
}
diff --git a/sdk/PowerBI.Api/Source/DashboardsOperationsExtensions.cs b/sdk/PowerBI.Api/Source/DashboardsOperationsExtensions.cs
index 0e53bd37..ddb25649 100644
--- a/sdk/PowerBI.Api/Source/DashboardsOperationsExtensions.cs
+++ b/sdk/PowerBI.Api/Source/DashboardsOperationsExtensions.cs
@@ -109,7 +109,7 @@ public static Dashboard AddDashboard(this IDashboardsOperations operations, AddD
/// The operations group for this extension method.
///
///
- /// The dashboard id
+ /// The dashboard ID
///
public static Dashboard GetDashboard(this IDashboardsOperations operations, System.Guid dashboardId)
{
@@ -128,7 +128,7 @@ public static Dashboard GetDashboard(this IDashboardsOperations operations, Syst
/// The operations group for this extension method.
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The cancellation token.
@@ -156,7 +156,7 @@ public static Dashboard GetDashboard(this IDashboardsOperations operations, Syst
/// The operations group for this extension method.
///
///
- /// The dashboard id
+ /// The dashboard ID
///
public static Tiles GetTiles(this IDashboardsOperations operations, System.Guid dashboardId)
{
@@ -178,7 +178,7 @@ public static Tiles GetTiles(this IDashboardsOperations operations, System.Guid
/// The operations group for this extension method.
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The cancellation token.
@@ -206,10 +206,10 @@ public static Tiles GetTiles(this IDashboardsOperations operations, System.Guid
/// The operations group for this extension method.
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
public static Tile GetTile(this IDashboardsOperations operations, System.Guid dashboardId, System.Guid tileId)
{
@@ -231,10 +231,10 @@ public static Tile GetTile(this IDashboardsOperations operations, System.Guid da
/// The operations group for this extension method.
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// The cancellation token.
@@ -251,7 +251,7 @@ public static Tile GetTile(this IDashboardsOperations operations, System.Guid da
/// Clones the specified tile from **"My Workspace"**.
///
///
- /// <br/>If target report id and target dataset are not specified, the
+ /// <br/>If target report ID and target dataset are not specified, the
/// following can occur:<li>When a tile clone is performed within the
/// same workspace, the report and dataset links will be cloned from the source
/// tile.</li><li>When cloning a tile within a different workspace,
@@ -267,10 +267,10 @@ public static Tile GetTile(this IDashboardsOperations operations, System.Guid da
/// The operations group for this extension method.
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Clone tile parameters
@@ -284,7 +284,7 @@ public static Tile CloneTile(this IDashboardsOperations operations, System.Guid
/// Clones the specified tile from **"My Workspace"**.
///
///
- /// <br/>If target report id and target dataset are not specified, the
+ /// <br/>If target report ID and target dataset are not specified, the
/// following can occur:<li>When a tile clone is performed within the
/// same workspace, the report and dataset links will be cloned from the source
/// tile.</li><li>When cloning a tile within a different workspace,
@@ -300,10 +300,10 @@ public static Tile CloneTile(this IDashboardsOperations operations, System.Guid
/// The operations group for this extension method.
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Clone tile parameters
@@ -331,7 +331,7 @@ public static Tile CloneTile(this IDashboardsOperations operations, System.Guid
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
public static Dashboards GetDashboardsInGroup(this IDashboardsOperations operations, System.Guid groupId)
{
@@ -350,7 +350,7 @@ public static Dashboards GetDashboardsInGroup(this IDashboardsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The cancellation token.
@@ -375,7 +375,7 @@ public static Dashboards GetDashboardsInGroup(this IDashboardsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Add dashboard parameters
@@ -397,7 +397,7 @@ public static Dashboard AddDashboardInGroup(this IDashboardsOperations operation
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Add dashboard parameters
@@ -425,10 +425,10 @@ public static Dashboard AddDashboardInGroup(this IDashboardsOperations operation
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
public static Dashboard GetDashboardInGroup(this IDashboardsOperations operations, System.Guid groupId, System.Guid dashboardId)
{
@@ -447,10 +447,10 @@ public static Dashboard GetDashboardInGroup(this IDashboardsOperations operation
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The cancellation token.
@@ -478,10 +478,10 @@ public static Dashboard GetDashboardInGroup(this IDashboardsOperations operation
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
public static Tiles GetTilesInGroup(this IDashboardsOperations operations, System.Guid groupId, System.Guid dashboardId)
{
@@ -503,10 +503,10 @@ public static Tiles GetTilesInGroup(this IDashboardsOperations operations, Syste
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The cancellation token.
@@ -534,13 +534,13 @@ public static Tiles GetTilesInGroup(this IDashboardsOperations operations, Syste
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
public static Tile GetTileInGroup(this IDashboardsOperations operations, System.Guid groupId, System.Guid dashboardId, System.Guid tileId)
{
@@ -562,13 +562,13 @@ public static Tile GetTileInGroup(this IDashboardsOperations operations, System.
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// The cancellation token.
@@ -585,7 +585,7 @@ public static Tile GetTileInGroup(this IDashboardsOperations operations, System.
/// Clones the specified tile from the specified workspace.
///
///
- /// <br/>If target report id and target dataset are missing, the
+ /// <br/>If target report ID and target dataset are missing, the
/// following can occur:<li>When a tile clone is performed within the
/// same workspace, the report and dataset links will be cloned from the source
/// tile.</li><li>If you are cloning a tile within a different
@@ -601,13 +601,13 @@ public static Tile GetTileInGroup(this IDashboardsOperations operations, System.
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Clone tile parameters
@@ -621,7 +621,7 @@ public static Tile CloneTileInGroup(this IDashboardsOperations operations, Syste
/// Clones the specified tile from the specified workspace.
///
///
- /// <br/>If target report id and target dataset are missing, the
+ /// <br/>If target report ID and target dataset are missing, the
/// following can occur:<li>When a tile clone is performed within the
/// same workspace, the report and dataset links will be cloned from the source
/// tile.</li><li>If you are cloning a tile within a different
@@ -637,13 +637,13 @@ public static Tile CloneTileInGroup(this IDashboardsOperations operations, Syste
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Clone tile parameters
@@ -685,10 +685,10 @@ public static Tile CloneTileInGroup(this IDashboardsOperations operations, Syste
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Generate token parameters
@@ -724,10 +724,10 @@ public static EmbedToken GenerateTokenInGroup(this IDashboardsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Generate token parameters
@@ -759,7 +759,7 @@ public static EmbedToken GenerateTokenInGroup(this IDashboardsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -791,7 +791,7 @@ public static EmbedToken GenerateTokenInGroup(this IDashboardsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -901,7 +901,7 @@ public static EmbedToken GenerateTokenInGroup(this IDashboardsOperations operati
/// The operations group for this extension method.
///
///
- /// The dashboard id
+ /// The dashboard ID
///
public static Tiles GetTilesAsAdmin(this IDashboardsOperations operations, System.Guid dashboardId)
{
@@ -924,7 +924,7 @@ public static Tiles GetTilesAsAdmin(this IDashboardsOperations operations, Syste
/// The operations group for this extension method.
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The cancellation token.
@@ -937,5 +937,59 @@ public static Tiles GetTilesAsAdmin(this IDashboardsOperations operations, Syste
}
}
+ ///
+ /// Returns a list of users that have access to the specified dashboard
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API or
+ /// authenticate via service principal. <br/>This API allows 200 requests
+ /// per hour at maximum. <br/><br/>**Required scope**:
+ /// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
+ /// are supported. <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The dashboard ID
+ ///
+ public static DashboardUsers GetDashboardUsersAsAdmin(this IDashboardsOperations operations, System.Guid dashboardId)
+ {
+ return operations.GetDashboardUsersAsAdminAsync(dashboardId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of users that have access to the specified dashboard
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API or
+ /// authenticate via service principal. <br/>This API allows 200 requests
+ /// per hour at maximum. <br/><br/>**Required scope**:
+ /// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
+ /// are supported. <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The dashboard ID
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetDashboardUsersAsAdminAsync(this IDashboardsOperations operations, System.Guid dashboardId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetDashboardUsersAsAdminWithHttpMessagesAsync(dashboardId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
}
}
diff --git a/sdk/PowerBI.Api/Source/DataflowsOperations.cs b/sdk/PowerBI.Api/Source/DataflowsOperations.cs
index 1db55ba0..b702b769 100644
--- a/sdk/PowerBI.Api/Source/DataflowsOperations.cs
+++ b/sdk/PowerBI.Api/Source/DataflowsOperations.cs
@@ -55,10 +55,10 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Headers that will be added to request.
@@ -184,10 +184,10 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Headers that will be added to request.
@@ -304,10 +304,10 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Patch dataflow properties, capabilities and settings
@@ -446,10 +446,10 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
///
@@ -592,10 +592,10 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Headers that will be added to request.
@@ -733,7 +733,7 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Headers that will be added to request.
@@ -869,10 +869,10 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Headers that will be added to request.
@@ -1010,10 +1010,10 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The dataflow refresh schedule to create or update
@@ -1150,10 +1150,10 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Headers that will be added to request.
@@ -1291,10 +1291,10 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The transaction id
+ /// The transaction ID
///
///
/// Headers that will be added to request.
@@ -1327,7 +1327,7 @@ public DataflowsOperations(PowerBIClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/groups/{groupId}/dataflows//transactions/{transactionId}/cancel").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/groups/{groupId}/dataflows/transactions/{transactionId}/cancel").ToString();
_url = _url.Replace("{groupId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(groupId, Client.SerializationSettings).Trim('"')));
_url = _url.Replace("{transactionId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(transactionId, Client.SerializationSettings).Trim('"')));
// Create HTTP transport objects
@@ -1436,10 +1436,10 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Headers that will be added to request.
@@ -1581,7 +1581,7 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -1914,7 +1914,7 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Headers that will be added to request.
@@ -2041,7 +2041,7 @@ public DataflowsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Headers that will be added to request.
@@ -2168,5 +2168,146 @@ public DataflowsOperations(PowerBIClient client)
return _result;
}
+ ///
+ /// Returns a list of users that have access to the specified dataflow
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API or
+ /// authenticate via service principal. <br/>This API allows 200 requests
+ /// per hour at maximum. <br/><br/>**Required scope**:
+ /// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
+ /// are supported. <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The dataflow ID
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetDataflowUsersAsAdminWithHttpMessagesAsync(System.Guid dataflowId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("dataflowId", dataflowId);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "GetDataflowUsersAsAdmin", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/admin/dataflows/{dataflowId}/users").ToString();
+ _url = _url.Replace("{dataflowId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(dataflowId, Client.SerializationSettings).Trim('"')));
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ if (_httpResponse.Content != null) {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ }
+ else {
+ _responseContent = string.Empty;
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new HttpOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
}
}
diff --git a/sdk/PowerBI.Api/Source/DataflowsOperationsExtensions.cs b/sdk/PowerBI.Api/Source/DataflowsOperationsExtensions.cs
index 10b45169..3ebb49f3 100644
--- a/sdk/PowerBI.Api/Source/DataflowsOperationsExtensions.cs
+++ b/sdk/PowerBI.Api/Source/DataflowsOperationsExtensions.cs
@@ -28,10 +28,10 @@ public static partial class DataflowsOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
public static Stream GetDataflow(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
{
@@ -50,10 +50,10 @@ public static Stream GetDataflow(this IDataflowsOperations operations, System.Gu
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The cancellation token.
@@ -78,10 +78,10 @@ public static Stream GetDataflow(this IDataflowsOperations operations, System.Gu
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
public static void DeleteDataflow(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
{
@@ -101,10 +101,10 @@ public static void DeleteDataflow(this IDataflowsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The cancellation token.
@@ -126,10 +126,10 @@ public static void DeleteDataflow(this IDataflowsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Patch dataflow properties, capabilities and settings
@@ -151,10 +151,10 @@ public static void UpdateDataflow(this IDataflowsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Patch dataflow properties, capabilities and settings
@@ -181,10 +181,10 @@ public static void UpdateDataflow(this IDataflowsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
///
@@ -210,10 +210,10 @@ public static void UpdateDataflow(this IDataflowsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
///
@@ -240,10 +240,10 @@ public static void UpdateDataflow(this IDataflowsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
public static Datasources GetDataflowDataSources(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
{
@@ -262,10 +262,10 @@ public static Datasources GetDataflowDataSources(this IDataflowsOperations opera
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The cancellation token.
@@ -290,7 +290,7 @@ public static Datasources GetDataflowDataSources(this IDataflowsOperations opera
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
public static Dataflows GetDataflows(this IDataflowsOperations operations, System.Guid groupId)
{
@@ -309,7 +309,7 @@ public static Dataflows GetDataflows(this IDataflowsOperations operations, Syste
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The cancellation token.
@@ -334,10 +334,10 @@ public static Dataflows GetDataflows(this IDataflowsOperations operations, Syste
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
public static DependentDataflows GetUpstreamDataflowsInGroup(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
{
@@ -356,10 +356,10 @@ public static DependentDataflows GetUpstreamDataflowsInGroup(this IDataflowsOper
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The cancellation token.
@@ -384,10 +384,10 @@ public static DependentDataflows GetUpstreamDataflowsInGroup(this IDataflowsOper
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The dataflow refresh schedule to create or update
@@ -409,10 +409,10 @@ public static void UpdateRefreshSchedule(this IDataflowsOperations operations, S
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The dataflow refresh schedule to create or update
@@ -437,10 +437,10 @@ public static void UpdateRefreshSchedule(this IDataflowsOperations operations, S
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
public static DataflowTransactions GetDataflowTransactions(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
{
@@ -459,10 +459,10 @@ public static DataflowTransactions GetDataflowTransactions(this IDataflowsOperat
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The cancellation token.
@@ -487,10 +487,10 @@ public static DataflowTransactions GetDataflowTransactions(this IDataflowsOperat
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The transaction id
+ /// The transaction ID
///
public static DataflowTransactionStatus CancelDataflowTransaction(this IDataflowsOperations operations, System.Guid groupId, System.Guid transactionId)
{
@@ -509,10 +509,10 @@ public static DataflowTransactionStatus CancelDataflowTransaction(this IDataflow
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The transaction id
+ /// The transaction ID
///
///
/// The cancellation token.
@@ -541,10 +541,10 @@ public static DataflowTransactionStatus CancelDataflowTransaction(this IDataflow
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
public static DependentDataflows GetUpstreamDataflowsInGroupAsAdmin(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
{
@@ -567,10 +567,10 @@ public static DependentDataflows GetUpstreamDataflowsInGroupAsAdmin(this IDatafl
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The cancellation token.
@@ -599,7 +599,7 @@ public static DependentDataflows GetUpstreamDataflowsInGroupAsAdmin(this IDatafl
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -631,7 +631,7 @@ public static DependentDataflows GetUpstreamDataflowsInGroupAsAdmin(this IDatafl
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -733,7 +733,7 @@ public static DependentDataflows GetUpstreamDataflowsInGroupAsAdmin(this IDatafl
/// The operations group for this extension method.
///
///
- /// The dataflow id
+ /// The dataflow ID
///
public static Stream ExportDataflowAsAdmin(this IDataflowsOperations operations, System.Guid dataflowId)
{
@@ -756,7 +756,7 @@ public static Stream ExportDataflowAsAdmin(this IDataflowsOperations operations,
/// The operations group for this extension method.
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The cancellation token.
@@ -784,7 +784,7 @@ public static Stream ExportDataflowAsAdmin(this IDataflowsOperations operations,
/// The operations group for this extension method.
///
///
- /// The dataflow id
+ /// The dataflow ID
///
public static Datasources GetDataflowDatasourcesAsAdmin(this IDataflowsOperations operations, System.Guid dataflowId)
{
@@ -807,7 +807,7 @@ public static Datasources GetDataflowDatasourcesAsAdmin(this IDataflowsOperation
/// The operations group for this extension method.
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The cancellation token.
@@ -820,5 +820,59 @@ public static Datasources GetDataflowDatasourcesAsAdmin(this IDataflowsOperation
}
}
+ ///
+ /// Returns a list of users that have access to the specified dataflow
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API or
+ /// authenticate via service principal. <br/>This API allows 200 requests
+ /// per hour at maximum. <br/><br/>**Required scope**:
+ /// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
+ /// are supported. <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The dataflow ID
+ ///
+ public static DataflowUsers GetDataflowUsersAsAdmin(this IDataflowsOperations operations, System.Guid dataflowId)
+ {
+ return operations.GetDataflowUsersAsAdminAsync(dataflowId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of users that have access to the specified dataflow
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API or
+ /// authenticate via service principal. <br/>This API allows 200 requests
+ /// per hour at maximum. <br/><br/>**Required scope**:
+ /// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
+ /// are supported. <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The dataflow ID
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetDataflowUsersAsAdminAsync(this IDataflowsOperations operations, System.Guid dataflowId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetDataflowUsersAsAdminWithHttpMessagesAsync(dataflowId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
}
}
diff --git a/sdk/PowerBI.Api/Source/DatasetsOperations.cs b/sdk/PowerBI.Api/Source/DatasetsOperations.cs
index 37a19af5..a41cb796 100644
--- a/sdk/PowerBI.Api/Source/DatasetsOperations.cs
+++ b/sdk/PowerBI.Api/Source/DatasetsOperations.cs
@@ -373,7 +373,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -519,7 +519,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -635,6 +635,196 @@ public DatasetsOperations(PowerBIClient client)
return _result;
}
+ ///
+ /// Executes DAX queries against the provided dataset. The dataset may reside
+ /// in **"My Workspace"** or any other [new
+ /// workspace](/power-bi/collaborate-share/service-new-workspaces) (V2
+ /// workspace).
+ ///
+ ///
+ /// <br/>**Required scope**: Dataset.ReadWrite.All or Dataset.Read.All
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ /// <h2>Restrictions</h2><ul><li>This operation is only
+ /// supported for datasets in a [new
+ /// workspace](/power-bi/collaborate-share/service-new-workspaces) (V2
+ /// workspace)</li><li>The user issuing the request needs to have
+ /// [Build permissions for the
+ /// dataset](power-bi/connect-data/service-datasets-build-permissions).</li><li>The
+ /// [Allow XMLA endpoints and Analyze in Excel with on-premises
+ /// datasets](power-bi/admin/service-premium-connect-tools) tenant setting
+ /// needs to be enabled.</li><li>Datasets hosted in AsAzure or live
+ /// connected to an on premise Analysis Services model are not
+ /// supported.</li><li>Only one query returning one table of
+ /// maximum 100k rows is allowed. Specifying more than one query will return an
+ /// error.</li></ul><h2>Notes</h2><ul><li>Issuing
+ /// a query that returns more than one table or more than 100k rows will return
+ /// limited data and an error in the response. The response HTTP status will be
+ /// OK (200).</li><li>DAX query failures will be returned with a
+ /// failure HTTP status (400).</li><li>Columns that are fully
+ /// qualified in the query will be returned with the fully qualified name, for
+ /// example, Table[Column]. Columns that are renamed or created in the query
+ /// will be returned within square bracket, for example,
+ /// [MyNewColumn].</li><li>The following errors may be contained in
+ /// the response: DAX query failures, more than one result table in a query,
+ /// more than 100k rows in a query result.</li></ul>
+ ///
+ ///
+ /// The dataset ID
+ ///
+ ///
+ /// The request message
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> ExecuteQueriesWithHttpMessagesAsync(string datasetId, DatasetExecuteQueriesRequest requestMessage, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (datasetId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "datasetId");
+ }
+ if (requestMessage == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "requestMessage");
+ }
+ if (requestMessage != null)
+ {
+ requestMessage.Validate();
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("datasetId", datasetId);
+ tracingParameters.Add("requestMessage", requestMessage);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ExecuteQueries", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/datasets/{datasetId}/executeQueries").ToString();
+ _url = _url.Replace("{datasetId}", System.Uri.EscapeDataString(datasetId));
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(requestMessage != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(requestMessage, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ if (_httpResponse.Content != null) {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ }
+ else {
+ _responseContent = string.Empty;
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new HttpOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Returns a list of tables tables within the specified dataset from **"My
/// Workspace"**.
@@ -646,7 +836,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -794,7 +984,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -971,7 +1161,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -1121,7 +1311,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -1256,7 +1446,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The requested number of entries in the refresh history. If not provided,
@@ -1426,7 +1616,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -1565,7 +1755,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -1720,7 +1910,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Update Refresh Schedule parameters, by specifying all or some of the
@@ -1861,7 +2051,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -2013,7 +2203,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Patch DirectQuery or LiveConnection Refresh Schedule parameters, by
@@ -2156,7 +2346,7 @@ public DatasetsOperations(PowerBIClient client)
/// supported.<br/>
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -2326,7 +2516,7 @@ public DatasetsOperations(PowerBIClient client)
/// types 'Any' or 'Binary' cannot be set.</li></ul>
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -2469,7 +2659,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -2650,7 +2840,7 @@ public DatasetsOperations(PowerBIClient client)
/// Parameters](https://docs.microsoft.com/rest/api/power-bi/datasets/updateparameters).</li></ul>
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -2803,7 +2993,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The body
@@ -2940,8 +3130,8 @@ public DatasetsOperations(PowerBIClient client)
///
/// Binds the specified dataset from **"My Workspace"** to the specified
- /// gateway with (optional) given set of datasource Ids. This only supports the
- /// On-Premises Data Gateway.
+ /// gateway, optionally with a given set of datasource IDs. This only supports
+ /// the on-premises data gateway.
///
///
/// <br/>**Note:** API caller principal should be added as datasource
@@ -2951,7 +3141,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The bind to gateway request
@@ -3097,7 +3287,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -3246,7 +3436,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -3392,7 +3582,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Headers that will be added to request.
@@ -3529,7 +3719,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Create dataset parameters
@@ -3721,7 +3911,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Headers that will be added to request.
@@ -3857,10 +4047,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -4008,10 +4198,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -4140,10 +4330,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -4293,10 +4483,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -4475,10 +4665,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -4630,10 +4820,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -4770,10 +4960,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The requested number of entries in the refresh history. If not provided,
@@ -4945,10 +5135,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -5089,10 +5279,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -5249,10 +5439,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Update Refresh Schedule parameters, by specifying all or some of the
@@ -5395,10 +5585,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -5552,10 +5742,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Patch DirectQuery or LiveConnection Refresh Schedule parameters, by
@@ -5700,7 +5890,7 @@ public DatasetsOperations(PowerBIClient client)
/// supported.<br/>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -5875,7 +6065,7 @@ public DatasetsOperations(PowerBIClient client)
/// types 'Any' or 'Binary' cannot be set.</li></ul>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -6022,7 +6212,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -6207,7 +6397,7 @@ public DatasetsOperations(PowerBIClient client)
/// Group](https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updateparametersingroup).</li></ul>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -6364,10 +6554,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The body
@@ -6506,8 +6696,8 @@ public DatasetsOperations(PowerBIClient client)
///
/// Binds the specified dataset from the specified workspace to the specified
- /// gateway with (optional) given set of datasource Ids. This only supports the
- /// On-Premises Data Gateway.
+ /// gateway, optionally with a given set of datasource IDs. This only supports
+ /// the on-premises data gateway.
///
///
/// <br/>**Note:** API caller principal should be added as datasource
@@ -6517,10 +6707,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The bind to gateway request
@@ -6668,10 +6858,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -6822,10 +7012,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -6974,10 +7164,10 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Headers that will be added to request.
@@ -7115,10 +7305,10 @@ public DatasetsOperations(PowerBIClient client)
/// document along with considerations and limitations section.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Generate token parameters
@@ -7586,6 +7776,147 @@ public DatasetsOperations(PowerBIClient client)
return _result;
}
+ ///
+ /// Returns a list of users that have access to the specified dataset
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API or
+ /// authenticate via service principal. <br/>This API allows 200 requests
+ /// per hour at maximum. <br/><br/>**Required scope**:
+ /// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
+ /// are supported. <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The dataset ID
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetDatasetUsersAsAdminWithHttpMessagesAsync(System.Guid datasetId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("datasetId", datasetId);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "GetDatasetUsersAsAdmin", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/admin/datasets/{datasetId}/users").ToString();
+ _url = _url.Replace("{datasetId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(datasetId, Client.SerializationSettings).Trim('"')));
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ if (_httpResponse.Content != null) {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ }
+ else {
+ _responseContent = string.Empty;
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new HttpOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Returns a list of datasets from the specified workspace.
///
@@ -7599,7 +7930,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -7777,7 +8108,7 @@ public DatasetsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Headers that will be added to request.
diff --git a/sdk/PowerBI.Api/Source/DatasetsOperationsExtensions.cs b/sdk/PowerBI.Api/Source/DatasetsOperationsExtensions.cs
index 92340655..7afb2583 100644
--- a/sdk/PowerBI.Api/Source/DatasetsOperationsExtensions.cs
+++ b/sdk/PowerBI.Api/Source/DatasetsOperationsExtensions.cs
@@ -117,7 +117,7 @@ public static Datasets GetDatasets(this IDatasetsOperations operations)
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
public static Dataset GetDataset(this IDatasetsOperations operations, string datasetId)
{
@@ -136,7 +136,7 @@ public static Dataset GetDataset(this IDatasetsOperations operations, string dat
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -161,7 +161,7 @@ public static Dataset GetDataset(this IDatasetsOperations operations, string dat
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
public static void DeleteDataset(this IDatasetsOperations operations, string datasetId)
{
@@ -180,7 +180,7 @@ public static void DeleteDataset(this IDatasetsOperations operations, string dat
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -190,6 +190,108 @@ public static void DeleteDataset(this IDatasetsOperations operations, string dat
(await operations.DeleteDatasetWithHttpMessagesAsync(datasetId, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// Executes DAX queries against the provided dataset. The dataset may reside
+ /// in **"My Workspace"** or any other [new
+ /// workspace](/power-bi/collaborate-share/service-new-workspaces) (V2
+ /// workspace).
+ ///
+ ///
+ /// <br/>**Required scope**: Dataset.ReadWrite.All or Dataset.Read.All
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ /// <h2>Restrictions</h2><ul><li>This operation is only
+ /// supported for datasets in a [new
+ /// workspace](/power-bi/collaborate-share/service-new-workspaces) (V2
+ /// workspace)</li><li>The user issuing the request needs to have
+ /// [Build permissions for the
+ /// dataset](power-bi/connect-data/service-datasets-build-permissions).</li><li>The
+ /// [Allow XMLA endpoints and Analyze in Excel with on-premises
+ /// datasets](power-bi/admin/service-premium-connect-tools) tenant setting
+ /// needs to be enabled.</li><li>Datasets hosted in AsAzure or live
+ /// connected to an on premise Analysis Services model are not
+ /// supported.</li><li>Only one query returning one table of
+ /// maximum 100k rows is allowed. Specifying more than one query will return an
+ /// error.</li></ul><h2>Notes</h2><ul><li>Issuing
+ /// a query that returns more than one table or more than 100k rows will return
+ /// limited data and an error in the response. The response HTTP status will be
+ /// OK (200).</li><li>DAX query failures will be returned with a
+ /// failure HTTP status (400).</li><li>Columns that are fully
+ /// qualified in the query will be returned with the fully qualified name, for
+ /// example, Table[Column]. Columns that are renamed or created in the query
+ /// will be returned within square bracket, for example,
+ /// [MyNewColumn].</li><li>The following errors may be contained in
+ /// the response: DAX query failures, more than one result table in a query,
+ /// more than 100k rows in a query result.</li></ul>
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The dataset ID
+ ///
+ ///
+ /// The request message
+ ///
+ public static DatasetExecuteQueriesResponse ExecuteQueries(this IDatasetsOperations operations, string datasetId, DatasetExecuteQueriesRequest requestMessage)
+ {
+ return operations.ExecuteQueriesAsync(datasetId, requestMessage).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Executes DAX queries against the provided dataset. The dataset may reside
+ /// in **"My Workspace"** or any other [new
+ /// workspace](/power-bi/collaborate-share/service-new-workspaces) (V2
+ /// workspace).
+ ///
+ ///
+ /// <br/>**Required scope**: Dataset.ReadWrite.All or Dataset.Read.All
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ /// <h2>Restrictions</h2><ul><li>This operation is only
+ /// supported for datasets in a [new
+ /// workspace](/power-bi/collaborate-share/service-new-workspaces) (V2
+ /// workspace)</li><li>The user issuing the request needs to have
+ /// [Build permissions for the
+ /// dataset](power-bi/connect-data/service-datasets-build-permissions).</li><li>The
+ /// [Allow XMLA endpoints and Analyze in Excel with on-premises
+ /// datasets](power-bi/admin/service-premium-connect-tools) tenant setting
+ /// needs to be enabled.</li><li>Datasets hosted in AsAzure or live
+ /// connected to an on premise Analysis Services model are not
+ /// supported.</li><li>Only one query returning one table of
+ /// maximum 100k rows is allowed. Specifying more than one query will return an
+ /// error.</li></ul><h2>Notes</h2><ul><li>Issuing
+ /// a query that returns more than one table or more than 100k rows will return
+ /// limited data and an error in the response. The response HTTP status will be
+ /// OK (200).</li><li>DAX query failures will be returned with a
+ /// failure HTTP status (400).</li><li>Columns that are fully
+ /// qualified in the query will be returned with the fully qualified name, for
+ /// example, Table[Column]. Columns that are renamed or created in the query
+ /// will be returned within square bracket, for example,
+ /// [MyNewColumn].</li><li>The following errors may be contained in
+ /// the response: DAX query failures, more than one result table in a query,
+ /// more than 100k rows in a query result.</li></ul>
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The dataset ID
+ ///
+ ///
+ /// The request message
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ExecuteQueriesAsync(this IDatasetsOperations operations, string datasetId, DatasetExecuteQueriesRequest requestMessage, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ExecuteQueriesWithHttpMessagesAsync(datasetId, requestMessage, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Returns a list of tables tables within the specified dataset from **"My
/// Workspace"**.
@@ -204,7 +306,7 @@ public static void DeleteDataset(this IDatasetsOperations operations, string dat
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
public static Tables GetTables(this IDatasetsOperations operations, string datasetId)
{
@@ -225,7 +327,7 @@ public static Tables GetTables(this IDatasetsOperations operations, string datas
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -252,7 +354,7 @@ public static Tables GetTables(this IDatasetsOperations operations, string datas
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -279,7 +381,7 @@ public static Table PutTable(this IDatasetsOperations operations, string dataset
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -314,7 +416,7 @@ public static Table PutTable(this IDatasetsOperations operations, string dataset
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -343,7 +445,7 @@ public static void PostRows(this IDatasetsOperations operations, string datasetI
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -373,7 +475,7 @@ public static void PostRows(this IDatasetsOperations operations, string datasetI
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -397,7 +499,7 @@ public static void DeleteRows(this IDatasetsOperations operations, string datase
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -423,7 +525,7 @@ public static void DeleteRows(this IDatasetsOperations operations, string datase
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The requested number of entries in the refresh history. If not provided,
@@ -447,7 +549,7 @@ public static void DeleteRows(this IDatasetsOperations operations, string datase
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The requested number of entries in the refresh history. If not provided,
@@ -482,7 +584,7 @@ public static void DeleteRows(this IDatasetsOperations operations, string datase
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -509,7 +611,7 @@ public static void DeleteRows(this IDatasetsOperations operations, string datase
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -534,7 +636,7 @@ public static void DeleteRows(this IDatasetsOperations operations, string datase
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
public static RefreshSchedule GetRefreshSchedule(this IDatasetsOperations operations, string datasetId)
{
@@ -554,7 +656,7 @@ public static RefreshSchedule GetRefreshSchedule(this IDatasetsOperations operat
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -588,7 +690,7 @@ public static RefreshSchedule GetRefreshSchedule(this IDatasetsOperations operat
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Update Refresh Schedule parameters, by specifying all or some of the
@@ -620,7 +722,7 @@ public static void UpdateRefreshSchedule(this IDatasetsOperations operations, st
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Update Refresh Schedule parameters, by specifying all or some of the
@@ -647,7 +749,7 @@ public static void UpdateRefreshSchedule(this IDatasetsOperations operations, st
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
public static DirectQueryRefreshSchedule GetDirectQueryRefreshSchedule(this IDatasetsOperations operations, string datasetId)
{
@@ -667,7 +769,7 @@ public static DirectQueryRefreshSchedule GetDirectQueryRefreshSchedule(this IDat
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -698,7 +800,7 @@ public static DirectQueryRefreshSchedule GetDirectQueryRefreshSchedule(this IDat
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Patch DirectQuery or LiveConnection Refresh Schedule parameters, by
@@ -727,7 +829,7 @@ public static void UpdateDirectQueryRefreshSchedule(this IDatasetsOperations ope
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Patch DirectQuery or LiveConnection Refresh Schedule parameters, by
@@ -756,7 +858,7 @@ public static void UpdateDirectQueryRefreshSchedule(this IDatasetsOperations ope
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
public static MashupParameters GetParameters(this IDatasetsOperations operations, string datasetId)
{
@@ -778,7 +880,7 @@ public static MashupParameters GetParameters(this IDatasetsOperations operations
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -827,7 +929,7 @@ public static MashupParameters GetParameters(this IDatasetsOperations operations
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -872,7 +974,7 @@ public static void UpdateParameters(this IDatasetsOperations operations, string
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -897,7 +999,7 @@ public static void UpdateParameters(this IDatasetsOperations operations, string
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
public static Datasources GetDatasources(this IDatasetsOperations operations, string datasetId)
{
@@ -917,7 +1019,7 @@ public static Datasources GetDatasources(this IDatasetsOperations operations, st
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -977,7 +1079,7 @@ public static Datasources GetDatasources(this IDatasetsOperations operations, st
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -1033,7 +1135,7 @@ public static void UpdateDatasources(this IDatasetsOperations operations, string
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -1068,7 +1170,7 @@ public static void UpdateDatasources(this IDatasetsOperations operations, string
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The body
@@ -1102,7 +1204,7 @@ public static void SetAllDatasetConnections(this IDatasetsOperations operations,
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The body
@@ -1118,8 +1220,8 @@ public static void SetAllDatasetConnections(this IDatasetsOperations operations,
///
/// Binds the specified dataset from **"My Workspace"** to the specified
- /// gateway with (optional) given set of datasource Ids. This only supports the
- /// On-Premises Data Gateway.
+ /// gateway, optionally with a given set of datasource IDs. This only supports
+ /// the on-premises data gateway.
///
///
/// <br/>**Note:** API caller principal should be added as datasource
@@ -1132,7 +1234,7 @@ public static void SetAllDatasetConnections(this IDatasetsOperations operations,
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The bind to gateway request
@@ -1144,8 +1246,8 @@ public static void BindToGateway(this IDatasetsOperations operations, string dat
///
/// Binds the specified dataset from **"My Workspace"** to the specified
- /// gateway with (optional) given set of datasource Ids. This only supports the
- /// On-Premises Data Gateway.
+ /// gateway, optionally with a given set of datasource IDs. This only supports
+ /// the on-premises data gateway.
///
///
/// <br/>**Note:** API caller principal should be added as datasource
@@ -1158,7 +1260,7 @@ public static void BindToGateway(this IDatasetsOperations operations, string dat
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The bind to gateway request
@@ -1186,7 +1288,7 @@ public static void BindToGateway(this IDatasetsOperations operations, string dat
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
public static GatewayDatasources GetGatewayDatasources(this IDatasetsOperations operations, string datasetId)
{
@@ -1208,7 +1310,7 @@ public static GatewayDatasources GetGatewayDatasources(this IDatasetsOperations
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -1236,7 +1338,7 @@ public static GatewayDatasources GetGatewayDatasources(this IDatasetsOperations
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
public static Gateways DiscoverGateways(this IDatasetsOperations operations, string datasetId)
{
@@ -1258,7 +1360,7 @@ public static Gateways DiscoverGateways(this IDatasetsOperations operations, str
/// The operations group for this extension method.
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -1283,7 +1385,7 @@ public static Gateways DiscoverGateways(this IDatasetsOperations operations, str
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
public static Datasets GetDatasetsInGroup(this IDatasetsOperations operations, System.Guid groupId)
{
@@ -1302,7 +1404,7 @@ public static Datasets GetDatasetsInGroup(this IDatasetsOperations operations, S
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The cancellation token.
@@ -1328,7 +1430,7 @@ public static Datasets GetDatasetsInGroup(this IDatasetsOperations operations, S
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Create dataset parameters
@@ -1354,7 +1456,7 @@ public static Datasets GetDatasetsInGroup(this IDatasetsOperations operations, S
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Create dataset parameters
@@ -1386,7 +1488,7 @@ public static Datasets GetDatasetsInGroup(this IDatasetsOperations operations, S
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
public static DatasetToDataflowLinksResponse GetDatasetToDataflowsLinksInGroup(this IDatasetsOperations operations, System.Guid groupId)
{
@@ -1406,7 +1508,7 @@ public static DatasetToDataflowLinksResponse GetDatasetToDataflowsLinksInGroup(t
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The cancellation token.
@@ -1431,10 +1533,10 @@ public static DatasetToDataflowLinksResponse GetDatasetToDataflowsLinksInGroup(t
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
public static Dataset GetDatasetInGroup(this IDatasetsOperations operations, System.Guid groupId, string datasetId)
{
@@ -1453,10 +1555,10 @@ public static Dataset GetDatasetInGroup(this IDatasetsOperations operations, Sys
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -1481,10 +1583,10 @@ public static Dataset GetDatasetInGroup(this IDatasetsOperations operations, Sys
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
public static void DeleteDatasetInGroup(this IDatasetsOperations operations, System.Guid groupId, string datasetId)
{
@@ -1503,10 +1605,10 @@ public static void DeleteDatasetInGroup(this IDatasetsOperations operations, Sys
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -1530,10 +1632,10 @@ public static void DeleteDatasetInGroup(this IDatasetsOperations operations, Sys
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
public static Tables GetTablesInGroup(this IDatasetsOperations operations, System.Guid groupId, string datasetId)
{
@@ -1554,10 +1656,10 @@ public static Tables GetTablesInGroup(this IDatasetsOperations operations, Syste
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -1584,10 +1686,10 @@ public static Tables GetTablesInGroup(this IDatasetsOperations operations, Syste
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -1614,10 +1716,10 @@ public static Table PutTableInGroup(this IDatasetsOperations operations, System.
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -1652,10 +1754,10 @@ public static Table PutTableInGroup(this IDatasetsOperations operations, System.
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -1684,10 +1786,10 @@ public static void PostRowsInGroup(this IDatasetsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -1717,10 +1819,10 @@ public static void PostRowsInGroup(this IDatasetsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -1744,10 +1846,10 @@ public static void DeleteRowsInGroup(this IDatasetsOperations operations, System
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -1773,10 +1875,10 @@ public static void DeleteRowsInGroup(this IDatasetsOperations operations, System
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The requested number of entries in the refresh history. If not provided,
@@ -1800,10 +1902,10 @@ public static void DeleteRowsInGroup(this IDatasetsOperations operations, System
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The requested number of entries in the refresh history. If not provided,
@@ -1838,10 +1940,10 @@ public static void DeleteRowsInGroup(this IDatasetsOperations operations, System
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -1868,10 +1970,10 @@ public static void DeleteRowsInGroup(this IDatasetsOperations operations, System
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -1896,10 +1998,10 @@ public static void DeleteRowsInGroup(this IDatasetsOperations operations, System
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
public static RefreshSchedule GetRefreshScheduleInGroup(this IDatasetsOperations operations, System.Guid groupId, string datasetId)
{
@@ -1919,10 +2021,10 @@ public static RefreshSchedule GetRefreshScheduleInGroup(this IDatasetsOperations
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -1956,10 +2058,10 @@ public static RefreshSchedule GetRefreshScheduleInGroup(this IDatasetsOperations
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Update Refresh Schedule parameters, by specifying all or some of the
@@ -1991,10 +2093,10 @@ public static void UpdateRefreshScheduleInGroup(this IDatasetsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Update Refresh Schedule parameters, by specifying all or some of the
@@ -2021,10 +2123,10 @@ public static void UpdateRefreshScheduleInGroup(this IDatasetsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
public static DirectQueryRefreshSchedule GetDirectQueryRefreshScheduleInGroup(this IDatasetsOperations operations, System.Guid groupId, string datasetId)
{
@@ -2044,10 +2146,10 @@ public static DirectQueryRefreshSchedule GetDirectQueryRefreshScheduleInGroup(th
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -2078,10 +2180,10 @@ public static DirectQueryRefreshSchedule GetDirectQueryRefreshScheduleInGroup(th
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Patch DirectQuery or LiveConnection Refresh Schedule parameters, by
@@ -2110,10 +2212,10 @@ public static void UpdateDirectQueryRefreshScheduleInGroup(this IDatasetsOperati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Patch DirectQuery or LiveConnection Refresh Schedule parameters, by
@@ -2142,7 +2244,7 @@ public static void UpdateDirectQueryRefreshScheduleInGroup(this IDatasetsOperati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -2166,7 +2268,7 @@ public static MashupParameters GetParametersInGroup(this IDatasetsOperations ope
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -2218,7 +2320,7 @@ public static MashupParameters GetParametersInGroup(this IDatasetsOperations ope
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -2266,7 +2368,7 @@ public static void UpdateParametersInGroup(this IDatasetsOperations operations,
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -2293,7 +2395,7 @@ public static void UpdateParametersInGroup(this IDatasetsOperations operations,
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -2315,7 +2417,7 @@ public static Datasources GetDatasourcesInGroup(this IDatasetsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -2377,7 +2479,7 @@ public static Datasources GetDatasourcesInGroup(this IDatasetsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -2435,7 +2537,7 @@ public static void UpdateDatasourcesInGroup(this IDatasetsOperations operations,
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -2472,10 +2574,10 @@ public static void UpdateDatasourcesInGroup(this IDatasetsOperations operations,
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The body
@@ -2509,10 +2611,10 @@ public static void SetAllDatasetConnectionsInGroup(this IDatasetsOperations oper
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The body
@@ -2528,8 +2630,8 @@ public static void SetAllDatasetConnectionsInGroup(this IDatasetsOperations oper
///
/// Binds the specified dataset from the specified workspace to the specified
- /// gateway with (optional) given set of datasource Ids. This only supports the
- /// On-Premises Data Gateway.
+ /// gateway, optionally with a given set of datasource IDs. This only supports
+ /// the on-premises data gateway.
///
///
/// <br/>**Note:** API caller principal should be added as datasource
@@ -2542,10 +2644,10 @@ public static void SetAllDatasetConnectionsInGroup(this IDatasetsOperations oper
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The bind to gateway request
@@ -2557,8 +2659,8 @@ public static void BindToGatewayInGroup(this IDatasetsOperations operations, Sys
///
/// Binds the specified dataset from the specified workspace to the specified
- /// gateway with (optional) given set of datasource Ids. This only supports the
- /// On-Premises Data Gateway.
+ /// gateway, optionally with a given set of datasource IDs. This only supports
+ /// the on-premises data gateway.
///
///
/// <br/>**Note:** API caller principal should be added as datasource
@@ -2571,10 +2673,10 @@ public static void BindToGatewayInGroup(this IDatasetsOperations operations, Sys
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The bind to gateway request
@@ -2602,10 +2704,10 @@ public static void BindToGatewayInGroup(this IDatasetsOperations operations, Sys
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
public static GatewayDatasources GetGatewayDatasourcesInGroup(this IDatasetsOperations operations, System.Guid groupId, string datasetId)
{
@@ -2627,10 +2729,10 @@ public static GatewayDatasources GetGatewayDatasourcesInGroup(this IDatasetsOper
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -2658,10 +2760,10 @@ public static GatewayDatasources GetGatewayDatasourcesInGroup(this IDatasetsOper
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
public static Gateways DiscoverGatewaysInGroup(this IDatasetsOperations operations, System.Guid groupId, string datasetId)
{
@@ -2683,10 +2785,10 @@ public static Gateways DiscoverGatewaysInGroup(this IDatasetsOperations operatio
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -2712,10 +2814,10 @@ public static Gateways DiscoverGatewaysInGroup(this IDatasetsOperations operatio
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
public static void TakeOverInGroup(this IDatasetsOperations operations, System.Guid groupId, string datasetId)
{
@@ -2735,10 +2837,10 @@ public static void TakeOverInGroup(this IDatasetsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The cancellation token.
@@ -2771,10 +2873,10 @@ public static void TakeOverInGroup(this IDatasetsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Generate token parameters
@@ -2807,10 +2909,10 @@ public static EmbedToken GenerateTokenInGroup(this IDatasetsOperations operation
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Generate token parameters
@@ -2944,6 +3046,60 @@ public static Datasources GetDatasourcesAsAdmin(this IDatasetsOperations operati
}
}
+ ///
+ /// Returns a list of users that have access to the specified dataset
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API or
+ /// authenticate via service principal. <br/>This API allows 200 requests
+ /// per hour at maximum. <br/><br/>**Required scope**:
+ /// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
+ /// are supported. <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The dataset ID
+ ///
+ public static DatasetUsers GetDatasetUsersAsAdmin(this IDatasetsOperations operations, System.Guid datasetId)
+ {
+ return operations.GetDatasetUsersAsAdminAsync(datasetId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of users that have access to the specified dataset
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office 365
+ /// Global Administrator or Power BI Service Administrator) to call this API or
+ /// authenticate via service principal. <br/>This API allows 200 requests
+ /// per hour at maximum. <br/><br/>**Required scope**:
+ /// Tenant.Read.All or Tenant.ReadWrite.All. <br/>Delegated permissions
+ /// are supported. <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The dataset ID
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetDatasetUsersAsAdminAsync(this IDatasetsOperations operations, System.Guid datasetId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetDatasetUsersAsAdminWithHttpMessagesAsync(datasetId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Returns a list of datasets from the specified workspace.
///
@@ -2960,7 +3116,7 @@ public static Datasources GetDatasourcesAsAdmin(this IDatasetsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -2995,7 +3151,7 @@ public static Datasources GetDatasourcesAsAdmin(this IDatasetsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -3037,7 +3193,7 @@ public static Datasources GetDatasourcesAsAdmin(this IDatasetsOperations operati
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
public static DatasetToDataflowLinksResponse GetDatasetToDataflowsLinksInGroupAsAdmin(this IDatasetsOperations operations, System.Guid groupId)
{
@@ -3061,7 +3217,7 @@ public static DatasetToDataflowLinksResponse GetDatasetToDataflowsLinksInGroupAs
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The cancellation token.
diff --git a/sdk/PowerBI.Api/Source/GatewaysOperations.cs b/sdk/PowerBI.Api/Source/GatewaysOperations.cs
index dec754cc..137009f5 100644
--- a/sdk/PowerBI.Api/Source/GatewaysOperations.cs
+++ b/sdk/PowerBI.Api/Source/GatewaysOperations.cs
@@ -188,7 +188,9 @@ public GatewaysOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
/// Headers that will be added to request.
@@ -325,7 +327,9 @@ public GatewaysOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
/// Headers that will be added to request.
@@ -465,7 +469,9 @@ public GatewaysOperations(PowerBIClient client)
/// credentials](https://docs.microsoft.com/power-bi/developer/encrypt-credentials)</li>
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
/// The datasource requested to create
@@ -626,10 +632,12 @@ public GatewaysOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// Headers that will be added to request.
@@ -768,10 +776,12 @@ public GatewaysOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// Headers that will be added to request.
@@ -896,10 +906,12 @@ public GatewaysOperations(PowerBIClient client)
/// credentials](https://docs.microsoft.com/power-bi/developer/encrypt-credentials)</li>
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The update datasource request
@@ -1038,10 +1050,12 @@ public GatewaysOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// Headers that will be added to request.
@@ -1159,10 +1173,12 @@ public GatewaysOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// Headers that will be added to request.
@@ -1302,10 +1318,12 @@ public GatewaysOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The add user to datasource request
@@ -1447,13 +1465,15 @@ public GatewaysOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
- /// The user's email address or the service principal object id
+ /// The user's email address or the object ID of the service principal
///
///
/// Headers that will be added to request.
diff --git a/sdk/PowerBI.Api/Source/GatewaysOperationsExtensions.cs b/sdk/PowerBI.Api/Source/GatewaysOperationsExtensions.cs
index 0ac03f00..ff8a725b 100644
--- a/sdk/PowerBI.Api/Source/GatewaysOperationsExtensions.cs
+++ b/sdk/PowerBI.Api/Source/GatewaysOperationsExtensions.cs
@@ -68,7 +68,9 @@ public static Gateways GetGateways(this IGatewaysOperations operations)
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
public static Gateway GetGateway(this IGatewaysOperations operations, System.Guid gatewayId)
{
@@ -88,7 +90,9 @@ public static Gateway GetGateway(this IGatewaysOperations operations, System.Gui
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
/// The cancellation token.
@@ -114,7 +118,9 @@ public static Gateway GetGateway(this IGatewaysOperations operations, System.Gui
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
public static GatewayDatasources GetDatasources(this IGatewaysOperations operations, System.Guid gatewayId)
{
@@ -134,7 +140,9 @@ public static GatewayDatasources GetDatasources(this IGatewaysOperations operati
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
/// The cancellation token.
@@ -163,7 +171,9 @@ public static GatewayDatasources GetDatasources(this IGatewaysOperations operati
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
/// The datasource requested to create
@@ -189,7 +199,9 @@ public static GatewayDatasource CreateDatasource(this IGatewaysOperations operat
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
/// The datasource requested to create
@@ -218,10 +230,12 @@ public static GatewayDatasource CreateDatasource(this IGatewaysOperations operat
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
public static GatewayDatasource GetDatasource(this IGatewaysOperations operations, System.Guid gatewayId, System.Guid datasourceId)
{
@@ -241,10 +255,12 @@ public static GatewayDatasource GetDatasource(this IGatewaysOperations operation
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The cancellation token.
@@ -270,10 +286,12 @@ public static GatewayDatasource GetDatasource(this IGatewaysOperations operation
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
public static void DeleteDatasource(this IGatewaysOperations operations, System.Guid gatewayId, System.Guid datasourceId)
{
@@ -293,10 +311,12 @@ public static void DeleteDatasource(this IGatewaysOperations operations, System.
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The cancellation token.
@@ -326,10 +346,12 @@ public static void DeleteDatasource(this IGatewaysOperations operations, System.
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The update datasource request
@@ -359,10 +381,12 @@ public static void UpdateDatasource(this IGatewaysOperations operations, System.
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The update datasource request
@@ -389,10 +413,12 @@ public static void UpdateDatasource(this IGatewaysOperations operations, System.
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
public static void GetDatasourceStatus(this IGatewaysOperations operations, System.Guid gatewayId, System.Guid datasourceId)
{
@@ -413,10 +439,12 @@ public static void GetDatasourceStatus(this IGatewaysOperations operations, Syst
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The cancellation token.
@@ -439,10 +467,12 @@ public static void GetDatasourceStatus(this IGatewaysOperations operations, Syst
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
public static DatasourceUsers GetDatasourceUsers(this IGatewaysOperations operations, System.Guid gatewayId, System.Guid datasourceId)
{
@@ -462,10 +492,12 @@ public static DatasourceUsers GetDatasourceUsers(this IGatewaysOperations operat
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The cancellation token.
@@ -492,10 +524,12 @@ public static DatasourceUsers GetDatasourceUsers(this IGatewaysOperations operat
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The add user to datasource request
@@ -519,10 +553,12 @@ public static void AddDatasourceUser(this IGatewaysOperations operations, System
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The add user to datasource request
@@ -548,13 +584,15 @@ public static void AddDatasourceUser(this IGatewaysOperations operations, System
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
- /// The user's email address or the service principal object id
+ /// The user's email address or the object ID of the service principal
///
public static void DeleteDatasourceUser(this IGatewaysOperations operations, System.Guid gatewayId, System.Guid datasourceId, string emailAdress)
{
@@ -574,13 +612,15 @@ public static void DeleteDatasourceUser(this IGatewaysOperations operations, Sys
/// The operations group for this extension method.
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers to the
+ /// primary (first) gateway in the cluster. In such cases, gateway ID is
+ /// similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
- /// The user's email address or the service principal object id
+ /// The user's email address or the object ID of the service principal
///
///
/// The cancellation token.
diff --git a/sdk/PowerBI.Api/Source/GroupsOperations.cs b/sdk/PowerBI.Api/Source/GroupsOperations.cs
index 7c746eb9..2507a820 100644
--- a/sdk/PowerBI.Api/Source/GroupsOperations.cs
+++ b/sdk/PowerBI.Api/Source/GroupsOperations.cs
@@ -386,7 +386,7 @@ public GroupsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id to delete
+ /// The workspace ID to delete
///
///
/// Headers that will be added to request.
@@ -506,7 +506,7 @@ public GroupsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Headers that will be added to request.
@@ -646,7 +646,7 @@ public GroupsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -788,7 +788,7 @@ public GroupsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -927,10 +927,11 @@ public GroupsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The email address of the user or the service principal object id to delete
+ /// The email address of the user or object ID of the service principal to
+ /// delete
///
///
/// Headers that will be added to request.
@@ -1200,7 +1201,7 @@ public GroupsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Assign to capacity parameters
@@ -1474,7 +1475,7 @@ public GroupsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Headers that will be added to request.
@@ -1615,7 +1616,7 @@ public GroupsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Assign to Power BI dataflow storage account parameters
@@ -1940,7 +1941,7 @@ public GroupsOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The properties to update
@@ -2066,6 +2067,145 @@ public GroupsOperations(PowerBIClient client)
return _result;
}
+ ///
+ /// Returns a list of users that have access to the specified workspace
+ /// (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The workspace ID
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> GetGroupUsersAsAdminWithHttpMessagesAsync(System.Guid groupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("groupId", groupId);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "GetGroupUsersAsAdmin", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "v1.0/myorg/admin/groups/{groupId}/users").ToString();
+ _url = _url.Replace("{groupId}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(groupId, Client.SerializationSettings).Trim('"')));
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new HttpOperationException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ if (_httpResponse.Content != null) {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ }
+ else {
+ _responseContent = string.Empty;
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new HttpOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
///
/// Grants user permissions to the specified workspace.
///
@@ -2079,7 +2219,7 @@ public GroupsOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -2222,7 +2362,7 @@ public GroupsOperations(PowerBIClient client)
/// an app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The user principal name (UPN) of the user to remove (usually the user's
@@ -2358,7 +2498,7 @@ public GroupsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of the group restore request
diff --git a/sdk/PowerBI.Api/Source/GroupsOperationsExtensions.cs b/sdk/PowerBI.Api/Source/GroupsOperationsExtensions.cs
index 682025c4..540d5455 100644
--- a/sdk/PowerBI.Api/Source/GroupsOperationsExtensions.cs
+++ b/sdk/PowerBI.Api/Source/GroupsOperationsExtensions.cs
@@ -139,7 +139,7 @@ public static partial class GroupsOperationsExtensions
/// The operations group for this extension method.
///
///
- /// The workspace id to delete
+ /// The workspace ID to delete
///
public static void DeleteGroup(this IGroupsOperations operations, System.Guid groupId)
{
@@ -158,7 +158,7 @@ public static void DeleteGroup(this IGroupsOperations operations, System.Guid gr
/// The operations group for this extension method.
///
///
- /// The workspace id to delete
+ /// The workspace ID to delete
///
///
/// The cancellation token.
@@ -185,7 +185,7 @@ public static void DeleteGroup(this IGroupsOperations operations, System.Guid gr
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
public static GroupUsers GetGroupUsers(this IGroupsOperations operations, System.Guid groupId)
{
@@ -209,7 +209,7 @@ public static GroupUsers GetGroupUsers(this IGroupsOperations operations, System
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The cancellation token.
@@ -238,7 +238,7 @@ public static GroupUsers GetGroupUsers(this IGroupsOperations operations, System
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -264,7 +264,7 @@ public static void AddGroupUser(this IGroupsOperations operations, System.Guid g
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -292,7 +292,7 @@ public static void AddGroupUser(this IGroupsOperations operations, System.Guid g
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -317,7 +317,7 @@ public static void UpdateGroupUser(this IGroupsOperations operations, System.Gui
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -342,10 +342,11 @@ public static void UpdateGroupUser(this IGroupsOperations operations, System.Gui
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The email address of the user or the service principal object id to delete
+ /// The email address of the user or object ID of the service principal to
+ /// delete
///
public static void DeleteUserInGroup(this IGroupsOperations operations, System.Guid groupId, string user)
{
@@ -364,10 +365,11 @@ public static void DeleteUserInGroup(this IGroupsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The email address of the user or the service principal object id to delete
+ /// The email address of the user or object ID of the service principal to
+ /// delete
///
///
/// The cancellation token.
@@ -443,7 +445,7 @@ public static void AssignMyWorkspaceToCapacity(this IGroupsOperations operations
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Assign to capacity parameters
@@ -470,7 +472,7 @@ public static void AssignToCapacity(this IGroupsOperations operations, System.Gu
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Assign to capacity parameters
@@ -538,7 +540,7 @@ public static WorkspaceCapacityAssignmentStatus CapacityAssignmentStatusMyWorksp
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
public static WorkspaceCapacityAssignmentStatus CapacityAssignmentStatus(this IGroupsOperations operations, System.Guid groupId)
{
@@ -560,7 +562,7 @@ public static WorkspaceCapacityAssignmentStatus CapacityAssignmentStatus(this IG
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The cancellation token.
@@ -590,7 +592,7 @@ public static WorkspaceCapacityAssignmentStatus CapacityAssignmentStatus(this IG
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Assign to Power BI dataflow storage account parameters
@@ -617,7 +619,7 @@ public static void AssignToDataflowStorage(this IGroupsOperations operations, Sy
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Assign to Power BI dataflow storage account parameters
@@ -725,7 +727,7 @@ public static void AssignToDataflowStorage(this IGroupsOperations operations, Sy
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The properties to update
@@ -752,7 +754,7 @@ public static void UpdateGroupAsAdmin(this IGroupsOperations operations, System.
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The properties to update
@@ -765,6 +767,56 @@ public static void UpdateGroupAsAdmin(this IGroupsOperations operations, System.
(await operations.UpdateGroupAsAdminWithHttpMessagesAsync(groupId, groupProperties, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
+ ///
+ /// Returns a list of users that have access to the specified workspace
+ /// (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The workspace ID
+ ///
+ public static GroupUsers GetGroupUsersAsAdmin(this IGroupsOperations operations, System.Guid groupId)
+ {
+ return operations.GetGroupUsersAsAdminAsync(groupId).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// Returns a list of users that have access to the specified workspace
+ /// (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are supported.
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The workspace ID
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task GetGroupUsersAsAdminAsync(this IGroupsOperations operations, System.Guid groupId, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.GetGroupUsersAsAdminWithHttpMessagesAsync(groupId, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
///
/// Grants user permissions to the specified workspace.
///
@@ -781,7 +833,7 @@ public static void UpdateGroupAsAdmin(this IGroupsOperations operations, System.
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -807,7 +859,7 @@ public static void AddUserAsAdmin(this IGroupsOperations operations, System.Guid
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -836,7 +888,7 @@ public static void AddUserAsAdmin(this IGroupsOperations operations, System.Guid
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The user principal name (UPN) of the user to remove (usually the user's
@@ -863,7 +915,7 @@ public static void DeleteUserAsAdmin(this IGroupsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The user principal name (UPN) of the user to remove (usually the user's
@@ -894,7 +946,7 @@ public static void DeleteUserAsAdmin(this IGroupsOperations operations, System.G
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of the group restore request
@@ -921,7 +973,7 @@ public static void RestoreDeletedGroupAsAdmin(this IGroupsOperations operations,
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of the group restore request
diff --git a/sdk/PowerBI.Api/Source/IAdmin.cs b/sdk/PowerBI.Api/Source/IAdmin.cs
index 83c00410..fcd817b1 100644
--- a/sdk/PowerBI.Api/Source/IAdmin.cs
+++ b/sdk/PowerBI.Api/Source/IAdmin.cs
@@ -90,7 +90,7 @@ public partial interface IAdmin
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// Tenant key id
+ /// The tenant key ID
///
///
/// Tenant key information
@@ -153,7 +153,7 @@ public partial interface IAdmin
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// Patch capacity information
@@ -227,7 +227,7 @@ public partial interface IAdmin
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity id
+ /// The capacity ID
///
///
/// Returns only the first n results.
@@ -271,10 +271,10 @@ public partial interface IAdmin
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity id
+ /// The capacity ID
///
///
- /// The refreshable id
+ /// The refreshable ID
///
///
/// Expands related entities inline, receives a comma-separated list of
@@ -309,7 +309,8 @@ public partial interface IAdmin
/// Tenant.ReadWrite.All. <br/>Delegated permissions are
/// supported. <br/>To call this API, provide either a
/// continuation token or both a start and end date time. StartDateTime
- /// and EndDateTime must be in the same UTC day.
+ /// and EndDateTime must be in the same UTC day and should be wrapped
+ /// in ''.
///
///
/// Start date and time of the window for audit event results. Must be
diff --git a/sdk/PowerBI.Api/Source/IAppsOperations.cs b/sdk/PowerBI.Api/Source/IAppsOperations.cs
index 8d73cd23..122fc2a6 100644
--- a/sdk/PowerBI.Api/Source/IAppsOperations.cs
+++ b/sdk/PowerBI.Api/Source/IAppsOperations.cs
@@ -50,7 +50,7 @@ public partial interface IAppsOperations
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
/// The headers that will be added to request.
@@ -76,7 +76,7 @@ public partial interface IAppsOperations
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
/// The headers that will be added to request.
@@ -102,10 +102,10 @@ public partial interface IAppsOperations
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
@@ -131,7 +131,7 @@ public partial interface IAppsOperations
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
/// The headers that will be added to request.
@@ -157,10 +157,10 @@ public partial interface IAppsOperations
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The headers that will be added to request.
@@ -187,10 +187,10 @@ public partial interface IAppsOperations
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The headers that will be added to request.
@@ -219,13 +219,13 @@ public partial interface IAppsOperations
/// Service principal authentication is not supported.<br/>
///
///
- /// The app id
+ /// The app ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// The headers that will be added to request.
@@ -240,5 +240,62 @@ public partial interface IAppsOperations
/// Thrown when unable to deserialize the response
///
Task> GetTileWithHttpMessagesAsync(System.Guid appId, System.Guid dashboardId, System.Guid tileId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of apps in the orginization (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are
+ /// supported. <br/>To set the permissions scope, see [Register
+ /// an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ /// Query parameter $top is mandatory to access this API
+ ///
+ ///
+ /// The requested number of entries in the refresh history. If not
+ /// provided, the default is all available entries.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetAppsAsAdminWithHttpMessagesAsync(int top, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of users that have access to the specified app
+ /// (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are
+ /// supported. <br/>To set the permissions scope, see [Register
+ /// an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The app ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetAppUsersAsAdminWithHttpMessagesAsync(System.Guid appId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/PowerBI.Api/Source/ICapacitiesOperations.cs b/sdk/PowerBI.Api/Source/ICapacitiesOperations.cs
index dd6b596e..d6021a81 100644
--- a/sdk/PowerBI.Api/Source/ICapacitiesOperations.cs
+++ b/sdk/PowerBI.Api/Source/ICapacitiesOperations.cs
@@ -54,7 +54,7 @@ public partial interface ICapacitiesOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// The headers that will be added to request.
@@ -83,7 +83,7 @@ public partial interface ICapacitiesOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// The name of the workload
@@ -117,7 +117,7 @@ public partial interface ICapacitiesOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity Id
+ /// The capacity ID
///
///
/// The name of the workload
@@ -186,7 +186,7 @@ public partial interface ICapacitiesOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity id
+ /// The capacity ID
///
///
/// Returns only the first n results.
@@ -226,10 +226,10 @@ public partial interface ICapacitiesOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The capacity id
+ /// The capacity ID
///
///
- /// The refreshable id
+ /// The refreshable ID
///
///
/// Expands related entities inline, receives a comma-separated list of
@@ -252,7 +252,7 @@ public partial interface ICapacitiesOperations
///
Task> GetRefreshableForCapacityWithHttpMessagesAsync(System.Guid capacityId, string refreshableId, string expand = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Assigns the provided workspaces to the specified capacity.
+ /// Assigns the provided workspaces to the specified premium capacity.
///
///
/// **Note:** The user must have administrator rights (such as Office
@@ -305,5 +305,34 @@ public partial interface ICapacitiesOperations
/// Thrown when a required parameter is null
///
Task UnassignWorkspacesFromCapacityWithHttpMessagesAsync(UnassignWorkspacesCapacityRequest requestParameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of users that have access to the specified workspace
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office
+ /// 365 Global Administrator or Power BI Service Administrator) to call
+ /// this API. <br/><br/>**Required scope**: Tenant.Read.All
+ /// or Tenant.ReadWrite.All. <br/>Delegated permissions are
+ /// supported. <br/>To set the permissions scope, see [Register
+ /// an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The capacity ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetCapacityUsersAsAdminWithHttpMessagesAsync(System.Guid capacityId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/PowerBI.Api/Source/IDashboardsOperations.cs b/sdk/PowerBI.Api/Source/IDashboardsOperations.cs
index 817fe24a..baf9fab3 100644
--- a/sdk/PowerBI.Api/Source/IDashboardsOperations.cs
+++ b/sdk/PowerBI.Api/Source/IDashboardsOperations.cs
@@ -77,7 +77,7 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The headers that will be added to request.
@@ -105,7 +105,7 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The headers that will be added to request.
@@ -133,10 +133,10 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// The headers that will be added to request.
@@ -155,7 +155,7 @@ public partial interface IDashboardsOperations
/// Clones the specified tile from **"My Workspace"**.
///
///
- /// <br/>If target report id and target dataset are not
+ /// <br/>If target report ID and target dataset are not
/// specified, the following can occur:<li>When a tile clone is
/// performed within the same workspace, the report and dataset links
/// will be cloned from the source tile.</li><li>When
@@ -170,10 +170,10 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Clone tile parameters
@@ -204,7 +204,7 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The headers that will be added to request.
@@ -228,7 +228,7 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Add dashboard parameters
@@ -259,10 +259,10 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The headers that will be added to request.
@@ -290,10 +290,10 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The headers that will be added to request.
@@ -321,13 +321,13 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// The headers that will be added to request.
@@ -346,7 +346,7 @@ public partial interface IDashboardsOperations
/// Clones the specified tile from the specified workspace.
///
///
- /// <br/>If target report id and target dataset are missing, the
+ /// <br/>If target report ID and target dataset are missing, the
/// following can occur:<li>When a tile clone is performed within
/// the same workspace, the report and dataset links will be cloned
/// from the source tile.</li><li>If you are cloning a tile
@@ -361,13 +361,13 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Clone tile parameters
@@ -411,10 +411,10 @@ public partial interface IDashboardsOperations
/// document along with considerations and limitations section.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// Generate token parameters
@@ -450,7 +450,7 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -529,7 +529,7 @@ public partial interface IDashboardsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
/// The headers that will be added to request.
@@ -544,5 +544,36 @@ public partial interface IDashboardsOperations
/// Thrown when unable to deserialize the response
///
Task> GetTilesAsAdminWithHttpMessagesAsync(System.Guid dashboardId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of users that have access to the specified dashboard
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office
+ /// 365 Global Administrator or Power BI Service Administrator) to call
+ /// this API or authenticate via service principal. <br/>This API
+ /// allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are
+ /// supported. <br/>To set the permissions scope, see [Register
+ /// an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The dashboard ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetDashboardUsersAsAdminWithHttpMessagesAsync(System.Guid dashboardId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/PowerBI.Api/Source/IDataflowsOperations.cs b/sdk/PowerBI.Api/Source/IDataflowsOperations.cs
index c80c10a4..c97208ab 100644
--- a/sdk/PowerBI.Api/Source/IDataflowsOperations.cs
+++ b/sdk/PowerBI.Api/Source/IDataflowsOperations.cs
@@ -29,10 +29,10 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The headers that will be added to request.
@@ -57,10 +57,10 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The headers that will be added to request.
@@ -81,10 +81,10 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// Patch dataflow properties, capabilities and settings
@@ -113,10 +113,10 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
///
@@ -143,10 +143,10 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The headers that will be added to request.
@@ -171,7 +171,7 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The headers that will be added to request.
@@ -196,10 +196,10 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The headers that will be added to request.
@@ -224,10 +224,10 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The dataflow refresh schedule to create or update
@@ -255,10 +255,10 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The headers that will be added to request.
@@ -282,10 +282,10 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The transaction id
+ /// The transaction ID
///
///
/// The headers that will be added to request.
@@ -315,10 +315,10 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The headers that will be added to request.
@@ -348,7 +348,7 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -421,7 +421,7 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The headers that will be added to request.
@@ -450,7 +450,7 @@ public partial interface IDataflowsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataflow id
+ /// The dataflow ID
///
///
/// The headers that will be added to request.
@@ -465,5 +465,36 @@ public partial interface IDataflowsOperations
/// Thrown when unable to deserialize the response
///
Task> GetDataflowDatasourcesAsAdminWithHttpMessagesAsync(System.Guid dataflowId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of users that have access to the specified dataflow
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office
+ /// 365 Global Administrator or Power BI Service Administrator) to call
+ /// this API or authenticate via service principal. <br/>This API
+ /// allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are
+ /// supported. <br/>To set the permissions scope, see [Register
+ /// an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The dataflow ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetDataflowUsersAsAdminWithHttpMessagesAsync(System.Guid dataflowId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/PowerBI.Api/Source/IDatasetsOperations.cs b/sdk/PowerBI.Api/Source/IDatasetsOperations.cs
index 6a123dd6..fbf6772e 100644
--- a/sdk/PowerBI.Api/Source/IDatasetsOperations.cs
+++ b/sdk/PowerBI.Api/Source/IDatasetsOperations.cs
@@ -83,7 +83,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -110,7 +110,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -126,6 +126,66 @@ public partial interface IDatasetsOperations
///
Task DeleteDatasetWithHttpMessagesAsync(string datasetId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Executes DAX queries against the provided dataset. The dataset may
+ /// reside in **"My Workspace"** or any other [new
+ /// workspace](/power-bi/collaborate-share/service-new-workspaces) (V2
+ /// workspace).
+ ///
+ ///
+ /// <br/>**Required scope**: Dataset.ReadWrite.All or
+ /// Dataset.Read.All <br/>To set the permissions scope, see
+ /// [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ /// <h2>Restrictions</h2><ul><li>This operation
+ /// is only supported for datasets in a [new
+ /// workspace](/power-bi/collaborate-share/service-new-workspaces) (V2
+ /// workspace)</li><li>The user issuing the request needs
+ /// to have [Build permissions for the
+ /// dataset](power-bi/connect-data/service-datasets-build-permissions).</li><li>The
+ /// [Allow XMLA endpoints and Analyze in Excel with on-premises
+ /// datasets](power-bi/admin/service-premium-connect-tools) tenant
+ /// setting needs to be enabled.</li><li>Datasets hosted in
+ /// AsAzure or live connected to an on premise Analysis Services model
+ /// are not supported.</li><li>Only one query returning one
+ /// table of maximum 100k rows is allowed. Specifying more than one
+ /// query will return an
+ /// error.</li></ul><h2>Notes</h2><ul><li>Issuing
+ /// a query that returns more than one table or more than 100k rows
+ /// will return limited data and an error in the response. The response
+ /// HTTP status will be OK (200).</li><li>DAX query
+ /// failures will be returned with a failure HTTP status
+ /// (400).</li><li>Columns that are fully qualified in the
+ /// query will be returned with the fully qualified name, for example,
+ /// Table[Column]. Columns that are renamed or created in the query
+ /// will be returned within square bracket, for example,
+ /// [MyNewColumn].</li><li>The following errors may be
+ /// contained in the response: DAX query failures, more than one result
+ /// table in a query, more than 100k rows in a query
+ /// result.</li></ul>
+ ///
+ ///
+ /// The dataset ID
+ ///
+ ///
+ /// The request message
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ExecuteQueriesWithHttpMessagesAsync(string datasetId, DatasetExecuteQueriesRequest requestMessage, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Returns a list of tables tables within the specified dataset from
/// **"My Workspace"**.
///
@@ -137,7 +197,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -166,7 +226,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -203,7 +263,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -235,7 +295,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -264,7 +324,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The requested number of entries in the refresh history. If not
@@ -303,7 +363,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -331,7 +391,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -368,7 +428,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Update Refresh Schedule parameters, by specifying all or some of
@@ -398,7 +458,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -432,7 +492,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Patch DirectQuery or LiveConnection Refresh Schedule parameters, by
@@ -463,7 +523,7 @@ public partial interface IDatasetsOperations
/// are not supported.<br/>
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -517,7 +577,7 @@ public partial interface IDatasetsOperations
/// 'Binary' cannot be set.</li></ul>
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -545,7 +605,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -612,7 +672,7 @@ public partial interface IDatasetsOperations
/// Parameters](https://docs.microsoft.com/rest/api/power-bi/datasets/updateparameters).</li></ul>
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -653,7 +713,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The body
@@ -674,8 +734,8 @@ public partial interface IDatasetsOperations
Task SetAllDatasetConnectionsWithHttpMessagesAsync(string datasetId, ConnectionDetails parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Binds the specified dataset from **"My Workspace"** to the
- /// specified gateway with (optional) given set of datasource Ids. This
- /// only supports the On-Premises Data Gateway.
+ /// specified gateway, optionally with a given set of datasource IDs.
+ /// This only supports the on-premises data gateway.
///
///
/// <br/>**Note:** API caller principal should be added as
@@ -685,7 +745,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The bind to gateway request
@@ -716,7 +776,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -747,7 +807,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -775,7 +835,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The headers that will be added to request.
@@ -801,7 +861,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Create dataset parameters
@@ -837,7 +897,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The headers that will be added to request.
@@ -862,10 +922,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -892,10 +952,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -922,10 +982,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -954,10 +1014,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -994,10 +1054,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -1029,10 +1089,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The table name
@@ -1061,10 +1121,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The requested number of entries in the refresh history. If not
@@ -1103,10 +1163,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
///
@@ -1134,10 +1194,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -1174,10 +1234,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Update Refresh Schedule parameters, by specifying all or some of
@@ -1207,10 +1267,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -1244,10 +1304,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Patch DirectQuery or LiveConnection Refresh Schedule parameters, by
@@ -1278,7 +1338,7 @@ public partial interface IDatasetsOperations
/// are not supported.<br/>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -1333,7 +1393,7 @@ public partial interface IDatasetsOperations
/// 'Binary' cannot be set.</li></ul>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -1363,7 +1423,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -1431,7 +1491,7 @@ public partial interface IDatasetsOperations
/// Group](https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updateparametersingroup).</li></ul>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -1474,10 +1534,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The body
@@ -1498,8 +1558,8 @@ public partial interface IDatasetsOperations
Task SetAllDatasetConnectionsInGroupWithHttpMessagesAsync(System.Guid groupId, string datasetId, ConnectionDetails parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Binds the specified dataset from the specified workspace to the
- /// specified gateway with (optional) given set of datasource Ids. This
- /// only supports the On-Premises Data Gateway.
+ /// specified gateway, optionally with a given set of datasource IDs.
+ /// This only supports the on-premises data gateway.
///
///
/// <br/>**Note:** API caller principal should be added as
@@ -1509,10 +1569,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The bind to gateway request
@@ -1543,10 +1603,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -1577,10 +1637,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -1608,10 +1668,10 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// The headers that will be added to request.
@@ -1648,10 +1708,10 @@ public partial interface IDatasetsOperations
/// document along with considerations and limitations section.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dataset id
+ /// The dataset ID
///
///
/// Generate token parameters
@@ -1741,6 +1801,37 @@ public partial interface IDatasetsOperations
///
Task> GetDatasourcesAsAdminWithHttpMessagesAsync(string datasetId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Returns a list of users that have access to the specified dataset
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office
+ /// 365 Global Administrator or Power BI Service Administrator) to call
+ /// this API or authenticate via service principal. <br/>This API
+ /// allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are
+ /// supported. <br/>To set the permissions scope, see [Register
+ /// an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The dataset ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetDatasetUsersAsAdminWithHttpMessagesAsync(System.Guid datasetId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Returns a list of datasets from the specified workspace.
///
///
@@ -1755,7 +1846,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -1798,7 +1889,7 @@ public partial interface IDatasetsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The headers that will be added to request.
diff --git a/sdk/PowerBI.Api/Source/IGatewaysOperations.cs b/sdk/PowerBI.Api/Source/IGatewaysOperations.cs
index 372ee70a..8ac7bfa7 100644
--- a/sdk/PowerBI.Api/Source/IGatewaysOperations.cs
+++ b/sdk/PowerBI.Api/Source/IGatewaysOperations.cs
@@ -52,7 +52,9 @@ public partial interface IGatewaysOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers
+ /// to the primary (first) gateway in the cluster. In such cases,
+ /// gateway ID is similar to gateway cluster ID.
///
///
/// The headers that will be added to request.
@@ -78,7 +80,9 @@ public partial interface IGatewaysOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers
+ /// to the primary (first) gateway in the cluster. In such cases,
+ /// gateway ID is similar to gateway cluster ID.
///
///
/// The headers that will be added to request.
@@ -106,7 +110,9 @@ public partial interface IGatewaysOperations
/// credentials](https://docs.microsoft.com/power-bi/developer/encrypt-credentials)</li>
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers
+ /// to the primary (first) gateway in the cluster. In such cases,
+ /// gateway ID is similar to gateway cluster ID.
///
///
/// The datasource requested to create
@@ -138,10 +144,12 @@ public partial interface IGatewaysOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers
+ /// to the primary (first) gateway in the cluster. In such cases,
+ /// gateway ID is similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The headers that will be added to request.
@@ -167,10 +175,12 @@ public partial interface IGatewaysOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers
+ /// to the primary (first) gateway in the cluster. In such cases,
+ /// gateway ID is similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The headers that will be added to request.
@@ -199,10 +209,12 @@ public partial interface IGatewaysOperations
/// credentials](https://docs.microsoft.com/power-bi/developer/encrypt-credentials)</li>
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers
+ /// to the primary (first) gateway in the cluster. In such cases,
+ /// gateway ID is similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The update datasource request
@@ -232,10 +244,12 @@ public partial interface IGatewaysOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers
+ /// to the primary (first) gateway in the cluster. In such cases,
+ /// gateway ID is similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The headers that will be added to request.
@@ -259,10 +273,12 @@ public partial interface IGatewaysOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers
+ /// to the primary (first) gateway in the cluster. In such cases,
+ /// gateway ID is similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The headers that will be added to request.
@@ -289,10 +305,12 @@ public partial interface IGatewaysOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers
+ /// to the primary (first) gateway in the cluster. In such cases,
+ /// gateway ID is similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
/// The add user to datasource request
@@ -321,13 +339,15 @@ public partial interface IGatewaysOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The gateway id
+ /// The gateway ID. When using a gateway cluster, the gateway ID refers
+ /// to the primary (first) gateway in the cluster. In such cases,
+ /// gateway ID is similar to gateway cluster ID.
///
///
- /// The datasource id
+ /// The datasource ID
///
///
- /// The user's email address or the service principal object id
+ /// The user's email address or the object ID of the service principal
///
///
/// The headers that will be added to request.
diff --git a/sdk/PowerBI.Api/Source/IGroupsOperations.cs b/sdk/PowerBI.Api/Source/IGroupsOperations.cs
index 4a39ba55..ae02bfe8 100644
--- a/sdk/PowerBI.Api/Source/IGroupsOperations.cs
+++ b/sdk/PowerBI.Api/Source/IGroupsOperations.cs
@@ -92,7 +92,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id to delete
+ /// The workspace ID to delete
///
///
/// The headers that will be added to request.
@@ -120,7 +120,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The headers that will be added to request.
@@ -149,7 +149,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -179,7 +179,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -207,11 +207,11 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The email address of the user or the service principal object id to
- /// delete
+ /// The email address of the user or object ID of the service principal
+ /// to delete
///
///
/// The headers that will be added to request.
@@ -268,7 +268,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Assign to capacity parameters
@@ -321,7 +321,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The headers that will be added to request.
@@ -352,7 +352,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Assign to Power BI dataflow storage account parameters
@@ -429,7 +429,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The properties to update
@@ -448,6 +448,34 @@ public partial interface IGroupsOperations
///
Task UpdateGroupAsAdminWithHttpMessagesAsync(System.Guid groupId, Group groupProperties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Returns a list of users that have access to the specified workspace
+ /// (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are
+ /// supported. <br/>To set the permissions scope, see [Register
+ /// an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The workspace ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetGroupUsersAsAdminWithHttpMessagesAsync(System.Guid groupId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Grants user permissions to the specified workspace.
///
///
@@ -462,7 +490,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of user access right
@@ -495,7 +523,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The user principal name (UPN) of the user to remove (usually the
@@ -529,7 +557,7 @@ public partial interface IGroupsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Details of the group restore request
diff --git a/sdk/PowerBI.Api/Source/IImportsOperations.cs b/sdk/PowerBI.Api/Source/IImportsOperations.cs
index 8e3b0ed7..8190e193 100644
--- a/sdk/PowerBI.Api/Source/IImportsOperations.cs
+++ b/sdk/PowerBI.Api/Source/IImportsOperations.cs
@@ -85,6 +85,14 @@ public partial interface IImportsOperations
/// Determines whether to skip report import, if specified value must
/// be 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during
+ /// republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during
+ /// republish of PBIX file, service default value is true.
+ ///
///
/// The headers that will be added to request.
///
@@ -100,7 +108,7 @@ public partial interface IImportsOperations
///
/// Thrown when a required parameter is null
///
- Task> PostImportWithHttpMessagesAsync(string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> PostImportWithHttpMessagesAsync(string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Returns the specified import from **"My Workspace"**.
///
@@ -111,7 +119,7 @@ public partial interface IImportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The import id
+ /// The import ID
///
///
/// The headers that will be added to request.
@@ -167,7 +175,7 @@ public partial interface IImportsOperations
/// .pbix file from OneDrive is not supported.</li>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The headers that will be added to request.
@@ -212,7 +220,7 @@ public partial interface IImportsOperations
/// import is not supported for dataflows with service principal.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The display name of the dataset should include file extension. Not
@@ -235,6 +243,14 @@ public partial interface IImportsOperations
/// Determines whether to skip report import, if specified value must
/// be 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during
+ /// republish of PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during
+ /// republish of PBIX file, service default value is true.
+ ///
///
/// The headers that will be added to request.
///
@@ -250,7 +266,7 @@ public partial interface IImportsOperations
///
/// Thrown when a required parameter is null
///
- Task> PostImportInGroupWithHttpMessagesAsync(System.Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> PostImportInGroupWithHttpMessagesAsync(System.Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Returns the specified import from the specified workspace.
///
@@ -261,10 +277,10 @@ public partial interface IImportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The import id
+ /// The import ID
///
///
/// The headers that will be added to request.
@@ -297,7 +313,7 @@ public partial interface IImportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The headers that will be added to request.
diff --git a/sdk/PowerBI.Api/Source/IInformationProtection.cs b/sdk/PowerBI.Api/Source/IInformationProtection.cs
index 55095895..b1493400 100644
--- a/sdk/PowerBI.Api/Source/IInformationProtection.cs
+++ b/sdk/PowerBI.Api/Source/IInformationProtection.cs
@@ -29,9 +29,12 @@ public partial interface IInformationProtection
/// labels.<br/>This API allows a maximum of 25 requests per
/// hour. Each request can update up to 2000 artifacts.
/// <br/><br/>**Required scope**: Tenant.ReadWrite.All
+ /// <br/><br/>**Usage sample**: [Set or remove sensitivity
+ /// labels using Power BI REST admin
+ /// APIs](https://docs.microsoft.com/power-bi/admin/service-security-sensitivity-label-inheritance-set-remove-api)
///
///
- /// Composite of artifact Id lists per Type.
+ /// A composite of artifact ID lists for each type
///
///
/// The headers that will be added to request.
@@ -65,6 +68,9 @@ public partial interface IInformationProtection
/// labels.<br/>This API allows a maximum of 25 requests per
/// hour. Each request can update up to 2000 artifacts.
/// <br/><br/>**Required scope**: Tenant.ReadWrite.All
+ /// <br/><br/>**Usage sample**: [Set or remove sensitivity
+ /// labels using Power BI REST admin
+ /// APIs](https://docs.microsoft.com/power-bi/admin/service-security-sensitivity-label-inheritance-set-remove-api)
///
///
/// Set label details.
diff --git a/sdk/PowerBI.Api/Source/IPipelinesOperations.cs b/sdk/PowerBI.Api/Source/IPipelinesOperations.cs
new file mode 100644
index 00000000..9c4f2141
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/IPipelinesOperations.cs
@@ -0,0 +1,364 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api
+{
+ using Microsoft.Rest;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// PipelinesOperations operations.
+ ///
+ public partial interface IPipelinesOperations
+ {
+ ///
+ /// Returns a list of deployment pipelines the user has access to.
+ ///
+ ///
+ /// <br/>**Required scope**: Pipeline.Read.All or
+ /// Pipeline.ReadWrite.All <br/>To set the permissions scope, see
+ /// [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetPipelinesWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns the specified deployment pipeline.
+ ///
+ ///
+ /// <br/>**Required scope**: Pipeline.ReadWrite.All or
+ /// Pipeline.Read.All <br/>To set the permissions scope, see
+ /// [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The deployment pipeline ID
+ ///
+ ///
+ /// Expands related entities inline, receives a comma-separated list of
+ /// data types. Supported: stages
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetPipelineWithHttpMessagesAsync(System.Guid pipelineId, string expand = "stages", Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns the supported items from the workspace assigned to the
+ /// specified deployment pipeline stage. To learn more about items that
+ /// are not supported in deployment pipelines, see [unsupported
+ /// items](https://docs.microsoft.com/power-bi/create-reports/deployment-pipelines-process#unsupported-items)
+ ///
+ ///
+ /// **Note**: To perform this operation, the user must be at least a
+ /// contributor on the workspace assigned to the specified stage. For
+ /// more information, see
+ /// [permissions]([https://docs.microsoft.com/power-bi/create-reports/deployment-pipelines-process#permissions)
+ /// <br/><br/>**Required scope**: Pipeline.ReadWrite.All or
+ /// Pipeline.Read.All <br/>To set the permissions scope, see
+ /// [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The deployment pipeline ID
+ ///
+ ///
+ /// The deployment pipeline stage order. Development (0), Test (1),
+ /// Production (2).
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetPipelineStageArtifactsWithHttpMessagesAsync(System.Guid pipelineId, int stageOrder, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of up to 20 last deploy operations performed on the
+ /// specified deployment pipeline.
+ ///
+ ///
+ /// <br/>**Required scope**: Pipeline.ReadWrite.All or
+ /// Pipeline.Read.All <br/>To set the permissions scope, see
+ /// [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The deployment pipeline ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetPipelineOperationsWithHttpMessagesAsync(System.Guid pipelineId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns the details of the specified deploy operation performed on
+ /// the specified deployment pipeline including the `executionPlan`.
+ /// Use to track the status of the deploy operation.
+ ///
+ ///
+ /// <br/>**Required scope**: Pipeline.ReadWrite.All or
+ /// Pipeline.Read.All <br/>To set the permissions scope, see
+ /// [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The deployment pipeline ID
+ ///
+ ///
+ /// The operation ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetPipelineOperationWithHttpMessagesAsync(System.Guid pipelineId, System.Guid operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deploy all supported items from the specified deployment pipeline
+ /// source stage. To learn more about items that are not supported in
+ /// deployment pipelines, see [unsupported
+ /// items](https://docs.microsoft.com/power-bi/create-reports/deployment-pipelines-process#unsupported-items)
+ ///
+ ///
+ /// <br/>**Note**: To perform this operation, the user must be at
+ /// least a member on both workpsaces. For more information, see
+ /// [permissions]([https://docs.microsoft.com/power-bi/create-reports/deployment-pipelines-process#permissions)
+ /// <br/><br/>**Required scope**: Pipeline.Deploy
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).<br/><h4>Limitations</h4><ul><li>You
+ /// can deploy up to 300 items per request</li></ul>
+ ///
+ ///
+ /// The deployment pipeline ID
+ ///
+ ///
+ /// The deploy request
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> DeployAllWithHttpMessagesAsync(System.Guid pipelineId, DeployAllRequest deployRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deploy the specified items from the specified deployment pipeline
+ /// source stage.
+ ///
+ ///
+ /// **Note**: To perform this operation, the user must be at least a
+ /// member on both workpsaces. For more information, see
+ /// [permissions]([https://docs.microsoft.com/power-bi/create-reports/deployment-pipelines-process#permissions)
+ /// <br/><br/>**Required scope**: Pipeline.Deploy
+ /// <br/>To set the permissions scope, see [Register an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).<br/><h4>Limitations</h4><ul><li>You
+ /// can deploy up to 300 items per request</li></ul>
+ ///
+ ///
+ /// The deployment pipeline ID
+ ///
+ ///
+ /// The selective deploy request
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> SelectiveDeployWithHttpMessagesAsync(System.Guid pipelineId, SelectiveDeployRequest deployRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of deployment pipelines for the organization.
+ ///
+ ///
+ /// **Note:** To call this API the user must have administrator rights.
+ /// Alternatively, authenticate using a service principal.
+ /// <br/>This API allows a maximum of 200 requests per hour.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All.
+ ///
+ ///
+ /// Expands related entities inline, receives a comma-separated list of
+ /// data types. Supported: users, stages.
+ ///
+ ///
+ /// Filters the results based on a boolean condition.
+ ///
+ ///
+ /// Returns only the first n results. This parameter must be in the
+ /// range of 1-5000.
+ ///
+ ///
+ /// Skips the first n results. Use with top to fetch results beyond the
+ /// first 5000.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetPipelinesAsAdminWithHttpMessagesAsync(string expand = default(string), string filter = default(string), int? top = default(int?), int? skip = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of users that have access to a specified deployment
+ /// pipeline.
+ ///
+ ///
+ /// **Note:** To call this API the user must have administrator rights.
+ /// Alternatively, authenticate using a service principal.
+ /// <br/>This API allows a maximum of 200 requests per hour.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All.
+ ///
+ ///
+ /// The deployment pipeline ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetPipelineUsersAsAdminWithHttpMessagesAsync(System.Guid pipelineId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Grants user permissions to a specified deployment pipeline.
+ ///
+ ///
+ /// **Note:** To call this API the user must have administrator rights.
+ /// <br/>This API allows a maximum of 200 requests per hour.
+ /// <br/><br/>**Required scope**:
+ /// Tenant.ReadWrite.All.<br/><br/>**Limitations:** This
+ /// API doesn't support service principals. You cannot update service
+ /// principal's permissions.
+ ///
+ ///
+ /// The deployment pipeline ID
+ ///
+ ///
+ /// Details of user access right
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task UpdateUserAsAdminWithHttpMessagesAsync(System.Guid pipelineId, PipelineUser userDetails, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Remove user permissions from a specified deployment pipeline.
+ ///
+ ///
+ /// **Note:** To call this API the user must have administrator rights.
+ /// <br/>This API allows a maximum of 200 requests per hour.
+ /// <br/><br/>**Required scope**:
+ /// Tenant.ReadWrite.All.<br/><br/>**Limitations:** This
+ /// API doesn't support service principals. You cannot delete service
+ /// principal's permissions.
+ ///
+ ///
+ /// The deployment pipeline ID
+ ///
+ ///
+ /// For Principal type 'User' provide UPN , otherwise provide [Object
+ /// ID](/power-bi/developer/embedded/embedded-troubleshoot#what-is-the-difference-between-application-object-id-and-principal-object-id)
+ /// of the principal
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteUserAsAdminWithHttpMessagesAsync(System.Guid pipelineId, string identifier, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/IPowerBIClient.cs b/sdk/PowerBI.Api/Source/IPowerBIClient.cs
index 881ab8f2..03f1a54f 100644
--- a/sdk/PowerBI.Api/Source/IPowerBIClient.cs
+++ b/sdk/PowerBI.Api/Source/IPowerBIClient.cs
@@ -96,6 +96,11 @@ public partial interface IPowerBIClient : System.IDisposable
///
IAvailableFeaturesOperations AvailableFeatures { get; }
+ ///
+ /// Gets the IPipelinesOperations.
+ ///
+ IPipelinesOperations Pipelines { get; }
+
///
/// Gets the IDataflowStorageAccountsOperations.
///
diff --git a/sdk/PowerBI.Api/Source/IReportsOperations.cs b/sdk/PowerBI.Api/Source/IReportsOperations.cs
index b33a49a2..82477aeb 100644
--- a/sdk/PowerBI.Api/Source/IReportsOperations.cs
+++ b/sdk/PowerBI.Api/Source/IReportsOperations.cs
@@ -54,7 +54,7 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
@@ -78,7 +78,7 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
@@ -107,7 +107,7 @@ public partial interface IReportsOperations
/// Target dataset (if provided) - Build permissions.
///
///
- /// The report id
+ /// The report ID
///
///
/// Clone report parameters
@@ -133,8 +133,11 @@ public partial interface IReportsOperations
/// file.
///
///
- /// <br/>**Required scope**: Report.ReadWrite.All or
- /// Report.Read.All <br/>To set the permissions scope, see
+ /// <br/>**Note**: As a [workaround for fixing timeout
+ /// issues](/power-bi/developer/embedded/embedded-troubleshoot#how-to-fix-timeout-exceptions-when-using-import-and-export-apis),
+ /// you can set `preferClientRouting` to
+ /// true.<br/><br/>**Required scope**: Report.ReadWrite.All
+ /// or Report.Read.All <br/>To set the permissions scope, see
/// [Register an
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
/// <h2>Restrictions</h2>Export of a report with [Power BI
@@ -145,7 +148,7 @@ public partial interface IReportsOperations
/// supported.<br/>
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
@@ -170,7 +173,7 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The report id
+ /// The report ID
///
///
/// UpdateReportContent parameters
@@ -208,7 +211,7 @@ public partial interface IReportsOperations
/// Target dataset - Build permissions.
///
///
- /// The report id
+ /// The report ID
///
///
/// Rebind report parameters
@@ -237,7 +240,7 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
@@ -263,7 +266,7 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The report id
+ /// The report ID
///
///
/// The page name
@@ -295,7 +298,7 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
@@ -326,7 +329,7 @@ public partial interface IReportsOperations
/// not supported</li></ul>
///
///
- /// The report id
+ /// The report ID
///
///
///
@@ -357,7 +360,7 @@ public partial interface IReportsOperations
/// Premium Per User (PPU) is not supported.
///
///
- /// The report id
+ /// The report ID
///
///
/// Export to file request parameters
@@ -389,10 +392,10 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The report id
+ /// The report ID
///
///
- /// The export id
+ /// The export ID
///
///
/// The headers that will be added to request.
@@ -421,10 +424,10 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The report id
+ /// The report ID
///
///
- /// The export id
+ /// The export ID
///
///
/// The headers that will be added to request.
@@ -455,7 +458,7 @@ public partial interface IReportsOperations
/// displayed.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The headers that will be added to request.
@@ -480,10 +483,10 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
@@ -507,10 +510,10 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
@@ -538,10 +541,10 @@ public partial interface IReportsOperations
/// Target dataset (if provided) - Build permissions
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// Clone report parameters
@@ -567,8 +570,11 @@ public partial interface IReportsOperations
/// .pbix file.
///
///
- /// <br/>**Required scope**: Report.ReadWrite.All or
- /// Report.Read.All <br/>To set the permissions scope, see
+ /// <br/>**Note**: As a [workaround for fixing timeout
+ /// issues](/power-bi/developer/embedded/embedded-troubleshoot#how-to-fix-timeout-exceptions-when-using-import-and-export-apis),
+ /// you can set `preferClientRouting` to
+ /// true.<br/><br/>**Required scope**: Report.ReadWrite.All
+ /// or Report.Read.All <br/>To set the permissions scope, see
/// [Register an
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
/// <h2>Restrictions</h2>Export of a report with [Power BI
@@ -579,10 +585,10 @@ public partial interface IReportsOperations
/// supported.<br/>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
@@ -607,10 +613,10 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// UpdateReportContent parameters
@@ -648,10 +654,10 @@ public partial interface IReportsOperations
/// Target dataset - Build permissions
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// Rebind report parameters
@@ -680,10 +686,10 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
@@ -709,10 +715,10 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// The page name
@@ -744,7 +750,7 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
///
@@ -777,10 +783,10 @@ public partial interface IReportsOperations
/// not supported</li></ul>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
///
@@ -811,10 +817,10 @@ public partial interface IReportsOperations
/// Premium Per User (PPU) is not supported.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// Export to file request parameters
@@ -846,13 +852,13 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
- /// The export id
+ /// The export ID
///
///
/// The headers that will be added to request.
@@ -881,13 +887,13 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
- /// The export id
+ /// The export ID
///
///
/// The headers that will be added to request.
@@ -931,7 +937,7 @@ public partial interface IReportsOperations
/// [Rebind](/rest/api/power-bi/reports/RebindReport).<br/>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Generate token parameters
@@ -980,10 +986,10 @@ public partial interface IReportsOperations
/// [Rebind](/rest/api/power-bi/reports/RebindReport).<br/>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// Generate token parameters
@@ -1019,7 +1025,7 @@ public partial interface IReportsOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Filters the results, based on a boolean condition
@@ -1080,6 +1086,37 @@ public partial interface IReportsOperations
///
Task> GetReportsAsAdminWithHttpMessagesAsync(string filter = default(string), int? top = default(int?), int? skip = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Returns a list of users that have access to the specified report
+ /// (Preview).
+ ///
+ ///
+ /// **Note:** The user must have administrator rights (such as Office
+ /// 365 Global Administrator or Power BI Service Administrator) to call
+ /// this API or authenticate via service principal. <br/>This API
+ /// allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are
+ /// supported. <br/>To set the permissions scope, see [Register
+ /// an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The report ID
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetReportUsersAsAdminWithHttpMessagesAsync(System.Guid reportId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Transfers ownership over the specified paginated report datasources
/// to the current authorized user.
///
@@ -1090,10 +1127,10 @@ public partial interface IReportsOperations
/// report datasources supports only paginated reports</li>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The report id
+ /// The report ID
///
///
/// The headers that will be added to request.
diff --git a/sdk/PowerBI.Api/Source/ITilesOperations.cs b/sdk/PowerBI.Api/Source/ITilesOperations.cs
index a4570c0d..95e4af4c 100644
--- a/sdk/PowerBI.Api/Source/ITilesOperations.cs
+++ b/sdk/PowerBI.Api/Source/ITilesOperations.cs
@@ -40,13 +40,13 @@ public partial interface ITilesOperations
/// document along with considerations and limitations section.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The dashboard id
+ /// The dashboard ID
///
///
- /// The tile id
+ /// The tile ID
///
///
/// Generate token parameters
diff --git a/sdk/PowerBI.Api/Source/IUsers.cs b/sdk/PowerBI.Api/Source/IUsers.cs
index 86da8395..a1f42750 100644
--- a/sdk/PowerBI.Api/Source/IUsers.cs
+++ b/sdk/PowerBI.Api/Source/IUsers.cs
@@ -47,5 +47,36 @@ public partial interface IUsers
/// Thrown when the operation returned an invalid status code
///
Task RefreshUserPermissionsWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Returns a list of artifacts that the given user have access to
+ /// (Preview).
+ ///
+ ///
+ /// This API allows 200 requests per hour at maximum.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
+ /// Tenant.ReadWrite.All. <br/>Delegated permissions are
+ /// supported. <br/>To set the permissions scope, see [Register
+ /// an
+ /// app](https://docs.microsoft.com/power-bi/developer/register-app).
+ ///
+ ///
+ /// The graph ID of user
+ ///
+ ///
+ /// Token required to get the next chunk of the result set
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ Task> GetUserArtifactAccessAsAdminWithHttpMessagesAsync(System.Guid userGraphId, string continuationToken = default(string), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/PowerBI.Api/Source/IWorkspaceInfoOperations.cs b/sdk/PowerBI.Api/Source/IWorkspaceInfoOperations.cs
index 1f2cff78..e897e2ec 100644
--- a/sdk/PowerBI.Api/Source/IWorkspaceInfoOperations.cs
+++ b/sdk/PowerBI.Api/Source/IWorkspaceInfoOperations.cs
@@ -27,7 +27,8 @@ public partial interface IWorkspaceInfoOperations
/// Microsoft 365 Global Administrator or Power BI Service
/// Administrator) to call this API or authenticate via service
/// principal. <br/>This API allows a maximum of 500 requests per
- /// hour. <br/><br/>**Required scope**: Tenant.Read.All or
+ /// hour, and not more than 16 simultaneously.
+ /// <br/><br/>**Required scope**: Tenant.Read.All or
/// Tenant.ReadWrite.All<br/>To set the permissions scope, see
/// [Register an
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
@@ -42,6 +43,16 @@ public partial interface IWorkspaceInfoOperations
///
/// Whether to return datasource details
///
+ ///
+ /// Whether to return dataset schema (Tables, Columns and Measures)
+ ///
+ ///
+ /// Whether to return dataset expressions (Dax query and Mashup)
+ ///
+ ///
+ /// Whether to return artifact user details (Preview) (Permission
+ /// level)
+ ///
///
/// The headers that will be added to request.
///
@@ -57,7 +68,7 @@ public partial interface IWorkspaceInfoOperations
///
/// Thrown when a required parameter is null
///
- Task> PostWorkspaceInfoWithHttpMessagesAsync(RequiredWorkspaces requiredWorkspaces, bool? lineage = default(bool?), bool? datasourceDetails = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> PostWorkspaceInfoWithHttpMessagesAsync(RequiredWorkspaces requiredWorkspaces, bool? lineage = default(bool?), bool? datasourceDetails = default(bool?), bool? datasetSchema = default(bool?), bool? datasetExpressions = default(bool?), bool? getArtifactUsers = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets scan status for the specified scan. (Preview)
///
@@ -72,6 +83,8 @@ public partial interface IWorkspaceInfoOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
+ /// The scan ID, which is included in the response from the workspaces
+ /// or getInfo API that triggered the scan
///
///
/// The headers that will be added to request.
@@ -102,6 +115,8 @@ public partial interface IWorkspaceInfoOperations
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
+ /// The scan ID, which is included in the response from the workspaces
+ /// or getInfo API that triggered the scan
///
///
/// The headers that will be added to request.
@@ -138,6 +153,9 @@ public partial interface IWorkspaceInfoOperations
///
/// Last modified date (must be in ISO 8601 compliant UTC format)
///
+ ///
+ /// Whether to exclude personal workspaces
+ ///
///
/// The headers that will be added to request.
///
@@ -150,6 +168,6 @@ public partial interface IWorkspaceInfoOperations
///
/// Thrown when unable to deserialize the response
///
- Task> GetModifiedWorkspacesWithHttpMessagesAsync(System.DateTime? modifiedSince = default(System.DateTime?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetModifiedWorkspacesWithHttpMessagesAsync(System.DateTime? modifiedSince = default(System.DateTime?), bool? excludePersonalWorkspaces = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/PowerBI.Api/Source/ImportsOperations.cs b/sdk/PowerBI.Api/Source/ImportsOperations.cs
index 6f70a980..01d88364 100644
--- a/sdk/PowerBI.Api/Source/ImportsOperations.cs
+++ b/sdk/PowerBI.Api/Source/ImportsOperations.cs
@@ -219,6 +219,14 @@ public ImportsOperations(PowerBIClient client)
/// Determines whether to skip report import, if specified value must be
/// 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of
+ /// PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of
+ /// PBIX file, service default value is true.
+ ///
///
/// Headers that will be added to request.
///
@@ -240,7 +248,7 @@ public ImportsOperations(PowerBIClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> PostImportWithHttpMessagesAsync(string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> PostImportWithHttpMessagesAsync(string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (datasetDisplayName == null)
{
@@ -260,6 +268,8 @@ public ImportsOperations(PowerBIClient client)
tracingParameters.Add("datasetDisplayName", datasetDisplayName);
tracingParameters.Add("nameConflict", nameConflict);
tracingParameters.Add("skipReport", skipReport);
+ tracingParameters.Add("overrideReportLabel", overrideReportLabel);
+ tracingParameters.Add("overrideModelLabel", overrideModelLabel);
tracingParameters.Add("importInfo", importInfo);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "PostImport", tracingParameters);
@@ -280,6 +290,14 @@ public ImportsOperations(PowerBIClient client)
{
_queryParameters.Add(string.Format("skipReport={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skipReport, Client.SerializationSettings).Trim('"'))));
}
+ if (overrideReportLabel != null)
+ {
+ _queryParameters.Add(string.Format("overrideReportLabel={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(overrideReportLabel, Client.SerializationSettings).Trim('"'))));
+ }
+ if (overrideModelLabel != null)
+ {
+ _queryParameters.Add(string.Format("overrideModelLabel={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(overrideModelLabel, Client.SerializationSettings).Trim('"'))));
+ }
if (_queryParameters.Count > 0)
{
_url += "?" + string.Join("&", _queryParameters);
@@ -410,7 +428,7 @@ public ImportsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The import id
+ /// The import ID
///
///
/// Headers that will be added to request.
@@ -687,7 +705,7 @@ public ImportsOperations(PowerBIClient client)
/// .pbix file from OneDrive is not supported.</li>
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Headers that will be added to request.
@@ -840,7 +858,7 @@ public ImportsOperations(PowerBIClient client)
/// not supported for dataflows with service principal.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The display name of the dataset should include file extension. Not
@@ -861,6 +879,14 @@ public ImportsOperations(PowerBIClient client)
/// Determines whether to skip report import, if specified value must be
/// 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of
+ /// PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of
+ /// PBIX file, service default value is true.
+ ///
///
/// Headers that will be added to request.
///
@@ -882,7 +908,7 @@ public ImportsOperations(PowerBIClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> PostImportInGroupWithHttpMessagesAsync(System.Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> PostImportInGroupWithHttpMessagesAsync(System.Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (datasetDisplayName == null)
{
@@ -903,6 +929,8 @@ public ImportsOperations(PowerBIClient client)
tracingParameters.Add("datasetDisplayName", datasetDisplayName);
tracingParameters.Add("nameConflict", nameConflict);
tracingParameters.Add("skipReport", skipReport);
+ tracingParameters.Add("overrideReportLabel", overrideReportLabel);
+ tracingParameters.Add("overrideModelLabel", overrideModelLabel);
tracingParameters.Add("importInfo", importInfo);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "PostImportInGroup", tracingParameters);
@@ -924,6 +952,14 @@ public ImportsOperations(PowerBIClient client)
{
_queryParameters.Add(string.Format("skipReport={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(skipReport, Client.SerializationSettings).Trim('"'))));
}
+ if (overrideReportLabel != null)
+ {
+ _queryParameters.Add(string.Format("overrideReportLabel={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(overrideReportLabel, Client.SerializationSettings).Trim('"'))));
+ }
+ if (overrideModelLabel != null)
+ {
+ _queryParameters.Add(string.Format("overrideModelLabel={0}", System.Uri.EscapeDataString(Rest.Serialization.SafeJsonConvert.SerializeObject(overrideModelLabel, Client.SerializationSettings).Trim('"'))));
+ }
if (_queryParameters.Count > 0)
{
_url += "?" + string.Join("&", _queryParameters);
@@ -1054,10 +1090,10 @@ public ImportsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The import id
+ /// The import ID
///
///
/// Headers that will be added to request.
@@ -1204,7 +1240,7 @@ public ImportsOperations(PowerBIClient client)
/// app](https://docs.microsoft.com/power-bi/developer/register-app).
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// Headers that will be added to request.
diff --git a/sdk/PowerBI.Api/Source/ImportsOperationsExtensions.cs b/sdk/PowerBI.Api/Source/ImportsOperationsExtensions.cs
index 64eda9d2..95d6db04 100644
--- a/sdk/PowerBI.Api/Source/ImportsOperationsExtensions.cs
+++ b/sdk/PowerBI.Api/Source/ImportsOperationsExtensions.cs
@@ -98,9 +98,17 @@ public static Imports GetImports(this IImportsOperations operations)
/// Determines whether to skip report import, if specified value must be
/// 'true'. Only supported for PBIX files.
///
- public static Import PostImport(this IImportsOperations operations, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?))
+ ///
+ /// Determines whether to override existing label on report during republish of
+ /// PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of
+ /// PBIX file, service default value is true.
+ ///
+ public static Import PostImport(this IImportsOperations operations, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?))
{
- return operations.PostImportAsync(datasetDisplayName, importInfo, nameConflict, skipReport).GetAwaiter().GetResult();
+ return operations.PostImportAsync(datasetDisplayName, importInfo, nameConflict, skipReport, overrideReportLabel, overrideModelLabel).GetAwaiter().GetResult();
}
///
@@ -148,12 +156,20 @@ public static Imports GetImports(this IImportsOperations operations)
/// Determines whether to skip report import, if specified value must be
/// 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of
+ /// PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of
+ /// PBIX file, service default value is true.
+ ///
///
/// The cancellation token.
///
- public static async Task PostImportAsync(this IImportsOperations operations, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task PostImportAsync(this IImportsOperations operations, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.PostImportWithHttpMessagesAsync(datasetDisplayName, importInfo, nameConflict, skipReport, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.PostImportWithHttpMessagesAsync(datasetDisplayName, importInfo, nameConflict, skipReport, overrideReportLabel, overrideModelLabel, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -171,7 +187,7 @@ public static Imports GetImports(this IImportsOperations operations)
/// The operations group for this extension method.
///
///
- /// The import id
+ /// The import ID
///
public static Import GetImport(this IImportsOperations operations, System.Guid importId)
{
@@ -190,7 +206,7 @@ public static Import GetImport(this IImportsOperations operations, System.Guid i
/// The operations group for this extension method.
///
///
- /// The import id
+ /// The import ID
///
///
/// The cancellation token.
@@ -272,7 +288,7 @@ public static TemporaryUploadLocation CreateTemporaryUploadLocation(this IImport
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
public static Imports GetImportsInGroup(this IImportsOperations operations, System.Guid groupId)
{
@@ -292,7 +308,7 @@ public static Imports GetImportsInGroup(this IImportsOperations operations, Syst
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The cancellation token.
@@ -334,7 +350,7 @@ public static Imports GetImportsInGroup(this IImportsOperations operations, Syst
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The display name of the dataset should include file extension. Not
@@ -355,9 +371,17 @@ public static Imports GetImportsInGroup(this IImportsOperations operations, Syst
/// Determines whether to skip report import, if specified value must be
/// 'true'. Only supported for PBIX files.
///
- public static Import PostImportInGroup(this IImportsOperations operations, System.Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?))
+ ///
+ /// Determines whether to override existing label on report during republish of
+ /// PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of
+ /// PBIX file, service default value is true.
+ ///
+ public static Import PostImportInGroup(this IImportsOperations operations, System.Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?))
{
- return operations.PostImportInGroupAsync(groupId, datasetDisplayName, importInfo, nameConflict, skipReport).GetAwaiter().GetResult();
+ return operations.PostImportInGroupAsync(groupId, datasetDisplayName, importInfo, nameConflict, skipReport, overrideReportLabel, overrideModelLabel).GetAwaiter().GetResult();
}
///
@@ -389,7 +413,7 @@ public static Imports GetImportsInGroup(this IImportsOperations operations, Syst
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The display name of the dataset should include file extension. Not
@@ -410,12 +434,20 @@ public static Imports GetImportsInGroup(this IImportsOperations operations, Syst
/// Determines whether to skip report import, if specified value must be
/// 'true'. Only supported for PBIX files.
///
+ ///
+ /// Determines whether to override existing label on report during republish of
+ /// PBIX file, service default value is true.
+ ///
+ ///
+ /// Determines whether to override existing label on model during republish of
+ /// PBIX file, service default value is true.
+ ///
///
/// The cancellation token.
///
- public static async Task PostImportInGroupAsync(this IImportsOperations operations, System.Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task PostImportInGroupAsync(this IImportsOperations operations, System.Guid groupId, string datasetDisplayName, ImportInfo importInfo, ImportConflictHandlerMode? nameConflict = default(ImportConflictHandlerMode?), bool? skipReport = default(bool?), bool? overrideReportLabel = default(bool?), bool? overrideModelLabel = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.PostImportInGroupWithHttpMessagesAsync(groupId, datasetDisplayName, importInfo, nameConflict, skipReport, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.PostImportInGroupWithHttpMessagesAsync(groupId, datasetDisplayName, importInfo, nameConflict, skipReport, overrideReportLabel, overrideModelLabel, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -433,10 +465,10 @@ public static Imports GetImportsInGroup(this IImportsOperations operations, Syst
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The import id
+ /// The import ID
///
public static Import GetImportInGroup(this IImportsOperations operations, System.Guid groupId, System.Guid importId)
{
@@ -455,10 +487,10 @@ public static Import GetImportInGroup(this IImportsOperations operations, System
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
- /// The import id
+ /// The import ID
///
///
/// The cancellation token.
@@ -492,7 +524,7 @@ public static Import GetImportInGroup(this IImportsOperations operations, System
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
public static TemporaryUploadLocation CreateTemporaryUploadLocationInGroup(this IImportsOperations operations, System.Guid groupId)
{
@@ -520,7 +552,7 @@ public static TemporaryUploadLocation CreateTemporaryUploadLocationInGroup(this
/// The operations group for this extension method.
///
///
- /// The workspace id
+ /// The workspace ID
///
///
/// The cancellation token.
diff --git a/sdk/PowerBI.Api/Source/InformationProtection.cs b/sdk/PowerBI.Api/Source/InformationProtection.cs
index 992060f0..d1b31e39 100644
--- a/sdk/PowerBI.Api/Source/InformationProtection.cs
+++ b/sdk/PowerBI.Api/Source/InformationProtection.cs
@@ -56,10 +56,12 @@ public InformationProtection(PowerBIClient client)
/// rights](https://go.microsoft.com/fwlink/?linkid=2157685) to delete
/// labels.<br/>This API allows a maximum of 25 requests per hour. Each
/// request can update up to 2000 artifacts. <br/><br/>**Required
- /// scope**: Tenant.ReadWrite.All
+ /// scope**: Tenant.ReadWrite.All <br/><br/>**Usage sample**: [Set
+ /// or remove sensitivity labels using Power BI REST admin
+ /// APIs](https://docs.microsoft.com/power-bi/admin/service-security-sensitivity-label-inheritance-set-remove-api)
///
///
- /// Composite of artifact Id lists per Type.
+ /// A composite of artifact ID lists for each type
///
///
/// Headers that will be added to request.
@@ -216,6 +218,9 @@ public InformationProtection(PowerBIClient client)
/// to set labels.<br/>This API allows a maximum of 25 requests per hour.
/// Each request can update up to 2000 artifacts.
/// <br/><br/>**Required scope**: Tenant.ReadWrite.All
+ /// <br/><br/>**Usage sample**: [Set or remove sensitivity labels
+ /// using Power BI REST admin
+ /// APIs](https://docs.microsoft.com/power-bi/admin/service-security-sensitivity-label-inheritance-set-remove-api)
///
///
/// Set label details.
diff --git a/sdk/PowerBI.Api/Source/InformationProtectionExtensions.cs b/sdk/PowerBI.Api/Source/InformationProtectionExtensions.cs
index 03923cf8..fe090f0d 100644
--- a/sdk/PowerBI.Api/Source/InformationProtectionExtensions.cs
+++ b/sdk/PowerBI.Api/Source/InformationProtectionExtensions.cs
@@ -25,13 +25,15 @@ public static partial class InformationProtectionExtensions
/// rights](https://go.microsoft.com/fwlink/?linkid=2157685) to delete
/// labels.<br/>This API allows a maximum of 25 requests per hour. Each
/// request can update up to 2000 artifacts. <br/><br/>**Required
- /// scope**: Tenant.ReadWrite.All
+ /// scope**: Tenant.ReadWrite.All <br/><br/>**Usage sample**: [Set
+ /// or remove sensitivity labels using Power BI REST admin
+ /// APIs](https://docs.microsoft.com/power-bi/admin/service-security-sensitivity-label-inheritance-set-remove-api)
///
///
/// The operations group for this extension method.
///
///
- /// Composite of artifact Id lists per Type.
+ /// A composite of artifact ID lists for each type
///
public static InformationProtectionChangeLabelResponse RemoveLabelsAsAdmin(this IInformationProtection operations, InformationProtectionArtifactsChangeLabel artifacts)
{
@@ -48,13 +50,15 @@ public static InformationProtectionChangeLabelResponse RemoveLabelsAsAdmin(this
/// rights](https://go.microsoft.com/fwlink/?linkid=2157685) to delete
/// labels.<br/>This API allows a maximum of 25 requests per hour. Each
/// request can update up to 2000 artifacts. <br/><br/>**Required
- /// scope**: Tenant.ReadWrite.All
+ /// scope**: Tenant.ReadWrite.All <br/><br/>**Usage sample**: [Set
+ /// or remove sensitivity labels using Power BI REST admin
+ /// APIs](https://docs.microsoft.com/power-bi/admin/service-security-sensitivity-label-inheritance-set-remove-api)
///
///
/// The operations group for this extension method.
///
///
- /// Composite of artifact Id lists per Type.
+ /// A composite of artifact ID lists for each type
///
///
/// The cancellation token.
@@ -82,6 +86,9 @@ public static InformationProtectionChangeLabelResponse RemoveLabelsAsAdmin(this
/// to set labels.<br/>This API allows a maximum of 25 requests per hour.
/// Each request can update up to 2000 artifacts.
/// <br/><br/>**Required scope**: Tenant.ReadWrite.All
+ /// <br/><br/>**Usage sample**: [Set or remove sensitivity labels
+ /// using Power BI REST admin
+ /// APIs](https://docs.microsoft.com/power-bi/admin/service-security-sensitivity-label-inheritance-set-remove-api)
///
///
/// The operations group for this extension method.
@@ -109,6 +116,9 @@ public static InformationProtectionChangeLabelResponse SetLabelsAsAdmin(this IIn
/// to set labels.<br/>This API allows a maximum of 25 requests per hour.
/// Each request can update up to 2000 artifacts.
/// <br/><br/>**Required scope**: Tenant.ReadWrite.All
+ /// <br/><br/>**Usage sample**: [Set or remove sensitivity labels
+ /// using Power BI REST admin
+ /// APIs](https://docs.microsoft.com/power-bi/admin/service-security-sensitivity-label-inheritance-set-remove-api)
///
///
/// The operations group for this extension method.
diff --git a/sdk/PowerBI.Api/Source/Models/ASMashupExpression.cs b/sdk/PowerBI.Api/Source/Models/ASMashupExpression.cs
new file mode 100644
index 00000000..6fb90bbf
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/ASMashupExpression.cs
@@ -0,0 +1,61 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A dataset table source
+ ///
+ public partial class ASMashupExpression
+ {
+ ///
+ /// Initializes a new instance of the ASMashupExpression class.
+ ///
+ public ASMashupExpression()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ASMashupExpression class.
+ ///
+ /// The source expression
+ public ASMashupExpression(string expression)
+ {
+ Expression = expression;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the source expression
+ ///
+ [JsonProperty(PropertyName = "expression")]
+ public string Expression { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Expression == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Expression");
+ }
+ }
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/ActivityEventResponse.cs b/sdk/PowerBI.Api/Source/Models/ActivityEventResponse.cs
index 7f7913c8..818d665c 100644
--- a/sdk/PowerBI.Api/Source/Models/ActivityEventResponse.cs
+++ b/sdk/PowerBI.Api/Source/Models/ActivityEventResponse.cs
@@ -29,7 +29,7 @@ public ActivityEventResponse()
///
/// The activity event
/// entities
- /// Uri to get the next chunk of the
+ /// The URI for the next chunk in the
/// result set
/// Token to get the next chunk of the
/// result set
@@ -53,7 +53,7 @@ public ActivityEventResponse()
public IList
/// The Power BI dataflow storage
- /// account id. To unassign the specified workspace from a Power BI
- /// dataflow storage account, an empty GUID
- /// (00000000-0000-0000-0000-000000000000) should be provided as
- /// dataflowStorageId.
+ /// account ID. To unassign the specified workspace from a Power BI
+ /// dataflow storage account, use an empty GUID
+ /// (`00000000-0000-0000-0000-000000000000`).
public AssignToDataflowStorageRequest(System.Guid dataflowStorageId)
{
DataflowStorageId = dataflowStorageId;
@@ -44,10 +43,9 @@ public AssignToDataflowStorageRequest(System.Guid dataflowStorageId)
partial void CustomInit();
///
- /// Gets or sets the Power BI dataflow storage account id. To unassign
+ /// Gets or sets the Power BI dataflow storage account ID. To unassign
/// the specified workspace from a Power BI dataflow storage account,
- /// an empty GUID (00000000-0000-0000-0000-000000000000) should be
- /// provided as dataflowStorageId.
+ /// use an empty GUID (`00000000-0000-0000-0000-000000000000`).
///
[JsonProperty(PropertyName = "dataflowStorageId")]
public System.Guid DataflowStorageId { get; set; }
diff --git a/sdk/PowerBI.Api/Source/Models/AssignWorkspacesToCapacityRequest.cs b/sdk/PowerBI.Api/Source/Models/AssignWorkspacesToCapacityRequest.cs
index 87155c7b..42c1c56f 100644
--- a/sdk/PowerBI.Api/Source/Models/AssignWorkspacesToCapacityRequest.cs
+++ b/sdk/PowerBI.Api/Source/Models/AssignWorkspacesToCapacityRequest.cs
@@ -6,7 +6,6 @@
namespace Microsoft.PowerBI.Api.Models
{
- using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
@@ -31,7 +30,7 @@ public AssignWorkspacesToCapacityRequest()
/// Initializes a new instance of the AssignWorkspacesToCapacityRequest
/// class.
///
- public AssignWorkspacesToCapacityRequest(IList capacityMigrationAssignments)
+ public AssignWorkspacesToCapacityRequest(IList capacityMigrationAssignments = default(IList))
{
CapacityMigrationAssignments = capacityMigrationAssignments;
CustomInit();
@@ -47,28 +46,5 @@ public AssignWorkspacesToCapacityRequest(IList capa
[JsonProperty(PropertyName = "capacityMigrationAssignments")]
public IList CapacityMigrationAssignments { get; set; }
- ///
- /// Validate the object.
- ///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (CapacityMigrationAssignments == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "CapacityMigrationAssignments");
- }
- if (CapacityMigrationAssignments != null)
- {
- foreach (var element in CapacityMigrationAssignments)
- {
- if (element != null)
- {
- element.Validate();
- }
- }
- }
- }
}
}
diff --git a/sdk/PowerBI.Api/Source/Models/BindToGatewayRequest.cs b/sdk/PowerBI.Api/Source/Models/BindToGatewayRequest.cs
index 88d41798..e3c1b6e9 100644
--- a/sdk/PowerBI.Api/Source/Models/BindToGatewayRequest.cs
+++ b/sdk/PowerBI.Api/Source/Models/BindToGatewayRequest.cs
@@ -27,7 +27,10 @@ public BindToGatewayRequest()
///
/// Initializes a new instance of the BindToGatewayRequest class.
///
- /// The gateway id
+ /// The gateway ID. When using a gateway
+ /// cluster, the gateway ID refers to the primary (first) gateway in
+ /// the cluster. In such cases, gateway ID is similar to gateway
+ /// cluster ID.
/// datasourceObjectIds belonging to
/// the gateway
public BindToGatewayRequest(System.Guid gatewayObjectId, IList datasourceObjectIds = default(IList))
@@ -43,7 +46,9 @@ public BindToGatewayRequest()
partial void CustomInit();
///
- /// Gets or sets the gateway id
+ /// Gets or sets the gateway ID. When using a gateway cluster, the
+ /// gateway ID refers to the primary (first) gateway in the cluster. In
+ /// such cases, gateway ID is similar to gateway cluster ID.
///
[JsonProperty(PropertyName = "gatewayObjectId")]
public System.Guid GatewayObjectId { get; set; }
diff --git a/sdk/PowerBI.Api/Source/Models/Capacity.cs b/sdk/PowerBI.Api/Source/Models/Capacity.cs
index 7b840302..38369c6a 100644
--- a/sdk/PowerBI.Api/Source/Models/Capacity.cs
+++ b/sdk/PowerBI.Api/Source/Models/Capacity.cs
@@ -27,7 +27,7 @@ public Capacity()
///
/// Initializes a new instance of the Capacity class.
///
- /// The capacity id
+ /// The capacity ID
/// The capacity state. Possible values include:
/// 'NotActivated', 'Active', 'Provisioning', 'ProvisionFailed',
/// 'Suspended', 'PreSuspended', 'Deleting', 'Deleted', 'Invalid',
@@ -40,8 +40,8 @@ public Capacity()
/// The capacity SKU.
/// The Azure region where the capacity is
/// provisioned
- /// The id of the encryption key (Only
- /// applicable for admin route)
+ /// The ID of an encryption key (only
+ /// applicable to the admin route)
/// Encryption key information (Only applicable
/// for admin route)
public Capacity(System.Guid id, CapacityState state, CapacityUserAccessRight capacityUserAccessRight, string displayName = default(string), IList admins = default(IList), string sku = default(string), string region = default(string), System.Guid? tenantKeyId = default(System.Guid?), TenantKey tenantKey = default(TenantKey))
@@ -64,7 +64,7 @@ public Capacity()
partial void CustomInit();
///
- /// Gets or sets the capacity id
+ /// Gets or sets the capacity ID
///
[JsonProperty(PropertyName = "id")]
public System.Guid Id { get; set; }
@@ -110,7 +110,7 @@ public Capacity()
public string Region { get; set; }
///
- /// Gets or sets the id of the encryption key (Only applicable for
+ /// Gets or sets the ID of an encryption key (only applicable to the
/// admin route)
///
[JsonProperty(PropertyName = "tenantKeyId")]
diff --git a/sdk/PowerBI.Api/Source/Models/CapacityMigrationAssignment.cs b/sdk/PowerBI.Api/Source/Models/CapacityMigrationAssignment.cs
index 9ca6710a..4a4805fe 100644
--- a/sdk/PowerBI.Api/Source/Models/CapacityMigrationAssignment.cs
+++ b/sdk/PowerBI.Api/Source/Models/CapacityMigrationAssignment.cs
@@ -13,7 +13,7 @@ namespace Microsoft.PowerBI.Api.Models
using System.Linq;
///
- /// Assignment contract for migrating workspaces to shared capacity as
+ /// Assignment contract for migrating workspaces to premium capacity as
/// tenant admin
///
public partial class CapacityMigrationAssignment
@@ -31,9 +31,10 @@ public CapacityMigrationAssignment()
/// Initializes a new instance of the CapacityMigrationAssignment
/// class.
///
- /// Workspaces to be migrated to
- /// shared capacity
- /// Capacity id
+ /// The workspace IDs to be migrated
+ /// to premium capacity
+ /// The premium capacity
+ /// ID
public CapacityMigrationAssignment(IList workspacesToAssign, string targetCapacityObjectId)
{
WorkspacesToAssign = workspacesToAssign;
@@ -47,13 +48,13 @@ public CapacityMigrationAssignment(IList workspacesToAssign, string targ
partial void CustomInit();
///
- /// Gets or sets workspaces to be migrated to shared capacity
+ /// Gets or sets the workspace IDs to be migrated to premium capacity
///
[JsonProperty(PropertyName = "workspacesToAssign")]
public IList WorkspacesToAssign { get; set; }
///
- /// Gets or sets capacity id
+ /// Gets or sets the premium capacity ID
///
[JsonProperty(PropertyName = "targetCapacityObjectId")]
public string TargetCapacityObjectId { get; set; }
diff --git a/sdk/PowerBI.Api/Source/Models/CapacityPatchRequest.cs b/sdk/PowerBI.Api/Source/Models/CapacityPatchRequest.cs
index eb0809cd..2d1739a2 100644
--- a/sdk/PowerBI.Api/Source/Models/CapacityPatchRequest.cs
+++ b/sdk/PowerBI.Api/Source/Models/CapacityPatchRequest.cs
@@ -25,7 +25,7 @@ public CapacityPatchRequest()
///
/// Initializes a new instance of the CapacityPatchRequest class.
///
- /// The id of the encryption key
+ /// The ID of the encryption key
public CapacityPatchRequest(System.Guid? tenantKeyId = default(System.Guid?))
{
TenantKeyId = tenantKeyId;
@@ -38,7 +38,7 @@ public CapacityPatchRequest()
partial void CustomInit();
///
- /// Gets or sets the id of the encryption key
+ /// Gets or sets the ID of the encryption key
///
[JsonProperty(PropertyName = "tenantKeyId")]
public System.Guid? TenantKeyId { get; set; }
diff --git a/sdk/PowerBI.Api/Source/Models/CapacityUser.cs b/sdk/PowerBI.Api/Source/Models/CapacityUser.cs
new file mode 100644
index 00000000..8c0f57fe
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/CapacityUser.cs
@@ -0,0 +1,103 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A Power BI user access right entry for capacity
+ ///
+ public partial class CapacityUser
+ {
+ ///
+ /// Initializes a new instance of the CapacityUser class.
+ ///
+ public CapacityUser()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the CapacityUser class.
+ ///
+ /// Access right user has on the
+ /// capacity. Possible values include: 'None', 'Assign',
+ /// 'Admin'
+ /// Email address of the user
+ /// Display name of the principal
+ /// Identifier of the principal
+ /// Identifier of the principal in Microsoft
+ /// Graph. Only available for admin APIs.
+ /// Possible values include: 'None',
+ /// 'User', 'Group', 'App'
+ public CapacityUser(CapacityUserAccessRight capacityUserAccessRight, string emailAddress = default(string), string displayName = default(string), string identifier = default(string), string graphId = default(string), PrincipalType? principalType = default(PrincipalType?))
+ {
+ CapacityUserAccessRight = capacityUserAccessRight;
+ EmailAddress = emailAddress;
+ DisplayName = displayName;
+ Identifier = identifier;
+ GraphId = graphId;
+ PrincipalType = principalType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets access right user has on the capacity. Possible values
+ /// include: 'None', 'Assign', 'Admin'
+ ///
+ [JsonProperty(PropertyName = "capacityUserAccessRight")]
+ public CapacityUserAccessRight CapacityUserAccessRight { get; set; }
+
+ ///
+ /// Gets or sets email address of the user
+ ///
+ [JsonProperty(PropertyName = "emailAddress")]
+ public string EmailAddress { get; set; }
+
+ ///
+ /// Gets or sets display name of the principal
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; set; }
+
+ ///
+ /// Gets or sets identifier of the principal
+ ///
+ [JsonProperty(PropertyName = "identifier")]
+ public string Identifier { get; set; }
+
+ ///
+ /// Gets or sets identifier of the principal in Microsoft Graph. Only
+ /// available for admin APIs.
+ ///
+ [JsonProperty(PropertyName = "graphId")]
+ public string GraphId { get; set; }
+
+ ///
+ /// Gets or sets possible values include: 'None', 'User', 'Group',
+ /// 'App'
+ ///
+ [JsonProperty(PropertyName = "principalType")]
+ public PrincipalType? PrincipalType { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ }
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/CapacityUserAccessRight.cs b/sdk/PowerBI.Api/Source/Models/CapacityUserAccessRight.cs
index a0bf8c37..bdb3421a 100644
--- a/sdk/PowerBI.Api/Source/Models/CapacityUserAccessRight.cs
+++ b/sdk/PowerBI.Api/Source/Models/CapacityUserAccessRight.cs
@@ -29,7 +29,8 @@ private CapacityUserAccessRight(string underlyingValue)
public static readonly CapacityUserAccessRight None = "None";
///
- /// User can assign workspaces to the capacity
+ /// User has contributor rights and can assign workspaces to the
+ /// capacity
///
public static readonly CapacityUserAccessRight Assign = "Assign";
diff --git a/sdk/PowerBI.Api/Source/Models/CapacityUsers.cs b/sdk/PowerBI.Api/Source/Models/CapacityUsers.cs
new file mode 100644
index 00000000..08d48cea
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/CapacityUsers.cs
@@ -0,0 +1,56 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Odata response wrapper for a Power BI user access right for capacity
+ /// List
+ ///
+ public partial class CapacityUsers
+ {
+ ///
+ /// Initializes a new instance of the CapacityUsers class.
+ ///
+ public CapacityUsers()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the CapacityUsers class.
+ ///
+ /// The user access right for capacity List
+ public CapacityUsers(string odatacontext = default(string), IList value = default(IList))
+ {
+ Odatacontext = odatacontext;
+ Value = value;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "odata.context")]
+ public string Odatacontext { get; set; }
+
+ ///
+ /// Gets or sets the user access right for capacity List
+ ///
+ [JsonProperty(PropertyName = "value")]
+ public IList Value { get; set; }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/ChangeLabelStatus.cs b/sdk/PowerBI.Api/Source/Models/ChangeLabelStatus.cs
index c1f391fe..30d35cab 100644
--- a/sdk/PowerBI.Api/Source/Models/ChangeLabelStatus.cs
+++ b/sdk/PowerBI.Api/Source/Models/ChangeLabelStatus.cs
@@ -26,8 +26,9 @@ public ChangeLabelStatus()
///
/// Initializes a new instance of the ChangeLabelStatus class.
///
- /// Unique artifact Id, uuid format for
- /// dashboard/report/dataflow, and string format for dataset.
+ /// The unique ID of an artifact, which is in UUID
+ /// format for dashboards, reports, and dataflows, and string format
+ /// for datasets
/// Indicates the result of the label change
/// operation. Possible values include: 'Failed',
/// 'FailedToGetUsageRights', 'InsufficientUsageRights', 'NotFound',
@@ -45,8 +46,9 @@ public ChangeLabelStatus(string id, Status status)
partial void CustomInit();
///
- /// Gets or sets unique artifact Id, uuid format for
- /// dashboard/report/dataflow, and string format for dataset.
+ /// Gets or sets the unique ID of an artifact, which is in UUID format
+ /// for dashboards, reports, and dataflows, and string format for
+ /// datasets
///
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
diff --git a/sdk/PowerBI.Api/Source/Models/CloneReportRequest.cs b/sdk/PowerBI.Api/Source/Models/CloneReportRequest.cs
index 9e0d06c2..5e8d27d7 100644
--- a/sdk/PowerBI.Api/Source/Models/CloneReportRequest.cs
+++ b/sdk/PowerBI.Api/Source/Models/CloneReportRequest.cs
@@ -28,12 +28,12 @@ public CloneReportRequest()
///
/// The new report name
/// Optional parameter for specifying
- /// the target workspace id. Empty Guid
+ /// the target workspace ID. Empty Guid
/// (00000000-0000-0000-0000-000000000000) indicates 'My Workspace'.
/// <br/>If not provided, the new report will be cloned within
/// the same workspace as the source report.
/// Optional parameter for specifying the
- /// target associated dataset id. <br/>If not provided, the new
+ /// target associated dataset ID. <br/>If not provided, the new
/// report will be associated with the same dataset as the source
/// report
public CloneReportRequest(string name, System.Guid? targetWorkspaceId = default(System.Guid?), string targetModelId = default(string))
@@ -57,7 +57,7 @@ public CloneReportRequest()
///
/// Gets or sets optional parameter for specifying the target workspace
- /// id. Empty Guid (00000000-0000-0000-0000-000000000000) indicates 'My
+ /// ID. Empty Guid (00000000-0000-0000-0000-000000000000) indicates 'My
/// Workspace'. <br/>If not provided, the new report will
/// be cloned within the same workspace as the source report.
///
@@ -66,7 +66,7 @@ public CloneReportRequest()
///
/// Gets or sets optional parameter for specifying the target
- /// associated dataset id. <br/>If not provided, the new
+ /// associated dataset ID. <br/>If not provided, the new
/// report will be associated with the same dataset as the source
/// report
///
diff --git a/sdk/PowerBI.Api/Source/Models/CloneTileRequest.cs b/sdk/PowerBI.Api/Source/Models/CloneTileRequest.cs
index 0ee20072..92889e8f 100644
--- a/sdk/PowerBI.Api/Source/Models/CloneTileRequest.cs
+++ b/sdk/PowerBI.Api/Source/Models/CloneTileRequest.cs
@@ -25,17 +25,17 @@ public CloneTileRequest()
///
/// Initializes a new instance of the CloneTileRequest class.
///
- /// The target dashboard id
+ /// The target dashboard ID
/// Optional parameter for specifying
- /// the target workspace id. Empty Guid
+ /// the target workspace ID. Empty Guid
/// (00000000-0000-0000-0000-000000000000) indicates 'My Workspace'.
/// <br/>If not provided, tile will be cloned within the same
/// workspace as the source tile.
/// Optional parameter <br/>When
- /// cloning a tile linked to a report, pass the target report id to
+ /// cloning a tile linked to a report, pass the target report ID to
/// rebind the new tile to a different report.
/// Optional parameter <br/>When
- /// cloning a tile linked to a dataset, pass the target model id to
+ /// cloning a tile linked to a dataset, pass the target model ID to
/// rebind the new tile to a different dataset.
/// Optional parameter for
/// specifying the action in case of position conflict. <br/>If
@@ -58,14 +58,14 @@ public CloneTileRequest()
partial void CustomInit();
///
- /// Gets or sets the target dashboard id
+ /// Gets or sets the target dashboard ID
///
[JsonProperty(PropertyName = "targetDashboardId")]
public System.Guid TargetDashboardId { get; set; }
///
/// Gets or sets optional parameter for specifying the target workspace
- /// id. Empty Guid (00000000-0000-0000-0000-000000000000) indicates 'My
+ /// ID. Empty Guid (00000000-0000-0000-0000-000000000000) indicates 'My
/// Workspace'. <br/>If not provided, tile will be cloned
/// within the same workspace as the source tile.
///
@@ -74,7 +74,7 @@ public CloneTileRequest()
///
/// Gets or sets optional parameter <br/>When cloning a
- /// tile linked to a report, pass the target report id to rebind the
+ /// tile linked to a report, pass the target report ID to rebind the
/// new tile to a different report.
///
[JsonProperty(PropertyName = "targetReportId")]
@@ -82,7 +82,7 @@ public CloneTileRequest()
///
/// Gets or sets optional parameter <br/>When cloning a
- /// tile linked to a dataset, pass the target model id to rebind the
+ /// tile linked to a dataset, pass the target model ID to rebind the
/// new tile to a different dataset.
///
[JsonProperty(PropertyName = "targetModelId")]
diff --git a/sdk/PowerBI.Api/Source/Models/Dashboard.cs b/sdk/PowerBI.Api/Source/Models/Dashboard.cs
index f8398b9e..7b8a145b 100644
--- a/sdk/PowerBI.Api/Source/Models/Dashboard.cs
+++ b/sdk/PowerBI.Api/Source/Models/Dashboard.cs
@@ -30,7 +30,7 @@ public Dashboard()
///
/// Initializes a new instance of the Dashboard class.
///
- /// The dashboard id
+ /// The dashboard ID
/// The dashboard display name
/// Is ReadOnly dashboard
/// The dashboard embed url
@@ -39,7 +39,12 @@ public Dashboard()
/// dashboard
/// The dashboard sensitivity
/// label
- public Dashboard(System.Guid id, string displayName = default(string), bool? isReadOnly = default(bool?), string embedUrl = default(string), IList tiles = default(IList), string dataClassification = default(string), SensitivityLabel sensitivityLabel = default(SensitivityLabel))
+ /// The Dashboard User Access Details. This value
+ /// will be empty. It will be removed from the payload response in an
+ /// upcoming release. To retrieve user information on an artifact,
+ /// please consider using the Get Dashboard User as Admin APIs, or the
+ /// PostWorkspaceInfo API with the getArtifactUser parameter.
+ public Dashboard(System.Guid id, string displayName = default(string), bool? isReadOnly = default(bool?), string embedUrl = default(string), IList tiles = default(IList), string dataClassification = default(string), SensitivityLabel sensitivityLabel = default(SensitivityLabel), IList users = default(IList))
{
Id = id;
DisplayName = displayName;
@@ -48,6 +53,7 @@ public Dashboard()
Tiles = tiles;
DataClassification = dataClassification;
SensitivityLabel = sensitivityLabel;
+ Users = users;
CustomInit();
}
@@ -57,7 +63,7 @@ public Dashboard()
partial void CustomInit();
///
- /// Gets or sets the dashboard id
+ /// Gets or sets the dashboard ID
///
[JsonProperty(PropertyName = "id")]
public System.Guid Id { get; set; }
@@ -98,6 +104,16 @@ public Dashboard()
[JsonProperty(PropertyName = "sensitivityLabel")]
public SensitivityLabel SensitivityLabel { get; set; }
+ ///
+ /// Gets or sets the Dashboard User Access Details. This value will be
+ /// empty. It will be removed from the payload response in an upcoming
+ /// release. To retrieve user information on an artifact, please
+ /// consider using the Get Dashboard User as Admin APIs, or the
+ /// PostWorkspaceInfo API with the getArtifactUser parameter.
+ ///
+ [JsonProperty(PropertyName = "users")]
+ public IList Users { get; set; }
+
///
/// Validate the object.
///
@@ -120,6 +136,16 @@ public virtual void Validate()
{
SensitivityLabel.Validate();
}
+ if (Users != null)
+ {
+ foreach (var element1 in Users)
+ {
+ if (element1 != null)
+ {
+ element1.Validate();
+ }
+ }
+ }
}
}
}
diff --git a/sdk/PowerBI.Api/Source/Models/DashboardUser.cs b/sdk/PowerBI.Api/Source/Models/DashboardUser.cs
new file mode 100644
index 00000000..22632f3c
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DashboardUser.cs
@@ -0,0 +1,104 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A Power BI user access right entry for dashboard
+ ///
+ public partial class DashboardUser
+ {
+ ///
+ /// Initializes a new instance of the DashboardUser class.
+ ///
+ public DashboardUser()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DashboardUser class.
+ ///
+ /// Access rights user has for
+ /// the dashboard (Permission level). Possible values include: 'None',
+ /// 'Read', 'ReadWrite', 'ReadReshare', 'Owner'
+ /// Email address of the user
+ /// Display name of the principal
+ /// Identifier of the principal
+ /// Identifier of the principal in Microsoft
+ /// Graph. Only available for admin APIs.
+ /// Possible values include: 'None',
+ /// 'User', 'Group', 'App'
+ public DashboardUser(DashboardUserAccessRight dashboardUserAccessRight, string emailAddress = default(string), string displayName = default(string), string identifier = default(string), string graphId = default(string), PrincipalType? principalType = default(PrincipalType?))
+ {
+ DashboardUserAccessRight = dashboardUserAccessRight;
+ EmailAddress = emailAddress;
+ DisplayName = displayName;
+ Identifier = identifier;
+ GraphId = graphId;
+ PrincipalType = principalType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets access rights user has for the dashboard (Permission
+ /// level). Possible values include: 'None', 'Read', 'ReadWrite',
+ /// 'ReadReshare', 'Owner'
+ ///
+ [JsonProperty(PropertyName = "dashboardUserAccessRight")]
+ public DashboardUserAccessRight DashboardUserAccessRight { get; set; }
+
+ ///
+ /// Gets or sets email address of the user
+ ///
+ [JsonProperty(PropertyName = "emailAddress")]
+ public string EmailAddress { get; set; }
+
+ ///
+ /// Gets or sets display name of the principal
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; set; }
+
+ ///
+ /// Gets or sets identifier of the principal
+ ///
+ [JsonProperty(PropertyName = "identifier")]
+ public string Identifier { get; set; }
+
+ ///
+ /// Gets or sets identifier of the principal in Microsoft Graph. Only
+ /// available for admin APIs.
+ ///
+ [JsonProperty(PropertyName = "graphId")]
+ public string GraphId { get; set; }
+
+ ///
+ /// Gets or sets possible values include: 'None', 'User', 'Group',
+ /// 'App'
+ ///
+ [JsonProperty(PropertyName = "principalType")]
+ public PrincipalType? PrincipalType { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ }
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DashboardUserAccessRight.cs b/sdk/PowerBI.Api/Source/Models/DashboardUserAccessRight.cs
new file mode 100644
index 00000000..a789edd5
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DashboardUserAccessRight.cs
@@ -0,0 +1,122 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+
+ ///
+ /// Defines values for DashboardUserAccessRight.
+ ///
+ ///
+ /// Determine base value for a given allowed value if exists, else return
+ /// the value itself
+ ///
+ [JsonConverter(typeof(DashboardUserAccessRightConverter))]
+ public struct DashboardUserAccessRight : System.IEquatable
+ {
+ private DashboardUserAccessRight(string underlyingValue)
+ {
+ UnderlyingValue=underlyingValue;
+ }
+
+ ///
+ /// No permission to content in dashboard
+ ///
+ public static readonly DashboardUserAccessRight None = "None";
+
+ ///
+ /// Grants Read access to content in dashboard
+ ///
+ public static readonly DashboardUserAccessRight Read = "Read";
+
+ ///
+ /// Grants Read and Write access to content in dashboard
+ ///
+ public static readonly DashboardUserAccessRight ReadWrite = "ReadWrite";
+
+ ///
+ /// Grants Read and Reshare access to content in dashboard
+ ///
+ public static readonly DashboardUserAccessRight ReadReshare = "ReadReshare";
+
+ ///
+ /// Grants Read, Write and Reshare access to content in report
+ ///
+ public static readonly DashboardUserAccessRight Owner = "Owner";
+
+
+ ///
+ /// Underlying value of enum DashboardUserAccessRight
+ ///
+ private readonly string UnderlyingValue;
+
+ ///
+ /// Returns string representation for DashboardUserAccessRight
+ ///
+ public override string ToString()
+ {
+ return UnderlyingValue.ToString();
+ }
+
+ ///
+ /// Compares enums of type DashboardUserAccessRight
+ ///
+ public bool Equals(DashboardUserAccessRight e)
+ {
+ return UnderlyingValue.Equals(e.UnderlyingValue);
+ }
+
+ ///
+ /// Implicit operator to convert string to DashboardUserAccessRight
+ ///
+ public static implicit operator DashboardUserAccessRight(string value)
+ {
+ return new DashboardUserAccessRight(value);
+ }
+
+ ///
+ /// Implicit operator to convert DashboardUserAccessRight to string
+ ///
+ public static implicit operator string(DashboardUserAccessRight e)
+ {
+ return e.UnderlyingValue;
+ }
+
+ ///
+ /// Overriding == operator for enum DashboardUserAccessRight
+ ///
+ public static bool operator == (DashboardUserAccessRight e1, DashboardUserAccessRight e2)
+ {
+ return e2.Equals(e1);
+ }
+
+ ///
+ /// Overriding != operator for enum DashboardUserAccessRight
+ ///
+ public static bool operator != (DashboardUserAccessRight e1, DashboardUserAccessRight e2)
+ {
+ return !e2.Equals(e1);
+ }
+
+ ///
+ /// Overrides Equals operator for DashboardUserAccessRight
+ ///
+ public override bool Equals(object obj)
+ {
+ return obj is DashboardUserAccessRight && Equals((DashboardUserAccessRight)obj);
+ }
+
+ ///
+ /// Returns for hashCode DashboardUserAccessRight
+ ///
+ public override int GetHashCode()
+ {
+ return UnderlyingValue.GetHashCode();
+ }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DashboardUserAccessRightConverter.cs b/sdk/PowerBI.Api/Source/Models/DashboardUserAccessRightConverter.cs
new file mode 100644
index 00000000..e9588d08
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DashboardUserAccessRightConverter.cs
@@ -0,0 +1,50 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+
+ using System.Reflection;
+
+ ///
+ /// Defines values for DashboardUserAccessRight.
+ ///
+ public sealed class DashboardUserAccessRightConverter : JsonConverter
+ {
+
+ ///
+ /// Returns if objectType can be converted to DashboardUserAccessRight
+ /// by the converter.
+ ///
+ public override bool CanConvert(System.Type objectType)
+ {
+ return typeof(DashboardUserAccessRight).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo());
+ }
+
+ ///
+ /// Overrides ReadJson and converts token to DashboardUserAccessRight.
+ ///
+ public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer)
+ {
+ if (reader.TokenType == Newtonsoft.Json.JsonToken.Null)
+ {
+ return null;
+ }
+ return (DashboardUserAccessRight)serializer.Deserialize(reader);
+ }
+
+ ///
+ /// Overriding WriteJson for DashboardUserAccessRight for
+ /// serialization.
+ ///
+ public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
+ {
+ writer.WriteValue(value.ToString());
+ }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DashboardUsers.cs b/sdk/PowerBI.Api/Source/Models/DashboardUsers.cs
new file mode 100644
index 00000000..77239985
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DashboardUsers.cs
@@ -0,0 +1,57 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Odata response wrapper for a Power BI user access right for dashboard
+ /// List
+ ///
+ public partial class DashboardUsers
+ {
+ ///
+ /// Initializes a new instance of the DashboardUsers class.
+ ///
+ public DashboardUsers()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DashboardUsers class.
+ ///
+ /// The user access right for dashboard
+ /// List
+ public DashboardUsers(string odatacontext = default(string), IList value = default(IList))
+ {
+ Odatacontext = odatacontext;
+ Value = value;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "odata.context")]
+ public string Odatacontext { get; set; }
+
+ ///
+ /// Gets or sets the user access right for dashboard List
+ ///
+ [JsonProperty(PropertyName = "value")]
+ public IList Value { get; set; }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/Dataflow.cs b/sdk/PowerBI.Api/Source/Models/Dataflow.cs
index ccc464fd..c159a9b3 100644
--- a/sdk/PowerBI.Api/Source/Models/Dataflow.cs
+++ b/sdk/PowerBI.Api/Source/Models/Dataflow.cs
@@ -30,7 +30,7 @@ public Dataflow()
///
/// Initializes a new instance of the Dataflow class.
///
- /// The dataflow id
+ /// The dataflow ID
/// The dataflow name
/// The dataflow description
/// A URL to the dataflow definition file
@@ -45,7 +45,12 @@ public Dataflow()
/// Upstream Dataflows
/// The dataflow sensitivity
/// label
- public Dataflow(System.Guid objectId, string name = default(string), string description = default(string), string modelUrl = default(string), string configuredBy = default(string), string modifiedBy = default(string), EndorsementDetails endorsementDetails = default(EndorsementDetails), System.DateTime? modifiedDateTime = default(System.DateTime?), IList datasourceUsages = default(IList), IList upstreamDataflows = default(IList), SensitivityLabel sensitivityLabel = default(SensitivityLabel))
+ /// The Dataflow User Access Details. This value
+ /// will be empty. It will be removed from the payload response in an
+ /// upcoming release. To retrieve user information on an artifact,
+ /// please consider using the Get Dataflow User as Admin APIs, or the
+ /// PostWorkspaceInfo API with the getArtifactUser parameter.
+ public Dataflow(System.Guid objectId, string name = default(string), string description = default(string), string modelUrl = default(string), string configuredBy = default(string), string modifiedBy = default(string), EndorsementDetails endorsementDetails = default(EndorsementDetails), System.DateTime? modifiedDateTime = default(System.DateTime?), IList datasourceUsages = default(IList), IList upstreamDataflows = default(IList), SensitivityLabel sensitivityLabel = default(SensitivityLabel), IList users = default(IList))
{
ObjectId = objectId;
Name = name;
@@ -58,6 +63,7 @@ public Dataflow()
DatasourceUsages = datasourceUsages;
UpstreamDataflows = upstreamDataflows;
SensitivityLabel = sensitivityLabel;
+ Users = users;
CustomInit();
}
@@ -67,7 +73,7 @@ public Dataflow()
partial void CustomInit();
///
- /// Gets or sets the dataflow id
+ /// Gets or sets the dataflow ID
///
[JsonProperty(PropertyName = "objectId")]
public System.Guid ObjectId { get; set; }
@@ -132,6 +138,16 @@ public Dataflow()
[JsonProperty(PropertyName = "sensitivityLabel")]
public SensitivityLabel SensitivityLabel { get; set; }
+ ///
+ /// Gets or sets the Dataflow User Access Details. This value will be
+ /// empty. It will be removed from the payload response in an upcoming
+ /// release. To retrieve user information on an artifact, please
+ /// consider using the Get Dataflow User as Admin APIs, or the
+ /// PostWorkspaceInfo API with the getArtifactUser parameter.
+ ///
+ [JsonProperty(PropertyName = "users")]
+ public IList Users { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/PowerBI.Api/Source/Models/DataflowStorageAccount.cs b/sdk/PowerBI.Api/Source/Models/DataflowStorageAccount.cs
index 1fe6e4b0..f0253cc5 100644
--- a/sdk/PowerBI.Api/Source/Models/DataflowStorageAccount.cs
+++ b/sdk/PowerBI.Api/Source/Models/DataflowStorageAccount.cs
@@ -25,7 +25,7 @@ public DataflowStorageAccount()
///
/// Initializes a new instance of the DataflowStorageAccount class.
///
- /// The Power BI dataflow storage account id
+ /// The Power BI dataflow storage account ID
/// Indicates if workspaces can be assigned to
/// this storage account
/// The Power BI dataflow storage account
@@ -44,7 +44,7 @@ public DataflowStorageAccount()
partial void CustomInit();
///
- /// Gets or sets the Power BI dataflow storage account id
+ /// Gets or sets the Power BI dataflow storage account ID
///
[JsonProperty(PropertyName = "id")]
public System.Guid Id { get; set; }
diff --git a/sdk/PowerBI.Api/Source/Models/DataflowTransaction.cs b/sdk/PowerBI.Api/Source/Models/DataflowTransaction.cs
index 990f9eee..6a03b475 100644
--- a/sdk/PowerBI.Api/Source/Models/DataflowTransaction.cs
+++ b/sdk/PowerBI.Api/Source/Models/DataflowTransaction.cs
@@ -26,7 +26,7 @@ public DataflowTransaction()
///
/// Initializes a new instance of the DataflowTransaction class.
///
- /// The transaction id
+ /// The transaction ID
/// The type of refresh transaction
/// Start time of the transaction
/// End time of the transaction
@@ -47,7 +47,7 @@ public DataflowTransaction()
partial void CustomInit();
///
- /// Gets or sets the transaction id
+ /// Gets or sets the transaction ID
///
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
diff --git a/sdk/PowerBI.Api/Source/Models/DataflowTransactionStatus.cs b/sdk/PowerBI.Api/Source/Models/DataflowTransactionStatus.cs
index 12507b83..62b2b8fe 100644
--- a/sdk/PowerBI.Api/Source/Models/DataflowTransactionStatus.cs
+++ b/sdk/PowerBI.Api/Source/Models/DataflowTransactionStatus.cs
@@ -25,7 +25,7 @@ public DataflowTransactionStatus()
///
/// Initializes a new instance of the DataflowTransactionStatus class.
///
- /// Transaction id
+ /// The transaction ID
/// Status of transaction. Possible values
/// include: 'invalid', 'successfullyMarked', 'alreadyConcluded',
/// 'notFound'
@@ -42,7 +42,7 @@ public DataflowTransactionStatus()
partial void CustomInit();
///
- /// Gets or sets transaction id
+ /// Gets or sets the transaction ID
///
[JsonProperty(PropertyName = "transactionId")]
public string TransactionId { get; set; }
diff --git a/sdk/PowerBI.Api/Source/Models/DataflowUser.cs b/sdk/PowerBI.Api/Source/Models/DataflowUser.cs
new file mode 100644
index 00000000..5fccde17
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DataflowUser.cs
@@ -0,0 +1,95 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A Power BI user access right entry for dataflow
+ ///
+ public partial class DataflowUser
+ {
+ ///
+ /// Initializes a new instance of the DataflowUser class.
+ ///
+ public DataflowUser()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DataflowUser class.
+ ///
+ /// Access rights user has for
+ /// the dataflow (Permission level). Possible values include: 'None',
+ /// 'Read', 'ReadWrite', 'ReadReshare', 'Owner'
+ /// Email address of the user
+ /// Display name of the principal
+ /// Identifier of the principal
+ /// Identifier of the principal in Microsoft
+ /// Graph. Only available for admin APIs.
+ /// Possible values include: 'None',
+ /// 'User', 'Group', 'App'
+ public DataflowUser(DataflowUserAccessRight? dataflowUserAccessRight = default(DataflowUserAccessRight?), string emailAddress = default(string), string displayName = default(string), string identifier = default(string), string graphId = default(string), PrincipalType? principalType = default(PrincipalType?))
+ {
+ DataflowUserAccessRight = dataflowUserAccessRight;
+ EmailAddress = emailAddress;
+ DisplayName = displayName;
+ Identifier = identifier;
+ GraphId = graphId;
+ PrincipalType = principalType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets access rights user has for the dataflow (Permission
+ /// level). Possible values include: 'None', 'Read', 'ReadWrite',
+ /// 'ReadReshare', 'Owner'
+ ///
+ [JsonProperty(PropertyName = "DataflowUserAccessRight")]
+ public DataflowUserAccessRight? DataflowUserAccessRight { get; set; }
+
+ ///
+ /// Gets or sets email address of the user
+ ///
+ [JsonProperty(PropertyName = "emailAddress")]
+ public string EmailAddress { get; set; }
+
+ ///
+ /// Gets or sets display name of the principal
+ ///
+ [JsonProperty(PropertyName = "displayName")]
+ public string DisplayName { get; set; }
+
+ ///
+ /// Gets or sets identifier of the principal
+ ///
+ [JsonProperty(PropertyName = "identifier")]
+ public string Identifier { get; set; }
+
+ ///
+ /// Gets or sets identifier of the principal in Microsoft Graph. Only
+ /// available for admin APIs.
+ ///
+ [JsonProperty(PropertyName = "graphId")]
+ public string GraphId { get; set; }
+
+ ///
+ /// Gets or sets possible values include: 'None', 'User', 'Group',
+ /// 'App'
+ ///
+ [JsonProperty(PropertyName = "principalType")]
+ public PrincipalType? PrincipalType { get; set; }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DataflowUserAccessRight.cs b/sdk/PowerBI.Api/Source/Models/DataflowUserAccessRight.cs
new file mode 100644
index 00000000..12666b2a
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DataflowUserAccessRight.cs
@@ -0,0 +1,122 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+
+ ///
+ /// Defines values for DataflowUserAccessRight.
+ ///
+ ///
+ /// Determine base value for a given allowed value if exists, else return
+ /// the value itself
+ ///
+ [JsonConverter(typeof(DataflowUserAccessRightConverter))]
+ public struct DataflowUserAccessRight : System.IEquatable
+ {
+ private DataflowUserAccessRight(string underlyingValue)
+ {
+ UnderlyingValue=underlyingValue;
+ }
+
+ ///
+ /// Removes permission to content in dataflow
+ ///
+ public static readonly DataflowUserAccessRight None = "None";
+
+ ///
+ /// Grants Read access to content in dataflow
+ ///
+ public static readonly DataflowUserAccessRight Read = "Read";
+
+ ///
+ /// Grants Read and Write access to content in dataflow
+ ///
+ public static readonly DataflowUserAccessRight ReadWrite = "ReadWrite";
+
+ ///
+ /// Grants Read and Reshare access to content in dataflow
+ ///
+ public static readonly DataflowUserAccessRight ReadReshare = "ReadReshare";
+
+ ///
+ /// Grants Read, Write and Reshare access to content in dataflow
+ ///
+ public static readonly DataflowUserAccessRight Owner = "Owner";
+
+
+ ///
+ /// Underlying value of enum DataflowUserAccessRight
+ ///
+ private readonly string UnderlyingValue;
+
+ ///
+ /// Returns string representation for DataflowUserAccessRight
+ ///
+ public override string ToString()
+ {
+ return UnderlyingValue.ToString();
+ }
+
+ ///
+ /// Compares enums of type DataflowUserAccessRight
+ ///
+ public bool Equals(DataflowUserAccessRight e)
+ {
+ return UnderlyingValue.Equals(e.UnderlyingValue);
+ }
+
+ ///
+ /// Implicit operator to convert string to DataflowUserAccessRight
+ ///
+ public static implicit operator DataflowUserAccessRight(string value)
+ {
+ return new DataflowUserAccessRight(value);
+ }
+
+ ///
+ /// Implicit operator to convert DataflowUserAccessRight to string
+ ///
+ public static implicit operator string(DataflowUserAccessRight e)
+ {
+ return e.UnderlyingValue;
+ }
+
+ ///
+ /// Overriding == operator for enum DataflowUserAccessRight
+ ///
+ public static bool operator == (DataflowUserAccessRight e1, DataflowUserAccessRight e2)
+ {
+ return e2.Equals(e1);
+ }
+
+ ///
+ /// Overriding != operator for enum DataflowUserAccessRight
+ ///
+ public static bool operator != (DataflowUserAccessRight e1, DataflowUserAccessRight e2)
+ {
+ return !e2.Equals(e1);
+ }
+
+ ///
+ /// Overrides Equals operator for DataflowUserAccessRight
+ ///
+ public override bool Equals(object obj)
+ {
+ return obj is DataflowUserAccessRight && Equals((DataflowUserAccessRight)obj);
+ }
+
+ ///
+ /// Returns for hashCode DataflowUserAccessRight
+ ///
+ public override int GetHashCode()
+ {
+ return UnderlyingValue.GetHashCode();
+ }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DataflowUserAccessRightConverter.cs b/sdk/PowerBI.Api/Source/Models/DataflowUserAccessRightConverter.cs
new file mode 100644
index 00000000..bca5b817
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DataflowUserAccessRightConverter.cs
@@ -0,0 +1,49 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+
+ using System.Reflection;
+
+ ///
+ /// Defines values for DataflowUserAccessRight.
+ ///
+ public sealed class DataflowUserAccessRightConverter : JsonConverter
+ {
+
+ ///
+ /// Returns if objectType can be converted to DataflowUserAccessRight
+ /// by the converter.
+ ///
+ public override bool CanConvert(System.Type objectType)
+ {
+ return typeof(DataflowUserAccessRight).GetTypeInfo().IsAssignableFrom(objectType.GetTypeInfo());
+ }
+
+ ///
+ /// Overrides ReadJson and converts token to DataflowUserAccessRight.
+ ///
+ public override object ReadJson(JsonReader reader, System.Type objectType, object existingValue, JsonSerializer serializer)
+ {
+ if (reader.TokenType == Newtonsoft.Json.JsonToken.Null)
+ {
+ return null;
+ }
+ return (DataflowUserAccessRight)serializer.Deserialize(reader);
+ }
+
+ ///
+ /// Overriding WriteJson for DataflowUserAccessRight for serialization.
+ ///
+ public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
+ {
+ writer.WriteValue(value.ToString());
+ }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DataflowUsers.cs b/sdk/PowerBI.Api/Source/Models/DataflowUsers.cs
new file mode 100644
index 00000000..fe74eb52
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DataflowUsers.cs
@@ -0,0 +1,56 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Odata response wrapper for a Power BI user access right for dataflow
+ /// List
+ ///
+ public partial class DataflowUsers
+ {
+ ///
+ /// Initializes a new instance of the DataflowUsers class.
+ ///
+ public DataflowUsers()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DataflowUsers class.
+ ///
+ /// The user access right for dataflow List
+ public DataflowUsers(string odatacontext = default(string), IList value = default(IList))
+ {
+ Odatacontext = odatacontext;
+ Value = value;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "odata.context")]
+ public string Odatacontext { get; set; }
+
+ ///
+ /// Gets or sets the user access right for dataflow List
+ ///
+ [JsonProperty(PropertyName = "value")]
+ public IList Value { get; set; }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/Dataset.cs b/sdk/PowerBI.Api/Source/Models/Dataset.cs
index 092e1c62..b1938ed8 100644
--- a/sdk/PowerBI.Api/Source/Models/Dataset.cs
+++ b/sdk/PowerBI.Api/Source/Models/Dataset.cs
@@ -31,7 +31,7 @@ public Dataset()
///
/// Initializes a new instance of the Dataset class.
///
- /// The dataset id
+ /// The dataset ID
/// The dataset name
/// The dataset owner
/// Whether the dataset allows adding
@@ -60,9 +60,19 @@ public Dataset()
/// details
/// Datasource usages
/// Upstream Dataflows
+ /// The dataset tables
/// The dataset sensitivity
/// label
- public Dataset(string id, string name = default(string), string configuredBy = default(string), bool? addRowsAPIEnabled = default(bool?), string webUrl = default(string), bool? isRefreshable = default(bool?), bool? isEffectiveIdentityRequired = default(bool?), bool? isEffectiveIdentityRolesRequired = default(bool?), bool? isOnPremGatewayRequired = default(bool?), Encryption encryption = default(Encryption), System.DateTime? createdDate = default(System.DateTime?), string contentProviderType = default(string), string createReportEmbedURL = default(string), string qnaEmbedURL = default(string), string description = default(string), EndorsementDetails endorsementDetails = default(EndorsementDetails), IList datasourceUsages = default(IList), IList upstreamDataflows = default(IList), SensitivityLabel sensitivityLabel = default(SensitivityLabel))
+ /// The Dataset User Access Details. This value
+ /// will be empty. It will be removed from the payload response in an
+ /// upcoming release. To retrieve user information on an artifact,
+ /// please consider using the Get Dataset User as Admin APIs, or the
+ /// PostWorkspaceInfo API with the getArtifactUser parameter.
+ /// The dataset schema retrieval
+ /// error
+ /// Whether dataset schema may not
+ /// be up to date
+ public Dataset(string id, string name = default(string), string configuredBy = default(string), bool? addRowsAPIEnabled = default(bool?), string webUrl = default(string), bool? isRefreshable = default(bool?), bool? isEffectiveIdentityRequired = default(bool?), bool? isEffectiveIdentityRolesRequired = default(bool?), bool? isOnPremGatewayRequired = default(bool?), Encryption encryption = default(Encryption), System.DateTime? createdDate = default(System.DateTime?), string contentProviderType = default(string), string createReportEmbedURL = default(string), string qnaEmbedURL = default(string), string description = default(string), EndorsementDetails endorsementDetails = default(EndorsementDetails), IList datasourceUsages = default(IList), IList upstreamDataflows = default(IList), IList
tables = default(IList
), SensitivityLabel sensitivityLabel = default(SensitivityLabel), IList users = default(IList), string schemaRetrievalError = default(string), bool? schemaMayNotBeUpToDate = default(bool?))
{
Id = id;
Name = name;
@@ -82,7 +92,11 @@ public Dataset()
EndorsementDetails = endorsementDetails;
DatasourceUsages = datasourceUsages;
UpstreamDataflows = upstreamDataflows;
+ Tables = tables;
SensitivityLabel = sensitivityLabel;
+ Users = users;
+ SchemaRetrievalError = schemaRetrievalError;
+ SchemaMayNotBeUpToDate = schemaMayNotBeUpToDate;
CustomInit();
}
@@ -92,7 +106,7 @@ public Dataset()
partial void CustomInit();
///
- /// Gets or sets the dataset id
+ /// Gets or sets the dataset ID
///
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
@@ -203,12 +217,40 @@ public Dataset()
[JsonProperty(PropertyName = "upstreamDataflows")]
public IList UpstreamDataflows { get; set; }
+ ///
+ /// Gets or sets the dataset tables
+ ///
+ [JsonProperty(PropertyName = "tables")]
+ public IList
Tables { get; set; }
+
///
/// Gets or sets the dataset sensitivity label
///
[JsonProperty(PropertyName = "sensitivityLabel")]
public SensitivityLabel SensitivityLabel { get; set; }
+ ///
+ /// Gets or sets the Dataset User Access Details. This value will be
+ /// empty. It will be removed from the payload response in an upcoming
+ /// release. To retrieve user information on an artifact, please
+ /// consider using the Get Dataset User as Admin APIs, or the
+ /// PostWorkspaceInfo API with the getArtifactUser parameter.
+ ///
+ [JsonProperty(PropertyName = "users")]
+ public IList Users { get; set; }
+
+ ///
+ /// Gets or sets the dataset schema retrieval error
+ ///
+ [JsonProperty(PropertyName = "schemaRetrievalError")]
+ public string SchemaRetrievalError { get; set; }
+
+ ///
+ /// Gets or sets whether dataset schema may not be up to date
+ ///
+ [JsonProperty(PropertyName = "schemaMayNotBeUpToDate")]
+ public bool? SchemaMayNotBeUpToDate { get; set; }
+
///
/// Validate the object.
///
@@ -231,10 +273,30 @@ public virtual void Validate()
}
}
}
+ if (Tables != null)
+ {
+ foreach (var element1 in Tables)
+ {
+ if (element1 != null)
+ {
+ element1.Validate();
+ }
+ }
+ }
if (SensitivityLabel != null)
{
SensitivityLabel.Validate();
}
+ if (Users != null)
+ {
+ foreach (var element2 in Users)
+ {
+ if (element2 != null)
+ {
+ element2.Validate();
+ }
+ }
+ }
}
}
}
diff --git a/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesQuery.cs b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesQuery.cs
new file mode 100644
index 00000000..867f4302
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesQuery.cs
@@ -0,0 +1,61 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// A dataset query.
+ ///
+ public partial class DatasetExecuteQueriesQuery
+ {
+ ///
+ /// Initializes a new instance of the DatasetExecuteQueriesQuery class.
+ ///
+ public DatasetExecuteQueriesQuery()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DatasetExecuteQueriesQuery class.
+ ///
+ /// The DAX query to be executed.
+ public DatasetExecuteQueriesQuery(string query)
+ {
+ Query = query;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the DAX query to be executed.
+ ///
+ [JsonProperty(PropertyName = "query")]
+ public string Query { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Query == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Query");
+ }
+ }
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesQueryResult.cs b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesQueryResult.cs
new file mode 100644
index 00000000..f3485cb6
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesQueryResult.cs
@@ -0,0 +1,51 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Result of a single data set query.
+ ///
+ public partial class DatasetExecuteQueriesQueryResult
+ {
+ ///
+ /// Initializes a new instance of the DatasetExecuteQueriesQueryResult
+ /// class.
+ ///
+ public DatasetExecuteQueriesQueryResult()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DatasetExecuteQueriesQueryResult
+ /// class.
+ ///
+ /// A list of tables data for a query.
+ public DatasetExecuteQueriesQueryResult(IList tables = default(IList))
+ {
+ Tables = tables;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets a list of tables data for a query.
+ ///
+ [JsonProperty(PropertyName = "tables")]
+ public IList Tables { get; set; }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesRequest.cs b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesRequest.cs
new file mode 100644
index 00000000..de91810d
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesRequest.cs
@@ -0,0 +1,84 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Request to execute queries against a dataset.
+ ///
+ public partial class DatasetExecuteQueriesRequest
+ {
+ ///
+ /// Initializes a new instance of the DatasetExecuteQueriesRequest
+ /// class.
+ ///
+ public DatasetExecuteQueriesRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DatasetExecuteQueriesRequest
+ /// class.
+ ///
+ /// A list of queries to be executed.
+ /// The serialization settings for the
+ /// results.
+ public DatasetExecuteQueriesRequest(IList queries, DatasetExecuteQueriesSerializationSettings serializerSettings = default(DatasetExecuteQueriesSerializationSettings))
+ {
+ Queries = queries;
+ SerializerSettings = serializerSettings;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets a list of queries to be executed.
+ ///
+ [JsonProperty(PropertyName = "queries")]
+ public IList Queries { get; set; }
+
+ ///
+ /// Gets or sets the serialization settings for the results.
+ ///
+ [JsonProperty(PropertyName = "serializerSettings")]
+ public DatasetExecuteQueriesSerializationSettings SerializerSettings { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Queries == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Queries");
+ }
+ if (Queries != null)
+ {
+ foreach (var element in Queries)
+ {
+ if (element != null)
+ {
+ element.Validate();
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesResponse.cs b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesResponse.cs
new file mode 100644
index 00000000..9abd2f3f
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesResponse.cs
@@ -0,0 +1,52 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Response of a data set execute queries request.
+ ///
+ public partial class DatasetExecuteQueriesResponse
+ {
+ ///
+ /// Initializes a new instance of the DatasetExecuteQueriesResponse
+ /// class.
+ ///
+ public DatasetExecuteQueriesResponse()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DatasetExecuteQueriesResponse
+ /// class.
+ ///
+ /// A list of results, one per input
+ /// query.
+ public DatasetExecuteQueriesResponse(IList results = default(IList))
+ {
+ Results = results;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets a list of results, one per input query.
+ ///
+ [JsonProperty(PropertyName = "results")]
+ public IList Results { get; set; }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesSerializationSettings.cs b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesSerializationSettings.cs
new file mode 100644
index 00000000..6f6d2970
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesSerializationSettings.cs
@@ -0,0 +1,53 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The serialization settings for the dataset query results.
+ ///
+ public partial class DatasetExecuteQueriesSerializationSettings
+ {
+ ///
+ /// Initializes a new instance of the
+ /// DatasetExecuteQueriesSerializationSettings class.
+ ///
+ public DatasetExecuteQueriesSerializationSettings()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// DatasetExecuteQueriesSerializationSettings class.
+ ///
+ /// 1 indicates that null (blank) values
+ /// should be included in the result. 0 indicates they should be
+ /// omitted. 0 is the default in absence of the settings.
+ public DatasetExecuteQueriesSerializationSettings(bool? includeNulls = default(bool?))
+ {
+ IncludeNulls = includeNulls;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets 1 indicates that null (blank) values should be
+ /// included in the result. 0 indicates they should be omitted. 0 is
+ /// the default in absence of the settings.
+ ///
+ [JsonProperty(PropertyName = "includeNulls")]
+ public bool? IncludeNulls { get; set; }
+
+ }
+}
diff --git a/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesTableResult.cs b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesTableResult.cs
new file mode 100644
index 00000000..c27bebac
--- /dev/null
+++ b/sdk/PowerBI.Api/Source/Models/DatasetExecuteQueriesTableResult.cs
@@ -0,0 +1,51 @@
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.PowerBI.Api.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// A table of data.
+ ///
+ public partial class DatasetExecuteQueriesTableResult
+ {
+ ///
+ /// Initializes a new instance of the DatasetExecuteQueriesTableResult
+ /// class.
+ ///
+ public DatasetExecuteQueriesTableResult()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DatasetExecuteQueriesTableResult
+ /// class.
+ ///
+ /// A list of rows.
+ public DatasetExecuteQueriesTableResult(IList