/// <summary> /// UpdateFolder allows to update existing folder for given subscription /// </summary> public async Task UpdateFolderAsync(string subscriptionId, Folder folder) { var requestUrl = this.CreateRequestUri(StorageSampleClient.CreateTenantFoldersUri(subscriptionId)); await this.PutAsync <Folder>(requestUrl, folder); }
/// <summary> /// CreateFolder allows to create new folder for given subscription /// </summary> public async Task DeleteFolderAsync(string subscriptionId, int folderId) { var requestUrl = this.CreateRequestUri(StorageSampleClient.CreateTenantFoldersUri(subscriptionId)); await this.httpClient.DeleteAsync(requestUrl.ToString() + "?folderId=" + folderId); }
/// <summary> /// ListFolders supposed to return list of folders per subscription stored in Storage Sample Resource Provider /// Per subscription shares not implemented for this sample so its returning static common folders for all subscriptions /// </summary> public async Task <List <Folder> > ListFoldersAsync(string subscriptionId = null) { var requestUrl = this.CreateRequestUri(StorageSampleClient.CreateTenantFoldersUri(subscriptionId)); return(await this.GetAsync <List <Folder> >(requestUrl)); }