ruby_vcloud_sdk 0.4.8 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +296 -0
  3. data/lib/ruby_vcloud_sdk.rb +0 -4
  4. data/lib/ruby_vcloud_sdk/catalog.rb +377 -0
  5. data/lib/ruby_vcloud_sdk/catalog_item.rb +26 -0
  6. data/lib/ruby_vcloud_sdk/client.rb +25 -882
  7. data/lib/ruby_vcloud_sdk/config.rb +1 -7
  8. data/lib/ruby_vcloud_sdk/connection/connection.rb +114 -54
  9. data/lib/ruby_vcloud_sdk/cpu.rb +11 -0
  10. data/lib/ruby_vcloud_sdk/disk.rb +55 -0
  11. data/lib/ruby_vcloud_sdk/edge_gateway.rb +32 -0
  12. data/lib/ruby_vcloud_sdk/infrastructure.rb +135 -0
  13. data/lib/ruby_vcloud_sdk/ip_ranges.rb +95 -0
  14. data/lib/ruby_vcloud_sdk/memory.rb +11 -0
  15. data/lib/ruby_vcloud_sdk/network.rb +32 -0
  16. data/lib/ruby_vcloud_sdk/powerable.rb +78 -0
  17. data/lib/ruby_vcloud_sdk/resources.rb +13 -0
  18. data/lib/ruby_vcloud_sdk/session.rb +46 -0
  19. data/lib/ruby_vcloud_sdk/vapp.rb +122 -0
  20. data/lib/ruby_vcloud_sdk/vdc.rb +210 -0
  21. data/lib/ruby_vcloud_sdk/vdc_storage_profile.rb +23 -0
  22. data/lib/ruby_vcloud_sdk/version.rb +1 -1
  23. data/lib/ruby_vcloud_sdk/vm.rb +132 -0
  24. data/lib/ruby_vcloud_sdk/xml/constants.rb +6 -4
  25. data/lib/ruby_vcloud_sdk/xml/wrapper.rb +109 -30
  26. data/lib/ruby_vcloud_sdk/xml/wrapper_classes.rb +45 -2
  27. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/admin_catalog.rb +13 -4
  28. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/allocated_ip_addresses.rb +9 -0
  29. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/catalog_item.rb +6 -14
  30. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk.rb +24 -14
  31. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk_attach_or_detach_params.rb +0 -2
  32. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/disk_create_params.rb +1 -3
  33. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/edge_gateway.rb +13 -0
  34. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/gateway_interface.rb +22 -0
  35. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/hard_disk_item_wrapper.rb +4 -4
  36. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_address.rb +10 -0
  37. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_range.rb +13 -0
  38. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_ranges.rb +9 -0
  39. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/ip_scope.rb +6 -32
  40. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/item.rb +1 -7
  41. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/link.rb +14 -0
  42. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/media.rb +4 -20
  43. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/media_insert_or_eject_params.rb +1 -3
  44. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/network_connection_section.rb +0 -4
  45. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/nic_item_wrapper.rb +0 -2
  46. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/org.rb +44 -0
  47. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/org_vdc_network.rb +11 -3
  48. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/query_result_records.rb +14 -0
  49. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/recompose_vapp_params.rb +42 -0
  50. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/session.rb +5 -5
  51. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/supported_versions.rb +19 -0
  52. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/task.rb +1 -1
  53. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/upload_vapp_template_params.rb +2 -4
  54. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp.rb +13 -22
  55. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vapp_template.rb +0 -2
  56. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vcloud.rb +5 -3
  57. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vdc.rb +72 -15
  58. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/virtual_hardware_section.rb +8 -6
  59. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vm.rb +29 -25
  60. data/lib/ruby_vcloud_sdk/xml/wrapper_classes/vms.rb +12 -0
  61. data/lib/ruby_vcloud_sdk/xml/xml_templates/AdminCatalog.xml +6 -1
  62. data/lib/ruby_vcloud_sdk/xml/xml_templates/RecomposeVAppParams.xml +16 -1
  63. metadata +116 -233
  64. data/README +0 -1
  65. data/Rakefile +0 -50
  66. data/lib/ruby_vcloud_sdk/util.rb +0 -21
  67. data/spec/assets/admin_org_response.xml +0 -75
  68. data/spec/assets/catalog_add_item_response.xml +0 -8
  69. data/spec/assets/catalog_add_vapp_request.xml +0 -5
  70. data/spec/assets/catalog_item_added_response.xml +0 -19
  71. data/spec/assets/catalog_response.xml +0 -19
  72. data/spec/assets/existing_media_busy_response.xml +0 -19
  73. data/spec/assets/existing_media_catalog_item.xml +0 -8
  74. data/spec/assets/existing_media_delete_task_done.xml +0 -6
  75. data/spec/assets/existing_media_done_response.xml +0 -11
  76. data/spec/assets/existing_vapp_resolver_response.xml +0 -3
  77. data/spec/assets/existing_vapp_template_catalog_resolver_response.xml +0 -3
  78. data/spec/assets/existing_vapp_template_instantiate_response.xml +0 -20
  79. data/spec/assets/existing_vapp_template_instantiate_task_error_response.xml +0 -7
  80. data/spec/assets/existing_vapp_template_instantiate_task_start_response.xml +0 -7
  81. data/spec/assets/existing_vapp_template_instantiate_task_success_response.xml +0 -7
  82. data/spec/assets/existing_vapp_template_item_response.xml +0 -8
  83. data/spec/assets/existing_vapp_template_ready_response.xml +0 -79
  84. data/spec/assets/finalize_upload_task_done_response.xml +0 -7
  85. data/spec/assets/finalize_upload_task_response.xml +0 -7
  86. data/spec/assets/indy_disk_attach_request.xml +0 -3
  87. data/spec/assets/indy_disk_attach_task.xml +0 -6
  88. data/spec/assets/indy_disk_attach_task_error.xml +0 -6
  89. data/spec/assets/indy_disk_create_error.xml +0 -1
  90. data/spec/assets/indy_disk_create_request.xml +0 -4
  91. data/spec/assets/indy_disk_create_response.xml +0 -19
  92. data/spec/assets/indy_disk_delete_task.xml +0 -6
  93. data/spec/assets/indy_disk_detach_request.xml +0 -3
  94. data/spec/assets/indy_disk_detach_task.xml +0 -6
  95. data/spec/assets/indy_disk_response.xml +0 -11
  96. data/spec/assets/instantiated_suspended_vapp_response.xml +0 -209
  97. data/spec/assets/instantiated_vapp_delelete_done_task.xml +0 -5
  98. data/spec/assets/instantiated_vapp_delelete_running_task.xml +0 -6
  99. data/spec/assets/instantiated_vapp_network_config_add_network_request.xml +0 -36
  100. data/spec/assets/instantiated_vapp_network_config_modify_network_task_success.xml +0 -6
  101. data/spec/assets/instantiated_vapp_network_config_remove_network_request.xml +0 -6
  102. data/spec/assets/instantiated_vapp_network_config_section_response.xml +0 -17
  103. data/spec/assets/instantiated_vapp_off_response.xml +0 -206
  104. data/spec/assets/instantiated_vapp_on_response.xml +0 -205
  105. data/spec/assets/instantiated_vapp_power_task_running.xml +0 -6
  106. data/spec/assets/instantiated_vapp_power_task_success.xml +0 -6
  107. data/spec/assets/instantiated_vapp_response.xml +0 -205
  108. data/spec/assets/instantiated_vm_change_task_running.xml +0 -6
  109. data/spec/assets/instantiated_vm_change_task_success.xml +0 -6
  110. data/spec/assets/instantiated_vm_cpu_response.xml +0 -11
  111. data/spec/assets/instantiated_vm_insert_media_task_done.xml +0 -6
  112. data/spec/assets/instantiated_vm_memory_response.xml +0 -11
  113. data/spec/assets/instantiated_vm_modify_task_running.xml +0 -6
  114. data/spec/assets/instantiated_vm_modify_task_success.xml +0 -5
  115. data/spec/assets/instantiated_vm_network_section_response.xml +0 -11
  116. data/spec/assets/instantiated_vm_response.xml +0 -149
  117. data/spec/assets/media_add_to_catalog_request.xml +0 -5
  118. data/spec/assets/media_add_to_catalog_response.xml +0 -8
  119. data/spec/assets/media_delete_task_done.xml +0 -6
  120. data/spec/assets/media_upload_pending_response.xml +0 -13
  121. data/spec/assets/media_upload_request.xml +0 -2
  122. data/spec/assets/metadata_set_request.xml +0 -3
  123. data/spec/assets/metadata_set_task_done.xml +0 -6
  124. data/spec/assets/org_network_response.xml +0 -22
  125. data/spec/assets/reconfigure_vm_request.xml +0 -133
  126. data/spec/assets/reconfigure_vm_task.xml +0 -8
  127. data/spec/assets/session.xml +0 -7
  128. data/spec/assets/test-config.yml +0 -38
  129. data/spec/assets/undeploy_params.xml +0 -1
  130. data/spec/assets/vapp_template_catalog_resolver_response.xml +0 -3
  131. data/spec/assets/vapp_template_delelete_done_task.xml +0 -5
  132. data/spec/assets/vapp_template_delelete_running_task.xml +0 -6
  133. data/spec/assets/vapp_template_instantiate_request.xml +0 -8
  134. data/spec/assets/vapp_template_instantiate_with_locality_request.xml +0 -14
  135. data/spec/assets/vapp_template_no_disk_response.xml +0 -27
  136. data/spec/assets/vapp_template_ready_response.xml +0 -79
  137. data/spec/assets/vapp_template_upload_complete.xml +0 -28
  138. data/spec/assets/vapp_template_upload_failed.xml +0 -28
  139. data/spec/assets/vapp_template_upload_request.xml +0 -4
  140. data/spec/assets/vapp_template_upload_response.xml +0 -25
  141. data/spec/assets/vcloud_response.xml +0 -56
  142. data/spec/assets/vdc_response.xml +0 -57
  143. data/spec/spec_helper.rb +0 -107
  144. data/spec/unit/client_response.rb +0 -700
  145. data/spec/unit/client_spec.rb +0 -1152
@@ -1 +0,0 @@
1
- <ns7:UndeployVAppParams xmlns="http://www.vmware.com/vcloud/extension/v1" xmlns:ns2="http://www.vmware.com/vcloud/v1" xmlns:ns3="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns6="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns7="http://www.vmware.com/vcloud/v1.5" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ns10="http://www.vmware.com/vcloud/versions"/>
@@ -1,3 +0,0 @@
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>
@@ -1,5 +0,0 @@
1
- <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="success" startTime="2011-08-18T13:29:19.328-07:00" operationName="vdcDeleteTemplate" operation="Deleting Virtual Application Template (%s)" expiryTime="2011-11-16T13:29:19.328-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
- <Owner type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="" href="%s/api/vAppTemplate/vappTemplate-6ce96611-43fa-4efd-8571-2804447a21c4"/>
3
- <User type="application/vnd.vmware.admin.user+xml" name="vcap" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
4
- <Organization type="application/vnd.vmware.vcloud.org+xml" name="vcap" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
5
- </Task>
@@ -1,6 +0,0 @@
1
- <Task xmlns="http://www.vmware.com/vcloud/v1.5" status="running" startTime="2011-08-18T13:29:19.328-07:00" operationName="vdcDeleteTemplate" operation="Deleting Virtual Application Template (%s)" expiryTime="2011-11-16T13:29:19.328-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="" href="%s/api/vAppTemplate/vappTemplate-6ce96611-43fa-4efd-8571-2804447a21c4"/>
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
- </Task>
@@ -1,8 +0,0 @@
1
- <ns7:InstantiateVAppTemplateParams xmlns="http://www.vmware.com/vcloud/extension/v1" xmlns:ns2="http://www.vmware.com/vcloud/v1" xmlns:ns3="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns6="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns7="http://www.vmware.com/vcloud/v1.5" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ns10="http://www.vmware.com/vcloud/versions" linkedClone="false" powerOn="false" deploy="false" name="%s">
2
- <ns7:Description></ns7:Description>
3
- <ns7:VAppParent href=""/>
4
- <ns7:InstantiationParams/>
5
- <ns7:Source href="%s/api/vAppTemplate/vappTemplate-%s" id="urn:vcloud:vapptemplate:%s" type="application/vnd.vmware.vcloud.vAppTemplate+xml"/>
6
- <ns7:IsSourceDelete>false</ns7:IsSourceDelete>
7
- <ns7:AllEULAsAccepted>true</ns7:AllEULAsAccepted>
8
- </ns7:InstantiateVAppTemplateParams>
@@ -1,14 +0,0 @@
1
- <ns7:InstantiateVAppTemplateParams xmlns="http://www.vmware.com/vcloud/extension/v1" xmlns:ns2="http://www.vmware.com/vcloud/v1" xmlns:ns3="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns6="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns7="http://www.vmware.com/vcloud/v1.5" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ns10="http://www.vmware.com/vcloud/versions" linkedClone="false" powerOn="false" deploy="false" name="%s">
2
- <ns7:Description>desc</ns7:Description>
3
- <ns7:VAppParent href=""/>
4
- <ns7:InstantiationParams/>
5
- <ns7:Source href="%s/api/vAppTemplate/vappTemplate-%s" id="urn:vcloud:vapptemplate:%s" type="application/vnd.vmware.vcloud.vAppTemplate+xml"/>
6
- <ns7:IsSourceDelete>false</ns7:IsSourceDelete>
7
- <ns7:SourcedVmInstantiationParams>
8
- <ns7:Source type="application/vnd.vmware.vcloud.vm+xml" name="%s" href="%s"/>
9
- <ns7:LocalityParams>
10
- <ns7:ResourceEntity type="application/vnd.vmware.vcloud.disk+xml" name="%s" href="%s"/>
11
- </ns7:LocalityParams>
12
- </ns7:SourcedVmInstantiationParams>
13
- <ns7:AllEULAsAccepted>true</ns7:AllEULAsAccepted>
14
- </ns7:InstantiateVAppTemplateParams>
@@ -1,27 +0,0 @@
1
- <VAppTemplate xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" ovfDescriptorUploaded="true" goldMaster="false" status="0" name="%s" id="urn:vcloud:vapptemplate:61a7300c-fedd-4f0a-804b-93f16ccf49f2" type="application/vnd.vmware.vcloud.vAppTemplate+xml" href="%s/api/vAppTemplate/vappTemplate-c032c1a3-21a2-4ac2-8e98-0cc29229e10c" 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-c032c1a3-21a2-4ac2-8e98-0cc29229e10c"/>
4
- <Description/>
5
- <Files>
6
- <File size="120903732" bytesTransferred="0" name="haoUnOS2VMs-disk1.vmdk">
7
- <Link rel="upload:default" href="%s/transfer/62137697-8d51-4df6-9689-0b7f84ccc096/haoUnOS2VMs-disk1.vmdk"/>
8
- </File>
9
- <File size="10964" bytesTransferred="10964" name="descriptor.ovf">
10
- <Link rel="upload:default" href="%s/transfer/62137697-8d51-4df6-9689-0b7f84ccc096/descriptor.ovf"/>
11
- </File>
12
- </Files>
13
- <Owner type="application/vnd.vmware.vcloud.owner+xml">
14
- <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
15
- </Owner>
16
- <Children/>
17
- <LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vAppTemplate/vappTemplate-c032c1a3-21a2-4ac2-8e98-0cc29229e10c/leaseSettingsSection/" ovf:required="false">
18
- <ovf:Info>Lease settings section</ovf:Info>
19
- <Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vAppTemplate/vappTemplate-c032c1a3-21a2-4ac2-8e98-0cc29229e10c/leaseSettingsSection/"/>
20
- <StorageLeaseInSeconds>7776000</StorageLeaseInSeconds>
21
- <StorageLeaseExpiration>2011-11-03T18:29:28.633-07:00</StorageLeaseExpiration>
22
- </LeaseSettingsSection>
23
- <CustomizationSection type="application/vnd.vmware.vcloud.customizationSection+xml" href="%s/api/vAppTemplate/vappTemplate-c032c1a3-21a2-4ac2-8e98-0cc29229e10c/customizationSection/" ovf:required="false">
24
- <ovf:Info>VApp template customization section</ovf:Info>
25
- <CustomizeOnInstantiate>true</CustomizeOnInstantiate>
26
- </CustomizationSection>
27
- </VAppTemplate>
@@ -1,79 +0,0 @@
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:#{VM1_ID}" type="application/vnd.vmware.vcloud.vm+xml" href="%s/api/vAppTemplate/vm-#{VM1_ID}">
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-#{VM1_ID}/metadata"/>
16
- <Description>A virtual machine</Description>
17
- <NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="%s/api/vAppTemplate/vm-#{VM1_ID}/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-#{VM1_ID}/guestCustomizationSection/" ovf:required="false">
28
- <ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
29
- <Enabled>false</Enabled>
30
- <ChangeSid>false</ChangeSid>
31
- <VirtualMachineId>#{VM1_ID}</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>
@@ -1,28 +0,0 @@
1
- <VAppTemplate xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" ovfDescriptorUploaded="true" goldMaster="false" status="0" 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
- <Description/>
5
- <Tasks>
6
- <Task status="success" startTime="2011-08-08T11:13:07.757-07:00" operationName="vdcUploadOvfContents" operation="Finalizing upload of Virtual Application Template %s(%s)" expiryTime="2011-11-06T11:13:07.757-08:00" name="task" id="urn:vcloud:task:91bd4b57-598e-4753-8274-1172c7195468" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/91bd4b57-598e-4753-8274-1172c7195468">
7
- <Link rel="task:cancel" href="%s/api/task/91bd4b57-598e-4753-8274-1172c7195468/action/cancel"/>
8
- <Owner type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="%s" href="%s/api/vAppTemplate/vappTemplate-%s"/>
9
- <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
10
- <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
11
- <Progress>1</Progress>
12
- </Task>
13
- </Tasks>
14
- <Owner type="application/vnd.vmware.vcloud.owner+xml">
15
- <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
16
- </Owner>
17
- <Children/>
18
- <LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/leaseSettingsSection/" ovf:required="false">
19
- <ovf:Info>Lease settings section</ovf:Info>
20
- <Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/leaseSettingsSection/"/>
21
- <StorageLeaseInSeconds>7776000</StorageLeaseInSeconds>
22
- <StorageLeaseExpiration>2011-11-06T10:12:46.547-08:00</StorageLeaseExpiration>
23
- </LeaseSettingsSection>
24
- <CustomizationSection type="application/vnd.vmware.vcloud.customizationSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/customizationSection/" ovf:required="false">
25
- <ovf:Info>VApp template customization section</ovf:Info>
26
- <CustomizeOnInstantiate>true</CustomizeOnInstantiate>
27
- </CustomizationSection>
28
- </VAppTemplate>
@@ -1,28 +0,0 @@
1
- <VAppTemplate xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" ovfDescriptorUploaded="true" goldMaster="false" status="0" 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
- <Description/>
5
- <Tasks>
6
- <Task status="error" startTime="2011-08-08T11:13:07.757-07:00" operationName="vdcUploadOvfContents" operation="Finalizing upload of Virtual Application Template %s(%s)" expiryTime="2011-11-06T11:13:07.757-08:00" name="task" id="urn:vcloud:task:91bd4b57-598e-4753-8274-1172c7195468" type="application/vnd.vmware.vcloud.task+xml" href="%s/api/task/91bd4b57-598e-4753-8274-1172c7195468">
7
- <Link rel="task:cancel" href="%s/api/task/91bd4b57-598e-4753-8274-1172c7195468/action/cancel"/>
8
- <Owner type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="%s" href="%s/api/vAppTemplate/vappTemplate-%s"/>
9
- <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
10
- <Organization type="application/vnd.vmware.vcloud.org+xml" name="%s" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
11
- <Progress>1</Progress>
12
- </Task>
13
- </Tasks>
14
- <Owner type="application/vnd.vmware.vcloud.owner+xml">
15
- <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
16
- </Owner>
17
- <Children/>
18
- <LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/leaseSettingsSection/" ovf:required="false">
19
- <ovf:Info>Lease settings section</ovf:Info>
20
- <Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/leaseSettingsSection/"/>
21
- <StorageLeaseInSeconds>7776000</StorageLeaseInSeconds>
22
- <StorageLeaseExpiration>2011-11-06T10:12:46.547-08:00</StorageLeaseExpiration>
23
- </LeaseSettingsSection>
24
- <CustomizationSection type="application/vnd.vmware.vcloud.customizationSection+xml" href="%s/api/vAppTemplate/vappTemplate-%s/customizationSection/" ovf:required="false">
25
- <ovf:Info>VApp template customization section</ovf:Info>
26
- <CustomizeOnInstantiate>true</CustomizeOnInstantiate>
27
- </CustomizationSection>
28
- </VAppTemplate>
@@ -1,4 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
- <ns7:UploadVAppTemplateParams xmlns="http://www.vmware.com/vcloud/extension/v1" xmlns:ns2="http://www.vmware.com/vcloud/v1" xmlns:ns3="http://schemas.dmtf.org/ovf/envelope/1" xmlns:ns4="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:ns5="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:ns6="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ns7="http://www.vmware.com/vcloud/v1.5" xmlns:ns8="http://schemas.dmtf.org/ovf/environment/1" xmlns:ns9="http://www.vmware.com/vcloud/extension/v1.5" xmlns:ns10="http://www.vmware.com/vcloud/versions" transferFormat="" manifestRequired="false" name="%s">
3
- <ns7:Description/>
4
- </ns7:UploadVAppTemplateParams>
@@ -1,25 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <VAppTemplate xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" ovfDescriptorUploaded="false" goldMaster="false" status="0" name="%s" id="urn:vcloud:vapptemplate:c032c1a3-21a2-4ac2-8e98-0cc29229e10c" type="application/vnd.vmware.vcloud.vAppTemplate+xml" href="%s/api/vAppTemplate/vappTemplate-c032c1a3-21a2-4ac2-8e98-0cc29229e10c" 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">
3
- <Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/%s"/>
4
- <Link rel="remove" href="%s/api/vAppTemplate/vappTemplate-c032c1a3-21a2-4ac2-8e98-0cc29229e10c"/>
5
- <Description/>
6
- <Files>
7
- <File size="-1" bytesTransferred="0" name="descriptor.ovf">
8
- <Link rel="upload:default" href="%s/transfer/22467867-7ada-4a55-a9cb-e05aa30a4f96/descriptor.ovf"/>
9
- </File>
10
- </Files>
11
- <Owner type="application/vnd.vmware.vcloud.owner+xml">
12
- <User type="application/vnd.vmware.admin.user+xml" name="%s" href="%s/api/admin/user/42cbe98d-48da-4f5d-944e-596843a9fcb5"/>
13
- </Owner>
14
- <Children/>
15
- <LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vAppTemplate/vappTemplate-c032c1a3-21a2-4ac2-8e98-0cc29229e10c/leaseSettingsSection/" ovf:required="false">
16
- <ovf:Info>Lease settings section</ovf:Info>
17
- <Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="%s/api/vAppTemplate/vappTemplate-c032c1a3-21a2-4ac2-8e98-0cc29229e10c/leaseSettingsSection/"/>
18
- <StorageLeaseInSeconds>7776000</StorageLeaseInSeconds>
19
- <StorageLeaseExpiration>2011-11-03T13:39:00.977-07:00</StorageLeaseExpiration>
20
- </LeaseSettingsSection>
21
- <CustomizationSection type="application/vnd.vmware.vcloud.customizationSection+xml" href="%s/api/vAppTemplate/vappTemplate-c032c1a3-21a2-4ac2-8e98-0cc29229e10c/customizationSection/" ovf:required="false">
22
- <ovf:Info>VApp template customization section</ovf:Info>
23
- <CustomizeOnInstantiate>false</CustomizeOnInstantiate>
24
- </CustomizationSection>
25
- </VAppTemplate>
@@ -1,56 +0,0 @@
1
- <VCloud xmlns="http://www.vmware.com/vcloud/v1.5" name="VMware vCloud Director" type="application/vnd.vmware.admin.vcloud+xml" href="%s/api/admin/" 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
- <Description>0.0.1.123456 Fri Jan 08 12:15:16 PST 2010</Description>
3
- <OrganizationReferences>
4
- <OrganizationReference type="application/vnd.vmware.admin.organization+xml" name="%s" href="%s/api/admin/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
5
- </OrganizationReferences>
6
- <RightReferences>
7
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Create / Reconfigure" href="%s/api/admin/right/11"/>
8
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Delete" href="%s/api/admin/right/12"/>
9
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Edit Properties" href="%s/api/admin/right/13"/>
10
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Power Operations" href="%s/api/admin/right/18"/>
11
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Sharing" href="%s/api/admin/right/20"/>
12
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Copy" href="%s/api/admin/right/21"/>
13
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Use Console" href="%s/api/admin/right/22"/>
14
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Change Owner" href="%s/api/admin/right/24"/>
15
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Edit VM Properties" href="%s/api/admin/right/31"/>
16
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Edit VM Memory" href="%s/api/admin/right/32"/>
17
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Edit VM CPU" href="%s/api/admin/right/33"/>
18
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Edit VM Network" href="%s/api/admin/right/34"/>
19
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Edit VM Hard Disk" href="%s/api/admin/right/35"/>
20
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp: Manage VM Password Settings" href="%s/api/admin/right/36"/>
21
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Catalog: Create / Delete a Catalog" href="%s/api/admin/right/71"/>
22
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Catalog: Edit Properties" href="%s/api/admin/right/73"/>
23
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Catalog: Add vApp from My Cloud" href="%s/api/admin/right/74"/>
24
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Catalog: Publish" href="%s/api/admin/right/76"/>
25
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Catalog: Sharing" href="%s/api/admin/right/77"/>
26
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Catalog: View Private and Shared Catalogs" href="%s/api/admin/right/78"/>
27
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Catalog: View Published Catalogs" href="%s/api/admin/right/79"/>
28
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Catalog: Change Owner" href="%s/api/admin/right/80"/>
29
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp Template / Media: Edit" href="%s/api/admin/right/102"/>
30
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp Template / Media: Create / Upload" href="%s/api/admin/right/103"/>
31
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp Template: Download" href="%s/api/admin/right/104"/>
32
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp Template / Media: Copy" href="%s/api/admin/right/105"/>
33
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp Template / Media: View" href="%s/api/admin/right/106"/>
34
- <RightReference type="application/vnd.vmware.admin.right+xml" name="vApp Template: Checkout" href="%s/api/admin/right/107"/>
35
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Organization: Edit Properties" href="%s/api/admin/right/201"/>
36
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Organization: Edit SMTP Settings" href="%s/api/admin/right/202"/>
37
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Organization: Edit Quotas Policy" href="%s/api/admin/right/203"/>
38
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Organization: View" href="%s/api/admin/right/204"/>
39
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Organization Network: Edit Properties" href="%s/api/admin/right/207"/>
40
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Organization Network: View" href="%s/api/admin/right/208"/>
41
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Organization: Edit Leases Policy" href="%s/api/admin/right/209"/>
42
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Organization: Edit Password Policy" href="%s/api/admin/right/210"/>
43
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Organization vDC: View" href="%s/api/admin/right/254"/>
44
- <RightReference type="application/vnd.vmware.admin.right+xml" name="Group / User: View" href="%s/api/admin/right/304"/>
45
- <RightReference type="application/vnd.vmware.admin.right+xml" name="General: Send Notification" href="%s/api/admin/right/382"/>
46
- <RightReference type="application/vnd.vmware.admin.right+xml" name="General: Administrator Control" href="%s/api/admin/right/383"/>
47
- <RightReference type="application/vnd.vmware.admin.right+xml" name="General: Administrator View" href="%s/api/admin/right/384"/>
48
- </RightReferences>
49
- <RoleReferences>
50
- <RoleReference type="application/vnd.vmware.admin.role+xml" name="Organization Administrator" href="%s/api/admin/role/a08a8798-7d9b-34d6-8dad-48c7182c5f66"/>
51
- <RoleReference type="application/vnd.vmware.admin.role+xml" name="Catalog Author" href="%s/api/admin/role/9de271ec-be55-31e8-8d56-2a097e4e3856"/>
52
- <RoleReference type="application/vnd.vmware.admin.role+xml" name="vApp Author" href="%s/api/admin/role/1bf4457f-a253-3cf1-b163-f319f1a31802"/>
53
- <RoleReference type="application/vnd.vmware.admin.role+xml" name="vApp User" href="%s/api/admin/role/ff1e0c91-1288-3664-82b7-a6fa303af4d1"/>
54
- <RoleReference type="application/vnd.vmware.admin.role+xml" name="Console Access Only" href="%s/api/admin/role/ae910740-cbde-34ae-9d84-ef5c53880afe"/>
55
- </RoleReferences>
56
- </VCloud>
@@ -1,57 +0,0 @@
1
- <Vdc xmlns="http://www.vmware.com/vcloud/v1.5" status="1" name="%s" id="urn:vcloud:vdc:%s" type="application/vnd.vmware.vcloud.vdc+xml" href="%s/api/vdc/%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="up" type="application/vnd.vmware.vcloud.org+xml" href="%s/api/org/b689c06e-1de0-4fd1-a5a3-050c479546ac"/>
3
- <Link rel="down" type="application/vnd.vmware.vcloud.metadata+xml" href="%s/api/vdc/%s/metadata"/>
4
- <Link rel="add" type="application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml" href="%s/api/vdc/%s/action/uploadVAppTemplate"/>
5
- <Link rel="add" type="application/vnd.vmware.vcloud.media+xml" href="%s"/>
6
- <Link rel="add" type="application/vnd.vmware.vcloud.instantiateVAppTemplateParams+xml" href="%s/api/vdc/%s/action/instantiateVAppTemplate"/>
7
- <Link rel="add" type="application/vnd.vmware.vcloud.cloneVAppParams+xml" href="%s/api/vdc/%s/action/cloneVApp"/>
8
- <Link rel="add" type="application/vnd.vmware.vcloud.cloneVAppTemplateParams+xml" href="%s/api/vdc/%s/action/cloneVAppTemplate"/>
9
- <Link rel="add" type="application/vnd.vmware.vcloud.cloneMediaParams+xml" href="%s/api/vdc/%s/action/cloneMedia"/>
10
- <Link rel="add" type="application/vnd.vmware.vcloud.captureVAppParams+xml" href="%s/api/vdc/%s/action/captureVApp"/>
11
- <Link rel="add" type="application/vnd.vmware.vcloud.composeVAppParams+xml" href="%s/api/vdc/%s/action/composeVApp"/>
12
- <Link rel="add" type="application/vnd.vmware.vcloud.diskCreateParams+xml" href="%s"/>
13
- <Description/>
14
- <AllocationModel>AllocationVApp</AllocationModel>
15
- <StorageCapacity>
16
- <Units>MB</Units>
17
- <Allocated>0</Allocated>
18
- <Limit>0</Limit>
19
- <Used>4800</Used>
20
- <Overhead>0</Overhead>
21
- </StorageCapacity>
22
- <ComputeCapacity>
23
- <Cpu>
24
- <Units>MHz</Units>
25
- <Allocated>0</Allocated>
26
- <Limit>0</Limit>
27
- <Used>0</Used>
28
- <Overhead>0</Overhead>
29
- </Cpu>
30
- <Memory>
31
- <Units>MB</Units>
32
- <Allocated>0</Allocated>
33
- <Limit>0</Limit>
34
- <Used>0</Used>
35
- <Overhead>0</Overhead>
36
- </Memory>
37
- </ComputeCapacity>
38
- <ResourceEntities>
39
- <ResourceEntity type="application/vnd.vmware.vcloud.vApp+xml" name="%s" href="%s/api/vApp/vapp-%s"/>
40
- <ResourceEntity type="application/vnd.vmware.vcloud.vAppTemplate+xml" name="%s" href="%s/api/vAppTemplate/vappTemplate-%s"/>
41
- <ResourceEntity type="application/vnd.vmware.vcloud.media+xml" name="%s" href="%s/api/vApp/vapp-%s"/>
42
- <ResourceEntity type="application/vnd.vmware.vcloud.disk+xml" name="%s" href="%s"/>
43
- </ResourceEntities>
44
- <AvailableNetworks>
45
- <Network type="application/vnd.vmware.vcloud.network+xml" name="%s" href="%s"/>
46
- </AvailableNetworks>
47
- <Capabilities>
48
- <SupportedHardwareVersions>
49
- <SupportedHardwareVersion>vmx-04</SupportedHardwareVersion>
50
- <SupportedHardwareVersion>vmx-07</SupportedHardwareVersion>
51
- </SupportedHardwareVersions>
52
- </Capabilities>
53
- <NicQuota>0</NicQuota>
54
- <NetworkQuota>1024</NetworkQuota>
55
- <VmQuota>100</VmQuota>
56
- <IsEnabled>true</IsEnabled>
57
- </Vdc>
@@ -1,107 +0,0 @@
1
- $:.unshift(File.expand_path("..", __FILE__))
2
- $:.unshift(File.join(File.dirname(__FILE__), "."))
3
- $:.unshift(File.join(File.dirname(__FILE__), "unit"))
4
-
5
- require "yaml"
6
- require "ruby_vcloud_sdk"
7
-
8
-
9
- module VCloudSdk
10
- module Test
11
-
12
- class << self
13
- def spec_asset(filename)
14
- File.expand_path(File.join(File.dirname(__FILE__), "assets", filename))
15
- end
16
-
17
- def test_configuration
18
- @@test_config ||= YAML.load_file(spec_asset("test-config.yml"))
19
- end
20
-
21
- def properties
22
- test_configuration["properties"]
23
- end
24
-
25
- def get_vcd_settings
26
- vcds = properties["vcds"]
27
- raise "Invalid number of VCDs" unless vcds.size == 1
28
- vcds[0]
29
- end
30
-
31
- def vcd_settings
32
- @@settings ||= get_vcd_settings
33
- end
34
-
35
- def generate_unique_name
36
- UUIDTools::UUID.random_create.to_s
37
- end
38
-
39
- def compare_xml(a, b)
40
- a.diff(b) do |change, node|
41
- # " " Means no difference. "+" means addition and "-" means deletion.
42
- return false if change != " " && node.to_s.strip().length != 0
43
- end
44
- true
45
- end
46
-
47
- def rest_logger(logger)
48
- rest_log_filename = File.join(File.dirname(
49
- logger.instance_eval { @logdev }.dev.path), "rest")
50
- log_file = File.open(rest_log_filename, "w")
51
- log_file.sync = true
52
- rest_logger = Logger.new(log_file || STDOUT)
53
- rest_logger.level = logger.level
54
- rest_logger.formatter = logger.formatter
55
- def rest_logger.<<(str)
56
- self.debug(str.chomp)
57
- end
58
- rest_logger
59
- end
60
- end
61
-
62
- end
63
-
64
- module Xml
65
-
66
- class Wrapper
67
- def ==(other)
68
- @root.diff(other.node) do |change, node|
69
- # " " Means no difference, "+" means addition and "-" means deletion
70
- return false if change != " " && node.to_s.strip().length != 0
71
- end
72
- true
73
- end
74
- end
75
-
76
- end
77
-
78
- class Config
79
- class << self
80
- def logger()
81
- logger = Logger.new(VCloudSdk::Test::properties["log_file"])
82
- logger.level = Logger::DEBUG
83
- logger
84
- end
85
- end
86
- end
87
-
88
- end
89
-
90
-
91
-
92
- module Kernel
93
-
94
- def with_thread_name(name)
95
- old_name = Thread.current[:name]
96
- Thread.current[:name] = name
97
- yield
98
- ensure
99
- Thread.current[:name] = old_name
100
- end
101
-
102
- end
103
-
104
- RSpec.configure do |c|
105
- c.treat_symbols_as_metadata_keys_with_true_values = true # for RSpec-3
106
- c.filter_run :all
107
- end