public virtual Response <BlobContainer> Update(BlobContainerData blobContainer, CancellationToken cancellationToken = default) { Argument.AssertNotNull(blobContainer, nameof(blobContainer)); using var scope = _blobContainerClientDiagnostics.CreateScope("BlobContainer.Update"); scope.Start(); try { var response = _blobContainerRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Name, blobContainer, cancellationToken); return(Response.FromValue(new BlobContainer(Client, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }
public virtual Response <BlobContainer> Update(BlobContainerData blobContainer, CancellationToken cancellationToken = default) { if (blobContainer == null) { throw new ArgumentNullException(nameof(blobContainer)); } using var scope = _clientDiagnostics.CreateScope("BlobContainer.Update"); scope.Start(); try { var response = _restClient.Update(Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, blobContainer, cancellationToken); return(Response.FromValue(new BlobContainer(this, response.Value), response.GetRawResponse())); } catch (Exception e) { scope.Failed(e); throw; } }