/// <summary> /// Returns the specified import from **"My Workspace"**. /// </summary> /// <remarks> /// <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). /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='importId'> /// The import id /// </param> public static Import GetImport(this IImportsOperations operations, System.Guid importId) { return(operations.GetImportAsync(importId).GetAwaiter().GetResult()); }
/// <summary> /// Gets the import metadata for the specifed import id /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='groupId'> /// The group id /// </param> /// <param name='importId'> /// The import id /// </param> public static Import GetImport(this IImportsOperations operations, Guid groupId, Guid importId) { return(operations.GetImportAsync(groupId, importId).GetAwaiter().GetResult()); }