diff options
author | Hansen, Tony (th1395) <th1395@att.com> | 2020-06-08 21:01:47 +0000 |
---|---|---|
committer | Hansen, Tony (th1395) <th1395@att.com> | 2020-06-08 21:38:02 +0000 |
commit | 4c4d9967d0aa0db8306eb8088523da1152f9af68 (patch) | |
tree | 7f7799e1ae6383673e326380b41ebd0ba0c01bb4 /dcae-policy/dcaepolicyplugin-type.yaml | |
parent | 96fb7b13783e4f9958923c4b59d52dc9ff781933 (diff) |
fix for mvn-phase-lib.sh
Change-Id: I7b3340024bf84206d79c18b10290a1e0f0129304
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Issue-ID: DCAEGEN2-2207
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Diffstat (limited to 'dcae-policy/dcaepolicyplugin-type.yaml')
-rw-r--r-- | dcae-policy/dcaepolicyplugin-type.yaml | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/dcae-policy/dcaepolicyplugin-type.yaml b/dcae-policy/dcaepolicyplugin-type.yaml new file mode 100644 index 0000000..7a1b8ad --- /dev/null +++ b/dcae-policy/dcaepolicyplugin-type.yaml @@ -0,0 +1,81 @@ +# ================================================================================ +# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved. +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= +# + +plugins: + dcaepolicy: + executor: 'central_deployment_agent' + package_name: dcaepolicyplugin + package_version: 2.4.0 + +data_types: + # the properties inside dcae.data.policy_filter are identical to /getConfig API of policy-engine except the requestID field. + # refer to policy-engine /getConfig wiki for explanation of these properties. + # policy-engine /getConfig wiki: The filter works as a combined "AND" operation. + # To retrieve all policies using "sample" as configName, + # the request needs to have policyName = ".*" and configName as = "sample" + # configAttributes is a key-value dictionary or a stringified json of the dictionary + dcae.data.policy_filter: + properties: + policyName: + type: string + default: "DCAE.Config_.*" + configName: + type: string + default: "" + onapName: + type: string + default: "DCAE" + configAttributes: + default: {} + unique: + type: boolean + default: false + +node_types: + # node that points to a single latest policy identified by policy_id + # policy_id is the versionless left part of policyName in policy-engine + dcae.nodes.policy: + derived_from: cloudify.nodes.Root + properties: + policy_id: + description: versionless key to policy in policy-engine + type: string + default: DCAE.Config_unknown-policy + policy_required: + description: whether to throw an exception when failed to get the policy + type: boolean + default: false + interfaces: + cloudify.interfaces.lifecycle: + create: + implementation: dcaepolicy.dcaepolicyplugin.policy_get + + # node that points to varying collection of policies by selection criteria = policy_filter. + dcae.nodes.policies: + derived_from: cloudify.nodes.Root + properties: + policy_filter: + type: dcae.data.policy_filter + default: {} + policy_required: + description: whether to throw an exception when failed to get a policy + type: boolean + default: false + interfaces: + cloudify.interfaces.lifecycle: + create: + implementation: dcaepolicy.dcaepolicyplugin.policy_get |