lordgamez commented on a change in pull request #1178:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1178#discussion_r719207278



##########
File path: extensions/azure/storage/AzureDataLakeStorageClient.cpp
##########
@@ -20,19 +20,28 @@
 
 #include "AzureDataLakeStorageClient.h"
 
+#include "azure/identity.hpp"
+
 namespace org::apache::nifi::minifi::azure::storage {
 
-void AzureDataLakeStorageClient::resetClientIfNeeded(const std::string& 
connection_string, const std::string& file_system_name) {
-  if (client_ == nullptr || connection_string_ != connection_string || 
file_system_name_ != file_system_name) {
-    client_ = 
std::make_unique<Azure::Storage::Files::DataLake::DataLakeFileSystemClient>(
-      
Azure::Storage::Files::DataLake::DataLakeFileSystemClient::CreateFromConnectionString(connection_string,
 file_system_name));
+void AzureDataLakeStorageClient::resetClientIfNeeded(const 
AzureStorageCredentials& credentials, const std::string& file_system_name) {
+  if (client_ == nullptr || credentials_ != credentials || file_system_name_ 
!= file_system_name) {

Review comment:
       Updated in 184b900f78ed72755f3d0e1876cc69d694da7a9e

##########
File path: extensions/azure/storage/DataLakeStorageClient.h
##########
@@ -20,24 +20,27 @@
 #pragma once
 
 #include <string>
+#include <optional>
+
+#include "AzureStorageClient.h"
 
 #include "gsl/gsl-lite.hpp"
 
 namespace org::apache::nifi::minifi::azure::storage {
 
 struct PutAzureDataLakeStorageParameters {
-  std::string connection_string;
+  AzureStorageCredentials credentials;
   std::string file_system_name;
   std::string directory_name;
   std::string filename;
   bool replace_file = false;
 };
 
-class DataLakeStorageClient {
+class DataLakeStorageClient : public AzureStorageClient {
  public:
   virtual bool createFile(const PutAzureDataLakeStorageParameters& params) = 0;
   virtual std::string uploadFile(const PutAzureDataLakeStorageParameters& 
params, gsl::span<const uint8_t> buffer) = 0;
-  virtual ~DataLakeStorageClient() {}
+  virtual ~DataLakeStorageClient() = default;

Review comment:
       Removed in 184b900f78ed72755f3d0e1876cc69d694da7a9e




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to