pvillard31 commented on code in PR #10939:
URL: https://github.com/apache/nifi/pull/10939#discussion_r3588734102


##########
nifi-extension-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/storage/PutAzureBlobStorage_v12.java:
##########
@@ -106,16 +118,38 @@
         @WritesAttribute(attribute = ATTR_NAME_TIMESTAMP, description = 
ATTR_DESCRIPTION_TIMESTAMP),
         @WritesAttribute(attribute = ATTR_NAME_LENGTH, description = 
ATTR_DESCRIPTION_LENGTH),
         @WritesAttribute(attribute = ATTR_NAME_ERROR_CODE, description = 
ATTR_DESCRIPTION_ERROR_CODE),
-        @WritesAttribute(attribute = ATTR_NAME_IGNORED, description = 
ATTR_DESCRIPTION_IGNORED)})
+        @WritesAttribute(attribute = ATTR_NAME_IGNORED, description = 
ATTR_DESCRIPTION_IGNORED),
+        @WritesAttribute(attribute = ATTR_NAME_USER_METADATA, description = 
ATTR_DESCRIPTION_USER_METADATA)})
 public class PutAzureBlobStorage_v12 extends AbstractAzureBlobProcessor_v12 
implements ClientSideEncryptionSupport {
 
+    public static final PropertyDescriptor BLOB_TAG_PREFIX = new 
PropertyDescriptor.Builder()
+            .name("Blob Tag Prefix")
+            .description("Specifies the prefix which would be scanned against 
the incoming FlowFile's attributes and the matching attribute's " +
+                    "name and value would be considered as the outgoing Azure 
blob's Tag name and Tag value respectively. For Ex: If the " +
+                    "incoming FlowFile carries the attributes tagAzurecountry, 
tagAzurePII, the tag prefix to be specified would be 'tagAzure'")
+            .required(false)
+            .addValidator(StandardValidators.NON_EMPTY_EL_VALIDATOR)
+            
.expressionLanguageSupported(ExpressionLanguageScope.FLOWFILE_ATTRIBUTES)
+            .build();
+
+    public static final PropertyDescriptor REMOVE_TAG_PREFIX = new 
PropertyDescriptor.Builder()
+            .name("Remove Tag Prefix")
+            .description("If set to 'True', the value provided for '" + 
BLOB_TAG_PREFIX.getDisplayName() + "' will be removed from " +
+                    "the attribute(s) and then considered as the Tag name. For 
ex: If the incoming FlowFile carries the attributes tagAzurecountry, " +
+                    "tagAzurePII and the prefix is set to 'tagAzure' then the 
corresponding tag values would be 'country' and 'PII'")
+            .allowableValues(new AllowableValue("true", "True"), new 
AllowableValue("false", "False"))
+            .defaultValue("false")
+            .build();

Review Comment:
   Can we use multi line strings here?



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to