...
For HPA, the requirement is to read the TOSCA descriptor from a CSAR, read the node types, insert them into a placement policy, and then make this policy available in the XACML PDP so that it can be accessed by OOF.
We want to have support so that a policy can be stored in SDC in a CSAR or possibly in another artifact and that it is distributed to the PF. However, for HPA, it is a special case where the TOSCA descriptor is read , a policy is composed in the ONAP PF using the TOSCA descriptor.
When using the SDC client, The ONAP PF needs to register with SDC using the API as "Policy". It also needs to comply with the SDC auditing rules. Auditing events are sent to SDC at different phases in the downloading process so that the process can be audited.
Today, everything that is needed is in the CSAR. In the future there may be other documents that can be downloaded.
SDC client handles all the communication over ONAP, the user does not need to worry on the details of this communication over ONAP. Just use the Client java API.
...