/// <summary>
 /// Upload resource to workspaces.
 /// </summary>
 /// <param name="workspaces"></param>
 /// <param name="resourceFileFormat"></param>
 /// <param name="filePath"></param>
 public static void UploadResource(this IEnumerable <Workspace> workspaces, ResourceFileFormat resourceFileFormat, string filePath = "dataset")
 {
     workspaces.ForEach(w => WorkspaceExtensions.UploadResource(w, resourceFileFormat, filePath));
 }
 /// <summary>
 /// Get workspace datasets dictionary.
 /// </summary>
 /// <param name="workspaces"></param>
 /// <returns>Returns a dictionary of workspaces and its datasets.</returns>
 public static IDictionary <Workspace, IEnumerable <Dataset> > GetDatasets(this IEnumerable <Workspace> workspaces)
 {
     return(workspaces.ToDictionary(w => w, w => WorkspaceExtensions.GetDatasets(w)));
 }
 /// <summary>
 /// Download all datasets from selected workspaces.
 /// </summary>
 /// <param name="workspaces"></param>
 public static void DownloadAllDatasets(this IEnumerable <Workspace> workspaces)
 {
     workspaces.ForEach(w => WorkspaceExtensions.DownloadAllDatasets(w));
 }
 /// <summary>
 /// Add new users to workspace collection.
 /// </summary>
 /// <param name="workspaces"></param>
 /// <param name="workspaceUsers"></param>
 public static void AddUsers(this IEnumerable <Workspace> workspaces, IEnumerable <WorkspaceUser> workspaceUsers)
 {
     workspaces.ForEach(w => WorkspaceExtensions.AddUsers(w, workspaceUsers));
 }
 /// <summary>
 /// Add new user to workspace collection.
 /// </summary>
 /// <param name="workspaces"></param>
 /// <param name="email"></param>
 /// <param name="role"></param>
 public static void AddUser(this IEnumerable <Workspace> workspaces, string email, string role)
 {
     workspaces.ForEach(w => WorkspaceExtensions.AddUser(w, email, role));
 }
 /// <summary>
 /// Get transforms.
 /// </summary>
 /// <param name="workspaces"></param>
 /// <returns></returns>
 public static IDictionary <Workspace, IEnumerable <UserAsset> > GetTransforms(this IEnumerable <Workspace> workspaces)
 {
     return(workspaces.ToDictionary(w => w, w => WorkspaceExtensions.GetTransforms(w)));
 }
 /// <summary>
 /// Export all experiments as JSON.
 /// </summary>
 /// <param name="workspaces"></param>
 public static void ExportExperiments(this IEnumerable <Workspace> workspaces)
 {
     workspaces.ForEach(w => WorkspaceExtensions.ExportExperiments(w));
 }
 /// <summary>
 /// Upload resources to workspaces.
 /// </summary>
 /// <param name="workspaces"></param>
 /// <param name="resources"></param>
 public static void UploadResources(this IEnumerable <Workspace> workspaces, IDictionary <string, ResourceFileFormat> resources)
 {
     workspaces.ForEach(w => WorkspaceExtensions.UploadResources(w, resources));
 }