ruby_vcloud_sdk 0.4.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (319) hide show
  1. data/README +1 -0
  2. data/Rakefile +50 -0
  3. data/lib/ruby_vcloud_sdk.rb +19 -0
  4. data/lib/ruby_vcloud_sdk/client.rb +899 -0
  5. data/lib/ruby_vcloud_sdk/config.rb +17 -0
  6. data/lib/ruby_vcloud_sdk/connection/connection.rb +163 -0
  7. data/lib/ruby_vcloud_sdk/connection/file_uploader.rb +43 -0
  8. data/lib/ruby_vcloud_sdk/errors.rb +21 -0
  9. data/lib/ruby_vcloud_sdk/ovf_directory.rb +45 -0
  10. data/lib/ruby_vcloud_sdk/util.rb +21 -0
  11. data/lib/ruby_vcloud_sdk/version.rb +3 -0
  12. data/lib/ruby_vcloud_sdk/xml/constants.rb +427 -0
  13. data/lib/ruby_vcloud_sdk/xml/wrapper.rb +242 -0
  14. data/lib/ruby_vcloud_sdk/xml/wrapper_classes.rb +3 -0
  15. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_catalog.rb +20 -0
  16. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_org.rb +15 -0
  17. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/catalog_item.rb +27 -0
  18. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk.rb +40 -0
  19. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk_attach_or_detach_params.rb +12 -0
  20. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk_create_params.rb +47 -0
  21. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/entity.rb +11 -0
  22. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/file.rb +11 -0
  23. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb +50 -0
  24. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/instantiate_vapp_template_params.rb +71 -0
  25. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_scope.rb +55 -0
  26. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/item.rb +32 -0
  27. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb +53 -0
  28. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/media_insert_or_eject_params.rb +17 -0
  29. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/metadata_value.rb +15 -0
  30. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/network.rb +15 -0
  31. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/network_config.rb +27 -0
  32. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/network_config_section.rb +25 -0
  33. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/network_connection.rb +71 -0
  34. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/network_connection_section.rb +67 -0
  35. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/nic_item_wrapper.rb +91 -0
  36. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/org_network.rb +19 -0
  37. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/org_vdc_network.rb +11 -0
  38. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/session.rb +17 -0
  39. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/task.rb +32 -0
  40. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/upload_vapp_template_params.rb +11 -0
  41. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb +55 -0
  42. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp_template.rb +19 -0
  43. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vcloud.rb +15 -0
  44. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vdc.rb +54 -0
  45. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vdc_storage_profile.rb +15 -0
  46. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/virtual_hardware_section.rb +68 -0
  47. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vm.rb +179 -0
  48. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminAllocatedExtIpRecord.xml +1 -0
  49. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminCatalog.xml +1 -0
  50. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminCatalogItemRecord.xml +1 -0
  51. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminCatalogRecord.xml +1 -0
  52. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminGroupRecord.xml +1 -0
  53. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminMediaRecord.xml +1 -0
  54. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminOrg.xml +1 -0
  55. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminOrgNetworkRecord.xml +1 -0
  56. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminShadowVmRecord.xml +1 -0
  57. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminTaskRecord.xml +1 -0
  58. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminUserRecord.xml +1 -0
  59. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminVAppNetworkRecord.xml +1 -0
  60. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminVAppRecord.xml +1 -0
  61. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminVAppReference.xml +1 -0
  62. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminVAppReferences.xml +1 -0
  63. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminVAppTemplateRecord.xml +1 -0
  64. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminVdc.xml +1 -0
  65. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminVdcRecord.xml +1 -0
  66. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminVdcReference.xml +1 -0
  67. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminVdcReferences.xml +1 -0
  68. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminVmRecord.xml +1 -0
  69. data/lib/ruby_vcloud_sdk/xml/xml_templates/AllEULAsAccepted.xml +1 -0
  70. data/lib/ruby_vcloud_sdk/xml/xml_templates/AllocatedExtIpRecord.xml +1 -0
  71. data/lib/ruby_vcloud_sdk/xml/xml_templates/BlockingTaskRecord.xml +1 -0
  72. data/lib/ruby_vcloud_sdk/xml/xml_templates/BlockingTaskReference.xml +1 -0
  73. data/lib/ruby_vcloud_sdk/xml/xml_templates/BlockingTaskReferences.xml +1 -0
  74. data/lib/ruby_vcloud_sdk/xml/xml_templates/CaptureVAppParams.xml +1 -0
  75. data/lib/ruby_vcloud_sdk/xml/xml_templates/Catalog.xml +1 -0
  76. data/lib/ruby_vcloud_sdk/xml/xml_templates/CatalogItem.xml +1 -0
  77. data/lib/ruby_vcloud_sdk/xml/xml_templates/CatalogItemRecord.xml +1 -0
  78. data/lib/ruby_vcloud_sdk/xml/xml_templates/CatalogItemReference.xml +1 -0
  79. data/lib/ruby_vcloud_sdk/xml/xml_templates/CatalogItemReferences.xml +1 -0
  80. data/lib/ruby_vcloud_sdk/xml/xml_templates/CatalogRecord.xml +1 -0
  81. data/lib/ruby_vcloud_sdk/xml/xml_templates/CatalogReference.xml +1 -0
  82. data/lib/ruby_vcloud_sdk/xml/xml_templates/CatalogReferences.xml +1 -0
  83. data/lib/ruby_vcloud_sdk/xml/xml_templates/CellRecord.xml +1 -0
  84. data/lib/ruby_vcloud_sdk/xml/xml_templates/CloneMediaParams.xml +1 -0
  85. data/lib/ruby_vcloud_sdk/xml/xml_templates/CloneVAppParams.xml +1 -0
  86. data/lib/ruby_vcloud_sdk/xml/xml_templates/CloneVAppTemplateParams.xml +1 -0
  87. data/lib/ruby_vcloud_sdk/xml/xml_templates/ComposeVAppParams.xml +1 -0
  88. data/lib/ruby_vcloud_sdk/xml/xml_templates/ControlAccessParams.xml +1 -0
  89. data/lib/ruby_vcloud_sdk/xml/xml_templates/CustomizationSection.xml +1 -0
  90. data/lib/ruby_vcloud_sdk/xml/xml_templates/DatastoreProviderVdcRelationRecord.xml +1 -0
  91. data/lib/ruby_vcloud_sdk/xml/xml_templates/DatastoreRecord.xml +1 -0
  92. data/lib/ruby_vcloud_sdk/xml/xml_templates/DatastoreReference.xml +1 -0
  93. data/lib/ruby_vcloud_sdk/xml/xml_templates/DatastoreReferences.xml +1 -0
  94. data/lib/ruby_vcloud_sdk/xml/xml_templates/DeployVAppParams.xml +1 -0
  95. data/lib/ruby_vcloud_sdk/xml/xml_templates/DhcpService.xml +1 -0
  96. data/lib/ruby_vcloud_sdk/xml/xml_templates/DiskAttachOrDetachParams.xml +5 -0
  97. data/lib/ruby_vcloud_sdk/xml/xml_templates/DiskCreateParams.xml +9 -0
  98. data/lib/ruby_vcloud_sdk/xml/xml_templates/DvSwitchRecord.xml +1 -0
  99. data/lib/ruby_vcloud_sdk/xml/xml_templates/Entity.xml +1 -0
  100. data/lib/ruby_vcloud_sdk/xml/xml_templates/Error.xml +1 -0
  101. data/lib/ruby_vcloud_sdk/xml/xml_templates/EventRecord.xml +1 -0
  102. data/lib/ruby_vcloud_sdk/xml/xml_templates/ExternalNetwork.xml +1 -0
  103. data/lib/ruby_vcloud_sdk/xml/xml_templates/File.xml +1 -0
  104. data/lib/ruby_vcloud_sdk/xml/xml_templates/FirewallService.xml +1 -0
  105. data/lib/ruby_vcloud_sdk/xml/xml_templates/GeneralOrgSettings.xml +1 -0
  106. data/lib/ruby_vcloud_sdk/xml/xml_templates/Group.xml +1 -0
  107. data/lib/ruby_vcloud_sdk/xml/xml_templates/GroupRecord.xml +1 -0
  108. data/lib/ruby_vcloud_sdk/xml/xml_templates/GroupReference.xml +1 -0
  109. data/lib/ruby_vcloud_sdk/xml/xml_templates/GroupReferences.xml +1 -0
  110. data/lib/ruby_vcloud_sdk/xml/xml_templates/GuestCustomizationSection.xml +1 -0
  111. data/lib/ruby_vcloud_sdk/xml/xml_templates/HostRecord.xml +1 -0
  112. data/lib/ruby_vcloud_sdk/xml/xml_templates/HostReference.xml +1 -0
  113. data/lib/ruby_vcloud_sdk/xml/xml_templates/HostReferences.xml +1 -0
  114. data/lib/ruby_vcloud_sdk/xml/xml_templates/InstantiateOvfParams.xml +1 -0
  115. data/lib/ruby_vcloud_sdk/xml/xml_templates/InstantiateVAppTemplateParams.xml +1 -0
  116. data/lib/ruby_vcloud_sdk/xml/xml_templates/IpScope.xml +12 -0
  117. data/lib/ruby_vcloud_sdk/xml/xml_templates/IpsecVpnLocalPeer.xml +1 -0
  118. data/lib/ruby_vcloud_sdk/xml/xml_templates/IpsecVpnPeer.xml +1 -0
  119. data/lib/ruby_vcloud_sdk/xml/xml_templates/IpsecVpnRemotePeer.xml +1 -0
  120. data/lib/ruby_vcloud_sdk/xml/xml_templates/IpsecVpnService.xml +1 -0
  121. data/lib/ruby_vcloud_sdk/xml/xml_templates/IpsecVpnThirdPartyPeer.xml +1 -0
  122. data/lib/ruby_vcloud_sdk/xml/xml_templates/Item.xml +3 -0
  123. data/lib/ruby_vcloud_sdk/xml/xml_templates/ItemVcd.xml +5 -0
  124. data/lib/ruby_vcloud_sdk/xml/xml_templates/LeaseSettingsSection.xml +1 -0
  125. data/lib/ruby_vcloud_sdk/xml/xml_templates/Link.xml +1 -0
  126. data/lib/ruby_vcloud_sdk/xml/xml_templates/Media.xml +6 -0
  127. data/lib/ruby_vcloud_sdk/xml/xml_templates/MediaInsertOrEjectParams.xml +4 -0
  128. data/lib/ruby_vcloud_sdk/xml/xml_templates/MediaRecord.xml +1 -0
  129. data/lib/ruby_vcloud_sdk/xml/xml_templates/MediaReference.xml +1 -0
  130. data/lib/ruby_vcloud_sdk/xml/xml_templates/MediaReferences.xml +1 -0
  131. data/lib/ruby_vcloud_sdk/xml/xml_templates/Metadata.xml +5 -0
  132. data/lib/ruby_vcloud_sdk/xml/xml_templates/MetadataEntry.xml +7 -0
  133. data/lib/ruby_vcloud_sdk/xml/xml_templates/MetadataValue.xml +8 -0
  134. data/lib/ruby_vcloud_sdk/xml/xml_templates/NatService.xml +1 -0
  135. data/lib/ruby_vcloud_sdk/xml/xml_templates/Network.xml +4 -0
  136. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkAssignment.xml +1 -0
  137. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkConfig.xml +21 -0
  138. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkConfigSection.xml +1 -0
  139. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkConnection.xml +11 -0
  140. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkConnectionSection.xml +1 -0
  141. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkPoolRecord.xml +1 -0
  142. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkPoolReference.xml +1 -0
  143. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkPoolReferences.xml +1 -0
  144. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkRecord.xml +1 -0
  145. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkReference.xml +1 -0
  146. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkReferences.xml +1 -0
  147. data/lib/ruby_vcloud_sdk/xml/xml_templates/NetworkService.xml +1 -0
  148. data/lib/ruby_vcloud_sdk/xml/xml_templates/Org.xml +1 -0
  149. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgEmailSettings.xml +1 -0
  150. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgList.xml +1 -0
  151. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgNetwork.xml +1 -0
  152. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgNetworkRecord.xml +1 -0
  153. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgNetworkReference.xml +1 -0
  154. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgNetworkReferences.xml +1 -0
  155. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgPasswordPolicySettings.xml +1 -0
  156. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgRecord.xml +1 -0
  157. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgReference.xml +1 -0
  158. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgReferences.xml +1 -0
  159. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgSettings.xml +1 -0
  160. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgVAppTemplateLeaseSettings.xml +1 -0
  161. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgVdcNetwork.xml +1 -0
  162. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgVdcRecord.xml +1 -0
  163. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgVdcReference.xml +1 -0
  164. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgVdcReferences.xml +1 -0
  165. data/lib/ruby_vcloud_sdk/xml/xml_templates/OrgVdcResourcePoolRelationRecord.xml +1 -0
  166. data/lib/ruby_vcloud_sdk/xml/xml_templates/Owner.xml +1 -0
  167. data/lib/ruby_vcloud_sdk/xml/xml_templates/PortgroupRecord.xml +1 -0
  168. data/lib/ruby_vcloud_sdk/xml/xml_templates/ProductSectionList.xml +1 -0
  169. data/lib/ruby_vcloud_sdk/xml/xml_templates/ProviderVdc.xml +1 -0
  170. data/lib/ruby_vcloud_sdk/xml/xml_templates/ProviderVdcResourcePoolRelationRecord.xml +1 -0
  171. data/lib/ruby_vcloud_sdk/xml/xml_templates/PublishCatalogParams.xml +1 -0
  172. data/lib/ruby_vcloud_sdk/xml/xml_templates/QueryList.xml +1 -0
  173. data/lib/ruby_vcloud_sdk/xml/xml_templates/QueryResultRecords.xml +1 -0
  174. data/lib/ruby_vcloud_sdk/xml/xml_templates/RasdItemsList.xml +1 -0
  175. data/lib/ruby_vcloud_sdk/xml/xml_templates/RecomposeVAppParams.xml +1 -0
  176. data/lib/ruby_vcloud_sdk/xml/xml_templates/Record.xml +1 -0
  177. data/lib/ruby_vcloud_sdk/xml/xml_templates/Reference.xml +1 -0
  178. data/lib/ruby_vcloud_sdk/xml/xml_templates/References.xml +1 -0
  179. data/lib/ruby_vcloud_sdk/xml/xml_templates/RelocateParams.xml +1 -0
  180. data/lib/ruby_vcloud_sdk/xml/xml_templates/ResourceEntity.xml +1 -0
  181. data/lib/ruby_vcloud_sdk/xml/xml_templates/ResourcePoolRecord.xml +1 -0
  182. data/lib/ruby_vcloud_sdk/xml/xml_templates/Right.xml +1 -0
  183. data/lib/ruby_vcloud_sdk/xml/xml_templates/RightRecord.xml +1 -0
  184. data/lib/ruby_vcloud_sdk/xml/xml_templates/RightReference.xml +1 -0
  185. data/lib/ruby_vcloud_sdk/xml/xml_templates/RightReferences.xml +1 -0
  186. data/lib/ruby_vcloud_sdk/xml/xml_templates/Role.xml +1 -0
  187. data/lib/ruby_vcloud_sdk/xml/xml_templates/RoleRecord.xml +1 -0
  188. data/lib/ruby_vcloud_sdk/xml/xml_templates/RoleReference.xml +1 -0
  189. data/lib/ruby_vcloud_sdk/xml/xml_templates/RoleReferences.xml +1 -0
  190. data/lib/ruby_vcloud_sdk/xml/xml_templates/RuntimeInfoSection.xml +1 -0
  191. data/lib/ruby_vcloud_sdk/xml/xml_templates/ScreenTicket.xml +1 -0
  192. data/lib/ruby_vcloud_sdk/xml/xml_templates/Session.xml +1 -0
  193. data/lib/ruby_vcloud_sdk/xml/xml_templates/ShadowVMReferences.xml +1 -0
  194. data/lib/ruby_vcloud_sdk/xml/xml_templates/StaticRoutingService.xml +1 -0
  195. data/lib/ruby_vcloud_sdk/xml/xml_templates/StrandedUserRecord.xml +1 -0
  196. data/lib/ruby_vcloud_sdk/xml/xml_templates/Task.xml +0 -0
  197. data/lib/ruby_vcloud_sdk/xml/xml_templates/TaskRecord.xml +1 -0
  198. data/lib/ruby_vcloud_sdk/xml/xml_templates/TaskReference.xml +1 -0
  199. data/lib/ruby_vcloud_sdk/xml/xml_templates/TaskReferences.xml +1 -0
  200. data/lib/ruby_vcloud_sdk/xml/xml_templates/TasksList.xml +1 -0
  201. data/lib/ruby_vcloud_sdk/xml/xml_templates/UndeployVAppParams.xml +1 -0
  202. data/lib/ruby_vcloud_sdk/xml/xml_templates/UploadVAppTemplateParams.xml +1 -0
  203. data/lib/ruby_vcloud_sdk/xml/xml_templates/User.xml +1 -0
  204. data/lib/ruby_vcloud_sdk/xml/xml_templates/UserRecord.xml +1 -0
  205. data/lib/ruby_vcloud_sdk/xml/xml_templates/UserReference.xml +1 -0
  206. data/lib/ruby_vcloud_sdk/xml/xml_templates/UserReferences.xml +1 -0
  207. data/lib/ruby_vcloud_sdk/xml/xml_templates/VApp.xml +1 -0
  208. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppLeaseSettings.xml +1 -0
  209. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppNetwork.xml +1 -0
  210. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppNetworkRecord.xml +1 -0
  211. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppNetworkReference.xml +1 -0
  212. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppNetworkReferences.xml +1 -0
  213. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppOrgNetworkRelationRecord.xml +1 -0
  214. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppOrgNetworkRelationReference.xml +1 -0
  215. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppOrgNetworkRelationReferences.xml +1 -0
  216. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppRecord.xml +1 -0
  217. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppReference.xml +1 -0
  218. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppReferences.xml +1 -0
  219. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppTemplate.xml +1 -0
  220. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppTemplateRecord.xml +1 -0
  221. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppTemplateReference.xml +1 -0
  222. data/lib/ruby_vcloud_sdk/xml/xml_templates/VAppTemplateReferences.xml +1 -0
  223. data/lib/ruby_vcloud_sdk/xml/xml_templates/VCloud.xml +1 -0
  224. data/lib/ruby_vcloud_sdk/xml/xml_templates/VMRecord.xml +1 -0
  225. data/lib/ruby_vcloud_sdk/xml/xml_templates/VMReference.xml +1 -0
  226. data/lib/ruby_vcloud_sdk/xml/xml_templates/VMReferences.xml +1 -0
  227. data/lib/ruby_vcloud_sdk/xml/xml_templates/VMWProviderVdcRecord.xml +1 -0
  228. data/lib/ruby_vcloud_sdk/xml/xml_templates/VMWProviderVdcReference.xml +1 -0
  229. data/lib/ruby_vcloud_sdk/xml/xml_templates/VMWProviderVdcReferences.xml +1 -0
  230. data/lib/ruby_vcloud_sdk/xml/xml_templates/Vdc.xml +1 -0
  231. data/lib/ruby_vcloud_sdk/xml/xml_templates/VdcReferences.xml +1 -0
  232. data/lib/ruby_vcloud_sdk/xml/xml_templates/VdcStorageProfile.xml +1 -0
  233. data/lib/ruby_vcloud_sdk/xml/xml_templates/VirtualCenterRecord.xml +1 -0
  234. data/lib/ruby_vcloud_sdk/xml/xml_templates/VirtualCenterReference.xml +1 -0
  235. data/lib/ruby_vcloud_sdk/xml/xml_templates/VirtualCenterReferences.xml +1 -0
  236. data/lib/ruby_vcloud_sdk/xml/xml_templates/Vm.xml +1 -0
  237. data/lib/ruby_vcloud_sdk/xml/xml_templates/VmPendingQuestion.xml +1 -0
  238. data/lib/ruby_vcloud_sdk/xml/xml_templates/VmQuestionAnswer.xml +1 -0
  239. data/lib/ruby_vcloud_sdk/xml/xml_templates/generate_dictionary.rb +8 -0
  240. data/spec/assets/admin_org_response.xml +75 -0
  241. data/spec/assets/catalog_add_item_response.xml +8 -0
  242. data/spec/assets/catalog_add_vapp_request.xml +5 -0
  243. data/spec/assets/catalog_item_added_response.xml +19 -0
  244. data/spec/assets/catalog_response.xml +19 -0
  245. data/spec/assets/existing_media_busy_response.xml +19 -0
  246. data/spec/assets/existing_media_catalog_item.xml +8 -0
  247. data/spec/assets/existing_media_delete_task_done.xml +6 -0
  248. data/spec/assets/existing_media_done_response.xml +11 -0
  249. data/spec/assets/existing_vapp_resolver_response.xml +3 -0
  250. data/spec/assets/existing_vapp_template_catalog_resolver_response.xml +3 -0
  251. data/spec/assets/existing_vapp_template_instantiate_response.xml +20 -0
  252. data/spec/assets/existing_vapp_template_instantiate_task_error_response.xml +7 -0
  253. data/spec/assets/existing_vapp_template_instantiate_task_start_response.xml +7 -0
  254. data/spec/assets/existing_vapp_template_instantiate_task_success_response.xml +7 -0
  255. data/spec/assets/existing_vapp_template_item_response.xml +8 -0
  256. data/spec/assets/existing_vapp_template_ready_response.xml +79 -0
  257. data/spec/assets/finalize_upload_task_done_response.xml +7 -0
  258. data/spec/assets/finalize_upload_task_response.xml +7 -0
  259. data/spec/assets/indy_disk_attach_request.xml +3 -0
  260. data/spec/assets/indy_disk_attach_task.xml +6 -0
  261. data/spec/assets/indy_disk_attach_task_error.xml +6 -0
  262. data/spec/assets/indy_disk_create_error.xml +1 -0
  263. data/spec/assets/indy_disk_create_request.xml +4 -0
  264. data/spec/assets/indy_disk_create_response.xml +19 -0
  265. data/spec/assets/indy_disk_delete_task.xml +6 -0
  266. data/spec/assets/indy_disk_detach_request.xml +3 -0
  267. data/spec/assets/indy_disk_detach_task.xml +6 -0
  268. data/spec/assets/indy_disk_response.xml +11 -0
  269. data/spec/assets/instantiated_suspended_vapp_response.xml +209 -0
  270. data/spec/assets/instantiated_vapp_delelete_done_task.xml +5 -0
  271. data/spec/assets/instantiated_vapp_delelete_running_task.xml +6 -0
  272. data/spec/assets/instantiated_vapp_network_config_add_network_request.xml +36 -0
  273. data/spec/assets/instantiated_vapp_network_config_modify_network_task_success.xml +6 -0
  274. data/spec/assets/instantiated_vapp_network_config_remove_network_request.xml +6 -0
  275. data/spec/assets/instantiated_vapp_network_config_section_response.xml +17 -0
  276. data/spec/assets/instantiated_vapp_off_response.xml +206 -0
  277. data/spec/assets/instantiated_vapp_on_response.xml +205 -0
  278. data/spec/assets/instantiated_vapp_power_task_running.xml +6 -0
  279. data/spec/assets/instantiated_vapp_power_task_success.xml +6 -0
  280. data/spec/assets/instantiated_vapp_response.xml +205 -0
  281. data/spec/assets/instantiated_vm_change_task_running.xml +6 -0
  282. data/spec/assets/instantiated_vm_change_task_success.xml +6 -0
  283. data/spec/assets/instantiated_vm_cpu_response.xml +11 -0
  284. data/spec/assets/instantiated_vm_insert_media_task_done.xml +6 -0
  285. data/spec/assets/instantiated_vm_memory_response.xml +11 -0
  286. data/spec/assets/instantiated_vm_modify_task_running.xml +6 -0
  287. data/spec/assets/instantiated_vm_modify_task_success.xml +5 -0
  288. data/spec/assets/instantiated_vm_network_section_response.xml +11 -0
  289. data/spec/assets/instantiated_vm_response.xml +149 -0
  290. data/spec/assets/media_add_to_catalog_request.xml +5 -0
  291. data/spec/assets/media_add_to_catalog_response.xml +8 -0
  292. data/spec/assets/media_delete_task_done.xml +6 -0
  293. data/spec/assets/media_upload_pending_response.xml +13 -0
  294. data/spec/assets/media_upload_request.xml +2 -0
  295. data/spec/assets/metadata_set_request.xml +3 -0
  296. data/spec/assets/metadata_set_task_done.xml +6 -0
  297. data/spec/assets/org_network_response.xml +22 -0
  298. data/spec/assets/reconfigure_vm_request.xml +133 -0
  299. data/spec/assets/reconfigure_vm_task.xml +8 -0
  300. data/spec/assets/session.xml +7 -0
  301. data/spec/assets/test-config.yml +38 -0
  302. data/spec/assets/undeploy_params.xml +1 -0
  303. data/spec/assets/vapp_template_catalog_resolver_response.xml +3 -0
  304. data/spec/assets/vapp_template_delelete_done_task.xml +5 -0
  305. data/spec/assets/vapp_template_delelete_running_task.xml +6 -0
  306. data/spec/assets/vapp_template_instantiate_request.xml +8 -0
  307. data/spec/assets/vapp_template_instantiate_with_locality_request.xml +14 -0
  308. data/spec/assets/vapp_template_no_disk_response.xml +27 -0
  309. data/spec/assets/vapp_template_ready_response.xml +79 -0
  310. data/spec/assets/vapp_template_upload_complete.xml +28 -0
  311. data/spec/assets/vapp_template_upload_failed.xml +28 -0
  312. data/spec/assets/vapp_template_upload_request.xml +4 -0
  313. data/spec/assets/vapp_template_upload_response.xml +25 -0
  314. data/spec/assets/vcloud_response.xml +56 -0
  315. data/spec/assets/vdc_response.xml +57 -0
  316. data/spec/spec_helper.rb +107 -0
  317. data/spec/unit/client_response.rb +700 -0
  318. data/spec/unit/client_spec.rb +1152 -0
  319. metadata +498 -0
@@ -0,0 +1,8 @@
1
+ <CatalogItem xmlns="http://www.vmware.com/vcloud/v1.5" name="%s" id="urn:vcloud:catalogitem:%s" type="application/vnd.vmware.vcloud.catalogItem+xml" href="%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="up" type="application/vnd.vmware.vcloud.catalog+xml" href="%s/api/catalog/cfab326c-ab71-445c-bc0b-abf15239de8b"/>
3
+ <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/catalogItem/%s/metadata"/>
4
+ <Link rel="edit" type="application/vnd.vmware.vcloud.catalogItem+xml" href="%s/api/catalogItem/%s"/>
5
+ <Link rel="remove" href="%s/api/catalogItem/%s"/>
6
+ <Description/>
7
+ <Entity type="application/vnd.vmware.vcloud.media+xml" name="%s" href="%s"/>
8
+ </CatalogItem>
@@ -0,0 +1,6 @@
1
+ <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-09-22T13:12:32.551-07:00" operationName="vdcDeleteMedia" operation="Deleting Media File (4ed2b53a-dbdd-4761-8036-fa67920749c5)" expiryTime="2011-12-21T13:12:32.551-08:00" name="task" id="urn:vcloud:task:%s" type="application/vnd.vmware.vcloud.task+xml" href="%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="task:cancel" href="%s/api/task/%s/action/cancel"/>
3
+ <Owner type="application/vnd.vmware.vcloud.media+xml" name="" href="%s"/>
4
+ <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
5
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="vcap" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
6
+ </Task>
@@ -0,0 +1,11 @@
1
+ <Media xmlns="http://www.vmware.com/vcloud/v1.5" size="833536" imageType="iso" status="1" name="%s" id="urn:vcloud:media:%s" type="application/vnd.vmware.vcloud.media+xml" href="%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/a974dae0-d10c-4f7c-9f4f-4bdaf7826a3a"/>
3
+ <Link rel="catalogItem" type="application/vnd.vmware.vcloud.catalogItem+xml" href="%s/api/catalogItem/a0185003-1a65-4fe4-9fe1-08e81ce26ef6"/>
4
+ <Link rel="remove" href="%s"/>
5
+ <Link rel="edit" type="application/vnd.vmware.vcloud.media+xml" href="%s/api/media/%s"/>
6
+ <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="%s/api/media/%s/owner"/>
7
+ <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/media/%s/metadata"/>
8
+ <Owner type="application/vnd.vmware.vcloud.owner+xml">
9
+ <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
10
+ </Owner>
11
+ </Media>
@@ -0,0 +1,3 @@
1
+ <Entity xmlns="http://www.vmware.com/vcloud/v1.5" name="%s" id="%s" type="application/vnd.vmware.vcloud.entity+xml" href="%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.147.49.240/api/v1.5/schema/master.xsd">
2
+ <Link rel="alternate" type="application/vnd.vmware.vcloud.vApp+xml" href="%s"/>
3
+ </Entity>
@@ -0,0 +1,3 @@
1
+ <Entity xmlns="http://www.vmware.com/vcloud/v1.5" name="%s" id="%s" type="application/vnd.vmware.vcloud.entity+xml" href="%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.147.49.240/api/v1.5/schema/master.xsd">
2
+ <Link rel="alternate" type="application/vnd.vmware.vcloud.catalogItem+xml" href="%s"/>
3
+ </Entity>
@@ -0,0 +1,20 @@
1
+ <VApp xmlns="http://www.vmware.com/vcloud/v1.5" deployed="false" status="0" name="%s" id="urn:vcloud:vapp:%s" type="application/vnd.vmware.vcloud.vApp+xml" href="%s/api/vApp/vapp-%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="%s/api/vApp/vapp-%s/controlAccess/"/>
3
+ <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/%s"/>
4
+ <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="%s/api/vApp/vapp-%s/owner"/>
5
+ <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/vApp/vapp-%s/metadata"/>
6
+ <Description>test</Description>
7
+ <Tasks>
8
+ <Task status="running" startTime="2011-08-29T11:21:36.484-07:00" operationName="vdcInstantiateVapp" operation="Creating Virtual Application %s(%s)" expiryTime="2011-11-27T11:21:36.484-08:00" name="task" id="urn:vcloud:task:%s" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/%s">
9
+ <Link rel="task:cancel" href="%s/api/task/%s/action/cancel"/>
10
+ <Owner type="application/vnd.vmware.vcloud.vApp+xml" name="%s" href="%s/api/vApp/vapp-%s"/>
11
+ <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
12
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
13
+ <Progress>1</Progress>
14
+ </Task>
15
+ </Tasks>
16
+ <Owner type="application/vnd.vmware.vcloud.owner+xml">
17
+ <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
18
+ </Owner>
19
+ <InMaintenanceMode>false</InMaintenanceMode>
20
+ </VApp>
@@ -0,0 +1,7 @@
1
+ <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="error" startTime="2011-08-29T11:21:36.483-07:00" operationName="vdcInstantiateVapp" operation="Creating Virtual Application %s(%s)" expiryTime="2011-11-27T11:21:36.483-08:00" name="task" id="urn:vcloud:task:%s" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="task:cancel" href="%s/api/task/%s/action/cancel"/>
3
+ <Owner type="application/vnd.vmware.vcloud.vApp+xml" name="%s" href="%s/api/vApp/vapp-%s"/>
4
+ <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
5
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
6
+ <Progress>1</Progress>
7
+ </Task>
@@ -0,0 +1,7 @@
1
+ <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="running" startTime="2011-08-29T11:21:36.483-07:00" operationName="vdcInstantiateVapp" operation="Creating Virtual Application %s(%s)" expiryTime="2011-11-27T11:21:36.483-08:00" name="task" id="urn:vcloud:task:%s" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="task:cancel" href="%s/api/task/%s/action/cancel"/>
3
+ <Owner type="application/vnd.vmware.vcloud.vApp+xml" name="%s" href="%s/api/vApp/vapp-%s"/>
4
+ <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
5
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
6
+ <Progress>1</Progress>
7
+ </Task>
@@ -0,0 +1,7 @@
1
+ <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-08-29T11:21:36.483-07:00" operationName="vdcInstantiateVapp" operation="Creating Virtual Application %s(%s)" expiryTime="2011-11-27T11:21:36.483-08:00" name="task" id="urn:vcloud:task:%s" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="task:cancel" href="%s/api/task/%s/action/cancel"/>
3
+ <Owner type="application/vnd.vmware.vcloud.vApp+xml" name="%s" href="%s/api/vApp/vapp-%s"/>
4
+ <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
5
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
6
+ <Progress>1</Progress>
7
+ </Task>
@@ -0,0 +1,8 @@
1
+ <CatalogItem xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="%s" id="urn:vcloud:catalogitem:39a8f899-0f8e-40c4-ac68-66b2688833bc" type="application/vnd.vmware.vcloud.catalogItem+xml" href="%s/api/catalogItem/39a8f899-0f8e-40c4-ac68-66b2688833bc" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 %s/api/v1.5/schema/master.xsd">
2
+ <Link rel="up" type="application/vnd.vmware.vcloud.catalog+xml" href="%s/api/catalog/%s"/>
3
+ <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/catalogItem/%s/metadata"/>
4
+ <Link rel="edit" type="application/vnd.vmware.vcloud.catalogItem+xml" href="%s/api/catalogItem/%s"/>
5
+ <Link rel="remove" href="%s/api/catalogItem/%s"/>
6
+ <Description/>
7
+ <Entity type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="%s" href="%s/api/vAppTemplate/vappTemplate-%s"/>
8
+ </CatalogItem>
@@ -0,0 +1,79 @@
1
+ <VAppTemplate xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" ovfDescriptorUploaded="true" goldMaster="false" status="8" name="%s" id="urn:vcloud:vapptemplate:%s" type="application/vnd.vmware.vcloud.vAppTemplate+xml" href="%s/api/vAppTemplate/vappTemplate-%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://www.vmware.com/vcloud/v1.5 %s/api/v1.5/schema/master.xsd">
2
+ <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/%s"/>
3
+ <Link rel="remove" href="%s/api/vAppTemplate/vappTemplate-%s"/>
4
+ <Link rel="edit" type="application/vnd.vmware.vcloud.vAppTemplate+xml" href="%s/api/vAppTemplate/vappTemplate-%s"/>
5
+ <Link rel="ovf" type="text/xml" href="%s/api/vAppTemplate/vappTemplate-%s/ovf"/>
6
+ <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="%s/api/vAppTemplate/vappTemplate-%s/owner"/>
7
+ <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/vAppTemplate/vappTemplate-%s/metadata"/>
8
+ <Description/>
9
+ <Owner type="application/vnd.vmware.vcloud.owner+xml">
10
+ <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
11
+ </Owner>
12
+ <Children>
13
+ <Vm goldMaster="false" name="vm1" id="urn:vcloud:vm:%s" type="application/vnd.vmware.vcloud.vm+xml" href="%s/api/vAppTemplate/vm-%s">
14
+ <Link rel="up" type="application/vnd.vmware.vcloud.vAppTemplate+xml" href="%s/api/vAppTemplate/vappTemplate-%s"/>
15
+ <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/vAppTemplate/vm-%s/metadata"/>
16
+ <Description>A virtual machine</Description>
17
+ <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="%s/api/vAppTemplate/vm-%s/networkConnectionSection/" ovf:required="false">
18
+ <ovf:Info>Specifies the available VM network connections</ovf:Info>
19
+ <PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
20
+ <NetworkConnection network="none" needsCustomization="true">
21
+ <NetworkConnectionIndex>0</NetworkConnectionIndex>
22
+ <IsConnected>false</IsConnected>
23
+ <MACAddress>00:50:56:02:00:fd</MACAddress>
24
+ <IpAddressAllocationMode>NONE</IpAddressAllocationMode>
25
+ </NetworkConnection>
26
+ </NetworkConnectionSection>
27
+ <GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="%s/api/vAppTemplate/vm-%s/guestCustomizationSection/" ovf:required="false">
28
+ <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
29
+ <Enabled>false</Enabled>
30
+ <ChangeSid>false</ChangeSid>
31
+ <VirtualMachineId>%s</VirtualMachineId>
32
+ <JoinDomainEnabled>false</JoinDomainEnabled>
33
+ <UseOrgSettings>false</UseOrgSettings>
34
+ <AdminPasswordEnabled>true</AdminPasswordEnabled>
35
+ <AdminPasswordAuto>true</AdminPasswordAuto>
36
+ <ResetPasswordRequired>false</ResetPasswordRequired>
37
+ <ComputerName>vm1-001</ComputerName>
38
+ </GuestCustomizationSection>
39
+ <ovf:ProductSection ovf:instance="" ovf:class="" ovf:required="true">
40
+ <ovf:Info>Information about the installed software</ovf:Info>
41
+ <ovf:Product>UnOS</ovf:Product>
42
+ </ovf:ProductSection>
43
+ <VAppScopedLocalId>vm1</VAppScopedLocalId>
44
+ </Vm>
45
+ </Children>
46
+ <ovf:NetworkSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="%s/api/vAppTemplate/vappTemplate-%s/networkSection/" vcloud:type="application/vnd.vmware.vcloud.networkSection+xml">
47
+ <ovf:Info>The list of logical networks</ovf:Info>
48
+ <ovf:Network ovf:name="none">
49
+ <ovf:Description>This is a special place-holder used for disconnected network interfaces.</ovf:Description>
50
+ </ovf:Network>
51
+ </ovf:NetworkSection>
52
+ <NetworkConfigSection type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/networkConfigSection/" ovf:required="false">
53
+ <ovf:Info>The configuration parameters for logical networks</ovf:Info>
54
+ <NetworkConfig networkName="none">
55
+ <Description>This is a special place-holder used for disconnected network interfaces.</Description>
56
+ <Configuration>
57
+ <IpScope>
58
+ <IsInherited>false</IsInherited>
59
+ <Gateway>196.254.254.254</Gateway>
60
+ <Netmask>255.255.0.0</Netmask>
61
+ <Dns1>196.254.254.254</Dns1>
62
+ </IpScope>
63
+ <FenceMode>isolated</FenceMode>
64
+ </Configuration>
65
+ <IsDeployed>false</IsDeployed>
66
+ </NetworkConfig>
67
+ </NetworkConfigSection>
68
+ <LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/leaseSettingsSection/" ovf:required="false">
69
+ <ovf:Info>Lease settings section</ovf:Info>
70
+ <Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/leaseSettingsSection/"/>
71
+ <StorageLeaseInSeconds>7776000</StorageLeaseInSeconds>
72
+ <StorageLeaseExpiration>2011-11-16T12:27:05.327-08:00</StorageLeaseExpiration>
73
+ </LeaseSettingsSection>
74
+ <CustomizationSection type="application/vnd.vmware.vcloud.customizationSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/customizationSection/" ovf:required="false">
75
+ <ovf:Info>VApp template customization section</ovf:Info>
76
+ <CustomizeOnInstantiate>true</CustomizeOnInstantiate>
77
+ <Link rel="edit" type="application/vnd.vmware.vcloud.customizationSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/customizationSection/"/>
78
+ </CustomizationSection>
79
+ </VAppTemplate>
@@ -0,0 +1,7 @@
1
+ <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-08-18T13:27:38.407-07:00" operationName="vdcUploadOvfContents" operation="Finalizing upload of Virtual Application Template %s(%s)" expiryTime="2011-11-16T13:27:38.407-08:00" name="task" id="urn:vcloud:task:%s" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 %s/api/v1.5/schema/master.xsd">
2
+ <Link rel="task:cancel" href="%s/api/task/%s/action/cancel"/>
3
+ <Owner type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="%s" href="%s/api/vAppTemplate/vappTemplate-%s"/>
4
+ <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
5
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="vcap" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
6
+ <Progress>100</Progress>
7
+ </Task>
@@ -0,0 +1,7 @@
1
+ <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="running" startTime="2011-08-18T13:27:38.407-07:00" operationName="vdcUploadOvfContents" operation="Finalizing upload of Virtual Application Template %s(%s)" expiryTime="2011-11-16T13:27:38.407-08:00" name="task" id="urn:vcloud:task:%s" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 %s/api/v1.5/schema/master.xsd">
2
+ <Link rel="task:cancel" href="%s/api/task/%s/action/cancel"/>
3
+ <Owner type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="%s" href="%s/api/vAppTemplate/vappTemplate-%s"/>
4
+ <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
5
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="vcap" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
6
+ <Progress>50</Progress>
7
+ </Task>
@@ -0,0 +1,3 @@
1
+ <DiskAttachOrDetachParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5">
2
+ <Disk type="application/vnd.vmware.vcloud.disk+xml" href="%s"> </Disk>
3
+ </DiskAttachOrDetachParams>
@@ -0,0 +1,6 @@
1
+ <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-10-05T14:23:14.016-07:00" operationName="vappAttachDisk" operation="Attaching Disk to Virtual Machine vm1(97050e89-acf5-4599-9564-46fa762e82b8)" expiryTime="2012-01-03T14:23:14.016-08:00" name="task" id="urn:vcloud:task:440545e8-9ee7-4c67-9d2e-8881246a084c" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/440545e8-9ee7-4c67-9d2e-8881246a084c" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="task:cancel" href="%s/api/task/440545e8-9ee7-4c67-9d2e-8881246a084c/action/cancel"/>
3
+ <Owner type="application/vnd.vmware.vcloud.vm+xml" name="%s" href="%s/api/vApp/vm-%s"/>
4
+ <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/f37afbc4-77a9-4ca6-93b3-d1607f82b329"/>
5
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/7b8a9ff3-1f41-48ae-8eb2-b91140adc010"/>
6
+ </Task>
@@ -0,0 +1,6 @@
1
+ <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="error" startTime="2011-10-05T14:23:14.016-07:00" operationName="vappAttachDisk" operation="Attaching Disk to Virtual Machine vm1(97050e89-acf5-4599-9564-46fa762e82b8)" expiryTime="2012-01-03T14:23:14.016-08:00" name="task" id="urn:vcloud:task:440545e8-9ee7-4c67-9d2e-8881246a084c" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/440545e8-9ee7-4c67-9d2e-8881246a084c" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="task:cancel" href="%s/api/task/440545e8-9ee7-4c67-9d2e-8881246a084c/action/cancel"/>
3
+ <Owner type="application/vnd.vmware.vcloud.vm+xml" name="%s" href="%s/api/vApp/vm-%s"/>
4
+ <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/f37afbc4-77a9-4ca6-93b3-d1607f82b329"/>
5
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/7b8a9ff3-1f41-48ae-8eb2-b91140adc010"/>
6
+ </Task>
@@ -0,0 +1 @@
1
+ <Error xmlns="http://www.vmware.com/vcloud/v1.5" minorErrorCode="BAD_REQUEST" message="The requested operation will exceed the vDC's storage quota." majorErrorCode="400" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd"></Error>
@@ -0,0 +1,4 @@
1
+ <DiskCreateParams xmlns="http://www.vmware.com/vcloud/v1.5">
2
+ <Disk name="%s" size="%s" busType="6" busSubType="lsilogic">
3
+ </Disk>
4
+ </DiskCreateParams>
@@ -0,0 +1,19 @@
1
+ <Disk xmlns="http://www.vmware.com/vcloud/v1.5" size="0" busType="6" busSubType="lsilogic" status="0" name="test5" id="urn:vcloud:disk:%s" type="application/vnd.vmware.vcloud.disk+xml" href="%s/api/disk%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/7152945d-1041-4c08-9423-23b32c9be1f4"/>
3
+ <Link rel="remove" href="%s"/>
4
+ <Link rel="edit" type="application/vnd.vmware.vcloud.disk+xml" href="%s/api/disk/%s"/>
5
+ <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="%s/api/disk/%s/owner"/>
6
+ <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/disk/%s/metadata"/>
7
+ <Tasks>
8
+ <Task status="success" startTime="2011-10-05T14:23:03.138-07:00" operationName="vdcCreateDisk" operation="Creating Disk test5(%s)" expiryTime="2012-01-03T14:23:03.138-08:00" name="task" id="urn:vcloud:task:3cdaeaa1-6dd3-439d-95d5-a9208e0c5dba" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/3cdaeaa1-6dd3-439d-95d5-a9208e0c5dba">
9
+ <Link rel="task:cancel" href="%s/api/task/3cdaeaa1-6dd3-439d-95d5-a9208e0c5dba/action/cancel"/>
10
+ <Owner type="application/vnd.vmware.vcloud.disk+xml" name="test5" href="%s/api/disk/%s"/>
11
+ <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/f37afbc4-77a9-4ca6-93b3-d1607f82b329"/>
12
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="vcap" href="%s/api/org/7b8a9ff3-1f41-48ae-8eb2-b91140adc010"/>
13
+ </Task>
14
+ </Tasks>
15
+ <StorageClass type="application/vnd.vmware.vcloud.vdcStorageClass+xml" name="*" href="%s/api/vdcStorageClass/8fe92f5a-efb7-456e-af78-54a120c9cf8f"/>
16
+ <Owner type="application/vnd.vmware.vcloud.owner+xml">
17
+ <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/61150fcf-1eda-4cd3-a8a5-e51717a2806d"/>
18
+ </Owner>
19
+ </Disk>
@@ -0,0 +1,6 @@
1
+ <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-10-05T14:23:35.027-07:00" operationName="vdcDeleteDisk" operation="Deleting Disk (%s)" expiryTime="2012-01-03T14:23:35.027-08:00" name="task" id="urn:vcloud:task:0e83b4d9-2f24-4ec1-9dd3-7d9c20936cbf" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/0e83b4d9-2f24-4ec1-9dd3-7d9c20936cbf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="task:cancel" href="%s/api/task/0e83b4d9-2f24-4ec1-9dd3-7d9c20936cbf/action/cancel"/>
3
+ <Owner type="application/vnd.vmware.vcloud.disk+xml" name="" href="%s"/>
4
+ <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/f37afbc4-77a9-4ca6-93b3-d1607f82b329"/>
5
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/7b8a9ff3-1f41-48ae-8eb2-b91140adc010"/>
6
+ </Task>
@@ -0,0 +1,3 @@
1
+ <DiskAttachOrDetachParams xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:vcloud="http://www.vmware.com/vcloud/v1.5">
2
+ <Disk type="application/vnd.vmware.vcloud.disk+xml" href="%s"> </Disk>
3
+ </DiskAttachOrDetachParams>
@@ -0,0 +1,6 @@
1
+ <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-10-05T14:23:24.729-07:00" operationName="vappDetachDisk" operation="Detaching Disk from Virtual Machine vm1(97050e89-acf5-4599-9564-46fa762e82b8)" expiryTime="2012-01-03T14:23:24.729-08:00" name="task" id="urn:vcloud:task:b4b83acd-7d2b-49be-a8ae-d7485e0f945c" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/b4b83acd-7d2b-49be-a8ae-d7485e0f945c" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="task:cancel" href="%s/api/task/b4b83acd-7d2b-49be-a8ae-d7485e0f945c/action/cancel"/>
3
+ <Owner type="application/vnd.vmware.vcloud.vm+xml" name="%s" href="%s/api/vApp/vm-97050e89-acf5-4599-9564-46fa762e82b8"/>
4
+ <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/f37afbc4-77a9-4ca6-93b3-d1607f82b329"/>
5
+ <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/7b8a9ff3-1f41-48ae-8eb2-b91140adc010"/>
6
+ </Task>
@@ -0,0 +1,11 @@
1
+ <Disk xmlns="http://www.vmware.com/vcloud/v1.5" size="#{INDY_DISK_SIZE * 1000000}" busType="6" busSubType="lsilogic" status="1" name="%s" id="urn:vcloud:disk:%s" type="application/vnd.vmware.vcloud.disk+xml" href="%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd">
2
+ <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/7152945d-1041-4c08-9423-23b32c9be1f4"/>
3
+ <Link rel="remove" href="%s/api/disk/%s"/>
4
+ <Link rel="edit" type="application/vnd.vmware.vcloud.disk+xml" href="%s/api/disk/%s"/>
5
+ <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="%s/api/disk/%s/owner"/>
6
+ <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/disk/%s/metadata"/>
7
+ <StorageClass type="application/vnd.vmware.vcloud.vdcStorageClass+xml" name="*" href="%s/api/vdcStorageClass/8fe92f5a-efb7-456e-af78-54a120c9cf8f"/>
8
+ <Owner type="application/vnd.vmware.vcloud.owner+xml">
9
+ <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/61150fcf-1eda-4cd3-a8a5-e51717a2806d"/>
10
+ </Owner>
11
+ </Disk>
@@ -0,0 +1,209 @@
1
+ <VApp xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" deployed="false" status="3" name="test_vapp15_1" id="urn:vcloud:vapp:%s" type="application/vnd.vmware.vcloud.vApp+xml" href="%s/api/vApp/vapp-%s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://www.vmware.com/vcloud/v1.5 http://10.20.46.172/api/v1.5/schema/master.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd">
2
+ <Link rel="power:powerOn" href="%s"/>
3
+ <Link rel="power:suspend" href="%s/api/vApp/vapp-%s/power/action/suspend"/>
4
+ <Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="%s/api/vApp/vapp-%s/action/deploy"/>
5
+ <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="%s/api/vApp/vapp-%s/action/undeploy"/>
6
+ <Link rel="discardState" href="%s/api/vApp/vapp-%s/action/discardSuspendedState"/>
7
+ <Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="%s/api/vApp/vapp-%s/controlAccess/"/>
8
+ <Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="%s/api/vApp/vapp-%s/action/controlAccess"/>
9
+ <Link rel="recompose" type="application/vnd.vmware.vcloud.recomposeVAppParams+xml" href="%s/api/vApp/vapp-%s/action/recomposeVApp"/>
10
+ <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/a974dae0-d10c-4f7c-9f4f-4bdaf7826a3a"/>
11
+ <Link rel="edit" type="application/vnd.vmware.vcloud.vApp+xml" href="%s/api/vApp/vapp-%s"/>
12
+ <Link rel="remove" href="%s/api/vApp/vapp-%s"/>
13
+ <Link rel="down" type="application/vnd.vmware.vcloud.owner+xml" href="%s/api/vApp/vapp-%s/owner"/>
14
+ <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/vApp/vapp-%s/metadata"/>
15
+ <Description>test</Description>
16
+ <LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vApp/vapp-%s/leaseSettingsSection/" ovf:required="false">
17
+ <ovf:Info>Lease settings section</ovf:Info>
18
+ <Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vApp/vapp-%s/leaseSettingsSection/"/>
19
+ <DeploymentLeaseInSeconds>604800</DeploymentLeaseInSeconds>
20
+ <StorageLeaseInSeconds>2592000</StorageLeaseInSeconds>
21
+ <StorageLeaseExpiration>2011-09-28T11:21:35.767-07:00</StorageLeaseExpiration>
22
+ </LeaseSettingsSection>
23
+ <ovf:StartupSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="%s/api/vApp/vapp-%s/startupSection/" vcloud:type="application/vnd.vmware.vcloud.startupSection+xml">
24
+ <ovf:Info>VApp startup section</ovf:Info>
25
+ <ovf:Item ovf:stopDelay="120" ovf:stopAction="powerOff" ovf:startDelay="120" ovf:startAction="powerOn" ovf:order="1" ovf:id="vm1"/>
26
+ <ovf:Item ovf:stopDelay="120" ovf:stopAction="powerOff" ovf:startDelay="120" ovf:startAction="powerOn" ovf:order="2" ovf:id="vm2"/>
27
+ <Link rel="edit" type="application/vnd.vmware.vcloud.startupSection+xml" href="%s/api/vApp/vapp-%s/startupSection/"/>
28
+ </ovf:StartupSection>
29
+ <ovf:NetworkSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="%s/api/vApp/vapp-%s/networkSection/" vcloud:type="application/vnd.vmware.vcloud.networkSection+xml">
30
+ <ovf:Info>The list of logical networks</ovf:Info>
31
+ <ovf:Network ovf:name="none">
32
+ <ovf:Description>This is a special place-holder used for disconnected network interfaces.</ovf:Description>
33
+ </ovf:Network>
34
+ </ovf:NetworkSection>
35
+ <NetworkConfigSection type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s" ovf:required="false">
36
+ <ovf:Info>The configuration parameters for logical networks</ovf:Info>
37
+ <Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="%s"/>
38
+ <NetworkConfig networkName="none">
39
+ <Description>This is a special place-holder used for disconnected network interfaces.</Description>
40
+ <Configuration>
41
+ <IpScope>
42
+ <IsInherited>false</IsInherited>
43
+ <Gateway>196.254.254.254</Gateway>
44
+ <Netmask>255.255.0.0</Netmask>
45
+ <Dns1>196.254.254.254</Dns1>
46
+ </IpScope>
47
+ <FenceMode>isolated</FenceMode>
48
+ </Configuration>
49
+ <IsDeployed>false</IsDeployed>
50
+ </NetworkConfig>
51
+ </NetworkConfigSection>
52
+ <Owner type="application/vnd.vmware.vcloud.owner+xml">
53
+ <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
54
+ </Owner>
55
+ <InMaintenanceMode>false</InMaintenanceMode>
56
+ <Children>
57
+ <Vm needsCustomization="true" deployed="false" status="3" name="vm1" id="urn:vcloud:vm:%s" type="application/vnd.vmware.vcloud.vm+xml" href="%s">
58
+ <Link rel="power:powerOn" href="%s/api/vApp/vm-%s/power/action/powerOn"/>
59
+ <Link rel="power:suspend" href="%s/api/vApp/vm-%s/power/action/suspend"/>
60
+ <Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="%s/api/vApp/vm-%s/action/undeploy"/>
61
+ <Link rel="discardState" href="%s/api/vApp/vm-%s/action/discardSuspendedState"/>
62
+ <Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="%s/api/vApp/vm-%s"/>
63
+ <Link rel="remove" href="%s/api/vApp/vm-%s"/>
64
+ <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/vApp/vm-%s/metadata"/>
65
+ <Link rel="screen:thumbnail" href="%s/api/vApp/vm-%s/screen"/>
66
+ <Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="%s"/>
67
+ <Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="%s/api/vApp/vm-%s/media/action/ejectMedia"/>
68
+ <Link rel="disk:attach" type="application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" href="%s"/>
69
+ <Link rel="disk:detach" type="application/vnd.vmware.vcloud.diskAttachOrDetachParams+xml" href="%s"/>
70
+ <Link rel="upgrade" href="%s/api/vApp/vm-%s/action/upgradeHardwareVersion"/>
71
+ <Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="%s/api/vApp/vapp-%s"/>
72
+ <Description>A virtual machine</Description>
73
+ <ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" ovf:transport="" vcloud:href="%s/api/vApp/vm-%s/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
74
+ <ovf:Info>Virtual hardware requirements</ovf:Info>
75
+ <ovf:System>
76
+ <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
77
+ <vssd:InstanceID>0</vssd:InstanceID>
78
+ <vssd:VirtualSystemIdentifier>vm1</vssd:VirtualSystemIdentifier>
79
+ <vssd:VirtualSystemType>vmx-04</vssd:VirtualSystemType>
80
+ </ovf:System>
81
+ <ovf:Item>
82
+ <rasd:Address>00:50:56:02:01:56</rasd:Address>
83
+ <rasd:AddressOnParent>0</rasd:AddressOnParent>
84
+ <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
85
+ <rasd:Connection vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="NONE">none</rasd:Connection>
86
+ <rasd:Description>VMXNET3 ethernet adapter</rasd:Description>
87
+ <rasd:ElementName>Network adapter 0</rasd:ElementName>
88
+ <rasd:InstanceID>1</rasd:InstanceID>
89
+ <rasd:ResourceSubType>VMXNET3</rasd:ResourceSubType>
90
+ <rasd:ResourceType>10</rasd:ResourceType>
91
+ </ovf:Item>
92
+ <ovf:Item>
93
+ <rasd:Address>0</rasd:Address>
94
+ <rasd:Description>SCSI Controller</rasd:Description>
95
+ <rasd:ElementName>SCSI Controller 0</rasd:ElementName>
96
+ <rasd:InstanceID>%s</rasd:InstanceID>
97
+ <rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
98
+ <rasd:ResourceType>6</rasd:ResourceType>
99
+ </ovf:Item>
100
+ <ovf:Item>
101
+ <rasd:AddressOnParent>0</rasd:AddressOnParent>
102
+ <rasd:Description>Hard disk</rasd:Description>
103
+ <rasd:ElementName>Hard disk 1</rasd:ElementName>
104
+ <rasd:HostResource vcloud:capacity="200" vcloud:busSubType="lsilogic" vcloud:busType="6"/>
105
+ <rasd:InstanceID>2000</rasd:InstanceID>
106
+ <rasd:Parent>2</rasd:Parent>
107
+ <rasd:ResourceType>17</rasd:ResourceType>
108
+ </ovf:Item>
109
+ <ovf:Item>
110
+ <rasd:Address>0</rasd:Address>
111
+ <rasd:Description>IDE Controller</rasd:Description>
112
+ <rasd:ElementName>IDE Controller 0</rasd:ElementName>
113
+ <rasd:InstanceID>3</rasd:InstanceID>
114
+ <rasd:ResourceType>5</rasd:ResourceType>
115
+ </ovf:Item>
116
+ <ovf:Item>
117
+ <rasd:AddressOnParent>0</rasd:AddressOnParent>
118
+ <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
119
+ <rasd:Description>CD/DVD Drive</rasd:Description>
120
+ <rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
121
+ <rasd:HostResource/>
122
+ <rasd:InstanceID>3000</rasd:InstanceID>
123
+ <rasd:Parent>3</rasd:Parent>
124
+ <rasd:ResourceType>15</rasd:ResourceType>
125
+ </ovf:Item>
126
+ <ovf:Item>
127
+ <rasd:AddressOnParent>0</rasd:AddressOnParent>
128
+ <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
129
+ <rasd:Description>Floppy Drive</rasd:Description>
130
+ <rasd:ElementName>Floppy Drive 1</rasd:ElementName>
131
+ <rasd:HostResource/>
132
+ <rasd:InstanceID>8000</rasd:InstanceID>
133
+ <rasd:ResourceType>14</rasd:ResourceType>
134
+ </ovf:Item>
135
+ <ovf:Item vcloud:href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
136
+ <rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
137
+ <rasd:Description>Number of Virtual CPUs</rasd:Description>
138
+ <rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
139
+ <rasd:InstanceID>4</rasd:InstanceID>
140
+ <rasd:Reservation>0</rasd:Reservation>
141
+ <rasd:ResourceType>3</rasd:ResourceType>
142
+ <rasd:VirtualQuantity>1</rasd:VirtualQuantity>
143
+ <rasd:Weight>0</rasd:Weight>
144
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu"/>
145
+ </ovf:Item>
146
+ <ovf:Item vcloud:href="%s/api/vApp/vm-%s/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
147
+ <rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
148
+ <rasd:Description>Memory Size</rasd:Description>
149
+ <rasd:ElementName>32 MB of memory</rasd:ElementName>
150
+ <rasd:InstanceID>5</rasd:InstanceID>
151
+ <rasd:Reservation>0</rasd:Reservation>
152
+ <rasd:ResourceType>4</rasd:ResourceType>
153
+ <rasd:VirtualQuantity>32</rasd:VirtualQuantity>
154
+ <rasd:Weight>0</rasd:Weight>
155
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/memory"/>
156
+ </ovf:Item>
157
+ <Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/"/>
158
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu"/>
159
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/cpu"/>
160
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/memory"/>
161
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/memory"/>
162
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/disks"/>
163
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/disks"/>
164
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/media"/>
165
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/networkCards"/>
166
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/networkCards"/>
167
+ <Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/serialPorts"/>
168
+ <Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="%s/api/vApp/vm-%s/virtualHardwareSection/serialPorts"/>
169
+ </ovf:VirtualHardwareSection>
170
+ <ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="93" vcloud:href="%s/api/vApp/vm-%s/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="ubuntuGuest">
171
+ <ovf:Info>Specifies the operating system installed</ovf:Info>
172
+ <ovf:Description>Ubuntu Linux (32-bit)</ovf:Description>
173
+ <Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="%s/api/vApp/vm-%s/operatingSystemSection/"/>
174
+ </ovf:OperatingSystemSection>
175
+ <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="%s" ovf:required="false">
176
+ <ovf:Info>Specifies the available VM network connections</ovf:Info>
177
+ <PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
178
+ <NetworkConnection network="none" needsCustomization="true">
179
+ <NetworkConnectionIndex>0</NetworkConnectionIndex>
180
+ <IsConnected>false</IsConnected>
181
+ <MACAddress>00:50:56:02:01:56</MACAddress>
182
+ <IpAddressAllocationMode>NONE</IpAddressAllocationMode>
183
+ </NetworkConnection>
184
+ <Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="%s"/>
185
+ </NetworkConnectionSection>
186
+ <GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="%s/api/vApp/vm-%s/guestCustomizationSection/" ovf:required="false">
187
+ <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
188
+ <Enabled>false</Enabled>
189
+ <ChangeSid>false</ChangeSid>
190
+ <VirtualMachineId>%s</VirtualMachineId>
191
+ <JoinDomainEnabled>false</JoinDomainEnabled>
192
+ <UseOrgSettings>false</UseOrgSettings>
193
+ <AdminPasswordEnabled>true</AdminPasswordEnabled>
194
+ <AdminPasswordAuto>true</AdminPasswordAuto>
195
+ <ResetPasswordRequired>false</ResetPasswordRequired>
196
+ <ComputerName>vm1-001</ComputerName>
197
+ <Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="%s/api/vApp/vm-%s/guestCustomizationSection/"/>
198
+ </GuestCustomizationSection>
199
+ <ovf:ProductSection ovf:instance="" ovf:class="" ovf:required="true">
200
+ <ovf:Info>Information about the installed software</ovf:Info>
201
+ <ovf:Product>UnOS</ovf:Product>
202
+ </ovf:ProductSection>
203
+ <RuntimeInfoSection xmlns:vcloud="http://www.vmware.com/vcloud/v1.5" vcloud:href="%s/api/vApp/vm-%s/runtimeInfoSection" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
204
+ <ovf:Info>Specifies Runtime info</ovf:Info>
205
+ </RuntimeInfoSection>
206
+ <VAppScopedLocalId>vm1</VAppScopedLocalId>
207
+ </Vm>
208
+ </Children>
209
+ </VApp>