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

Extension methods for Workspaces.
Show file Open project: Microsoft/PowerBI-CSharp

Public Methods

Method Description
GetWorkspacesByCollectionName ( this operations, string collectionName ) : ODataResponseListWorkspace

Returns a list of workspaces for the specified collection

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

Returns a list of workspaces for the specified collection

PostWorkspace ( this operations, string collectionName ) : Workspace

Creates a new workspace within a workspace collection

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

Creates a new workspace within a workspace collection

Method Details

GetWorkspacesByCollectionName() public static method

Returns a list of workspaces for the specified collection
public static GetWorkspacesByCollectionName ( this operations, string collectionName ) : ODataResponseListWorkspace
operations this /// The operations group for this extension method. ///
collectionName string /// The workspace collection name ///
return ODataResponseListWorkspace

GetWorkspacesByCollectionNameAsync() public static method

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

PostWorkspace() public static method

Creates a new workspace within a workspace collection
public static PostWorkspace ( this operations, string collectionName ) : Workspace
operations this /// The operations group for this extension method. ///
collectionName string /// The workspace collection name ///
return Workspace

PostWorkspaceAsync() public static method

Creates a new workspace within a workspace collection
public static PostWorkspaceAsync ( this operations, string collectionName, CancellationToken cancellationToken = default(CancellationToken) ) : Task
operations this /// The operations group for this extension method. ///
collectionName string /// The workspace collection name ///
cancellationToken System.Threading.CancellationToken /// The cancellation token. ///
return Task