From 2b56b8b0265450e656e595a9092db01581636ae3 Mon Sep 17 00:00:00 2001 From: JinmingHu Date: Fri, 20 Nov 2020 12:24:04 +0800 Subject: [PATCH] clients accept TokenCredential as param (#998) --- .../inc/azure/storage/blobs/append_blob_client.hpp | 2 +- .../azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp | 2 +- .../inc/azure/storage/blobs/blob_container_client.hpp | 2 +- .../inc/azure/storage/blobs/blob_service_client.hpp | 2 +- .../inc/azure/storage/blobs/block_blob_client.hpp | 2 +- .../inc/azure/storage/blobs/page_blob_client.hpp | 2 +- sdk/storage/azure-storage-blobs/src/append_blob_client.cpp | 2 +- sdk/storage/azure-storage-blobs/src/blob_client.cpp | 2 +- sdk/storage/azure-storage-blobs/src/blob_container_client.cpp | 2 +- sdk/storage/azure-storage-blobs/src/blob_service_client.cpp | 2 +- sdk/storage/azure-storage-blobs/src/block_blob_client.cpp | 2 +- sdk/storage/azure-storage-blobs/src/page_blob_client.cpp | 2 +- .../azure/storage/files/datalake/datalake_directory_client.hpp | 2 +- .../inc/azure/storage/files/datalake/datalake_file_client.hpp | 2 +- .../storage/files/datalake/datalake_file_system_client.hpp | 2 +- .../inc/azure/storage/files/datalake/datalake_path_client.hpp | 2 +- .../azure/storage/files/datalake/datalake_service_client.hpp | 2 +- .../src/datalake_directory_client.cpp | 2 +- .../azure-storage-files-datalake/src/datalake_file_client.cpp | 2 +- .../src/datalake_file_system_client.cpp | 2 +- .../azure-storage-files-datalake/src/datalake_path_client.cpp | 2 +- .../src/datalake_service_client.cpp | 2 +- .../inc/azure/storage/files/shares/share_client.hpp | 2 +- .../inc/azure/storage/files/shares/share_directory_client.hpp | 2 +- .../inc/azure/storage/files/shares/share_file_client.hpp | 2 +- .../inc/azure/storage/files/shares/share_service_client.hpp | 2 +- sdk/storage/azure-storage-files-shares/src/share_client.cpp | 2 +- .../azure-storage-files-shares/src/share_directory_client.cpp | 2 +- .../azure-storage-files-shares/src/share_file_client.cpp | 2 +- .../azure-storage-files-shares/src/share_service_client.cpp | 2 +- 30 files changed, 30 insertions(+), 30 deletions(-) diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/append_blob_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/append_blob_client.hpp index 639eb3468..210f773a1 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/append_blob_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/append_blob_client.hpp @@ -68,7 +68,7 @@ namespace Azure { namespace Storage { namespace Blobs { */ explicit AppendBlobClient( const std::string& blobUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options = BlobClientOptions()); /** diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp index 66e872152..e5617379d 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_client.hpp @@ -71,7 +71,7 @@ namespace Azure { namespace Storage { namespace Blobs { */ explicit BlobClient( const std::string& blobUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options = BlobClientOptions()); /** diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp index c0d57bdf5..8201114a7 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_container_client.hpp @@ -64,7 +64,7 @@ namespace Azure { namespace Storage { namespace Blobs { */ explicit BlobContainerClient( const std::string& containerUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options = BlobClientOptions()); /** diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp index 69fc8f727..d52f4f219 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/blob_service_client.hpp @@ -56,7 +56,7 @@ namespace Azure { namespace Storage { namespace Blobs { */ explicit BlobServiceClient( const std::string& serviceUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options = BlobClientOptions()); /** diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/block_blob_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/block_blob_client.hpp index 9cd4ff542..d1b8f2a0b 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/block_blob_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/block_blob_client.hpp @@ -78,7 +78,7 @@ namespace Azure { namespace Storage { namespace Blobs { */ explicit BlockBlobClient( const std::string& blobUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options = BlobClientOptions()); /** diff --git a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/page_blob_client.hpp b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/page_blob_client.hpp index 6cf348b56..5f50e4009 100644 --- a/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/page_blob_client.hpp +++ b/sdk/storage/azure-storage-blobs/inc/azure/storage/blobs/page_blob_client.hpp @@ -70,7 +70,7 @@ namespace Azure { namespace Storage { namespace Blobs { */ explicit PageBlobClient( const std::string& blobUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options = BlobClientOptions()); /** diff --git a/sdk/storage/azure-storage-blobs/src/append_blob_client.cpp b/sdk/storage/azure-storage-blobs/src/append_blob_client.cpp index 4e34186de..b2864a03d 100644 --- a/sdk/storage/azure-storage-blobs/src/append_blob_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/append_blob_client.cpp @@ -29,7 +29,7 @@ namespace Azure { namespace Storage { namespace Blobs { AppendBlobClient::AppendBlobClient( const std::string& blobUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options) : BlobClient(blobUrl, std::move(credential), options) { diff --git a/sdk/storage/azure-storage-blobs/src/blob_client.cpp b/sdk/storage/azure-storage-blobs/src/blob_client.cpp index 65ed66f63..bba484f26 100644 --- a/sdk/storage/azure-storage-blobs/src/blob_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/blob_client.cpp @@ -68,7 +68,7 @@ namespace Azure { namespace Storage { namespace Blobs { BlobClient::BlobClient( const std::string& blobUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options) : BlobClient(blobUrl, options) { diff --git a/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp b/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp index 2270a60bb..4875b3b64 100644 --- a/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/blob_container_client.cpp @@ -64,7 +64,7 @@ namespace Azure { namespace Storage { namespace Blobs { BlobContainerClient::BlobContainerClient( const std::string& containerUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options) : BlobContainerClient(containerUrl, options) { diff --git a/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp b/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp index 9b1ac63f2..da6d293b9 100644 --- a/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/blob_service_client.cpp @@ -59,7 +59,7 @@ namespace Azure { namespace Storage { namespace Blobs { BlobServiceClient::BlobServiceClient( const std::string& serviceUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options) : m_serviceUrl(serviceUrl) { diff --git a/sdk/storage/azure-storage-blobs/src/block_blob_client.cpp b/sdk/storage/azure-storage-blobs/src/block_blob_client.cpp index 6766aa3ea..548c7b90a 100644 --- a/sdk/storage/azure-storage-blobs/src/block_blob_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/block_blob_client.cpp @@ -32,7 +32,7 @@ namespace Azure { namespace Storage { namespace Blobs { BlockBlobClient::BlockBlobClient( const std::string& blobUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options) : BlobClient(blobUrl, std::move(credential), options) { diff --git a/sdk/storage/azure-storage-blobs/src/page_blob_client.cpp b/sdk/storage/azure-storage-blobs/src/page_blob_client.cpp index bb72a3066..50c256b04 100644 --- a/sdk/storage/azure-storage-blobs/src/page_blob_client.cpp +++ b/sdk/storage/azure-storage-blobs/src/page_blob_client.cpp @@ -31,7 +31,7 @@ namespace Azure { namespace Storage { namespace Blobs { PageBlobClient::PageBlobClient( const std::string& blobUrl, - std::shared_ptr credential, + std::shared_ptr credential, const BlobClientOptions& options) : BlobClient(blobUrl, std::move(credential), options) { diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp index 3a3383570..1ab32b983 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_directory_client.hpp @@ -52,7 +52,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { */ explicit DirectoryClient( const std::string& directoryUri, - std::shared_ptr credential, + std::shared_ptr credential, const DataLakeClientOptions& options = DataLakeClientOptions()); /** diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp index 3e8cfe940..760cfe42c 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_client.hpp @@ -53,7 +53,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { */ explicit FileClient( const std::string& fileUri, - std::shared_ptr credential, + std::shared_ptr credential, const DataLakeClientOptions& options = DataLakeClientOptions()); /** diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp index 28bf351df..8dccdf9f6 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_file_system_client.hpp @@ -55,7 +55,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { */ explicit FileSystemClient( const std::string& fileSystemUri, - std::shared_ptr credential, + std::shared_ptr credential, const DataLakeClientOptions& options = DataLakeClientOptions()); /** diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_path_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_path_client.hpp index 3fdb5c9e4..8e69d9aac 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_path_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_path_client.hpp @@ -53,7 +53,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { */ explicit PathClient( const std::string& pathUri, - std::shared_ptr credential, + std::shared_ptr credential, const DataLakeClientOptions& options = DataLakeClientOptions()); /** diff --git a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_service_client.hpp b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_service_client.hpp index 382aa375f..3fee5c659 100644 --- a/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_service_client.hpp +++ b/sdk/storage/azure-storage-files-datalake/inc/azure/storage/files/datalake/datalake_service_client.hpp @@ -50,7 +50,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { */ explicit DataLakeServiceClient( const std::string& serviceUri, - std::shared_ptr credential, + std::shared_ptr credential, const DataLakeClientOptions& options = DataLakeClientOptions()); /** diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp index c52b91902..02df9fca5 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_directory_client.cpp @@ -74,7 +74,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { DirectoryClient::DirectoryClient( const std::string& directoryUri, - std::shared_ptr credential, + std::shared_ptr credential, const DataLakeClientOptions& options) : PathClient(directoryUri, credential, options) { diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp index 6264d316e..1fa20aade 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_file_client.cpp @@ -152,7 +152,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { FileClient::FileClient( const std::string& fileUri, - std::shared_ptr credential, + std::shared_ptr credential, const DataLakeClientOptions& options) : PathClient(fileUri, credential, options), m_blockBlobClient(m_blobClient.AsBlockBlobClient()) diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp index 58f9e7b0e..5f45c726e 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_file_system_client.cpp @@ -95,7 +95,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { FileSystemClient::FileSystemClient( const std::string& fileSystemUri, - std::shared_ptr credential, + std::shared_ptr credential, const DataLakeClientOptions& options) : m_dfsUri(Details::GetDfsUriFromUri(fileSystemUri)), m_blobContainerClient( diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_path_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_path_client.cpp index 89858a6a5..be329658f 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_path_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_path_client.cpp @@ -136,7 +136,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { PathClient::PathClient( const std::string& pathUri, - std::shared_ptr credential, + std::shared_ptr credential, const DataLakeClientOptions& options) : m_dfsUri(Details::GetDfsUriFromUri(pathUri)), m_blobClient(Details::GetBlobUriFromUri(pathUri), credential, GetBlobClientOptions(options)) diff --git a/sdk/storage/azure-storage-files-datalake/src/datalake_service_client.cpp b/sdk/storage/azure-storage-files-datalake/src/datalake_service_client.cpp index 6a3b4fd16..9f5107ab3 100644 --- a/sdk/storage/azure-storage-files-datalake/src/datalake_service_client.cpp +++ b/sdk/storage/azure-storage-files-datalake/src/datalake_service_client.cpp @@ -103,7 +103,7 @@ namespace Azure { namespace Storage { namespace Files { namespace DataLake { DataLakeServiceClient::DataLakeServiceClient( const std::string& serviceUri, - std::shared_ptr credential, + std::shared_ptr credential, const DataLakeClientOptions& options) : m_dfsUri(Details::GetDfsUriFromUri(serviceUri)), m_blobServiceClient( Details::GetBlobUriFromUri(serviceUri), diff --git a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_client.hpp b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_client.hpp index ef7a85bb7..3c040e9ad 100644 --- a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_client.hpp +++ b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_client.hpp @@ -53,7 +53,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { */ explicit ShareClient( const std::string& shareUri, - std::shared_ptr credential, + std::shared_ptr credential, const ShareClientOptions& options = ShareClientOptions()); /** diff --git a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_directory_client.hpp b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_directory_client.hpp index 5201a997d..1980534d2 100644 --- a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_directory_client.hpp +++ b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_directory_client.hpp @@ -55,7 +55,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { */ explicit DirectoryClient( const std::string& shareDirectoryUri, - std::shared_ptr credential, + std::shared_ptr credential, const ShareClientOptions& options = ShareClientOptions()); /** diff --git a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_file_client.hpp b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_file_client.hpp index 5f12b83b7..ef2c54e94 100644 --- a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_file_client.hpp +++ b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_file_client.hpp @@ -54,7 +54,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { */ explicit FileClient( const std::string& shareFileUri, - std::shared_ptr credential, + std::shared_ptr credential, const ShareClientOptions& options = ShareClientOptions()); /** diff --git a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_service_client.hpp b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_service_client.hpp index 649f82e63..a050f1a1d 100644 --- a/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_service_client.hpp +++ b/sdk/storage/azure-storage-files-shares/inc/azure/storage/files/shares/share_service_client.hpp @@ -50,7 +50,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { */ explicit ShareServiceClient( const std::string& serviceUri, - std::shared_ptr credential, + std::shared_ptr credential, const ShareClientOptions& options = ShareClientOptions()); /** diff --git a/sdk/storage/azure-storage-files-shares/src/share_client.cpp b/sdk/storage/azure-storage-files-shares/src/share_client.cpp index cc955e056..076066290 100644 --- a/sdk/storage/azure-storage-files-shares/src/share_client.cpp +++ b/sdk/storage/azure-storage-files-shares/src/share_client.cpp @@ -65,7 +65,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { ShareClient::ShareClient( const std::string& shareUri, - std::shared_ptr credential, + std::shared_ptr credential, const ShareClientOptions& options) : m_shareUri(shareUri) { diff --git a/sdk/storage/azure-storage-files-shares/src/share_directory_client.cpp b/sdk/storage/azure-storage-files-shares/src/share_directory_client.cpp index 7b9b7f18b..e171890a9 100644 --- a/sdk/storage/azure-storage-files-shares/src/share_directory_client.cpp +++ b/sdk/storage/azure-storage-files-shares/src/share_directory_client.cpp @@ -66,7 +66,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { DirectoryClient::DirectoryClient( const std::string& shareDirectoryUri, - std::shared_ptr credential, + std::shared_ptr credential, const ShareClientOptions& options) : m_shareDirectoryUri(shareDirectoryUri) { diff --git a/sdk/storage/azure-storage-files-shares/src/share_file_client.cpp b/sdk/storage/azure-storage-files-shares/src/share_file_client.cpp index 93e98b560..006b6e5c0 100644 --- a/sdk/storage/azure-storage-files-shares/src/share_file_client.cpp +++ b/sdk/storage/azure-storage-files-shares/src/share_file_client.cpp @@ -69,7 +69,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { FileClient::FileClient( const std::string& shareFileUri, - std::shared_ptr credential, + std::shared_ptr credential, const ShareClientOptions& options) : m_shareFileUri(shareFileUri) { diff --git a/sdk/storage/azure-storage-files-shares/src/share_service_client.cpp b/sdk/storage/azure-storage-files-shares/src/share_service_client.cpp index 12408dda8..e3796bb71 100644 --- a/sdk/storage/azure-storage-files-shares/src/share_service_client.cpp +++ b/sdk/storage/azure-storage-files-shares/src/share_service_client.cpp @@ -61,7 +61,7 @@ namespace Azure { namespace Storage { namespace Files { namespace Shares { ShareServiceClient::ShareServiceClient( const std::string& serviceUri, - std::shared_ptr credential, + std::shared_ptr credential, const ShareClientOptions& options) : m_serviceUri(serviceUri) {