diff options
author | Betzer, Rony (rb844h) <rb844h@intl.att.com> | 2018-09-20 14:31:06 +0300 |
---|---|---|
committer | Betzer, Rony (rb844h) <rb844h@intl.att.com> | 2018-09-20 14:31:06 +0300 |
commit | 12c8090ed5b649ac199d4f9531140bab390e6381 (patch) | |
tree | 86ab10485a764e3dee7ba086694d2958a1b3687b /app | |
parent | 6af16809c3c7c82ca897f62e4f074e6707b3b7ab (diff) |
Added tosca meta_model and shared_model
Added tosca meta_model and shared_model
Change-Id: I181ef3fe282b4d16ce5c7498f15dd2a90cbb3805
Issue-ID: SDC-1218
Signed-off-by: Betzer, Rony (rb844h) <rb844h@intl.att.com>
Diffstat (limited to 'app')
59 files changed, 1273 insertions, 0 deletions
diff --git a/app/data/meta_model/meta_policy_schema.yaml b/app/data/meta_model/meta_policy_schema.yaml new file mode 100644 index 0000000..1efcf73 --- /dev/null +++ b/app/data/meta_model/meta_policy_schema.yaml @@ -0,0 +1,18 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + policy.nodes.Root: + derived_from: tosca.nodes.Root + properties: + policyName: + type: string + required: true + policyVersion: + type: string + required: true + policyScope: + type: string + required: true + policyDescription: + type: string + required: false
\ No newline at end of file diff --git a/app/data/meta_model/meta_tosca_schema.yaml b/app/data/meta_model/meta_tosca_schema.yaml new file mode 100644 index 0000000..1f7cec9 --- /dev/null +++ b/app/data/meta_model/meta_tosca_schema.yaml @@ -0,0 +1,496 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +imports: +- policy: meta_policy_schema.yaml + +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.dockerApp: + derived_from: tosca.dcae.nodes.Root + properties: + service_component_type: + type: string + required: true +# service_id: +# type: string +# required: true + location_id: + type: string + required: true + image: + type: string + required: true + attributes: + service_component_name: + type: string + requirements: + - host: + capability: dcae.capabilities.dockerHost + relationship: dcae.relationships.component_contained_in + - composition: + capability: dcae.capabilities.composition.host + + tosca.dcae.nodes.cdapApp: + derived_from: tosca.dcae.nodes.Root + properties: + connected_broker_dns_name: + type: string + required: true + default: "cdap_broker" + service_component_type: + type: string + required: true +# service_id: +# type: string +# required: true +# location_id: +# type: string +# required: true + jar_url: + type: string + required: true + attributes: + service_component_name: + type: string + requirements: + - host: + capability: dcae.capabilities.cdapHost + relationship: dcae.relationships.component_contained_in +# - composition: +# capability: dcae.capabilities.composition.host + + tosca.dcae.nodes.dmaap.topic: + derived_from: tosca.dcae.nodes.Root + properties: + aaf_username: + type: string + aaf_password: + type: string + location: + type: string + client_role: + type: string + node_name: + type: string + topic_name: + type: string + capabilities: + topic: + type: dcae.capabilities.dmmap.topic + requirements: + - composition: + capability: dcae.capabilities.composition.host + + tosca.dcae.nodes.dmaap.existingTopic: + derived_from: tosca.dcae.nodes.Root + properties: + aaf_username: + type: string + aaf_password: + type: string + location: + type: string + client_role: + type: string + node_name: + type: string + fqtn: + type: string + capabilities: + topic: + type: dcae.capabilities.dmmap.topic + requirements: + - composition: + capability: dcae.capabilities.composition.host + + + tosca.dcae.nodes.dmaap.feed: + derived_from: tosca.dcae.nodes.Root + properties: + location: + type: string + node_name: + type: string + feed_name: + type: string + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + requirements: + - composition: + capability: dcae.capabilities.composition.host + + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.dmaap.existingFeed: + derived_from: tosca.dcae.nodes.Root + properties: + location: + type: string + node_name: + type: string + feed_id: + type: string + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + requirements: + - composition: + capability: dcae.capabilities.composition.host + + tosca.dcae.nodes.dmaap.externalTargetFeed: + derived_from: tosca.dcae.nodes.Root + properties: + location: + type: string + node_name: + type: string + url: + type: string + username: + type: string + userpw: + type: string + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + requirements: + - composition: + capability: dcae.capabilities.composition.host + + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + + dcae.nodes.Feed: + derived_from: cloudify.dcae.nodes.Root + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + properties: + feed_name: + type: string + + dcae.nodes.ExistingFeed: + derived_from: cloudify.dcae.nodes.Root + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + properties: + feed_id: + type: string + + dcae.nodes.ExternalTargetFeed: + derived_from: cloudify.dcae.nodes.Root + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + properties: + url: + type: string + username: + type: string + userpw: + type: string + + + dcae.nodes.Topic: + derived_from: cloudify.dcae.nodes.Root + properties: + topic_name: + type: string + capabilities: + topic: + type: dcae.capabilities.dmmap.topic + + dcae.nodes.ExistingTopic: + derived_from: cloudify.dcae.nodes.Root + properties: + fqtn: + type: string + capabilities: + topic: + type: dcae.capabilities.dmmap.topic + + dcae.nodes.DockerContainerForComponents: + derived_from: cloudify.dcae.nodes.Root + properties: + service_component_type: + type: string + required: true +# service_id: +# type: string +# required: true + location_id: + type: string + required: true + image: + type: string + required: true + application_config: + type: map + required: true + docker_config: + type: map + attributes: + service_component_name: + type: string + requirements: + - host: + capability: dcae.capabilities.dockerHost + relationship: dcae.relationships.component_contained_in + + dcae.nodes.DockerContainerForComponentsUsingDmaap: + derived_from: dcae.nodes.DockerContainerForComponents + properties: + streams_publishes: + type: list + streams_subscribes: + type: list + + dcae.nodes.MicroService.cdap: + derived_from: cloudify.dcae.nodes.Root + properties: + service_component_type: + type: string + jar_url: + type: string + artifact_name: + type: string + required: false + artifact_version: + type: string + required: false + app_config: + type: map + required: false + app_preferences: + type: map + required: false + program_preferences: + type: list + required: false + programs: + #see Broker API + type: list + required: false + streamname: + type: string + required: false + namespace: + type: string + required: false + service_endpoints: + type: list + required: false +# location_id: +# type: string +# service_id: +# type: string + connections: + type: map + required: false + attributes: + service_component_name: + type: string + requirements: + - host: + capability: dcae.capabilities.cdapHost + relationship: dcae.relationships.component_contained_in + interfaces: + cloudify.interfaces.lifecycle: + type: tosca.interfaces.Root + create: + inputs: + connected_broker_dns_name: + type: string + + + dcae.nodes.composition.virtual: + derived_from: tosca.nodes.Root + properties: + service_id: + type: string + required: true + location_id: + type: string + required: true + capabilities: + host: + type: dcae.capabilities.composition.host + + tosca.dcae.nodes.dockerHost: + derived_from: tosca.dcae.nodes.Root + properties: + location_id: + type: string + required: true + docker_host_override: + type: string + + capabilities: + host: + type: dcae.capabilities.dockerHost + + requirements: + - composition: + capability: dcae.capabilities.composition.host + + dcae.nodes.SelectedDockerHost: + derived_from: cloudify.dcae.nodes.Root + properties: + location_id: + type: string + required: true + docker_host_override: + type: string + capabilities: + host: + type: dcae.capabilities.dockerHost + + dcae.nodes.policy: + derived_from: cloudify.dcae.nodes.Root + properties: + policy_id: + type: string + required: true + capabilities: + policy: + type: dcae.capabilities.policy + + tosca.dcae.nodes.policy: + derived_from: tosca.dcae.nodes.Root + properties: + policy_name: + type: string + policy_id: + type: string + required: true + capabilities: + policy: + type: dcae.capabilities.policy + + tosca.dcae.nodes.policies: + derived_from: tosca.dcae.nodes.Root + properties: + policyName: + type: string + configName: + type: string + onapName: + type: string + configAttributes: + type: string + unique: + type: boolean + capabilities: + policy: + type: dcae.capabilities.policy + + dcae.nodes.policies: + derived_from: cloudify.dcae.nodes.Root + properties: + policy_filter: + type: map + capabilities: + policy: + type: dcae.capabilities.policy + + +capability_types: + dcae.capabilities.dockerHost: + derived_from: tosca.capabilities.Root + + dcae.capabilities.cdapHost: + derived_from: tosca.capabilities.Root + + dcae.capabilities.policy: + derived_from: tosca.capabilities.Root + + dcae.capabilities.stream.subscribe: + derived_from: tosca.capabilities.Root + properties: + format: + type: string + version: + type: string + route: + type: string + + dcae.capabilities.dmmap.feed: + derived_from: tosca.capabilities.Root + properties: + location: + type: string + node_name: + type: string + feed_name: + type: string + + dcae.capabilities.dmmap.topic: + derived_from: tosca.capabilities.Root + properties: + aaf_username: + type: string + aaf_password: + type: string + location: + type: string + client_role: + type: string + node_name: + type: string + topic_name: + type: string + + dcae.capabilities.service.provide: + derived_from: tosca.capabilities.Root + properties: + request_format: + type: string + request_version: + type: string + response_format: + type: string + response_version: + type: string + service_name: + type: string + service_endpoint: + type: string + verb: + type: string + + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string + + +relationship_types: + dcae.relationships.component_contained_in: + derived_from: tosca.relationships.Root + + dcae.relationships.rework_connected_to: + derived_from: tosca.relationships.Root + + dcae.relationships.publish_events: + derived_from: tosca.relationships.Root + + dcae.relationships.subscribe_to_events: + derived_from: tosca.relationships.Root + + dcae.relationships.publish_files: + derived_from: tosca.relationships.Root + + dcae.relationships.subscribe_to_files: + derived_from: tosca.relationships.Root + + cloudify.relationships.depends_on: + derived_from: tosca.relationships.Root diff --git a/app/data/shared_model/composition_virtual/schema.yaml b/app/data/shared_model/composition_virtual/schema.yaml new file mode 100644 index 0000000..780f8ba --- /dev/null +++ b/app/data/shared_model/composition_virtual/schema.yaml @@ -0,0 +1,27 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + dcae.nodes.composition.virtual: + derived_from: tosca.nodes.Root + properties: + service_id: + type: string + required: true + location_id: + type: string + required: true + capabilities: + host: + type: dcae.capabilities.composition.host + +capability_types: + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string diff --git a/app/data/shared_model/composition_virtual/template_cv.yaml b/app/data/shared_model/composition_virtual/template_cv.yaml new file mode 100644 index 0000000..81b170f --- /dev/null +++ b/app/data/shared_model/composition_virtual/template_cv.yaml @@ -0,0 +1,39 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +#metadata section: used for catalog tagging +metadata: + template_name: composition_virtual + template_description: virtual node to include common info for all nodes in the composition + template_version: 1.0.0 +# template_author: Shu Shi + +# asc_catalog: "{name:\"Utils\"}" + +imports: + - schema: schema.yaml + +topology_template: + + inputs: +# service_id: +# type: string + dcae_service_location: + type: string + + node_templates: + composition_virtual: + type: dcae.nodes.composition.virtual + properties: +# service_id: {get_input: service_id} + location_id: {get_input: dcae_service_location} + + capabilities: + host: + properties: + service_id: {get_property: [SELF, service_id]} + location_id: {get_property: [SELF, location_id]} + + + + + diff --git a/app/data/shared_model/composition_virtual/translation_cv.yaml b/app/data/shared_model/composition_virtual/translation_cv.yaml new file mode 100644 index 0000000..ec09400 --- /dev/null +++ b/app/data/shared_model/composition_virtual/translation_cv.yaml @@ -0,0 +1,11 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +imports: + - schema: schema.yaml + +topology_template: + + substitution_mappings: + node_type: dcae.nodes.composition.virtual + +
\ No newline at end of file diff --git a/app/data/shared_model/docker_host/schema.yaml b/app/data/shared_model/docker_host/schema.yaml new file mode 100644 index 0000000..389a1ec --- /dev/null +++ b/app/data/shared_model/docker_host/schema.yaml @@ -0,0 +1,50 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.dockerHost: + derived_from: tosca.dcae.nodes.Root + properties: + location_id: + type: string + required: true + docker_host_override: + type: string + + capabilities: + host: + type: dcae.capabilities.dockerHost + + requirements: + - composition: + capability: dcae.capabilities.composition.host + + dcae.nodes.SelectedDockerHost: + derived_from: cloudify.dcae.nodes.Root + properties: + location_id: + type: string + required: true + docker_host_override: + type: string + capabilities: + host: + type: dcae.capabilities.dockerHost + + +capability_types: + dcae.capabilities.dockerHost: + derived_from: tosca.capabilities.Root + + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string diff --git a/app/data/shared_model/docker_host/template.yaml b/app/data/shared_model/docker_host/template.yaml new file mode 100644 index 0000000..54d41ea --- /dev/null +++ b/app/data/shared_model/docker_host/template.yaml @@ -0,0 +1,25 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +metadata: + template_name: docker_host + + +imports: + - schema: schema.yaml + +topology_template: + inputs: + docker_host_override: + type: string + default: "" + + node_templates: + docker_host: + type: tosca.dcae.nodes.dockerHost + properties: + location_id: {get_property: [SELF, composition, location_id]} + docker_host_override: {get_input: docker_host_override} + + + + diff --git a/app/data/shared_model/docker_host/translation.yaml b/app/data/shared_model/docker_host/translation.yaml new file mode 100644 index 0000000..e741fa2 --- /dev/null +++ b/app/data/shared_model/docker_host/translation.yaml @@ -0,0 +1,27 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: docker_host_translate + +imports: + - schema: schema.yaml + +topology_template: + + inputs: #for substitution mapping definition, these inputs are exactly the properties of dcae.nodes.dockerApp.asimovCollector + location_id: + type: string + docker_host_override: + type: string + + + substitution_mappings: + node_type: tosca.dcae.nodes.dockerHost + capabilities: + host: [host, host] + + node_templates: + host: + type: dcae.nodes.SelectedDockerHost + properties: + location_id: {get_input: location_id} + docker_host_override: {get_input: docker_host_override}
\ No newline at end of file diff --git a/app/data/shared_model/existing_feed/schema.yaml b/app/data/shared_model/existing_feed/schema.yaml new file mode 100644 index 0000000..f1de7f6 --- /dev/null +++ b/app/data/shared_model/existing_feed/schema.yaml @@ -0,0 +1,57 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.dmaap.existingFeed: + derived_from: tosca.dcae.nodes.Root + properties: + location: + type: string + node_name: + type: string + feed_id: + type: string + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + requirements: + - composition: + capability: dcae.capabilities.composition.host + + dcae.nodes.ExistingFeed: + derived_from: cloudify.dcae.nodes.Root + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + properties: + feed_id: + type: string + + +capability_types: + + dcae.capabilities.dmmap.feed: + derived_from: tosca.capabilities.Root + properties: + location: + type: string + node_name: + type: string + feed_name: + type: string + + + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string +
\ No newline at end of file diff --git a/app/data/shared_model/existing_feed/template.yaml b/app/data/shared_model/existing_feed/template.yaml new file mode 100644 index 0000000..ebfac43 --- /dev/null +++ b/app/data/shared_model/existing_feed/template.yaml @@ -0,0 +1,34 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: existing_feed +imports: +- schema: schema.yaml +topology_template: + inputs: + feed_id: + type: string + + node_templates: + feed: + type: tosca.dcae.nodes.dmaap.existingFeed + properties: + feed_id: + get_input: feed_id + location: + get_property: + - SELF + - composition + - location_id + node_name: __GET_NODE_NAME__ + capabilities: + feed: + properties: + feed_name: "" + location: + get_property: + - SELF + - location + node_name: + get_property: + - SELF + - node_name diff --git a/app/data/shared_model/existing_feed/translate.yaml b/app/data/shared_model/existing_feed/translate.yaml new file mode 100644 index 0000000..9a2be05 --- /dev/null +++ b/app/data/shared_model/existing_feed/translate.yaml @@ -0,0 +1,27 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: existing_feed_translate +imports: +- schema: schema.yaml + +topology_template: + inputs: + location: + type: string + node_name: + type: string + feed_id: + type: string + + + substitution_mappings: + node_type: tosca.dcae.nodes.dmaap.existingFeed + capabilities: + feed: + - NO_PREFIX + - feed + node_templates: + NO_PREFIX: + type: dcae.nodes.ExistingFeed + properties: + feed_id: {get_input: feed_id} diff --git a/app/data/shared_model/existing_topic/schema.yaml b/app/data/shared_model/existing_topic/schema.yaml new file mode 100644 index 0000000..8bd80ca --- /dev/null +++ b/app/data/shared_model/existing_topic/schema.yaml @@ -0,0 +1,66 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.dmaap.existingTopic: + derived_from: tosca.dcae.nodes.Root + properties: + aaf_username: + type: string + aaf_password: + type: string + location: + type: string + client_role: + type: string + node_name: + type: string + fqtn: + type: string + capabilities: + topic: + type: dcae.capabilities.dmmap.topic + requirements: + - composition: + capability: dcae.capabilities.composition.host + + dcae.nodes.ExistingTopic: + derived_from: cloudify.dcae.nodes.Root + properties: + fqtn: + type: string + capabilities: + topic: + type: dcae.capabilities.dmmap.topic + +capability_types: + + dcae.capabilities.dmmap.topic: + derived_from: tosca.capabilities.Root + properties: + aaf_username: + type: string + aaf_password: + type: string + location: + type: string + client_role: + type: string + node_name: + type: string + topic_name: + type: string + + + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string + diff --git a/app/data/shared_model/existing_topic/template.yaml b/app/data/shared_model/existing_topic/template.yaml new file mode 100644 index 0000000..cd41b04 --- /dev/null +++ b/app/data/shared_model/existing_topic/template.yaml @@ -0,0 +1,58 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: existing_topic +imports: +- schema: schema.yaml +topology_template: + inputs: + aaf_password: + type: string + aaf_username: + type: string + client_role: + type: string + fqtn: + type: string + + node_templates: + topic: + type: tosca.dcae.nodes.dmaap.existingTopic + properties: + aaf_password: + get_input: aaf_password + aaf_username: + get_input: aaf_username + client_role: + get_input: client_role + location: + get_property: + - SELF + - composition + - location_id + node_name: __GET_NODE_NAME__ + fqtn: + get_input: fqtn + capabilities: + topic: + properties: + aaf_password: + get_property: + - SELF + - aaf_password + aaf_username: + get_property: + - SELF + - aaf_username + client_role: + get_property: + - SELF + - client_role + location: + get_property: + - SELF + - location + node_name: + get_property: + - SELF + - node_name + topic_name: ''
\ No newline at end of file diff --git a/app/data/shared_model/existing_topic/translate.yaml b/app/data/shared_model/existing_topic/translate.yaml new file mode 100644 index 0000000..530db27 --- /dev/null +++ b/app/data/shared_model/existing_topic/translate.yaml @@ -0,0 +1,34 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: existing_topic_translate +imports: +- schema: schema.yaml + + +topology_template: + inputs: + aaf_username: + type: string + aaf_password: + type: string + location: + type: string + client_role: + type: string + node_name: + type: string + fqtn: + type: string + + + substitution_mappings: + node_type: tosca.dcae.nodes.dmaap.existingTopic + capabilities: + topic: + - NO_PREFIX + - topic + node_templates: + NO_PREFIX: + type: dcae.nodes.ExistingTopic + properties: + fqtn: {get_input: fqtn}
\ No newline at end of file diff --git a/app/data/shared_model/external_target_feed/schema.yaml b/app/data/shared_model/external_target_feed/schema.yaml new file mode 100644 index 0000000..9186590 --- /dev/null +++ b/app/data/shared_model/external_target_feed/schema.yaml @@ -0,0 +1,62 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.dmaap.externalTargetFeed: + derived_from: tosca.dcae.nodes.Root + properties: + location: + type: string + node_name: + type: string + url: + type: string + username: + type: string + userpw: + type: string + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + requirements: + - composition: + capability: dcae.capabilities.composition.host + + dcae.nodes.ExternalTargetFeed: + derived_from: cloudify.dcae.nodes.Root + capabilities: + feed: + type: dcae.capabilities.dmmap.feed + properties: + url: + type: string + username: + type: string + userpw: + type: string + +capability_types: + + dcae.capabilities.dmmap.feed: + derived_from: tosca.capabilities.Root + properties: + location: + type: string + node_name: + type: string + feed_name: + type: string + + + dcae.capabilities.composition.host: + derived_from: tosca.capabilities.Root + properties: + service_id: + type: string + location_id: + type: string diff --git a/app/data/shared_model/external_target_feed/template.yaml b/app/data/shared_model/external_target_feed/template.yaml new file mode 100644 index 0000000..0e24493 --- /dev/null +++ b/app/data/shared_model/external_target_feed/template.yaml @@ -0,0 +1,42 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: external_target_feed +imports: +- schema: schema.yaml +topology_template: + inputs: + url: + type: string + username: + type: string + userpw: + type: string + + node_templates: + feed: + type: tosca.dcae.nodes.dmaap.externalTargetFeed + properties: + url: + get_input: url + username: + get_input: username + userpw: + get_input: userpw + location: + get_property: + - SELF + - composition + - location_id + node_name: __GET_NODE_NAME__ + capabilities: + feed: + properties: + feed_name: "" + location: + get_property: + - SELF + - location + node_name: + get_property: + - SELF + - node_name diff --git a/app/data/shared_model/external_target_feed/translate.yaml b/app/data/shared_model/external_target_feed/translate.yaml new file mode 100644 index 0000000..02810c2 --- /dev/null +++ b/app/data/shared_model/external_target_feed/translate.yaml @@ -0,0 +1,33 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: external_target_feed_translate +imports: +- schema: schema.yaml + +topology_template: + inputs: + location: + type: string + node_name: + type: string + url: + type: string + username: + type: string + userpw: + type: string + + + substitution_mappings: + node_type: tosca.dcae.nodes.dmaap.externalTargetFeed + capabilities: + feed: + - NO_PREFIX + - feed + node_templates: + NO_PREFIX: + type: dcae.nodes.ExternalTargetFeed + properties: + url: {get_input: url} + username: {get_input: username} + userpw: {get_input: userpw} diff --git a/app/data/shared_model/policies/schema.yaml b/app/data/shared_model/policies/schema.yaml new file mode 100644 index 0000000..505b97f --- /dev/null +++ b/app/data/shared_model/policies/schema.yaml @@ -0,0 +1,38 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + tosca.dcae.nodes.policies: + derived_from: tosca.dcae.nodes.Root + properties: + policyName: + type: string + configName: + type: string + onapName: + type: string + configAttributes: + type: string + unique: + type: boolean + capabilities: + policy: + type: dcae.capabilities.policy + + dcae.nodes.policies: + derived_from: cloudify.dcae.nodes.Root + properties: + policy_filter: + type: map + capabilities: + policy: + type: dcae.capabilities.policy + +capability_types: + dcae.capabilities.policy: + derived_from: tosca.capabilities.Root diff --git a/app/data/shared_model/policies/template.yaml b/app/data/shared_model/policies/template.yaml new file mode 100644 index 0000000..b3e894a --- /dev/null +++ b/app/data/shared_model/policies/template.yaml @@ -0,0 +1,28 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: policies +imports: +- schema: schema.yaml + +topology_template: + inputs: + policyName: + type: string + configName: + type: string + onapName: + type: string + configAttributes: + type: string + unique: + type: boolean + + node_templates: + policy: + type: tosca.dcae.nodes.policies + properties: + policyName: "DCAE.Config_" + configName: "" + onapName: "DCAE" + configAttributes: "" + unique: false diff --git a/app/data/shared_model/policies/translate.yaml b/app/data/shared_model/policies/translate.yaml new file mode 100644 index 0000000..c0daffb --- /dev/null +++ b/app/data/shared_model/policies/translate.yaml @@ -0,0 +1,34 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: policies_translate +imports: +- schema: schema.yaml +topology_template: + inputs: + policyName: + type: string + configName: + type: string + onapName: + type: string + configAttributes: + type: string + unique: + type: boolean + + substitution_mappings: + node_type: tosca.dcae.nodes.policies + capabilities: + policy: + - NO_PREFIX + - policy + node_templates: + NO_PREFIX: + type: dcae.nodes.policies + properties: + policy_filter: + policyName: {get_input: policyName} + configName: {get_input: configName} + onapName: {get_input: onapName} + configAttributes: {get_input: configAttributes} + unique: {get_input: unique}
\ No newline at end of file diff --git a/app/data/shared_model/policy/schema.yaml b/app/data/shared_model/policy/schema.yaml new file mode 100644 index 0000000..cb4718c --- /dev/null +++ b/app/data/shared_model/policy/schema.yaml @@ -0,0 +1,34 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 + +node_types: + + tosca.dcae.nodes.Root: + derived_from: tosca.nodes.Root + cloudify.dcae.nodes.Root: + derived_from: tosca.nodes.Root + + dcae.nodes.policy: + derived_from: cloudify.dcae.nodes.Root + properties: + policy_id: + type: string + required: true + capabilities: + policy: + type: dcae.capabilities.policy + + tosca.dcae.nodes.policy: + derived_from: tosca.dcae.nodes.Root + properties: + policy_name: + type: string + policy_id: + type: string + required: true + capabilities: + policy: + type: dcae.capabilities.policy + +capability_types: + dcae.capabilities.policy: + derived_from: tosca.capabilities.Root diff --git a/app/data/shared_model/policy/template.yaml b/app/data/shared_model/policy/template.yaml new file mode 100644 index 0000000..a0e8b00 --- /dev/null +++ b/app/data/shared_model/policy/template.yaml @@ -0,0 +1,10 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: policy +imports: +- schema: schema.yaml +topology_template: + + node_templates: + policy: + type: tosca.dcae.nodes.policy diff --git a/app/data/shared_model/policy/translate.yaml b/app/data/shared_model/policy/translate.yaml new file mode 100644 index 0000000..1c349c2 --- /dev/null +++ b/app/data/shared_model/policy/translate.yaml @@ -0,0 +1,23 @@ +tosca_definitions_version: tosca_simple_yaml_1_0_0 +metadata: + template_name: policy_translate +imports: +- schema: schema.yaml +topology_template: + inputs: + policy_name: + type: string + policy_id: + type: string + + substitution_mappings: + node_type: tosca.dcae.nodes.policy + capabilities: + policy: + - NO_PREFIX + - policy + node_templates: + NO_PREFIX: + type: dcae.nodes.policy + properties: + policy_id: {get_input: policy_id}
\ No newline at end of file diff --git a/app/tosca_server.pyc b/app/tosca_server.pyc Binary files differdeleted file mode 100644 index 89984f4..0000000 --- a/app/tosca_server.pyc +++ /dev/null diff --git a/app/toscalib/__init__.pyc b/app/toscalib/__init__.pyc Binary files differdeleted file mode 100644 index 57447a6..0000000 --- a/app/toscalib/__init__.pyc +++ /dev/null diff --git a/app/toscalib/templates/__init__.pyc b/app/toscalib/templates/__init__.pyc Binary files differdeleted file mode 100644 index a70f506..0000000 --- a/app/toscalib/templates/__init__.pyc +++ /dev/null diff --git a/app/toscalib/templates/capability_item.pyc b/app/toscalib/templates/capability_item.pyc Binary files differdeleted file mode 100644 index 3a7d971..0000000 --- a/app/toscalib/templates/capability_item.pyc +++ /dev/null diff --git a/app/toscalib/templates/constant.pyc b/app/toscalib/templates/constant.pyc Binary files differdeleted file mode 100644 index 6335388..0000000 --- a/app/toscalib/templates/constant.pyc +++ /dev/null diff --git a/app/toscalib/templates/database.pyc b/app/toscalib/templates/database.pyc Binary files differdeleted file mode 100644 index e7f651f..0000000 --- a/app/toscalib/templates/database.pyc +++ /dev/null diff --git a/app/toscalib/templates/heat_constants.pyc b/app/toscalib/templates/heat_constants.pyc Binary files differdeleted file mode 100644 index 379bc4e..0000000 --- a/app/toscalib/templates/heat_constants.pyc +++ /dev/null diff --git a/app/toscalib/templates/interface_item.pyc b/app/toscalib/templates/interface_item.pyc Binary files differdeleted file mode 100644 index 20d9f8c..0000000 --- a/app/toscalib/templates/interface_item.pyc +++ /dev/null diff --git a/app/toscalib/templates/node.pyc b/app/toscalib/templates/node.pyc Binary files differdeleted file mode 100644 index 3d780b7..0000000 --- a/app/toscalib/templates/node.pyc +++ /dev/null diff --git a/app/toscalib/templates/operation_item.pyc b/app/toscalib/templates/operation_item.pyc Binary files differdeleted file mode 100644 index 1d35b40..0000000 --- a/app/toscalib/templates/operation_item.pyc +++ /dev/null diff --git a/app/toscalib/templates/property_item.pyc b/app/toscalib/templates/property_item.pyc Binary files differdeleted file mode 100644 index 96d7b86..0000000 --- a/app/toscalib/templates/property_item.pyc +++ /dev/null diff --git a/app/toscalib/templates/requirement_item.pyc b/app/toscalib/templates/requirement_item.pyc Binary files differdeleted file mode 100644 index 1cb307e..0000000 --- a/app/toscalib/templates/requirement_item.pyc +++ /dev/null diff --git a/app/toscalib/templates/substitution_rule.pyc b/app/toscalib/templates/substitution_rule.pyc Binary files differdeleted file mode 100644 index 0d4ad19..0000000 --- a/app/toscalib/templates/substitution_rule.pyc +++ /dev/null diff --git a/app/toscalib/templates/topology.pyc b/app/toscalib/templates/topology.pyc Binary files differdeleted file mode 100644 index 3b03399..0000000 --- a/app/toscalib/templates/topology.pyc +++ /dev/null diff --git a/app/toscalib/templates/value.pyc b/app/toscalib/templates/value.pyc Binary files differdeleted file mode 100644 index 00f27d7..0000000 --- a/app/toscalib/templates/value.pyc +++ /dev/null diff --git a/app/toscalib/tosca_builder.pyc b/app/toscalib/tosca_builder.pyc Binary files differdeleted file mode 100644 index 082f41c..0000000 --- a/app/toscalib/tosca_builder.pyc +++ /dev/null diff --git a/app/toscalib/tosca_workbook.pyc b/app/toscalib/tosca_workbook.pyc Binary files differdeleted file mode 100644 index a3ada52..0000000 --- a/app/toscalib/tosca_workbook.pyc +++ /dev/null diff --git a/app/toscalib/types/__init__.pyc b/app/toscalib/types/__init__.pyc Binary files differdeleted file mode 100644 index 810f67d..0000000 --- a/app/toscalib/types/__init__.pyc +++ /dev/null diff --git a/app/toscalib/types/capability.pyc b/app/toscalib/types/capability.pyc Binary files differdeleted file mode 100644 index f79e142..0000000 --- a/app/toscalib/types/capability.pyc +++ /dev/null diff --git a/app/toscalib/types/constraints.pyc b/app/toscalib/types/constraints.pyc Binary files differdeleted file mode 100644 index 514635a..0000000 --- a/app/toscalib/types/constraints.pyc +++ /dev/null diff --git a/app/toscalib/types/data.pyc b/app/toscalib/types/data.pyc Binary files differdeleted file mode 100644 index fd1388a..0000000 --- a/app/toscalib/types/data.pyc +++ /dev/null diff --git a/app/toscalib/types/entry_schema.pyc b/app/toscalib/types/entry_schema.pyc Binary files differdeleted file mode 100644 index b9558f4..0000000 --- a/app/toscalib/types/entry_schema.pyc +++ /dev/null diff --git a/app/toscalib/types/interface.pyc b/app/toscalib/types/interface.pyc Binary files differdeleted file mode 100644 index 8766be3..0000000 --- a/app/toscalib/types/interface.pyc +++ /dev/null diff --git a/app/toscalib/types/node.pyc b/app/toscalib/types/node.pyc Binary files differdeleted file mode 100644 index a6ce858..0000000 --- a/app/toscalib/types/node.pyc +++ /dev/null diff --git a/app/toscalib/types/operation.pyc b/app/toscalib/types/operation.pyc Binary files differdeleted file mode 100644 index ec25aae..0000000 --- a/app/toscalib/types/operation.pyc +++ /dev/null diff --git a/app/toscalib/types/property.pyc b/app/toscalib/types/property.pyc Binary files differdeleted file mode 100644 index 73008a3..0000000 --- a/app/toscalib/types/property.pyc +++ /dev/null diff --git a/app/toscalib/types/relationship.pyc b/app/toscalib/types/relationship.pyc Binary files differdeleted file mode 100644 index f106cbe..0000000 --- a/app/toscalib/types/relationship.pyc +++ /dev/null diff --git a/app/toscalib/types/requirement.pyc b/app/toscalib/types/requirement.pyc Binary files differdeleted file mode 100644 index 6a61138..0000000 --- a/app/toscalib/types/requirement.pyc +++ /dev/null diff --git a/app/toscalib/utils/__init__.pyc b/app/toscalib/utils/__init__.pyc Binary files differdeleted file mode 100644 index b047006..0000000 --- a/app/toscalib/utils/__init__.pyc +++ /dev/null diff --git a/app/toscalib/utils/tosca_export.pyc b/app/toscalib/utils/tosca_export.pyc Binary files differdeleted file mode 100644 index 2552481..0000000 --- a/app/toscalib/utils/tosca_export.pyc +++ /dev/null diff --git a/app/toscalib/utils/tosca_heat.pyc b/app/toscalib/utils/tosca_heat.pyc Binary files differdeleted file mode 100644 index a69a761..0000000 --- a/app/toscalib/utils/tosca_heat.pyc +++ /dev/null diff --git a/app/toscalib/utils/tosca_import.pyc b/app/toscalib/utils/tosca_import.pyc Binary files differdeleted file mode 100644 index b86dfa7..0000000 --- a/app/toscalib/utils/tosca_import.pyc +++ /dev/null diff --git a/app/toscalib/utils/tosca_operate.pyc b/app/toscalib/utils/tosca_operate.pyc Binary files differdeleted file mode 100644 index 4ebd264..0000000 --- a/app/toscalib/utils/tosca_operate.pyc +++ /dev/null diff --git a/app/toscalib/utils/tosca_print.pyc b/app/toscalib/utils/tosca_print.pyc Binary files differdeleted file mode 100644 index 7c39616..0000000 --- a/app/toscalib/utils/tosca_print.pyc +++ /dev/null diff --git a/app/toscalib/utils/yamlparser.pyc b/app/toscalib/utils/yamlparser.pyc Binary files differdeleted file mode 100644 index 8d97b2a..0000000 --- a/app/toscalib/utils/yamlparser.pyc +++ /dev/null diff --git a/app/version.pyc b/app/version.pyc Binary files differdeleted file mode 100644 index 7a19a68..0000000 --- a/app/version.pyc +++ /dev/null |