From: Paira, Saurav (sp694w) Date: Thu, 9 Jul 2020 16:27:36 +0000 (-0400) Subject: Added x-onap-requestorid to common-header for LCM commands X-Git-Url: https://gerrit.onap.org/r/gitweb?p=appc.git;a=commitdiff_plain;h=f0318b256f3c94b98765569fa618878692a9949b Added x-onap-requestorid to common-header for LCM commands Issue-ID: APPC-1899 Signed-off-by: Paira, Saurav (sp694w) Change-Id: I320196f0357a929c8e88645c4a3ab6dec3052587 --- diff --git a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/pom.xml b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/pom.xml index 0de5ce71f..f3b0184e6 100644 --- a/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/pom.xml +++ b/appc-adapters/appc-chef-adapter/appc-chef-adapter-bundle/pom.xml @@ -221,6 +221,11 @@ provided + + com.google.guava + guava + + diff --git a/appc-client/code-generator/src/main/resources/templates/client-kit/pojo.ftl b/appc-client/code-generator/src/main/resources/templates/client-kit/pojo.ftl index 1be2d1173..c5854ef25 100644 --- a/appc-client/code-generator/src/main/resources/templates/client-kit/pojo.ftl +++ b/appc-client/code-generator/src/main/resources/templates/client-kit/pojo.ftl @@ -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; */ <@generated/> +@JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE) public class ${objectName} { <#assign properties = pojo.properties> diff --git a/appc-client/pom.xml b/appc-client/pom.xml index 08d421ed1..5db3365a3 100644 --- a/appc-client/pom.xml +++ b/appc-client/pom.xml @@ -54,7 +54,7 @@ 0.0.1 1.0.0 1.0.0 - 2.3.23 + 2.3.30 1.8 4.12 3.6.0 diff --git a/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang b/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang index 035fca223..c60ce1658 100644 --- a/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang +++ b/appc-provider/appc-provider-model/src/main/yang/appc-provider-lcm.yang @@ -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