Import from GitHub

Change-Id: Iae8a9ecd755e62ec97c1a0a0da943fd90131f0af
diff --git a/xos/tosca/custom_types/sample.m4 b/xos/tosca/custom_types/sample.m4
new file mode 100644
index 0000000..6c6ff82
--- /dev/null
+++ b/xos/tosca/custom_types/sample.m4
@@ -0,0 +1,17 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+
+# compile this with "m4 sample.m4 > sample.yaml"
+
+# include macros
+include(macros.m4)
+
+node_types:
+    tosca.nodes.SampleService:
+        derived_from: tosca.nodes.Root
+        description: >
+            Sample Service
+        capabilities:
+            xos_base_service_caps
+        properties:
+            xos_base_props
+            xos_base_service_props
\ No newline at end of file
diff --git a/xos/tosca/custom_types/sample.yaml b/xos/tosca/custom_types/sample.yaml
new file mode 100644
index 0000000..ca3c6ca
--- /dev/null
+++ b/xos/tosca/custom_types/sample.yaml
@@ -0,0 +1,59 @@
+tosca_definitions_version: tosca_simple_yaml_1_0
+node_types:
+    tosca.nodes.SampleService:
+        derived_from: tosca.nodes.Root
+        description: >
+            Sample Service
+        capabilities:
+            scalable:
+                type: tosca.capabilities.Scalable
+            service:
+                type: tosca.capabilities.xos.Service
+        properties:
+            no-delete:
+                type: boolean
+                default: false
+                description: Do not allow Tosca to delete this object
+            no-create:
+                type: boolean
+                default: false
+                description: Do not allow Tosca to create this object
+            no-update:
+                type: boolean
+                default: false
+                description: Do not allow Tosca to update this object
+            replaces:
+                type: string
+                required: false
+                descrption: Replaces/renames this object
+            kind:
+                type: string
+                default: generic
+                description: Type of service.
+            view_url:
+                type: string
+                required: false
+                description: URL to follow when icon is clicked in the Service Directory.
+            icon_url:
+                type: string
+                required: false
+                description: ICON to display in the Service Directory.
+            enabled:
+                type: boolean
+                default: true
+            published:
+                type: boolean
+                default: true
+                description: If True then display this Service in the Service Directory.
+            public_key:
+                type: string
+                required: false
+                description: Public key to install into Instances to allows Services to SSH into them.
+            private_key_fn:
+                type: string
+                required: false
+                description: Location of private key file
+            versionNumber:
+                type: string
+                required: false
+                description: Version number of Service.
\ No newline at end of file
diff --git a/xos/tosca/resources/sample.py b/xos/tosca/resources/sample.py
new file mode 100644
index 0000000..2c52ed6
--- /dev/null
+++ b/xos/tosca/resources/sample.py
@@ -0,0 +1,21 @@
+from xosresource import XOSResource
+from service import XOSService
+from services.vtr.models import SampleService
+
+
+class ToscaSampleService(XOSService):
+    provides = "tosca.nodes.Service"
+    xos_model = SampleService
+    copyin_props = [
+      "description",
+      "kind",
+      "versionNumber",
+      "public_key",
+      "private_key_fn",
+      "service_specific_id"
+    ]
+
+
+class ToscaSampleTenant(XOSResource):
+    provides = "tosca.nodes.Tenant"
+    xos_model = SampleTenant