clients accept TokenCredential as param (#998)
This commit is contained in:
parent
9fae36a4f7
commit
2b56b8b026
@ -68,7 +68,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
*/
|
||||
explicit AppendBlobClient(
|
||||
const std::string& blobUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options = BlobClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -71,7 +71,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
*/
|
||||
explicit BlobClient(
|
||||
const std::string& blobUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options = BlobClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -64,7 +64,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
*/
|
||||
explicit BlobContainerClient(
|
||||
const std::string& containerUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options = BlobClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -56,7 +56,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
*/
|
||||
explicit BlobServiceClient(
|
||||
const std::string& serviceUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options = BlobClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -78,7 +78,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
*/
|
||||
explicit BlockBlobClient(
|
||||
const std::string& blobUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options = BlobClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -70,7 +70,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
*/
|
||||
explicit PageBlobClient(
|
||||
const std::string& blobUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options = BlobClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -29,7 +29,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
|
||||
AppendBlobClient::AppendBlobClient(
|
||||
const std::string& blobUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options)
|
||||
: BlobClient(blobUrl, std::move(credential), options)
|
||||
{
|
||||
|
||||
@ -68,7 +68,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
|
||||
BlobClient::BlobClient(
|
||||
const std::string& blobUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options)
|
||||
: BlobClient(blobUrl, options)
|
||||
{
|
||||
|
||||
@ -64,7 +64,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
|
||||
BlobContainerClient::BlobContainerClient(
|
||||
const std::string& containerUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options)
|
||||
: BlobContainerClient(containerUrl, options)
|
||||
{
|
||||
|
||||
@ -59,7 +59,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
|
||||
BlobServiceClient::BlobServiceClient(
|
||||
const std::string& serviceUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options)
|
||||
: m_serviceUrl(serviceUrl)
|
||||
{
|
||||
|
||||
@ -32,7 +32,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
|
||||
BlockBlobClient::BlockBlobClient(
|
||||
const std::string& blobUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options)
|
||||
: BlobClient(blobUrl, std::move(credential), options)
|
||||
{
|
||||
|
||||
@ -31,7 +31,7 @@ namespace Azure { namespace Storage { namespace Blobs {
|
||||
|
||||
PageBlobClient::PageBlobClient(
|
||||
const std::string& blobUrl,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const BlobClientOptions& options)
|
||||
: BlobClient(blobUrl, std::move(credential), options)
|
||||
{
|
||||
|
||||
@ -52,7 +52,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
explicit DirectoryClient(
|
||||
const std::string& directoryUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const DataLakeClientOptions& options = DataLakeClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -53,7 +53,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
explicit FileClient(
|
||||
const std::string& fileUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const DataLakeClientOptions& options = DataLakeClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -55,7 +55,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
explicit FileSystemClient(
|
||||
const std::string& fileSystemUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const DataLakeClientOptions& options = DataLakeClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -53,7 +53,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
explicit PathClient(
|
||||
const std::string& pathUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const DataLakeClientOptions& options = DataLakeClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -50,7 +50,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
*/
|
||||
explicit DataLakeServiceClient(
|
||||
const std::string& serviceUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const DataLakeClientOptions& options = DataLakeClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -74,7 +74,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
|
||||
DirectoryClient::DirectoryClient(
|
||||
const std::string& directoryUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const DataLakeClientOptions& options)
|
||||
: PathClient(directoryUri, credential, options)
|
||||
{
|
||||
|
||||
@ -152,7 +152,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
|
||||
FileClient::FileClient(
|
||||
const std::string& fileUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const DataLakeClientOptions& options)
|
||||
: PathClient(fileUri, credential, options),
|
||||
m_blockBlobClient(m_blobClient.AsBlockBlobClient())
|
||||
|
||||
@ -95,7 +95,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
|
||||
FileSystemClient::FileSystemClient(
|
||||
const std::string& fileSystemUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const DataLakeClientOptions& options)
|
||||
: m_dfsUri(Details::GetDfsUriFromUri(fileSystemUri)),
|
||||
m_blobContainerClient(
|
||||
|
||||
@ -136,7 +136,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
|
||||
PathClient::PathClient(
|
||||
const std::string& pathUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const DataLakeClientOptions& options)
|
||||
: m_dfsUri(Details::GetDfsUriFromUri(pathUri)),
|
||||
m_blobClient(Details::GetBlobUriFromUri(pathUri), credential, GetBlobClientOptions(options))
|
||||
|
||||
@ -103,7 +103,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake {
|
||||
|
||||
DataLakeServiceClient::DataLakeServiceClient(
|
||||
const std::string& serviceUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const DataLakeClientOptions& options)
|
||||
: m_dfsUri(Details::GetDfsUriFromUri(serviceUri)), m_blobServiceClient(
|
||||
Details::GetBlobUriFromUri(serviceUri),
|
||||
|
||||
@ -53,7 +53,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
|
||||
*/
|
||||
explicit ShareClient(
|
||||
const std::string& shareUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const ShareClientOptions& options = ShareClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -55,7 +55,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
|
||||
*/
|
||||
explicit DirectoryClient(
|
||||
const std::string& shareDirectoryUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const ShareClientOptions& options = ShareClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -54,7 +54,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
|
||||
*/
|
||||
explicit FileClient(
|
||||
const std::string& shareFileUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const ShareClientOptions& options = ShareClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -50,7 +50,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
|
||||
*/
|
||||
explicit ShareServiceClient(
|
||||
const std::string& serviceUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const ShareClientOptions& options = ShareClientOptions());
|
||||
|
||||
/**
|
||||
|
||||
@ -65,7 +65,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
|
||||
|
||||
ShareClient::ShareClient(
|
||||
const std::string& shareUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const ShareClientOptions& options)
|
||||
: m_shareUri(shareUri)
|
||||
{
|
||||
|
||||
@ -66,7 +66,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
|
||||
|
||||
DirectoryClient::DirectoryClient(
|
||||
const std::string& shareDirectoryUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const ShareClientOptions& options)
|
||||
: m_shareDirectoryUri(shareDirectoryUri)
|
||||
{
|
||||
|
||||
@ -69,7 +69,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
|
||||
|
||||
FileClient::FileClient(
|
||||
const std::string& shareFileUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const ShareClientOptions& options)
|
||||
: m_shareFileUri(shareFileUri)
|
||||
{
|
||||
|
||||
@ -61,7 +61,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares {
|
||||
|
||||
ShareServiceClient::ShareServiceClient(
|
||||
const std::string& serviceUri,
|
||||
std::shared_ptr<Identity::ClientSecretCredential> credential,
|
||||
std::shared_ptr<Core::TokenCredential> credential,
|
||||
const ShareClientOptions& options)
|
||||
: m_serviceUri(serviceUri)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user