diff options
Diffstat (limited to 'app/data/shared_model/existing_feed')
-rw-r--r-- | app/data/shared_model/existing_feed/schema.yaml | 57 | ||||
-rw-r--r-- | app/data/shared_model/existing_feed/template.yaml | 34 | ||||
-rw-r--r-- | app/data/shared_model/existing_feed/translate.yaml | 27 |
3 files changed, 118 insertions, 0 deletions
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} |