Added x-onap-requestorid to common-header for LCM commands 20/110020/1
authorPaira, Saurav (sp694w) <sp694w@att.com>
Thu, 9 Jul 2020 16:27:36 +0000 (12:27 -0400)
committerPaira, Saurav (sp694w) <sp694w@att.com>
Thu, 9 Jul 2020 16:52:13 +0000 (12:52 -0400)
Issue-ID: APPC-1899
Signed-off-by: Paira, Saurav (sp694w) <sp694w@att.com>
Change-Id: I320196f0357a929c8e88645c4a3ab6dec3052587

appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/pom.xml
appc-client/code-generator/src/main/resources/templates/client-kit/pojo.ftl
appc-client/pom.xml
appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang

index 0de5ce7..f3b0184 100644 (file)
             <scope>provided</scope>
         </dependency>
 
+        <dependency>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+        </dependency>
+
     </dependencies>
 
     <build>
index 1be2d11..c5854ef 100644 (file)
@@ -27,6 +27,8 @@
  */
 package ${meta.model\.package};
 
+import com.fasterxml.jackson.annotation.JsonAutoDetect;
+import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
 import com.fasterxml.jackson.annotation.JsonProperty;
 
 <#if pojo.description??>
@@ -35,6 +37,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
  */
 </#if>
 <@generated/>
+@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE)
 public class ${objectName} {
 
 <#assign properties = pojo.properties>
index 08d421e..5db3365 100644 (file)
@@ -54,7 +54,7 @@
         <cambria.client.version>0.0.1</cambria.client.version>
         <eelf.core.version>1.0.0</eelf.core.version>
         <eelf.version>1.0.0</eelf.version>
-        <freemarker.version>2.3.23</freemarker.version>
+        <freemarker.version>2.3.30</freemarker.version>
         <java.version>1.8</java.version>
         <junit.version>4.12</junit.version>
         <maven.compiler.plugin.version>3.6.0</maven.compiler.plugin.version>
index 035fca2..c60ce16 100644 (file)
@@ -238,6 +238,16 @@ module appc-provider-lcm {
                 mandatory false;
             }
 
+            leaf x-onap-requestorid {
+                description "This is the user who initiated the LCM action. The content of the
+                             header should be in the format of attuid@domain or mechid@domain.
+                             If id or domain is missing, return an error. This parameter is
+                             mandatory for v2.01 and optional for v2.00. The Yang model has it as
+                             optional and software makes determination";
+                type string;
+                mandatory false;
+            }
+
 
             /**********************************************************************************
              * Flags are generic flags that apply to any and all commands, all are optional