r1.8 adding documentation
[sfa.git] / sfa / managers / eucalyptus / eucalyptus.rnc
index 469e77d..ead2a36 100644 (file)
@@ -1,20 +1,34 @@
 start = RSpec
 RSpec = element RSpec {
-   attribute type { xsd:NMTOKEN },
-   cloud
+    attribute expires { xsd:NMTOKEN },
+    attribute generated { xsd:NMTOKEN },
+    attribute type { xsd:NMTOKEN },
+    network
 }
-cloud = element cloud {
-   attribute id { xsd:NMTOKEN },
-   user-info?,
-   ipv4,
-   keypairs,
-   images,
-   cluster+
+network = element network {
+    attribute name { xsd:NMTOKEN },
+    user_info?,
+    ipv4,
+    bundles,
+    #keypairs,
+    #images,
+    cluster+
 }
-user-info = element user-info { 
-   credential 
+
+user_info = element user_info { 
+    element credential { text }
 }
+
 keypairs = element keypairs { keypair+ }
+keypair = element keypair { text }
+
+bundles = element bundles {
+    element bundle {
+        attribute id { xsd:ID },
+        empty
+    }+
+}
+
 images = element images { image+ }
 image = element image {
    attribute id { xsd:ID },
@@ -26,45 +40,63 @@ image = element image {
 cluster = element cluster {
    attribute id { xsd:ID },
    ipv4,
-   vm-types
+   vm_types
 }
-vm-types = element vm-types { vm-type+ }
-vm-type = element vm-type {
+vm_types = element vm_types { vm_type+ }
+vm_type = element vm_type {
    attribute name { xsd:ID },
-   free-slots,
-   max-instances,
+   free_slots,
+   max_instances,
    cores,
    memory,
-   disk-space,
+   disk_space,
+   euca_instances?,
    request?
 }
+
 request = element request {
+    instances,
+    element bundle {
+        xsd:IDREF
+    }
+}
+
+oldrequest = element oldrequest {
    instances,
-   kernel-image,
+   kernel_image,
    ramdisk,
-   disk-image,
+   disk_image,
    keypair
 }
-credential = element credential { text }
+
+euca_instances = element euca_instances {
+   euca_instance+
+}
+euca_instance = element euca_instance {
+   attribute id { xsd:ID },
+   state,
+   public_dns,
+   keypair?
+}
 ipv4 = element ipv4 { text }
-keypair = element keypair { text }
 type = element type { text }
 arch = element arch { text }
 state = element state { text }
 location = element location { text }
-free-slots = element free-slots { text }
-max-instances = element max-instances { text }
+free_slots = element free_slots { text }
+max_instances = element max_instances { text }
 cores = element cores { text }
+public_dns = element public_dns { text }
 memory = element memory {
    attribute unit { xsd:NMTOKEN },
    text
 }
-disk-space = element disk-space {
+disk_space = element disk_space {
    attribute unit { xsd:NMTOKEN },
    text
 }
-instances = element instances { text }
-kernel-image = element kernel-image {
+instances = element instances { xsd:unsignedInt }
+kernel_image = element kernel_image {
    attribute id { xsd:IDREF },
    empty
 }
@@ -72,7 +104,7 @@ ramdisk = element ramdisk {
    attribute id { xsd:IDREF }?,
    empty
 }
-disk-image = element disk-image {
+disk_image = element disk_image {
    attribute id { xsd:IDREF },
    empty
 }