X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=models-interactions%2Fmodel-actors%2FactorServiceProvider%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fcontrolloop%2Factorserviceprovider%2FOperationProperties.java;h=c36b61e8bfd41ba595ad4e07853962cf3e17bed8;hb=deed677c3dc8751209d50e7d35132c929fe6800d;hp=42846460db8e4f1aefc0ca9dc4c22125e2b74f4b;hpb=364ef26929f06637bca03dd7bfb5e8ac69b611f8;p=policy%2Fmodels.git
diff --git a/models-interactions/model-actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/OperationProperties.java b/models-interactions/model-actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/OperationProperties.java
index 42846460d..c36b61e8b 100644
--- a/models-interactions/model-actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/OperationProperties.java
+++ b/models-interactions/model-actors/actorServiceProvider/src/main/java/org/onap/policy/controlloop/actorserviceprovider/OperationProperties.java
@@ -25,28 +25,112 @@ package org.onap.policy.controlloop.actorserviceprovider;
* exhaustive, as additional property names may be returned by company-defined Actors.
*/
public class OperationProperties {
- public static final String AAI_MODEL_CLOUD_REGION = "AAI/modelInvariantId/cloudRegion";
- public static final String AAI_MODEL_INVARIANT_GENERIC_VNF = "AAI/modelInvariantId/genericVnf";
- public static final String AAI_MODEL_SERVICE = "AAI/modelInvariantId/service";
- public static final String AAI_MODEL_TENANT = "AAI/modelInvariantId/tenant";
- public static final String AAI_MODEL_VNF = "AAI/modelInvariantId/vnf";
- public static final String AAI_RESOURCE_SERVICE_INSTANCE = "AAI/resourceId/serviceInstanceId";
- public static final String AAI_RESOURCE_VNF = "AAI/resourceId/modelInvariantId/vnf";
+
+ /**
+ * A&AI Default Cloud Region. Obtained as follows:
+ *
+ * - invoke the custom query getDefaultCloudRegion() method
+ *
+ */
+ public static final String AAI_DEFAULT_CLOUD_REGION = "AAI/defaultCloudRegion";
+
+ /**
+ * A&AI Default Tenant. Obtained as follows:
+ *
+ * - invoke the custom query getDefaultTenant() method
+ *
+ */
+ public static final String AAI_DEFAULT_TENANT = "AAI/defaultTenant";
+
+ /**
+ * A&AI Service instance. Obtained as follows:
+ *
+ * - invoke the custom query getServiceInstance() method
+ *
+ */
+ public static final String AAI_SERVICE = "AAI/service";
+
+ /**
+ * A&AI Service model. Obtained as follows:
+ *
+ * - invoke the custom query getServiceInstance() method
+ * - using the service instance, invoke the getModelVersionId() method
+ *
+ */
+ public static final String AAI_SERVICE_MODEL = "AAI/service/model";
+
+ /**
+ * A&AI VNF. Obtained as follows:
+ *
+ * - using the target model invariant ID, invoke the custom query
+ * getGenericVnfByModelInvariantId() method to get the VNF
+ * - using the VNF item, invoke the getModelVersionId() method to get the
+ * version
+ *
+ */
+ public static final String AAI_VNF = "AAI/vnf";
+
+ /**
+ * A&AI VNF Model. Obtained as follows:
+ *
+ * - using the target model invariant ID, invoke the custom query
+ * getGenericVnfByModelInvariantId() method to get the VNF
+ * - using the VNF item, invoke the getModelVersionId() method to get the
+ * version
+ * - using the version, invoke the custom query getModelVerByVersionId() method
+ *
+ */
+ public static final String AAI_VNF_MODEL = "AAI/vnf/model";
+
+ /**
+ * A&AI VNF id for the target resource ID. Obtained as follows:
+ *
+ * - using the target resource ID, invoke the custom query
+ * getGenericVnfByModelInvariantId() method to get the generic VNF
+ *
+ */
+ public static final String AAI_RESOURCE_VNF = "AAI/resourceId/vnf";
+
+ /**
+ * A&AI PNF. Obtained as follows:
+ *
+ * - using the target entity, invoke AaiGetPnfOperation
+ *
+ */
public static final String AAI_PNF = "AAI/pnf";
+
+ /**
+ * A&AI link to the vserver. Obtained as follows:
+ *
+ * - using the vserver name from the enrichment data, perform an A&AI tenant
+ * query
+ * - get the "result-data" field from the tenant output
+ * - get the "resource-link" field from that
+ * - strip off the "/aai/v16" prefix
+ *
+ */
public static final String AAI_VSERVER_LINK = "AAI/vserver/link";
+ /**
+ * Optional A&AI properties (Map-String-String) for CDS GRPC. If an application
+ * provides this, it will be used instead of constructing the map from the other
+ * properties.
+ */
+ public static final String OPT_CDS_GRPC_AAI_PROPERTIES = "cds/grpc/aai/properties";
+
/*
* These are typically extracted from the event or from the event's enrichment data.
+ *
+ * NOTE: all of the values must be of the form "enrichment/{enrichment-field-name}".
*/
public static final String ENRICHMENT_BANDWIDTH = "enrichment/bandwidth";
- public static final String ENRICHMENT_BANDWIDTH_CHANGE_TIME = "enrichment/bandwidth/changeTime";
- public static final String ENRICHMENT_GENERIC_VNF_ID = "enrichment/genericVnf/id";
- public static final String ENRICHMENT_NETWORK_ID = "enrichment/network/id";
- public static final String ENRICHMENT_SERVICE_ID = "enrichment/service/id";
- public static final String ENRICHMENT_SERVICE_INSTANCE_ID = "enrichment/serviceInstance/id";
- public static final String ENRICHMENT_VNF_ID = "enrichment/vnf/id";
- public static final String ENRICHMENT_VSERVER_ID = "enrichment/vserver/id";
- public static final String ENRICHMENT_VSERVER_NAME = "enrichment/vserver/name";
+ public static final String ENRICHMENT_BANDWIDTH_CHANGE_TIME = "enrichment/bandwidth-change-time";
+ public static final String ENRICHMENT_GENERIC_VNF_ID = "enrichment/generic-vnf.vnf-id";
+ public static final String ENRICHMENT_NETWORK_ID = "enrichment/network-information.network-id";
+ public static final String ENRICHMENT_SERVICE_ID = "enrichment/service-instance.service-instance-id";
+ public static final String ENRICHMENT_VNF_ID = "enrichment/vnfId";
+ public static final String ENRICHMENT_VSERVER_ID = "enrichment/vserver.vserver-id";
+ public static final String ENRICHMENT_VSERVER_NAME = "enrichment/vserver.vserver-name";
public static final String EVENT_ADDITIONAL_PARAMS = "event/additionalParams";
public static final String EVENT_PAYLOAD = "event/payload";
@@ -54,6 +138,10 @@ public class OperationProperties {
/*
* These are data computed and/or tracked by the invoker.
*/
+
+ /**
+ * An Integer containing the count.
+ */
public static final String DATA_VF_COUNT = "data/vfCount";