This is an automated email from the ASF dual-hosted git repository.
lordgamez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
The following commit(s) were added to refs/heads/main by this push:
new 3ec8374ef MINIFICPP-2602 Add withAllowedTypes<> to
AzureStorageProcessorBase.h (#2191)
3ec8374ef is described below
commit 3ec8374efb75ad59ff518857839ca38bf490269b
Author: Martin Zink <[email protected]>
AuthorDate: Tue Jun 2 15:46:04 2026 +0200
MINIFICPP-2602 Add withAllowedTypes<> to AzureStorageProcessorBase.h (#2191)
---
.../ubuntu_22_04_clang_arm_manifest.json | 40 ++++++++++++++++++++++
.../azure/processors/AzureStorageProcessorBase.h | 16 ++++-----
.../ProxyConfigurationServiceInterface.h | 1 +
3 files changed, 47 insertions(+), 10 deletions(-)
diff --git a/.github/references/ubuntu_22_04_clang_arm_manifest.json
b/.github/references/ubuntu_22_04_clang_arm_manifest.json
index ae5e1fadd..18cf7a894 100644
--- a/.github/references/ubuntu_22_04_clang_arm_manifest.json
+++ b/.github/references/ubuntu_22_04_clang_arm_manifest.json
@@ -1198,6 +1198,11 @@
{
"propertyDescriptors": {
"Azure Storage Credentials Service": {
+ "typeProvidedByValue": {
+ "type":
"org.apache.nifi.minifi.azure.controllers.AzureStorageCredentialsService",
+ "group": "org.apache.nifi.minifi",
+ "artifact": "minifi-azure"
+ },
"name": "Azure Storage Credentials Service",
"description": "Name of the Azure Storage Credentials
Service used to retrieve the connection string from.",
"validator": "VALID",
@@ -1353,6 +1358,11 @@
{
"propertyDescriptors": {
"Azure Storage Credentials Service": {
+ "typeProvidedByValue": {
+ "type":
"org.apache.nifi.minifi.azure.controllers.AzureStorageCredentialsService",
+ "group": "org.apache.nifi.minifi",
+ "artifact": "minifi-azure"
+ },
"name": "Azure Storage Credentials Service",
"description": "Name of the Azure Storage Credentials
Service used to retrieve the connection string from.",
"validator": "VALID",
@@ -2237,6 +2247,11 @@
{
"propertyDescriptors": {
"Azure Storage Credentials Service": {
+ "typeProvidedByValue": {
+ "type":
"org.apache.nifi.minifi.azure.controllers.AzureStorageCredentialsService",
+ "group": "org.apache.nifi.minifi",
+ "artifact": "minifi-azure"
+ },
"name": "Azure Storage Credentials Service",
"description": "Name of the Azure Storage Credentials
Service used to retrieve the connection string from.",
"validator": "VALID",
@@ -2385,6 +2400,11 @@
{
"propertyDescriptors": {
"Azure Storage Credentials Service": {
+ "typeProvidedByValue": {
+ "type":
"org.apache.nifi.minifi.azure.controllers.AzureStorageCredentialsService",
+ "group": "org.apache.nifi.minifi",
+ "artifact": "minifi-azure"
+ },
"name": "Azure Storage Credentials Service",
"description": "Name of the Azure Storage Credentials
Service used to retrieve the connection string from.",
"validator": "VALID",
@@ -4405,6 +4425,11 @@
{
"propertyDescriptors": {
"Azure Storage Credentials Service": {
+ "typeProvidedByValue": {
+ "type":
"org.apache.nifi.minifi.azure.controllers.AzureStorageCredentialsService",
+ "group": "org.apache.nifi.minifi",
+ "artifact": "minifi-azure"
+ },
"name": "Azure Storage Credentials Service",
"description": "Name of the Azure Storage Credentials
Service used to retrieve the connection string from.",
"validator": "VALID",
@@ -4552,6 +4577,11 @@
{
"propertyDescriptors": {
"Azure Storage Credentials Service": {
+ "typeProvidedByValue": {
+ "type":
"org.apache.nifi.minifi.azure.controllers.AzureStorageCredentialsService",
+ "group": "org.apache.nifi.minifi",
+ "artifact": "minifi-azure"
+ },
"name": "Azure Storage Credentials Service",
"description": "Name of the Azure Storage Credentials
Service used to retrieve the connection string from.",
"validator": "VALID",
@@ -7317,6 +7347,11 @@
{
"propertyDescriptors": {
"Azure Storage Credentials Service": {
+ "typeProvidedByValue": {
+ "type":
"org.apache.nifi.minifi.azure.controllers.AzureStorageCredentialsService",
+ "group": "org.apache.nifi.minifi",
+ "artifact": "minifi-azure"
+ },
"name": "Azure Storage Credentials Service",
"description": "Name of the Azure Storage Credentials
Service used to retrieve the connection string from.",
"validator": "VALID",
@@ -7458,6 +7493,11 @@
{
"propertyDescriptors": {
"Azure Storage Credentials Service": {
+ "typeProvidedByValue": {
+ "type":
"org.apache.nifi.minifi.azure.controllers.AzureStorageCredentialsService",
+ "group": "org.apache.nifi.minifi",
+ "artifact": "minifi-azure"
+ },
"name": "Azure Storage Credentials Service",
"description": "Name of the Azure Storage Credentials
Service used to retrieve the connection string from.",
"validator": "VALID",
diff --git a/extensions/azure/processors/AzureStorageProcessorBase.h
b/extensions/azure/processors/AzureStorageProcessorBase.h
index fe1464eaf..f389f4024 100644
--- a/extensions/azure/processors/AzureStorageProcessorBase.h
+++ b/extensions/azure/processors/AzureStorageProcessorBase.h
@@ -20,20 +20,16 @@
#pragma once
-#include <memory>
-#include <string>
#include <optional>
-#include <utility>
#include <tuple>
-#include "minifi-cpp/core/PropertyDefinition.h"
-#include "minifi-cpp/core/Property.h"
-#include "core/PropertyDefinitionBuilder.h"
+#include "controllers/ProxyConfiguration.h"
+#include "controllerservices/AzureStorageCredentialsService.h"
#include "core/ProcessorImpl.h"
-#include "minifi-cpp/core/logging/Logger.h"
-#include "storage/AzureStorageCredentials.h"
+#include "core/PropertyDefinitionBuilder.h"
#include "minifi-cpp/controllers/ProxyConfigurationServiceInterface.h"
-#include "controllers/ProxyConfiguration.h"
+#include "minifi-cpp/core/PropertyDefinition.h"
+#include "storage/AzureStorageCredentials.h"
namespace org::apache::nifi::minifi::azure::processors {
@@ -41,6 +37,7 @@ class AzureStorageProcessorBase : public core::ProcessorImpl {
public:
EXTENSIONAPI static constexpr auto AzureStorageCredentialsService =
core::PropertyDefinitionBuilder<>::createProperty("Azure Storage Credentials
Service")
.withDescription("Name of the Azure Storage Credentials Service used to
retrieve the connection string from.")
+ .withAllowedTypes<azure::controllers::AzureStorageCredentialsService>()
.build();
EXTENSIONAPI static constexpr auto ProxyConfigurationService =
core::PropertyDefinitionBuilder<>::createProperty("Proxy Configuration Service")
.withDescription("Specifies the Proxy Configuration Controller Service
to proxy network requests.")
@@ -61,7 +58,6 @@ class AzureStorageProcessorBase : public core::ProcessorImpl {
std::tuple<GetCredentialsFromControllerResult,
std::optional<storage::AzureStorageCredentials>>
getCredentialsFromControllerService(core::ProcessContext &context) const;
- protected:
minifi::controllers::ProxyConfiguration proxy_configuration_;
};
diff --git
a/minifi-api/include/minifi-cpp/controllers/ProxyConfigurationServiceInterface.h
b/minifi-api/include/minifi-cpp/controllers/ProxyConfigurationServiceInterface.h
index 28c487d03..dd0eead6b 100644
---
a/minifi-api/include/minifi-cpp/controllers/ProxyConfigurationServiceInterface.h
+++
b/minifi-api/include/minifi-cpp/controllers/ProxyConfigurationServiceInterface.h
@@ -18,6 +18,7 @@
#include <string>
#include <optional>
+#include <cstdint>
#include "minifi-cpp/core/controller/ControllerServiceHandle.h"
#include "minifi-cpp/core/ControllerServiceTypeDefinition.h"