C# Class Microsoft.PowerBI.Api.V1.ImportsExtensions

Show file Open project: Microsoft/PowerBI-CSharp

Public Methods

Method Description
GetImportById ( this operations, string collectionName, string workspaceId, string importId ) : Import

Gets the import metadata for the specifed import id

GetImportByIdAsync ( this operations, string collectionName, string workspaceId, string importId, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Gets the import metadata for the specifed import id

GetImports ( this operations, string collectionName, string workspaceId ) : ODataResponseListImport

Returns a list of imports for the specified workspace

GetImportsAsync ( this operations, string collectionName, string workspaceId, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Returns a list of imports for the specified workspace

PostImport ( this operations, string collectionName, string workspaceId, string datasetDisplayName, ImportInfo importInfo, string nameConflict = default(string) ) : Import

Creates a new import using the specified import info

PostImportAsync ( this operations, string collectionName, string workspaceId, string datasetDisplayName, ImportInfo importInfo, string nameConflict = default(string), CancellationToken cancellationToken = default(CancellationToken) ) : Task

Creates a new import using the specified import info

PostImportWithFile ( this operations, string collectionName, string workspaceId, Stream fileStream, string datasetDisplayName = default(string), string nameConflict = default(string) ) : Import

Uploads a PBIX file to the specified workspace

PostImportWithFileAsync ( this operations, string collectionName, string workspaceId, Stream fileStream, string datasetDisplayName = default(string), string nameConflict = default(string), CancellationToken cancellationToken = default(CancellationToken) ) : Task

Method Details

GetImportById() public static method

Gets the import metadata for the specifed import id
public static GetImportById ( this operations, string collectionName, string workspaceId, string importId ) : Import
operations this /// The operations group for this extension method. ///
collectionName string /// The workspace collection name ///
workspaceId string /// The workspace id ///
importId string /// The import id ///
return Microsoft.PowerBI.Api.V1.Models.Import

GetImportByIdAsync() public static method

Gets the import metadata for the specifed import id
public static GetImportByIdAsync ( this operations, string collectionName, string workspaceId, string importId, CancellationToken cancellationToken = default(CancellationToken) ) : Task
operations this /// The operations group for this extension method. ///
collectionName string /// The workspace collection name ///
workspaceId string /// The workspace id ///
importId string /// The import id ///
cancellationToken System.Threading.CancellationToken /// The cancellation token. ///
return Task

GetImports() public static method

Returns a list of imports for the specified workspace
public static GetImports ( this operations, string collectionName, string workspaceId ) : ODataResponseListImport
operations this /// The operations group for this extension method. ///
collectionName string /// The workspace collection name ///
workspaceId string /// The workspace id ///
return Microsoft.PowerBI.Api.V1.Models.ODataResponseListImport

GetImportsAsync() public static method

Returns a list of imports for the specified workspace
public static GetImportsAsync ( this operations, string collectionName, string workspaceId, CancellationToken cancellationToken = default(CancellationToken) ) : Task
operations this /// The operations group for this extension method. ///
collectionName string /// The workspace collection name ///
workspaceId string /// The workspace id ///
cancellationToken System.Threading.CancellationToken /// The cancellation token. ///
return Task

PostImport() public static method

Creates a new import using the specified import info
public static PostImport ( this operations, string collectionName, string workspaceId, string datasetDisplayName, ImportInfo importInfo, string nameConflict = default(string) ) : Import
operations this /// The operations group for this extension method. ///
collectionName string /// The workspace collection name ///
workspaceId string /// The workspace id ///
datasetDisplayName string /// The display name of the dataset ///
importInfo Microsoft.PowerBI.Api.V1.Models.ImportInfo /// The import to post ///
nameConflict string /// Determines what to do if a dataset with the same name already exists ///
return Microsoft.PowerBI.Api.V1.Models.Import

PostImportAsync() public static method

Creates a new import using the specified import info
public static PostImportAsync ( this operations, string collectionName, string workspaceId, string datasetDisplayName, ImportInfo importInfo, string nameConflict = default(string), CancellationToken cancellationToken = default(CancellationToken) ) : Task
operations this /// The operations group for this extension method. ///
collectionName string /// The workspace collection name ///
workspaceId string /// The workspace id ///
datasetDisplayName string /// The display name of the dataset ///
importInfo Microsoft.PowerBI.Api.V1.Models.ImportInfo /// The import to post ///
nameConflict string /// Determines what to do if a dataset with the same name already exists ///
cancellationToken System.Threading.CancellationToken /// The cancellation token. ///
return Task

PostImportWithFile() public static method

Uploads a PBIX file to the specified workspace
public static PostImportWithFile ( this operations, string collectionName, string workspaceId, Stream fileStream, string datasetDisplayName = default(string), string nameConflict = default(string) ) : Import
operations this /// The import operations ///
collectionName string /// The workspace collection name ///
workspaceId string /// The workspace id ///
fileStream System.IO.Stream /// The PBIX file to import ///
datasetDisplayName string /// The dataset display name ///
nameConflict string /// Whether to overwrite dataset during conflicts ///
return Microsoft.PowerBI.Api.V1.Models.Import

PostImportWithFileAsync() public static method

public static PostImportWithFileAsync ( this operations, string collectionName, string workspaceId, Stream fileStream, string datasetDisplayName = default(string), string nameConflict = default(string), CancellationToken cancellationToken = default(CancellationToken) ) : Task
operations this
collectionName string /// The workspace collection name ///
workspaceId string /// The workspace id ///
fileStream System.IO.Stream /// The PBIX file to import ///
datasetDisplayName string /// The dataset display name ///
nameConflict string /// Whether to overwrite dataset during conflicts ///
cancellationToken System.Threading.CancellationToken /// The cancellation token. ///
return Task