/// <summary>
        /// Exports the specified dataflow definition to a .json file.
        /// </summary>
        /// <remarks>
        /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All or Dataflow.Read.All
        /// &lt;br/&gt;To set the permissions scope, see [Register an
        /// app](https://docs.microsoft.com/power-bi/developer/register-app).
        /// </remarks>
        /// <param name='operations'>
        /// The operations group for this extension method.
        /// </param>
        /// <param name='groupId'>
        /// The workspace id
        /// </param>
        /// <param name='dataflowId'>
        /// The dataflow id
        /// </param>
        /// <param name='cancellationToken'>
        /// The cancellation token.
        /// </param>
        public static async Task <Stream> GetDataflowAsync(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId, CancellationToken cancellationToken = default(CancellationToken))
        {
            var _result = await operations.GetDataflowWithHttpMessagesAsync(groupId, dataflowId, null, cancellationToken).ConfigureAwait(false);

            _result.Request.Dispose();
            return(_result.Body);
        }
 /// <summary>
 /// Returns a list of datasources for the specified dataflow.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**:
 /// Tenant.Read.All&lt;br/&gt;Application only and delegated permissions are
 /// supported.&lt;br/&gt;To set the permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Datasources> GetDataflowDatasourcesAsAdminAsync(this IDataflowsOperations operations, System.Guid dataflowId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetDataflowDatasourcesAsAdminWithHttpMessagesAsync(dataflowId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns a list of upstream dataflows for the requested dataflow.
 /// </summary>
 /// <remarks>
 /// <br/>**Required scope**: Dataflow.ReadWrite.All or Dataflow.Read.All <br/>
 /// To set the permissions scope, see [Register an app](https://docs.microsoft.com/power-bi/developer/register-app).,
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 /// <param name="cancellationToken">
 /// The cancellation token.
 /// </param>
 public static async Task <DependentDataflows> GetUpstreamDataflowsAsync(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetUpstreamDataflowsInGroupWithHttpMessagesAsync(groupId, dataflowId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Returns a list of dataflows for the organization.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.ReadWrite.All&lt;br/&gt;To set the permissions scope, see [Register
 /// an app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='filter'>
 /// Filters the results, based on a boolean condition
 /// </param>
 /// <param name='top'>
 /// Returns only the first n results
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <Dataflows> GetDataflowsAsAdminAsync(this IDataflowsOperations operations, string filter = default(string), int?top = default(int?), int?skip = default(int?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetDataflowsAsAdminWithHttpMessagesAsync(filter, top, skip, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Returns a list of dataflows for the organization.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.ReadWrite.All&lt;br/&gt;To set the permissions scope, see [Register
 /// an app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='filter'>
 /// Filters the results, based on a boolean condition
 /// </param>
 /// <param name='top'>
 /// Returns only the first n results
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results
 /// </param>
 public static Dataflows GetDataflowsAsAdmin(this IDataflowsOperations operations, string filter = default(string), int?top = default(int?), int?skip = default(int?))
 {
     return(operations.GetDataflowsAsAdminAsync(filter, top, skip).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns a list of dataflows from the specified workspace.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.ReadWrite.All&lt;br/&gt;To set the permissions scope, see [Register
 /// an app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='filter'>
 /// Filters the results, based on a boolean condition
 /// </param>
 /// <param name='top'>
 /// Returns only the first n results
 /// </param>
 /// <param name='skip'>
 /// Skips the first n results
 /// </param>
 public static Dataflows GetDataflowsInGroupAsAdmin(this IDataflowsOperations operations, System.Guid groupId, string filter = default(string), int?top = default(int?), int?skip = default(int?))
 {
     return(operations.GetDataflowsInGroupAsAdminAsync(groupId, filter, top, skip).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns a list of upstream dataflows for the specified dataflow.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.ReadWrite.All&lt;br/&gt;To set the permissions scope, see [Register
 /// an app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 public static DependentDataflows GetUpstreamDataflowsInGroupAsAdmin(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
 {
     return(operations.GetUpstreamDataflowsInGroupAsAdminAsync(groupId, dataflowId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates or updates the specified dataflow refresh schedule configuration.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All &lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 /// <param name='refreshScheduleRequest'>
 /// The dataflow refresh schedule to create or update
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task UpdateRefreshScheduleAsync(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId, RefreshScheduleRequest refreshScheduleRequest, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.UpdateRefreshScheduleWithHttpMessagesAsync(groupId, dataflowId, refreshScheduleRequest, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Triggers a refresh for the specified dataflow. The only supported mail
 /// notification options are either in case of failure, or none.
 /// MailOnCompletion is not supported.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All &lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 /// <param name='refreshRequest'>
 /// </param>
 /// <param name='processType'>
 /// Type of refresh process to use.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task RefreshDataflowAsync(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId, RefreshRequest refreshRequest = default(RefreshRequest), System.Guid?processType = default(System.Guid?), CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.RefreshDataflowWithHttpMessagesAsync(groupId, dataflowId, refreshRequest, processType, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Returns a list of datasources for the specified dataflow.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All or Dataflow.Read.All
 /// &lt;br/&gt;To set the permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 public static Datasources GetDataflowDataSources(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
 {
     return(operations.GetDataflowDataSourcesAsync(groupId, dataflowId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Triggers a refresh for the specified dataflow.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All &lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 /// <param name='refreshRequest'>
 /// </param>
 public static void RefreshDataflow(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId, RefreshRequest refreshRequest = default(RefreshRequest))
 {
     operations.RefreshDataflowAsync(groupId, dataflowId, refreshRequest).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Deletes a dataflow from the CDS for Analytics storage, including its
 /// definition file and actual model.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All &lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteDataflowAsync(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteDataflowWithHttpMessagesAsync(groupId, dataflowId, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Returns a list of upstream dataflows for the requested dataflow as admin.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**: Tenant.Read.All or
 /// Tenant.ReadWrite.All&lt;br/&gt;To set the permissions scope, see [Register
 /// an app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 public static DependentDataflows GetUpstreamDataflowsAsAdmin(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
 {
     return(operations.GetUpstreamDataflowsInGroupAsAdmin(groupId, dataflowId));
 }
 /// <summary>
 /// Attempts to Cancel the specified transactions.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All &lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='transactionId'>
 /// The transaction id
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <DataflowTransactionStatus> CancelDataflowTransactionAsync(this IDataflowsOperations operations, System.Guid groupId, System.Guid transactionId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CancelDataflowTransactionWithHttpMessagesAsync(groupId, transactionId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Attempts to Cancel the specified transactions.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All &lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='transactionId'>
 /// The transaction id
 /// </param>
 public static DataflowTransactionStatus CancelDataflowTransaction(this IDataflowsOperations operations, System.Guid groupId, System.Guid transactionId)
 {
     return(operations.CancelDataflowTransactionAsync(groupId, transactionId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns a list of all dataflows from the specified workspace.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All or Dataflow.Read.All
 /// &lt;br/&gt;To set the permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 public static Dataflows GetDataflows(this IDataflowsOperations operations, System.Guid groupId)
 {
     return(operations.GetDataflowsAsync(groupId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Exports the specified dataflow definition to a .json file.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**:
 /// Tenant.Read.All&lt;br/&gt;Application only and delegated permissions are
 /// supported.&lt;br/&gt;To set the permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 public static Stream ExportDataflowAsAdmin(this IDataflowsOperations operations, System.Guid dataflowId)
 {
     return(operations.ExportDataflowAsAdminAsync(dataflowId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates or updates the specified dataflow refresh schedule configuration.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All &lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 /// <param name='refreshScheduleRequest'>
 /// The dataflow refresh schedule to create or update
 /// </param>
 public static void UpdateRefreshSchedule(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId, RefreshScheduleRequest refreshScheduleRequest)
 {
     operations.UpdateRefreshScheduleAsync(groupId, dataflowId, refreshScheduleRequest).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Returns a list of datasources for the specified dataflow.
 /// </summary>
 /// <remarks>
 /// **Note:** The user must have administrator rights (such as Office 365
 /// Global Administrator or Power BI Service Administrator) to call this API.
 /// &lt;br/&gt;&lt;br/&gt;**Required scope**:
 /// Tenant.Read.All&lt;br/&gt;Application only and delegated permissions are
 /// supported.&lt;br/&gt;To set the permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 public static Datasources GetDataflowDatasourcesAsAdmin(this IDataflowsOperations operations, System.Guid dataflowId)
 {
     return(operations.GetDataflowDatasourcesAsAdminAsync(dataflowId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Exports the specified dataflow definition to a .json file.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All or Dataflow.Read.All
 /// &lt;br/&gt;To set the permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 public static Stream GetDataflow(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
 {
     return(operations.GetDataflowAsync(groupId, dataflowId).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes a dataflow from the CDS for Analytics storage, including its
 /// definition file and actual model.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All &lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 public static void DeleteDataflow(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId)
 {
     operations.DeleteDataflowAsync(groupId, dataflowId).GetAwaiter().GetResult();
 }
 /// <summary>
 /// Update dataflow properties, capabilities and settings.
 /// </summary>
 /// <remarks>
 /// &lt;br/&gt;**Required scope**: Dataflow.ReadWrite.All &lt;br/&gt;To set the
 /// permissions scope, see [Register an
 /// app](https://docs.microsoft.com/power-bi/developer/register-app).
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='groupId'>
 /// The workspace id
 /// </param>
 /// <param name='dataflowId'>
 /// The dataflow id
 /// </param>
 /// <param name='dataflowUpdateRequest'>
 /// Patch dataflow properties, capabilities and settings
 /// </param>
 public static void UpdateDataflow(this IDataflowsOperations operations, System.Guid groupId, System.Guid dataflowId, DataflowUpdateRequestMessage dataflowUpdateRequest)
 {
     operations.UpdateDataflowAsync(groupId, dataflowId, dataflowUpdateRequest).GetAwaiter().GetResult();
 }