fog-vcloud-director 0.1.10 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (331) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +2 -0
  3. data/.rubocop.yml +4 -240
  4. data/.rubocop_local.yml +1 -0
  5. data/.travis.yml +6 -10
  6. data/README.md +54 -51
  7. data/docs/examples-vapp-instantiate.md +2 -2
  8. data/docs/examples-vm-reconfigure.md +122 -0
  9. data/docs/vm-to-reconfigure.xml +373 -0
  10. data/fog-vcloud-director.gemspec +6 -3
  11. data/lib/fog/vcloud_director.rb +14 -1
  12. data/lib/fog/vcloud_director/compute.rb +45 -19
  13. data/lib/fog/vcloud_director/core.rb +3 -3
  14. data/lib/fog/vcloud_director/generators/compute/compose_common.rb +16 -3
  15. data/lib/fog/vcloud_director/generators/compute/compose_vapp.rb +3 -3
  16. data/lib/fog/vcloud_director/generators/compute/create_snapshot.rb +3 -3
  17. data/lib/fog/vcloud_director/generators/compute/customization.rb +3 -3
  18. data/lib/fog/vcloud_director/generators/compute/disks.rb +3 -3
  19. data/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +3 -3
  20. data/lib/fog/vcloud_director/generators/compute/instantiate_vapp_template_params.rb +3 -3
  21. data/lib/fog/vcloud_director/generators/compute/metadata.rb +3 -3
  22. data/lib/fog/vcloud_director/generators/compute/org_vdc_network.rb +4 -4
  23. data/lib/fog/vcloud_director/generators/compute/recompose_vapp.rb +3 -3
  24. data/lib/fog/vcloud_director/generators/compute/reconfigure_vm.rb +189 -0
  25. data/lib/fog/vcloud_director/generators/compute/vapp.rb +3 -4
  26. data/lib/fog/vcloud_director/generators/compute/vm.rb +3 -3
  27. data/lib/fog/vcloud_director/generators/compute/vm_network.rb +3 -3
  28. data/lib/fog/vcloud_director/models/compute/catalog.rb +2 -4
  29. data/lib/fog/vcloud_director/models/compute/catalog_item.rb +2 -4
  30. data/lib/fog/vcloud_director/models/compute/catalog_items.rb +3 -4
  31. data/lib/fog/vcloud_director/models/compute/catalogs.rb +4 -5
  32. data/lib/fog/vcloud_director/models/compute/custom_field.rb +2 -4
  33. data/lib/fog/vcloud_director/models/compute/custom_fields.rb +3 -3
  34. data/lib/fog/vcloud_director/models/compute/disk.rb +5 -6
  35. data/lib/fog/vcloud_director/models/compute/disks.rb +4 -5
  36. data/lib/fog/vcloud_director/models/compute/media.rb +2 -4
  37. data/lib/fog/vcloud_director/models/compute/medias.rb +3 -4
  38. data/lib/fog/vcloud_director/models/compute/network.rb +2 -4
  39. data/lib/fog/vcloud_director/models/compute/networks.rb +3 -4
  40. data/lib/fog/vcloud_director/models/compute/organization.rb +2 -4
  41. data/lib/fog/vcloud_director/models/compute/organizations.rb +3 -4
  42. data/lib/fog/vcloud_director/models/compute/tag.rb +3 -4
  43. data/lib/fog/vcloud_director/models/compute/tags.rb +3 -4
  44. data/lib/fog/vcloud_director/models/compute/task.rb +2 -4
  45. data/lib/fog/vcloud_director/models/compute/tasks.rb +3 -4
  46. data/lib/fog/vcloud_director/models/compute/template_vm.rb +2 -3
  47. data/lib/fog/vcloud_director/models/compute/template_vms.rb +5 -6
  48. data/lib/fog/vcloud_director/models/compute/vapp.rb +36 -18
  49. data/lib/fog/vcloud_director/models/compute/vapp_template.rb +2 -4
  50. data/lib/fog/vcloud_director/models/compute/vapp_templates.rb +4 -5
  51. data/lib/fog/vcloud_director/models/compute/vapps.rb +3 -4
  52. data/lib/fog/vcloud_director/models/compute/vdc.rb +2 -4
  53. data/lib/fog/vcloud_director/models/compute/vdcs.rb +3 -4
  54. data/lib/fog/vcloud_director/models/compute/vm.rb +19 -39
  55. data/lib/fog/vcloud_director/models/compute/vm_customization.rb +2 -4
  56. data/lib/fog/vcloud_director/models/compute/vm_customizations.rb +3 -4
  57. data/lib/fog/vcloud_director/models/compute/vm_network.rb +2 -4
  58. data/lib/fog/vcloud_director/models/compute/vm_networks.rb +3 -4
  59. data/lib/fog/vcloud_director/models/compute/vms.rb +4 -5
  60. data/lib/fog/vcloud_director/parsers/compute/disks.rb +3 -3
  61. data/lib/fog/vcloud_director/parsers/compute/metadata.rb +3 -3
  62. data/lib/fog/vcloud_director/parsers/compute/network.rb +3 -3
  63. data/lib/fog/vcloud_director/parsers/compute/vapp.rb +93 -0
  64. data/lib/fog/vcloud_director/parsers/compute/vm.rb +6 -65
  65. data/lib/fog/vcloud_director/parsers/compute/vm_customization.rb +3 -3
  66. data/lib/fog/vcloud_director/parsers/compute/vm_network.rb +3 -3
  67. data/lib/fog/vcloud_director/parsers/compute/vm_parser_helper.rb +55 -3
  68. data/lib/fog/vcloud_director/parsers/compute/vms.rb +5 -26
  69. data/lib/fog/vcloud_director/parsers/compute/vms_by_metadata.rb +3 -3
  70. data/lib/fog/vcloud_director/query.rb +0 -1
  71. data/lib/fog/vcloud_director/requests/compute/delete_catalog_item.rb +2 -2
  72. data/lib/fog/vcloud_director/requests/compute/delete_catalog_item_metadata_item_metadata.rb +3 -3
  73. data/lib/fog/vcloud_director/requests/compute/delete_disk.rb +3 -3
  74. data/lib/fog/vcloud_director/requests/compute/delete_disk_metadata_item_metadata.rb +3 -3
  75. data/lib/fog/vcloud_director/requests/compute/delete_logout.rb +2 -2
  76. data/lib/fog/vcloud_director/requests/compute/delete_media.rb +4 -4
  77. data/lib/fog/vcloud_director/requests/compute/delete_media_metadata_item_metadata.rb +3 -3
  78. data/lib/fog/vcloud_director/requests/compute/delete_network.rb +4 -4
  79. data/lib/fog/vcloud_director/requests/compute/delete_shadow_vm.rb +2 -2
  80. data/lib/fog/vcloud_director/requests/compute/delete_vapp.rb +5 -5
  81. data/lib/fog/vcloud_director/requests/compute/delete_vapp_metadata_item_metadata.rb +3 -3
  82. data/lib/fog/vcloud_director/requests/compute/delete_vapp_template.rb +2 -2
  83. data/lib/fog/vcloud_director/requests/compute/delete_vapp_template_metadata_item_metadata.rb +3 -3
  84. data/lib/fog/vcloud_director/requests/compute/get_allocated_ip_addresses.rb +2 -2
  85. data/lib/fog/vcloud_director/requests/compute/get_catalog.rb +4 -4
  86. data/lib/fog/vcloud_director/requests/compute/get_catalog_item.rb +3 -3
  87. data/lib/fog/vcloud_director/requests/compute/get_catalog_item_metadata.rb +2 -2
  88. data/lib/fog/vcloud_director/requests/compute/get_catalog_item_metadata_item_metadata.rb +3 -3
  89. data/lib/fog/vcloud_director/requests/compute/get_catalog_metadata.rb +2 -2
  90. data/lib/fog/vcloud_director/requests/compute/get_catalog_metadata_item_metadata.rb +3 -3
  91. data/lib/fog/vcloud_director/requests/compute/get_catalogs_from_query.rb +3 -3
  92. data/lib/fog/vcloud_director/requests/compute/get_control_access_params_catalog.rb +2 -2
  93. data/lib/fog/vcloud_director/requests/compute/get_control_access_params_vapp.rb +2 -2
  94. data/lib/fog/vcloud_director/requests/compute/get_cpu_rasd_item.rb +3 -3
  95. data/lib/fog/vcloud_director/requests/compute/get_current_session.rb +2 -2
  96. data/lib/fog/vcloud_director/requests/compute/get_disk.rb +4 -4
  97. data/lib/fog/vcloud_director/requests/compute/get_disk_metadata.rb +2 -2
  98. data/lib/fog/vcloud_director/requests/compute/get_disk_metadata_item_metadata.rb +3 -3
  99. data/lib/fog/vcloud_director/requests/compute/get_disk_owner.rb +4 -4
  100. data/lib/fog/vcloud_director/requests/compute/get_disks_from_query.rb +3 -3
  101. data/lib/fog/vcloud_director/requests/compute/get_disks_rasd_items_list.rb +3 -3
  102. data/lib/fog/vcloud_director/requests/compute/get_edge_gateway.rb +4 -4
  103. data/lib/fog/vcloud_director/requests/compute/get_entity.rb +2 -2
  104. data/lib/fog/vcloud_director/requests/compute/get_execute_query.rb +2 -2
  105. data/lib/fog/vcloud_director/requests/compute/get_groups_from_query.rb +3 -3
  106. data/lib/fog/vcloud_director/requests/compute/get_guest_customization_system_section_vapp.rb +3 -3
  107. data/lib/fog/vcloud_director/requests/compute/get_guest_customization_system_section_vapp_template.rb +2 -2
  108. data/lib/fog/vcloud_director/requests/compute/get_href.rb +2 -2
  109. data/lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp.rb +4 -4
  110. data/lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp_template.rb +2 -2
  111. data/lib/fog/vcloud_director/requests/compute/get_media.rb +4 -4
  112. data/lib/fog/vcloud_director/requests/compute/get_media_drives_rasd_items_list.rb +3 -3
  113. data/lib/fog/vcloud_director/requests/compute/get_media_metadata.rb +2 -2
  114. data/lib/fog/vcloud_director/requests/compute/get_media_metadata_item_metadata.rb +3 -3
  115. data/lib/fog/vcloud_director/requests/compute/get_media_owner.rb +4 -4
  116. data/lib/fog/vcloud_director/requests/compute/get_medias_from_query.rb +3 -3
  117. data/lib/fog/vcloud_director/requests/compute/get_memory_rasd_item.rb +3 -3
  118. data/lib/fog/vcloud_director/requests/compute/get_metadata.rb +3 -3
  119. data/lib/fog/vcloud_director/requests/compute/get_network.rb +5 -5
  120. data/lib/fog/vcloud_director/requests/compute/get_network_cards_items_list.rb +3 -3
  121. data/lib/fog/vcloud_director/requests/compute/get_network_complete.rb +4 -4
  122. data/lib/fog/vcloud_director/requests/compute/get_network_config_section_vapp.rb +3 -3
  123. data/lib/fog/vcloud_director/requests/compute/get_network_config_section_vapp_template.rb +2 -2
  124. data/lib/fog/vcloud_director/requests/compute/get_network_connection_system_section_vapp.rb +3 -3
  125. data/lib/fog/vcloud_director/requests/compute/get_network_connection_system_section_vapp_template.rb +2 -2
  126. data/lib/fog/vcloud_director/requests/compute/get_network_metadata.rb +2 -2
  127. data/lib/fog/vcloud_director/requests/compute/get_network_metadata_item_metadata.rb +3 -3
  128. data/lib/fog/vcloud_director/requests/compute/get_network_section_vapp.rb +2 -2
  129. data/lib/fog/vcloud_director/requests/compute/get_network_section_vapp_template.rb +2 -2
  130. data/lib/fog/vcloud_director/requests/compute/get_operating_system_section.rb +3 -3
  131. data/lib/fog/vcloud_director/requests/compute/get_org_settings.rb +2 -2
  132. data/lib/fog/vcloud_director/requests/compute/get_org_vdc_gateways.rb +4 -4
  133. data/lib/fog/vcloud_director/requests/compute/get_organization.rb +4 -4
  134. data/lib/fog/vcloud_director/requests/compute/get_organization_metadata.rb +2 -2
  135. data/lib/fog/vcloud_director/requests/compute/get_organization_metadata_item_metadata.rb +3 -3
  136. data/lib/fog/vcloud_director/requests/compute/get_organizations.rb +2 -2
  137. data/lib/fog/vcloud_director/requests/compute/get_organizations_from_query.rb +3 -3
  138. data/lib/fog/vcloud_director/requests/compute/get_product_sections_vapp.rb +2 -2
  139. data/lib/fog/vcloud_director/requests/compute/get_product_sections_vapp_template.rb +2 -2
  140. data/lib/fog/vcloud_director/requests/compute/get_request.rb +2 -2
  141. data/lib/fog/vcloud_director/requests/compute/get_runtime_info_section_type.rb +3 -3
  142. data/lib/fog/vcloud_director/requests/compute/get_serial_ports_items_list.rb +2 -2
  143. data/lib/fog/vcloud_director/requests/compute/get_shadow_vm.rb +2 -2
  144. data/lib/fog/vcloud_director/requests/compute/get_snapshot_section.rb +3 -3
  145. data/lib/fog/vcloud_director/requests/compute/get_startup_section.rb +3 -3
  146. data/lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb +2 -2
  147. data/lib/fog/vcloud_director/requests/compute/get_supported_versions.rb +2 -2
  148. data/lib/fog/vcloud_director/requests/compute/get_task.rb +4 -4
  149. data/lib/fog/vcloud_director/requests/compute/get_task_list.rb +5 -5
  150. data/lib/fog/vcloud_director/requests/compute/get_template_vm.rb +4 -50
  151. data/lib/fog/vcloud_director/requests/compute/get_template_vms.rb +3 -16
  152. data/lib/fog/vcloud_director/requests/compute/get_thumbnail.rb +2 -2
  153. data/lib/fog/vcloud_director/requests/compute/get_users_from_query.rb +3 -3
  154. data/lib/fog/vcloud_director/requests/compute/get_vapp.rb +9 -8
  155. data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata.rb +4 -4
  156. data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata_item_metadata.rb +3 -3
  157. data/lib/fog/vcloud_director/requests/compute/get_vapp_ovf_descriptor.rb +2 -2
  158. data/lib/fog/vcloud_director/requests/compute/get_vapp_owner.rb +4 -4
  159. data/lib/fog/vcloud_director/requests/compute/get_vapp_template.rb +2 -2
  160. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_customization_system_section.rb +2 -2
  161. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata.rb +2 -2
  162. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata_item_metadata.rb +3 -3
  163. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_ovf_descriptor.rb +2 -2
  164. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_owner.rb +2 -2
  165. data/lib/fog/vcloud_director/requests/compute/get_vapp_templates_from_query.rb +3 -3
  166. data/lib/fog/vcloud_director/requests/compute/get_vapps_in_lease_from_query.rb +3 -3
  167. data/lib/fog/vcloud_director/requests/compute/get_vcloud.rb +2 -2
  168. data/lib/fog/vcloud_director/requests/compute/get_vdc.rb +4 -4
  169. data/lib/fog/vcloud_director/requests/compute/get_vdc_metadata.rb +2 -2
  170. data/lib/fog/vcloud_director/requests/compute/get_vdc_metadata_item_metadata.rb +3 -3
  171. data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class.rb +4 -4
  172. data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata.rb +2 -2
  173. data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata_item_metadata.rb +3 -3
  174. data/lib/fog/vcloud_director/requests/compute/get_vdcs_from_query.rb +3 -3
  175. data/lib/fog/vcloud_director/requests/compute/get_virtual_hardware_section.rb +2 -2
  176. data/lib/fog/vcloud_director/requests/compute/get_vm.rb +3 -49
  177. data/lib/fog/vcloud_director/requests/compute/get_vm_capabilities.rb +3 -3
  178. data/lib/fog/vcloud_director/requests/compute/get_vm_compliance_results.rb +2 -2
  179. data/lib/fog/vcloud_director/requests/compute/get_vm_customization.rb +3 -3
  180. data/lib/fog/vcloud_director/requests/compute/get_vm_disks.rb +3 -3
  181. data/lib/fog/vcloud_director/requests/compute/get_vm_network.rb +3 -3
  182. data/lib/fog/vcloud_director/requests/compute/get_vm_pending_question.rb +2 -2
  183. data/lib/fog/vcloud_director/requests/compute/get_vms_by_metadata.rb +3 -3
  184. data/lib/fog/vcloud_director/requests/compute/get_vms_disk_attached_to.rb +3 -3
  185. data/lib/fog/vcloud_director/requests/compute/get_vms_in_lease_from_query.rb +3 -3
  186. data/lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb +6 -6
  187. data/lib/fog/vcloud_director/requests/compute/post_acquire_mks_ticket.rb +3 -3
  188. data/lib/fog/vcloud_director/requests/compute/post_acquire_ticket.rb +3 -3
  189. data/lib/fog/vcloud_director/requests/compute/post_answer_vm_pending_question.rb +2 -2
  190. data/lib/fog/vcloud_director/requests/compute/post_attach_disk.rb +2 -2
  191. data/lib/fog/vcloud_director/requests/compute/post_cancel_task.rb +3 -3
  192. data/lib/fog/vcloud_director/requests/compute/post_capture_vapp.rb +2 -2
  193. data/lib/fog/vcloud_director/requests/compute/post_check_vm_compliance.rb +2 -2
  194. data/lib/fog/vcloud_director/requests/compute/post_clone_media.rb +4 -4
  195. data/lib/fog/vcloud_director/requests/compute/post_clone_vapp.rb +2 -2
  196. data/lib/fog/vcloud_director/requests/compute/post_clone_vapp_template.rb +2 -2
  197. data/lib/fog/vcloud_director/requests/compute/post_compose_vapp.rb +3 -3
  198. data/lib/fog/vcloud_director/requests/compute/post_configure_edge_gateway_services.rb +4 -4
  199. data/lib/fog/vcloud_director/requests/compute/post_consolidate_vm_vapp.rb +2 -2
  200. data/lib/fog/vcloud_director/requests/compute/post_consolidate_vm_vapp_template.rb +2 -2
  201. data/lib/fog/vcloud_director/requests/compute/post_create_catalog_item.rb +5 -5
  202. data/lib/fog/vcloud_director/requests/compute/post_create_org_vdc_network.rb +4 -4
  203. data/lib/fog/vcloud_director/requests/compute/post_create_snapshot.rb +3 -3
  204. data/lib/fog/vcloud_director/requests/compute/post_deploy_vapp.rb +2 -2
  205. data/lib/fog/vcloud_director/requests/compute/post_detach_disk.rb +2 -2
  206. data/lib/fog/vcloud_director/requests/compute/post_disable_nested_hv.rb +2 -2
  207. data/lib/fog/vcloud_director/requests/compute/post_disable_vapp_template_download.rb +2 -2
  208. data/lib/fog/vcloud_director/requests/compute/post_discard_vapp_state.rb +2 -2
  209. data/lib/fog/vcloud_director/requests/compute/post_eject_cd_rom.rb +2 -2
  210. data/lib/fog/vcloud_director/requests/compute/post_enable_nested_hv.rb +2 -2
  211. data/lib/fog/vcloud_director/requests/compute/post_enable_vapp_template_download.rb +2 -2
  212. data/lib/fog/vcloud_director/requests/compute/post_enter_maintenance_mode.rb +2 -2
  213. data/lib/fog/vcloud_director/requests/compute/post_exit_maintenance_mode.rb +2 -2
  214. data/lib/fog/vcloud_director/requests/compute/post_insert_cd_rom.rb +2 -2
  215. data/lib/fog/vcloud_director/requests/compute/post_install_vmware_tools.rb +2 -2
  216. data/lib/fog/vcloud_director/requests/compute/post_instantiate_vapp_template.rb +6 -6
  217. data/lib/fog/vcloud_director/requests/compute/post_login_session.rb +2 -2
  218. data/lib/fog/vcloud_director/requests/compute/post_power_off_vapp.rb +3 -3
  219. data/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb +6 -6
  220. data/lib/fog/vcloud_director/requests/compute/post_reboot_vapp.rb +3 -3
  221. data/lib/fog/vcloud_director/requests/compute/post_recompose_vapp.rb +3 -3
  222. data/lib/fog/vcloud_director/requests/compute/post_reconfigure_vm.rb +6 -86
  223. data/lib/fog/vcloud_director/requests/compute/post_remove_all_snapshots.rb +2 -2
  224. data/lib/fog/vcloud_director/requests/compute/post_reset_vapp.rb +3 -3
  225. data/lib/fog/vcloud_director/requests/compute/post_revert_snapshot.rb +2 -2
  226. data/lib/fog/vcloud_director/requests/compute/post_shutdown_vapp.rb +3 -3
  227. data/lib/fog/vcloud_director/requests/compute/post_suspend_vapp.rb +3 -3
  228. data/lib/fog/vcloud_director/requests/compute/post_undeploy_vapp.rb +3 -3
  229. data/lib/fog/vcloud_director/requests/compute/post_update_catalog_item_metadata.rb +2 -2
  230. data/lib/fog/vcloud_director/requests/compute/post_update_disk_metadata.rb +2 -2
  231. data/lib/fog/vcloud_director/requests/compute/post_update_media_metadata.rb +2 -2
  232. data/lib/fog/vcloud_director/requests/compute/post_update_vapp_metadata.rb +4 -4
  233. data/lib/fog/vcloud_director/requests/compute/post_update_vapp_template_metadata.rb +2 -2
  234. data/lib/fog/vcloud_director/requests/compute/post_upgrade_hw_version.rb +2 -2
  235. data/lib/fog/vcloud_director/requests/compute/post_upload_disk.rb +4 -4
  236. data/lib/fog/vcloud_director/requests/compute/post_upload_media.rb +7 -7
  237. data/lib/fog/vcloud_director/requests/compute/post_upload_vapp_template.rb +2 -2
  238. data/lib/fog/vcloud_director/requests/compute/put_catalog_item_metadata_item_metadata.rb +3 -3
  239. data/lib/fog/vcloud_director/requests/compute/put_cpu.rb +4 -4
  240. data/lib/fog/vcloud_director/requests/compute/put_disk_metadata_item_metadata.rb +3 -3
  241. data/lib/fog/vcloud_director/requests/compute/put_disks.rb +3 -3
  242. data/lib/fog/vcloud_director/requests/compute/put_guest_customization_section_vapp.rb +2 -2
  243. data/lib/fog/vcloud_director/requests/compute/put_media_metadata_item_metadata.rb +3 -3
  244. data/lib/fog/vcloud_director/requests/compute/put_memory.rb +4 -4
  245. data/lib/fog/vcloud_director/requests/compute/put_metadata_value.rb +4 -4
  246. data/lib/fog/vcloud_director/requests/compute/put_network.rb +4 -4
  247. data/lib/fog/vcloud_director/requests/compute/put_network_connection_system_section_vapp.rb +4 -4
  248. data/lib/fog/vcloud_director/requests/compute/put_product_sections.rb +2 -2
  249. data/lib/fog/vcloud_director/requests/compute/put_vapp_metadata_item_metadata.rb +4 -4
  250. data/lib/fog/vcloud_director/requests/compute/put_vapp_name_and_description.rb +3 -3
  251. data/lib/fog/vcloud_director/requests/compute/put_vapp_template_metadata_item_metadata.rb +3 -3
  252. data/lib/fog/vcloud_director/requests/compute/put_vm.rb +5 -5
  253. data/lib/fog/vcloud_director/requests/compute/put_vm_capabilities.rb +2 -2
  254. data/lib/fog/vcloud_director/version.rb +1 -1
  255. data/spec/common_assertions.rb +42 -0
  256. data/spec/fixtures/empty_vm.xml +244 -0
  257. data/spec/fixtures/vm.xml +419 -0
  258. data/spec/secrets.yaml.templ +3 -0
  259. data/spec/spec_helper.rb +6 -6
  260. data/spec/vcloud_director/generators/compute/compose_common_spec.rb +3 -8
  261. data/spec/vcloud_director/generators/compute/compose_vapp_spec.rb +67 -0
  262. data/spec/vcloud_director/generators/compute/create_snapshot_spec.rb +4 -0
  263. data/spec/vcloud_director/generators/compute/customization_spec.rb +4 -0
  264. data/spec/vcloud_director/generators/compute/disks_spec.rb +4 -0
  265. data/spec/vcloud_director/generators/compute/edge_gateway_service_configuration_spec.rb +4 -0
  266. data/spec/vcloud_director/generators/compute/instantiate_vapp_template_params_spec.rb +7 -10
  267. data/spec/vcloud_director/generators/compute/metadata_spec.rb +4 -0
  268. data/spec/vcloud_director/generators/compute/org_vdc_network_spec.rb +4 -0
  269. data/spec/vcloud_director/generators/compute/recompose_vapp_spec.rb +4 -0
  270. data/spec/vcloud_director/generators/compute/reconfigure_vm_spec.rb +390 -0
  271. data/spec/vcloud_director/generators/compute/vapp_spec.rb +4 -0
  272. data/spec/vcloud_director/generators/compute/vm_network_spec.rb +4 -0
  273. data/spec/vcloud_director/generators/compute/vm_spec.rb +4 -0
  274. data/spec/vcloud_director/models/compute/basic_spec.rb +44 -0
  275. data/spec/vcloud_director/models/compute/vapps_spec.rb +104 -0
  276. data/spec/vcloud_director/models/compute/vms_spec.rb +80 -0
  277. data/spec/vcloud_director/parsers/compute/disks_spec.rb +4 -0
  278. data/spec/vcloud_director/parsers/compute/metadata_spec.rb +4 -0
  279. data/spec/vcloud_director/parsers/compute/network_spec.rb +4 -0
  280. data/spec/vcloud_director/parsers/compute/vm_customization_spec.rb +4 -0
  281. data/spec/vcloud_director/parsers/compute/vm_network_spec.rb +4 -0
  282. data/spec/vcloud_director/parsers/compute/vm_parser_helper_spec.rb +4 -0
  283. data/spec/vcloud_director/parsers/compute/vm_spec.rb +4 -0
  284. data/spec/vcloud_director/parsers/compute/vms_by_metadata_spec.rb +4 -0
  285. data/spec/vcloud_director/parsers/compute/vms_spec.rb +4 -0
  286. data/spec/vcloud_director/requests/compute/basic_spec.rb +212 -0
  287. data/spec/vcloud_director/requests/compute/get_vapp_spec.rb +11 -0
  288. data/spec/vcloud_director/requests/compute/get_vdc_spec.rb +10 -0
  289. data/spec/vcloud_director/requests/compute/instantiate_vapp_template_spec.rb +3 -5
  290. data/spec/vcloud_director/requests/compute/post_reconfigure_vm_spec.rb +26 -0
  291. data/spec/vcr_cassettes/authentication.yml +48 -0
  292. data/spec/vcr_cassettes/get_vapp-emptyvm.yml +806 -0
  293. data/spec/vcr_cassettes/get_vapp.yml +937 -0
  294. data/spec/vcr_cassettes/get_vapps-expired.yml +918 -0
  295. data/spec/vcr_cassettes/get_vapps-novms.yml +215 -0
  296. data/spec/vcr_cassettes/get_vapps.yml +118 -0
  297. data/spec/vcr_cassettes/get_vdc.yml +118 -0
  298. data/spec/vcr_cassettes/get_vm.yml +398 -0
  299. data/spec/vcr_cassettes/post_reconfigure_vm-virtual_hardware.yml +445 -0
  300. data/spec/vcr_spec_helper.rb +34 -0
  301. data/tasks/test.rake +3 -10
  302. data/tests/vcloud_director/ensure_list_tests.rb +1 -1
  303. data/tests/vcloud_director/generators/compute/compose_vapp_tests.rb +1 -1
  304. data/tests/vcloud_director/models/compute/helper.rb +1 -1
  305. data/tests/vcloud_director/models/compute/media_tests.rb +1 -1
  306. data/tests/vcloud_director/models/compute/network_tests.rb +1 -1
  307. data/tests/vcloud_director/models/compute/tasks_tests.rb +1 -1
  308. data/tests/vcloud_director/models/compute/vapp_template_tests.rb +1 -1
  309. data/tests/vcloud_director/models/compute/vms_tests.rb +6 -6
  310. data/tests/vcloud_director/requests/compute/admin_tests.rb +1 -1
  311. data/tests/vcloud_director/requests/compute/catalog_tests.rb +2 -2
  312. data/tests/vcloud_director/requests/compute/disk_tests.rb +11 -11
  313. data/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +8 -8
  314. data/tests/vcloud_director/requests/compute/groups_tests.rb +1 -1
  315. data/tests/vcloud_director/requests/compute/media_tests.rb +11 -11
  316. data/tests/vcloud_director/requests/compute/network_tests.rb +6 -6
  317. data/tests/vcloud_director/requests/compute/organization_tests.rb +2 -2
  318. data/tests/vcloud_director/requests/compute/ovf_descriptor_tests.rb +1 -1
  319. data/tests/vcloud_director/requests/compute/query_tests.rb +1 -1
  320. data/tests/vcloud_director/requests/compute/session_tests.rb +1 -1
  321. data/tests/vcloud_director/requests/compute/supported_systems_tests.rb +1 -1
  322. data/tests/vcloud_director/requests/compute/task_tests.rb +4 -4
  323. data/tests/vcloud_director/requests/compute/users_tests.rb +1 -1
  324. data/tests/vcloud_director/requests/compute/vapp_tests.rb +4 -4
  325. data/tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb +2 -2
  326. data/tests/vcloud_director/requests/compute/vdc_tests.rb +2 -2
  327. data/tests/vcloud_director/requests/compute/versions_tests.rb +1 -1
  328. data/tests/vcloud_director/requests/compute/vm_tests.rb +4 -4
  329. metadata +140 -13
  330. data/lib/fog/vcloud_director/requests/compute/get_vms.rb +0 -41
  331. data/spec/vcloud_director/spec_helper.rb +0 -13
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6b6e6b8b211b9b67dc31be86347aef4b88e57c96
4
- data.tar.gz: 422d1ec8b33d9e37818080fb4eae358885450b97
2
+ SHA256:
3
+ metadata.gz: 9888e6807a7cb0efbad560638685c65212ff20f403b147eae5e2bd7625863f37
4
+ data.tar.gz: 7f0db9dfcd7e1fcd5a6ce343e2b850023698e00e82b48b43b101ac5b683a2419
5
5
  SHA512:
6
- metadata.gz: 27146a5bddc128ca25bb9ed817e6875887a8477862379b166fe6d757b5c8f135f41b4e75222f2bf5e106e249fdf5780d111f6ecd2b2cb3fbf1b6f88449e611c7
7
- data.tar.gz: 4724410e5bc7291f23f427a7b06c6a42dc93d42b03a15d87aa09aa9717fb397f879db9f8ce44b06df18ae998a095d0d20edbe0ae7b4b8f85b070ffed53b083f2
6
+ metadata.gz: a7a777391c0fea0bfa77238fb69635b8b16888085f80d64cf365edb45adbfecb4d47a4f79ecd08d7a74b87c8789eb41e66da612eddaf5401cd8949466ca400f3
7
+ data.tar.gz: ef64157783b35b4b0cfec162944d85685784e9dba3c571f989bc38e15d69bdee129c2702ee65f240a4345ebbe15afb47dd9efc39969d85357e5bace079faf274
data/.gitignore CHANGED
@@ -15,3 +15,5 @@ mkmf.log
15
15
  .ruby-version
16
16
  .idea/
17
17
  .DS_Store
18
+ .rubocop-*
19
+ /spec/secrets.yaml
data/.rubocop.yml CHANGED
@@ -1,240 +1,4 @@
1
- # Fog custom enforced styles
2
- Metrics/LineLength:
3
- Enabled: false
4
-
5
- Style/Encoding:
6
- EnforcedStyle: when_needed
7
-
8
- Style/FormatString:
9
- Enabled: false
10
-
11
- Style/HashSyntax:
12
- EnforcedStyle: hash_rockets
13
-
14
- # HoundCI config
15
-
16
- AllCops:
17
- Exclude:
18
- - "vendor/**/*"
19
- - "db/schema.rb"
20
- UseCache: false
21
- Style/CollectionMethods:
22
- Description: Preferred collection methods.
23
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
24
- Enabled: true
25
- PreferredMethods:
26
- collect: map
27
- collect!: map!
28
- find: detect
29
- find_all: select
30
- reduce: inject
31
- Style/DotPosition:
32
- Description: Checks the position of the dot in multi-line method calls.
33
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
34
- Enabled: true
35
- EnforcedStyle: trailing
36
- SupportedStyles:
37
- - leading
38
- - trailing
39
- Style/FileName:
40
- Description: Use snake_case for source file names.
41
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
42
- Enabled: false
43
- Exclude: []
44
- Style/GuardClause:
45
- Description: Check for conditionals that can be replaced with guard clauses
46
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
47
- Enabled: false
48
- MinBodyLength: 1
49
- Style/IfUnlessModifier:
50
- Description: Favor modifier if/unless usage when you have a single-line body.
51
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
52
- Enabled: false
53
- MaxLineLength: 80
54
- Style/OptionHash:
55
- Description: Don't use option hashes when you can use keyword arguments.
56
- Enabled: false
57
- Style/PercentLiteralDelimiters:
58
- Description: Use `%`-literal delimiters consistently
59
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
60
- Enabled: false
61
- PreferredDelimiters:
62
- "%": "()"
63
- "%i": "()"
64
- "%q": "()"
65
- "%Q": "()"
66
- "%r": "{}"
67
- "%s": "()"
68
- "%w": "()"
69
- "%W": "()"
70
- "%x": "()"
71
- Style/PredicateName:
72
- Description: Check the names of predicate methods.
73
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
74
- Enabled: true
75
- NamePrefix:
76
- - is_
77
- - has_
78
- - have_
79
- NamePrefixBlacklist:
80
- - is_
81
- Exclude:
82
- - spec/**/*
83
- Style/RaiseArgs:
84
- Description: Checks the arguments passed to raise/fail.
85
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
86
- Enabled: false
87
- EnforcedStyle: exploded
88
- SupportedStyles:
89
- - compact
90
- - exploded
91
- Style/SignalException:
92
- Description: Checks for proper usage of fail and raise.
93
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
94
- Enabled: false
95
- EnforcedStyle: semantic
96
- SupportedStyles:
97
- - only_raise
98
- - only_fail
99
- - semantic
100
- Style/SingleLineBlockParams:
101
- Description: Enforces the names of some block params.
102
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
103
- Enabled: false
104
- Methods:
105
- - reduce:
106
- - a
107
- - e
108
- - inject:
109
- - a
110
- - e
111
- Style/SingleLineMethods:
112
- Description: Avoid single-line methods.
113
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
114
- Enabled: false
115
- AllowIfMethodIsEmpty: true
116
- Style/StringLiterals:
117
- Description: Checks if uses of quotes match the configured preference.
118
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
119
- Enabled: true
120
- EnforcedStyle: double_quotes
121
- SupportedStyles:
122
- - single_quotes
123
- - double_quotes
124
- Style/StringLiteralsInInterpolation:
125
- Description: Checks if uses of quotes inside expressions in interpolated strings
126
- match the configured preference.
127
- Enabled: true
128
- EnforcedStyle: single_quotes
129
- SupportedStyles:
130
- - single_quotes
131
- - double_quotes
132
- Metrics/AbcSize:
133
- Description: A calculated magnitude based on number of assignments, branches, and
134
- conditions.
135
- Enabled: false
136
- Max: 15
137
- Metrics/ClassLength:
138
- Description: Avoid classes longer than 100 lines of code.
139
- Enabled: false
140
- CountComments: false
141
- Max: 100
142
- Metrics/ModuleLength:
143
- CountComments: false
144
- Max: 100
145
- Description: Avoid modules longer than 100 lines of code.
146
- Enabled: false
147
- Metrics/CyclomaticComplexity:
148
- Description: A complexity metric that is strongly correlated to the number of test
149
- cases needed to validate a method.
150
- Enabled: false
151
- Max: 6
152
- Metrics/MethodLength:
153
- Description: Avoid methods longer than 10 lines of code.
154
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
155
- Enabled: false
156
- CountComments: false
157
- Max: 10
158
- Metrics/ParameterLists:
159
- Description: Avoid parameter lists longer than three or four parameters.
160
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
161
- Enabled: false
162
- Max: 5
163
- CountKeywordArgs: true
164
- Metrics/PerceivedComplexity:
165
- Description: A complexity metric geared towards measuring complexity for a human
166
- reader.
167
- Enabled: false
168
- Max: 7
169
- Lint/AssignmentInCondition:
170
- Description: Don't use assignment in conditions.
171
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
172
- Enabled: false
173
- AllowSafeAssignment: true
174
- Style/InlineComment:
175
- Description: Avoid inline comments.
176
- Enabled: false
177
- Style/AccessorMethodName:
178
- Description: Check the naming of accessor methods for get_/set_.
179
- Enabled: false
180
- Style/Alias:
181
- Description: Use alias_method instead of alias.
182
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
183
- Enabled: false
184
- Style/Documentation:
185
- Description: Document classes and non-namespace modules.
186
- Enabled: false
187
- Style/DoubleNegation:
188
- Description: Checks for uses of double negation (!!).
189
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
190
- Enabled: false
191
- Style/EachWithObject:
192
- Description: Prefer `each_with_object` over `inject` or `reduce`.
193
- Enabled: false
194
- Style/EmptyLiteral:
195
- Description: Prefer literals to Array.new/Hash.new/String.new.
196
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
197
- Enabled: false
198
- Style/ModuleFunction:
199
- Description: Checks for usage of `extend self` in modules.
200
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
201
- Enabled: false
202
- Style/OneLineConditional:
203
- Description: Favor the ternary operator(?:) over if/then/else/end constructs.
204
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
205
- Enabled: false
206
- Style/PerlBackrefs:
207
- Description: Avoid Perl-style regex back references.
208
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
209
- Enabled: false
210
- Style/Send:
211
- Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
212
- may overlap with existing methods.
213
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
214
- Enabled: false
215
- Style/SpecialGlobalVars:
216
- Description: Avoid Perl-style global variables.
217
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
218
- Enabled: false
219
- Style/VariableInterpolation:
220
- Description: Don't interpolate global, instance and class variables directly in
221
- strings.
222
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
223
- Enabled: false
224
- Style/WhenThen:
225
- Description: Use when x then ... for one-line cases.
226
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
227
- Enabled: false
228
- Lint/EachWithObjectArgument:
229
- Description: Check for immutable argument given to each_with_object.
230
- Enabled: true
231
- Lint/HandleExceptions:
232
- Description: Don't suppress exception.
233
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
234
- Enabled: false
235
- Lint/LiteralInCondition:
236
- Description: Checks of literals used in conditions.
237
- Enabled: false
238
- Lint/LiteralInInterpolation:
239
- Description: Checks for literals used in interpolation.
240
- Enabled: false
1
+ inherit_from:
2
+ - https://raw.githubusercontent.com/ManageIQ/guides/master/.rubocop_base.yml
3
+ # put all local rubocop config into .rubocop_local.yml as it will be loaded by .rubocop_cc.yml as well
4
+ - .rubocop_local.yml
@@ -0,0 +1 @@
1
+
data/.travis.yml CHANGED
@@ -1,15 +1,11 @@
1
1
  language: ruby
2
+ script: "bundle exec rake test"
2
3
  sudo: false
4
+ rvm:
5
+ - 2.6.6
6
+ - 2.7.2
7
+ - 3.0.1
3
8
  matrix:
4
9
  fast_finish: true
5
- include:
6
- - rvm: 2.0
7
- - rvm: 2.1
8
- - rvm: 2.2
9
- - rvm: 2.3.0
10
- - rvm: jruby-head
11
- allow_failures:
12
- - rvm: jruby-head
13
-
14
10
  notifications:
15
- email: false
11
+ email: false
data/README.md CHANGED
@@ -59,7 +59,7 @@ Lazy load isn't used with `get` and `get_by_name` methods are used.
59
59
  ## Initialization
60
60
 
61
61
  ```ruby
62
- vcloud = Fog::Compute::VcloudDirector.new(
62
+ vcloud = Fog::VcloudDirector::Compute.new(
63
63
  :vcloud_director_username => "<username>@<org_name>",
64
64
  :vcloud_director_password => "<password>",
65
65
  :vcloud_director_host => 'api.example.com',
@@ -80,9 +80,9 @@ specify `false`. Another option is to reload a specific item:
80
80
  vcloud.organizations
81
81
  ```
82
82
  ```
83
- <Fog::Compute::VcloudDirector::Organizations
83
+ <Fog::VcloudDirector::Compute::Organizations
84
84
  [
85
- <Fog::Compute::VcloudDirector::Organization
85
+ <Fog::VcloudDirector::Compute::Organization
86
86
  id="c6a4c623-c158-41cf-a87a-dbc1637ad55a",
87
87
  name="DevOps",
88
88
  type="application/vnd.vmware.vcloud.org+xml",
@@ -116,8 +116,8 @@ org = vcloud.organizations.first
116
116
  org.vdcs
117
117
  ```
118
118
  ```ruby
119
- <Fog::Compute::VcloudDirector::Vdcs
120
- organization= <Fog::Compute::VcloudDirector::Organization
119
+ <Fog::VcloudDirector::Compute::Vdcs
120
+ organization= <Fog::VcloudDirector::Compute::Organization
121
121
  id="c6a4c623-c158-41cf-a87a-dbc1637ad55a",
122
122
  name="DevOps",
123
123
  type="application/vnd.vmware.vcloud.org+xml",
@@ -125,7 +125,7 @@ org.vdcs
125
125
  description=NonLoaded
126
126
  >
127
127
  [
128
- <Fog::Compute::VcloudDirector::Vdc
128
+ <Fog::VcloudDirector::Compute::Vdc
129
129
  id="9a06a16b-12c6-44dc-aee1-06aa52262ea3",
130
130
  name="DevOps - VDC",
131
131
  type="application/vnd.vmware.vcloud.vdc+xml",
@@ -153,7 +153,7 @@ org = vcloud.organizations.first
153
153
  org.vdcs.get_by_name("DevOps - VDC")
154
154
  ```
155
155
  ```ruby
156
- <Fog::Compute::VcloudDirector::Vdc
156
+ <Fog::VcloudDirector::Compute::Vdc
157
157
  id="9a06a16b-12c6-44dc-aee1-06aa52262ea3",
158
158
  name="DevOps - VDC",
159
159
  type="application/vnd.vmware.vcloud.vdc+xml",
@@ -182,8 +182,8 @@ vdc = org.vdcs.first
182
182
  vdc.vapps
183
183
  ```
184
184
  ```ruby
185
- <Fog::Compute::VcloudDirector::Vapps
186
- vdc= <Fog::Compute::VcloudDirector::Vdc
185
+ <Fog::VcloudDirector::Compute::Vapps
186
+ vdc= <Fog::VcloudDirector::Compute::Vdc
187
187
  id="9a06a16b-12c6-44dc-aee1-06aa52262ea3",
188
188
  name="DevOps - VDC",
189
189
  type="application/vnd.vmware.vcloud.vdc+xml",
@@ -201,7 +201,7 @@ vdc.vapps
201
201
  is_enabled=NonLoaded
202
202
  >
203
203
  [
204
- <Fog::Compute::VcloudDirector::Vapp
204
+ <Fog::VcloudDirector::Compute::Vapp
205
205
  id="vapp-11c7102f-443d-40fd-b1da-cca981fb44b6",
206
206
  name="segundo",
207
207
  type="application/vnd.vmware.vcloud.vApp+xml",
@@ -217,7 +217,7 @@ vdc.vapps
217
217
  owner=NonLoaded,
218
218
  InMaintenanceMode=NonLoaded
219
219
  >,
220
- <Fog::Compute::VcloudDirector::Vapp
220
+ <Fog::VcloudDirector::Compute::Vapp
221
221
  id="vapp-6ac43e0e-13e2-4642-a58a-6dc3a12f585b",
222
222
  name="vApp_restebanez_9",
223
223
  type="application/vnd.vmware.vcloud.vApp+xml",
@@ -245,7 +245,7 @@ vdc = org.vdcs.first
245
245
  vdc.vapps.get_by_name("segundo")
246
246
  ```
247
247
  ```ruby
248
- <Fog::Compute::VcloudDirector::Vapp
248
+ <Fog::VcloudDirector::Compute::Vapp
249
249
  id="vapp-11c7102f-443d-40fd-b1da-cca981fb44b6",
250
250
  name="segundo",
251
251
  type="application/vnd.vmware.vcloud.vApp+xml",
@@ -274,8 +274,8 @@ vapp = vdc.vapps.get_by_name("segundo")
274
274
  vapp.vms
275
275
  ```
276
276
  ```ruby
277
- <Fog::Compute::VcloudDirector::Vms
278
- vapp= <Fog::Compute::VcloudDirector::Vapp
277
+ <Fog::VcloudDirector::Compute::Vms
278
+ vapp= <Fog::VcloudDirector::Compute::Vapp
279
279
  id="vapp-11c7102f-443d-40fd-b1da-cca981fb44b6",
280
280
  name="segundo",
281
281
  type="application/vnd.vmware.vcloud.vApp+xml",
@@ -292,7 +292,7 @@ vapp.vms
292
292
  InMaintenanceMode=false
293
293
  >
294
294
  [
295
- <Fog::Compute::VcloudDirector::Vm
295
+ <Fog::VcloudDirector::Compute::Vm
296
296
  id="vm-2ddeea36-ac71-470f-abc5-c6e3c2aca192",
297
297
  vapp_id="vapp-11c7102f-443d-40fd-b1da-cca981fb44b6",
298
298
  name="DEVWEB",
@@ -318,7 +318,7 @@ vapp = vdc.vapps.get_by_name("segundo")
318
318
  vapp.vms.get_by_name("DEVWEB")
319
319
  ```
320
320
  ```ruby
321
- <Fog::Compute::VcloudDirector::Vm
321
+ <Fog::VcloudDirector::Compute::Vm
322
322
  id="vm-2ddeea36-ac71-470f-abc5-c6e3c2aca192",
323
323
  vapp_id="vapp-11c7102f-443d-40fd-b1da-cca981fb44b6",
324
324
  name="DEVWEB",
@@ -384,7 +384,7 @@ vm = vapp.vms.get_by_name("DEVWEB")
384
384
  vm.customization
385
385
  ```
386
386
  ```ruby
387
- <Fog::Compute::VcloudDirector::VmCustomization
387
+ <Fog::VcloudDirector::Compute::VmCustomization
388
388
  id="vm-2ddeea36-ac71-470f-abc5-c6e3c2aca192",
389
389
  type="application/vnd.vmware.vcloud.guestCustomizationSection+xml",
390
390
  href="https://example.com/api/vApp/vm-2ddeea36-ac71-470f-abc5-c6e3c2aca192/guestCustomizationSection/",
@@ -434,7 +434,7 @@ vm = vapp.vms.get_by_name("DEVWEB")
434
434
  vm.network
435
435
  ```
436
436
  ```ruby
437
- <Fog::Compute::VcloudDirector::VmNetwork
437
+ <Fog::VcloudDirector::Compute::VmNetwork
438
438
  id="vm-2ddeea36-ac71-470f-abc5-c6e3c2aca192",
439
439
  type="application/vnd.vmware.vcloud.networkConnectionSection+xml",
440
440
  href="https://example.com/api/vApp/vm-2ddeea36-ac71-470f-abc5-c6e3c2aca192/networkConnectionSection/",
@@ -479,8 +479,8 @@ vm = vapp.vms.get_by_name("DEVWEB")
479
479
  vm.disks
480
480
  ```
481
481
  ```ruby
482
- <Fog::Compute::VcloudDirector::Disks
483
- vm= <Fog::Compute::VcloudDirector::Vm
482
+ <Fog::VcloudDirector::Compute::Disks
483
+ vm= <Fog::VcloudDirector::Compute::Vm
484
484
  id="vm-2ddeea36-ac71-470f-abc5-c6e3c2aca192",
485
485
  vapp_id="vapp-11c7102f-443d-40fd-b1da-cca981fb44b6",
486
486
  name="DEVWEB",
@@ -494,7 +494,7 @@ vm.disks
494
494
  hard_disks=[{"Hard disk 1"=>163840}]
495
495
  >
496
496
  [
497
- <Fog::Compute::VcloudDirector::Disk
497
+ <Fog::VcloudDirector::Compute::Disk
498
498
  id=2,
499
499
  address=0,
500
500
  description="SCSI Controller",
@@ -507,7 +507,7 @@ vm.disks
507
507
  bus_sub_type=nil,
508
508
  bus_type=nil
509
509
  >,
510
- <Fog::Compute::VcloudDirector::Disk
510
+ <Fog::VcloudDirector::Compute::Disk
511
511
  id=2000,
512
512
  address=nil,
513
513
  description="Hard disk",
@@ -520,7 +520,7 @@ vm.disks
520
520
  bus_sub_type="lsilogicsas",
521
521
  bus_type=6
522
522
  >,
523
- <Fog::Compute::VcloudDirector::Disk
523
+ <Fog::VcloudDirector::Compute::Disk
524
524
  id=3,
525
525
  address=0,
526
526
  description="IDE Controller",
@@ -554,8 +554,8 @@ The new disk should show up.
554
554
 
555
555
  ```ruby
556
556
  >> vm.disks
557
- <Fog::Compute::VcloudDirector::Disks
558
- vm= <Fog::Compute::VcloudDirector::Vm
557
+ <Fog::VcloudDirector::Compute::Disks
558
+ vm= <Fog::VcloudDirector::Compute::Vm
559
559
  id="vm-2ddeea36-ac71-470f-abc5-c6e3c2aca192",
560
560
  vapp_id="vapp-11c7102f-443d-40fd-b1da-cca981fb44b6",
561
561
  name="DEVWEB",
@@ -569,7 +569,7 @@ The new disk should show up.
569
569
  hard_disks=[{"Hard disk 1"=>163840}]
570
570
  >
571
571
  [
572
- <Fog::Compute::VcloudDirector::Disk
572
+ <Fog::VcloudDirector::Compute::Disk
573
573
  id=2,
574
574
  address=0,
575
575
  description="SCSI Controller",
@@ -582,7 +582,7 @@ The new disk should show up.
582
582
  bus_sub_type=nil,
583
583
  bus_type=nil
584
584
  >,
585
- <Fog::Compute::VcloudDirector::Disk
585
+ <Fog::VcloudDirector::Compute::Disk
586
586
  id=2000,
587
587
  address=nil,
588
588
  description="Hard disk",
@@ -595,7 +595,7 @@ The new disk should show up.
595
595
  bus_sub_type="lsilogicsas",
596
596
  bus_type=6
597
597
  >,
598
- <Fog::Compute::VcloudDirector::Disk
598
+ <Fog::VcloudDirector::Compute::Disk
599
599
  id=2001,
600
600
  address=nil,
601
601
  description="Hard disk",
@@ -608,7 +608,7 @@ The new disk should show up.
608
608
  bus_sub_type="lsilogicsas",
609
609
  bus_type=6
610
610
  >,
611
- <Fog::Compute::VcloudDirector::Disk
611
+ <Fog::VcloudDirector::Compute::Disk
612
612
  id=3,
613
613
  address=0,
614
614
  description="IDE Controller",
@@ -665,8 +665,8 @@ vm = vapp.vms.get_by_name("DEVWEB")
665
665
  vm.tags
666
666
  ```
667
667
  ```ruby
668
- <Fog::Compute::VcloudDirector::Tags
669
- vm= <Fog::Compute::VcloudDirector::Vm
668
+ <Fog::VcloudDirector::Compute::Tags
669
+ vm= <Fog::VcloudDirector::Compute::Vm
670
670
  id="vm-2ddeea36-ac71-470f-abc5-c6e3c2aca192",
671
671
  vapp_id="vapp-11c7102f-443d-40fd-b1da-cca981fb44b6",
672
672
  name="DEVWEB",
@@ -680,19 +680,19 @@ vm.tags
680
680
  hard_disks=[{"Hard disk 1"=>163840}]
681
681
  >
682
682
  [
683
- <Fog::Compute::VcloudDirector::Tag
683
+ <Fog::VcloudDirector::Compute::Tag
684
684
  id="environment",
685
685
  value="devlab"
686
686
  >,
687
- <Fog::Compute::VcloudDirector::Tag
687
+ <Fog::VcloudDirector::Compute::Tag
688
688
  id="product",
689
689
  value="devlabtest"
690
690
  >,
691
- <Fog::Compute::VcloudDirector::Tag
691
+ <Fog::VcloudDirector::Compute::Tag
692
692
  id="hello",
693
693
  value="ddd"
694
694
  >,
695
- <Fog::Compute::VcloudDirector::Tag
695
+ <Fog::VcloudDirector::Compute::Tag
696
696
  id="uno",
697
697
  value="jander"
698
698
  >
@@ -723,7 +723,7 @@ vm = vapp.vms.get_by_name("DEVWEB")
723
723
  vm.tags.get_by_name('this_is_a_key')
724
724
  ```
725
725
  ```ruby
726
- <Fog::Compute::VcloudDirector::Tag
726
+ <Fog::VcloudDirector::Compute::Tag
727
727
  id="this_is_a_key",
728
728
  value="this_is_a_value"
729
729
  >
@@ -766,8 +766,8 @@ org = vcloud.organizations.first
766
766
  org.networks
767
767
  ```
768
768
  ```ruby
769
- <Fog::Compute::VcloudDirector::Networks
770
- organization= <Fog::Compute::VcloudDirector::Organization
769
+ <Fog::VcloudDirector::Compute::Networks
770
+ organization= <Fog::VcloudDirector::Compute::Organization
771
771
  id="c6a4c623-c158-41cf-a87a-dbc1637ad55a",
772
772
  name="DevOps",
773
773
  type="application/vnd.vmware.vcloud.org+xml",
@@ -775,7 +775,7 @@ org.networks
775
775
  description=NonLoaded
776
776
  >
777
777
  [
778
- <Fog::Compute::VcloudDirector::Network
778
+ <Fog::VcloudDirector::Compute::Network
779
779
  id="d5f47bbf-de27-4cf5-aaaa-56772f2ccd17",
780
780
  name="DevOps - Dev Network Connection",
781
781
  type="application/vnd.vmware.vcloud.orgNetwork+xml",
@@ -800,7 +800,7 @@ org = vcloud.organizations.first
800
800
  org.networks.get_by_name("DevOps - Dev Network Connection")
801
801
  ```
802
802
  ```ruby
803
- <Fog::Compute::VcloudDirector::Network
803
+ <Fog::VcloudDirector::Compute::Network
804
804
  id="d5f47bbf-de27-4cf5-aaaa-56772f2ccd17",
805
805
  name="DevOps - Dev Network Connection",
806
806
  type="application/vnd.vmware.vcloud.orgNetwork+xml",
@@ -827,8 +827,8 @@ org = vcloud.organizations.first
827
827
  org.catalogs
828
828
  ```
829
829
  ```ruby
830
- <Fog::Compute::VcloudDirector::Catalogs
831
- organization= <Fog::Compute::VcloudDirector::Organization
830
+ <Fog::VcloudDirector::Compute::Catalogs
831
+ organization= <Fog::VcloudDirector::Compute::Organization
832
832
  id="c6a4c623-c158-41cf-a87a-dbc1637ad55a",
833
833
  name="DevOps",
834
834
  type="application/vnd.vmware.vcloud.org+xml",
@@ -836,7 +836,7 @@ org.catalogs
836
836
  description=NonLoaded
837
837
  >
838
838
  [
839
- <Fog::Compute::VcloudDirector::Catalog
839
+ <Fog::VcloudDirector::Compute::Catalog
840
840
  id="4ee720e5-173a-41ac-824b-6f4908bac975",
841
841
  name="Public VM Templates",
842
842
  type="application/vnd.vmware.vcloud.catalog+xml",
@@ -844,7 +844,7 @@ org.catalogs
844
844
  description=NonLoaded,
845
845
  is_published=NonLoaded
846
846
  >,
847
- <Fog::Compute::VcloudDirector::Catalog
847
+ <Fog::VcloudDirector::Compute::Catalog
848
848
  id="ea0c6acf-c9c0-46b7-b19f-4b2d3bf8aa33",
849
849
  name="prueba",
850
850
  type="application/vnd.vmware.vcloud.catalog+xml",
@@ -863,7 +863,7 @@ org = vcloud.organizations.first
863
863
  org.catalogs.get("4ee720e5-173a-41ac-824b-6f4908bac975") # or get_by_name("Public VM Templates")
864
864
  ```
865
865
  ```ruby
866
- <Fog::Compute::VcloudDirector::Catalog
866
+ <Fog::VcloudDirector::Compute::Catalog
867
867
  id="4ee720e5-173a-41ac-824b-6f4908bac975",
868
868
  name="Public VM Templates",
869
869
  type="application/vnd.vmware.vcloud.catalog+xml",
@@ -883,8 +883,8 @@ catalog = org.catalogs.first
883
883
  catalog.catalog_items
884
884
  ```
885
885
  ```ruby
886
- <Fog::Compute::VcloudDirector::CatalogItems
887
- catalog= <Fog::Compute::VcloudDirector::Catalog
886
+ <Fog::VcloudDirector::Compute::CatalogItems
887
+ catalog= <Fog::VcloudDirector::Compute::Catalog
888
888
  id="4ee720e5-173a-41ac-824b-6f4908bac975",
889
889
  name="Public VM Templates",
890
890
  type="application/vnd.vmware.vcloud.catalog+xml",
@@ -893,7 +893,7 @@ catalog.catalog_items
893
893
  is_published=NonLoaded
894
894
  >
895
895
  [
896
- <Fog::Compute::VcloudDirector::CatalogItem
896
+ <Fog::VcloudDirector::Compute::CatalogItem
897
897
  id="2bd55629-2734-420c-9068-2ff06a4a8028",
898
898
  name="DEVWIN",
899
899
  type="application/vnd.vmware.vcloud.catalogItem+xml",
@@ -901,7 +901,7 @@ catalog.catalog_items
901
901
  description=NonLoaded,
902
902
  vapp_template_id=NonLoaded
903
903
  >,
904
- <Fog::Compute::VcloudDirector::CatalogItem
904
+ <Fog::VcloudDirector::Compute::CatalogItem
905
905
  id="5437aa3f-e369-40b2-b985-2e63e1bc9f2e",
906
906
  name="DEVRHL",
907
907
  type="application/vnd.vmware.vcloud.catalogItem+xml",
@@ -909,7 +909,7 @@ catalog.catalog_items
909
909
  description=NonLoaded,
910
910
  vapp_template_id=NonLoaded
911
911
  >,
912
- <Fog::Compute::VcloudDirector::CatalogItem
912
+ <Fog::VcloudDirector::Compute::CatalogItem
913
913
  id="54cf5deb-326f-4770-a91a-39048689b6ea",
914
914
  name="DEVAPP",
915
915
  type="application/vnd.vmware.vcloud.catalogItem+xml",
@@ -929,7 +929,7 @@ catalog = org.catalogs.first
929
929
  catalog.catalog_items.get_by_name('DEVAPP')
930
930
  ```
931
931
  ```ruby
932
- <Fog::Compute::VcloudDirector::CatalogItem
932
+ <Fog::VcloudDirector::Compute::CatalogItem
933
933
  id="54cf5deb-326f-4770-a91a-39048689b6ea",
934
934
  name="DEVAPP",
935
935
  type="application/vnd.vmware.vcloud.catalogItem+xml",
@@ -961,3 +961,6 @@ template.instantiate('webserver', {
961
961
  ```
962
962
 
963
963
  See [here](./docs/examples-vapp-instantiate.md) for real-world example.
964
+
965
+ ### Reconfigure VM Virtual Hardware
966
+ See [here](./docs/examples-vm-reconfigure.md) for real-world example.