/// <summary> /// UpdateFileShare allows to update existing file share for given subscription /// </summary> public async Task UpdateFileShareAsync(string subscriptionId, FileShare fileShareNameToUpdate) { var requestUrl = this.CreateRequestUri(HelloWorldClient.CreateUri(subscriptionId)); await this.PutAsync <FileShare>(requestUrl, fileShareNameToUpdate); }
/// <summary> /// ListFileShares supposed to return list of file shares per subscription stored in Hello World Resource Provider /// Per subscription shares not implemented for this sample so its returning static common file shares for all subscriptions /// </summary> public async Task <List <FileShare> > ListFileSharesAsync(string subscriptionId = null) { var requestUrl = this.CreateRequestUri(HelloWorldClient.CreateUri(subscriptionId)); return(await this.GetAsync <List <FileShare> >(requestUrl)); }