/// <summary> /// Initiate a call to receive metadata for the requested list of workspaces /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as 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 Tenant.ReadWrite.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='requiredWorkspaces'> /// Required workspace IDs to get info for /// </param> /// <param name='lineage'> /// Whether to return lineage info (upstream dataflows, tiles, datasource IDs) /// </param> /// <param name='datasourceDetails'> /// Whether to return datasource details /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ScanRequest> PostWorkspaceInfoAsync(this IWorkspaceInfoOperations operations, RequiredWorkspaces requiredWorkspaces, bool?lineage = default(bool?), bool?datasourceDetails = default(bool?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostWorkspaceInfoWithHttpMessagesAsync(requiredWorkspaces, lineage, datasourceDetails, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets a list of workspace IDs in the organization. When using modifiedSince, /// returns only the IDs of workspaces that had changed since the time /// specified in the modifiedSince parameter. If not provided, returns a list /// of all workspace IDs in the organization. modifiedSince parameter should /// range from 30 minutes to 30 days ago. Notice changes can take up to 30 /// minutes to take effect. /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as 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 /// 30 requests per hour. <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). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='modifiedSince'> /// Last modified date (must be in ISO 8601 compliant UTC format) /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ModifiedWorkspaces> GetModifiedWorkspacesAsync(this IWorkspaceInfoOperations operations, System.DateTime?modifiedSince = default(System.DateTime?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetModifiedWorkspacesWithHttpMessagesAsync(modifiedSince, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets scan result for the specified scan (should be called only after /// getting status Succeeded in the scan status API). Scan result will be /// available for up to 24 hours /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as 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 Tenant.ReadWrite.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='scanId'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <WorkspaceInfoResponse> GetScanResultAsync(this IWorkspaceInfoOperations operations, System.Guid scanId, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetScanResultWithHttpMessagesAsync(scanId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets scan status for the specified scan /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as 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 /// 10000 requests per hour. <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). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='scanId'> /// </param> public static ScanRequest GetScanStatus(this IWorkspaceInfoOperations operations, System.Guid scanId) { return(operations.GetScanStatusAsync(scanId).GetAwaiter().GetResult()); }
/// <summary> /// Initiate a call to receive metadata for the requested list of workspaces /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as 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 Tenant.ReadWrite.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='requiredWorkspaces'> /// Required workspace IDs to get info for /// </param> /// <param name='lineage'> /// Whether to return lineage info (upstream dataflows, tiles, datasource IDs) /// </param> /// <param name='datasourceDetails'> /// Whether to return datasource details /// </param> public static ScanRequest PostWorkspaceInfo(this IWorkspaceInfoOperations operations, RequiredWorkspaces requiredWorkspaces, bool?lineage = default(bool?), bool?datasourceDetails = default(bool?)) { return(operations.PostWorkspaceInfoAsync(requiredWorkspaces, lineage, datasourceDetails).GetAwaiter().GetResult()); }
/// <summary> /// Gets a list of workspace IDs in the organization. When using modifiedSince, /// returns only the IDs of workspaces that had changed since the time /// specified in the modifiedSince parameter. If not provided, returns a list /// of all workspace IDs in the organization. modifiedSince parameter should /// range from 30 minutes to 30 days ago. Notice changes can take up to 30 /// minutes to take effect. /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as 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 /// 30 requests per hour. <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). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='modifiedSince'> /// Last modified date (must be in ISO 8601 compliant UTC format) /// </param> public static ModifiedWorkspaces GetModifiedWorkspaces(this IWorkspaceInfoOperations operations, System.DateTime?modifiedSince = default(System.DateTime?)) { return(operations.GetModifiedWorkspacesAsync(modifiedSince).GetAwaiter().GetResult()); }
/// <summary> /// Gets scan result for the specified scan (should be called only after /// getting status Succeeded in the scan status API). Scan result will be /// available for up to 24 hours /// </summary> /// <remarks> /// **Note:** The user must have administrator rights (such as 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 Tenant.ReadWrite.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='scanId'> /// </param> public static WorkspaceInfoResponse GetScanResult(this IWorkspaceInfoOperations operations, System.Guid scanId) { return(operations.GetScanResultAsync(scanId).GetAwaiter().GetResult()); }