Update optimization policy type
[policy/api.git] / main / src / test / resources / policytypes / onap.policies.optimization.DistancePolicy.yaml
index a0571bc..9bcdd7a 100644 (file)
@@ -1,37 +1,8 @@
 tosca_definitions_version: tosca_simple_yaml_1_0_0
 policy_types:
-    - onap.policies.Optimization:
-        derived_from: tosca.policies.Root
-        version: 1.0.0
-        description: a base policy type for all policies that govern optimization
-    - onap.policies.optimization.DistancePolicy:
+    onap.policies.optimization.DistancePolicy:
         derived_from: onap.policies.Optimization
         properties:
-            policyScope:
-                type: list
-                description: scope where the policy is applicable
-                required: true
-                matchable: true
-                entry_schema:
-                    type: string
-            policyType:
-                type: list
-                description: type of a policy
-                required: true
-                matchable: true
-                entry_schema:
-                    type: string
-                    constraints:
-                    -   valid_values:
-                        - distance_to_location
-            identity:
-                type: string
-                required: true
-            resources:
-                type: list
-                required: true
-                entry_schema:
-                    type: string
             applicableResources:
                 type: list
                 required: true
@@ -45,7 +16,6 @@ policy_types:
                 type: policy.data.distanceProperties_properties
                 required: true
 data_types:
-  -
     policy.data.distanceProperties_properties:
         derived_from: tosca.nodes.Root
         properties:
@@ -55,6 +25,8 @@ data_types:
             distance:
                 type: policy.data.distance_properties
                 required: true
+                entry_schema:
+                    type: policy.data.distance_properties
     policy.data.distance_properties:
         derived_from: tosca.nodes.Root
         properties:
@@ -70,9 +42,9 @@ data_types:
                     -   valid_values:
                         - <
                         - <=
-                        - '>'
-                        - '>='
-                        - '='
+                        - >
+                        - >=
+                        - =
             unit:
                 type: list
                 required: true