Open
Description
Is your feature request related to a problem? Please describe.
I need to know the URL of the BlobLeaseClient
to produce good error message from my utility functions.
For convenience, a direct link to the header: https://github.com/Azure/azure-sdk-for-cpp/blob/main/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_lease_client.hpp
Describe the solution you'd like
BlobLeaseClient
should have a GetUrl
getter.
blob_lease_client.hpp
:
std::string BlobLeaseClient::GetUrl() const
{
if (m_blobClient.HasValue())
{
return m_blobClient->GetUrl();
}
else if (m_blobContainerClient.HasValue())
{
return m_blobContainerClient->GetUrl();
}
else
{
AZURE_UNREACHABLE_CODE();
}
}
blob_lease_client.cpp
:
/**
* @brief Get's the primary URL endpoint of the blob or container.
*
* @return A URL of a blob or container.
*/
std::string GetUrl() const;
Describe alternatives you've considered
Passing a string as parameter everywhere in my code.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
- Description Added
- Expected solution specified