From c5abb9b34468400bdcdd3ce23595af41ac03cd80 Mon Sep 17 00:00:00 2001 From: "Hansen, Tony (th1395)" Date: Tue, 9 Jun 2020 18:27:12 +0000 Subject: rename typefiles to be consistent with nexus Change-Id: Iebfda41db8225db233d0ff0f41e197d2e4cc0688 Signed-off-by: Hansen, Tony (th1395) Issue-ID: DCAEGEN2-2207 --- dcae-policy/dcaepolicyplugin_types.yaml | 81 +++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 dcae-policy/dcaepolicyplugin_types.yaml (limited to 'dcae-policy/dcaepolicyplugin_types.yaml') diff --git a/dcae-policy/dcaepolicyplugin_types.yaml b/dcae-policy/dcaepolicyplugin_types.yaml new file mode 100644 index 0000000..7a1b8ad --- /dev/null +++ b/dcae-policy/dcaepolicyplugin_types.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 -- cgit 1.2.3-korg