fog 1.38.0 → 1.39.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (323) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +13 -3
  3. data/CHANGELOG.md +66 -0
  4. data/Gemfile +1 -1
  5. data/LICENSE.md +1 -1
  6. data/README.md +13 -0
  7. data/fog.gemspec +27 -6
  8. data/gemfiles/Gemfile-1.9 +16 -0
  9. data/gemfiles/Gemfile-2.0 +11 -0
  10. data/gemfiles/Gemfile-edge +1 -1
  11. data/gemfiles/Gemfile-edge-1.9 +20 -0
  12. data/gemfiles/Gemfile-edge-2.0 +16 -0
  13. data/lib/fog.rb +0 -1
  14. data/lib/fog/bin.rb +0 -1
  15. data/lib/fog/cloudsigma/compute.rb +9 -0
  16. data/lib/fog/cloudsigma/models/server.rb +5 -0
  17. data/lib/fog/cloudsigma/models/snapshot.rb +77 -0
  18. data/lib/fog/cloudsigma/models/snapshots.rb +26 -0
  19. data/lib/fog/cloudsigma/models/volume.rb +15 -0
  20. data/lib/fog/cloudsigma/requests/clone_snapshot.rb +31 -0
  21. data/lib/fog/cloudsigma/requests/create_snapshot.rb +27 -0
  22. data/lib/fog/cloudsigma/requests/delete_snapshot.rb +17 -0
  23. data/lib/fog/cloudsigma/requests/get_snapshot.rb +17 -0
  24. data/lib/fog/cloudsigma/requests/list_snapshots.rb +17 -0
  25. data/lib/fog/cloudsigma/requests/stop_server.rb +5 -4
  26. data/lib/fog/cloudsigma/requests/update_snapshot.rb +17 -0
  27. data/lib/fog/cloudstack/core.rb +2 -0
  28. data/lib/fog/joyent/compute.rb +4 -16
  29. data/lib/fog/opennebula/README.md +0 -0
  30. data/lib/fog/opennebula/compute.rb +90 -19
  31. data/lib/fog/opennebula/models/compute/server.rb +9 -1
  32. data/lib/fog/opennebula/requests/compute/image_pool.rb +0 -1
  33. data/lib/fog/opennebula/requests/compute/list_vms.rb +8 -26
  34. data/lib/fog/opennebula/requests/compute/template_pool.rb +8 -29
  35. data/lib/fog/opennebula/requests/compute/vm_allocate.rb +24 -15
  36. data/lib/fog/opennebula/requests/compute/vm_destroy.rb +13 -4
  37. data/lib/fog/opennebula/requests/compute/vm_disk_snapshot.rb +8 -2
  38. data/lib/fog/opennebula/requests/compute/vm_resume.rb +13 -23
  39. data/lib/fog/opennebula/requests/compute/vm_shutdown.rb +1 -1
  40. data/lib/fog/opennebula/requests/compute/vm_stop.rb +3 -10
  41. data/lib/fog/opennebula/requests/compute/vm_suspend.rb +31 -0
  42. data/lib/fog/ovirt/compute.rb +4 -0
  43. data/lib/fog/ovirt/models/compute/instance_type.rb +39 -0
  44. data/lib/fog/ovirt/models/compute/instance_types.rb +20 -0
  45. data/lib/fog/ovirt/models/compute/server.rb +1 -0
  46. data/lib/fog/ovirt/requests/compute/get_instance_type.rb +17 -0
  47. data/lib/fog/ovirt/requests/compute/list_instance_types.rb +19 -0
  48. data/lib/fog/ovirt/requests/compute/mock_files/instance_type.xml +42 -0
  49. data/lib/fog/ovirt/requests/compute/mock_files/instance_types.xml +197 -0
  50. data/lib/fog/rage4/dns.rb +1 -0
  51. data/lib/fog/rage4/requests/dns/bulk_update_records.rb +38 -0
  52. data/lib/fog/vcloud_director/compute.rb +1 -0
  53. data/lib/fog/vcloud_director/generators/compute/compose_common.rb +17 -16
  54. data/lib/fog/vcloud_director/generators/compute/create_snapshot.rb +25 -0
  55. data/lib/fog/vcloud_director/requests/compute/post_create_snapshot.rb +21 -0
  56. data/lib/fog/version.rb +1 -1
  57. data/lib/tasks/changelog_task.rb +4 -4
  58. data/spec/fog/bin/dnsimple_spec.rb +2 -2
  59. data/spec/fog/bin_spec.rb +3 -6
  60. data/tests/cloudsigma/models/snapshot_tests.rb +23 -0
  61. data/tests/cloudsigma/models/snapshots_tests.rb +15 -0
  62. data/tests/cloudsigma/models/volume_tests.rb +3 -3
  63. data/tests/cloudsigma/requests/server_tests.rb +10 -10
  64. data/tests/cloudsigma/requests/snapshots_tests.rb +83 -0
  65. data/tests/cloudsigma/requests/volumes_tests.rb +12 -11
  66. data/tests/compute/helper.rb +0 -19
  67. data/tests/helpers/mock_helper.rb +0 -4
  68. data/tests/opennebula/models/compute/flavor_tests.rb +2 -2
  69. data/tests/opennebula/models/compute/network_tests.rb +1 -2
  70. data/tests/opennebula/requests/compute/vm_allocate_tests.rb +20 -3
  71. data/tests/opennebula/requests/compute/vm_suspend_resume_tests.rb +52 -0
  72. data/tests/rage4/requests/dns/dns_tests.rb +12 -0
  73. data/tests/storage/helper.rb +0 -6
  74. metadata +101 -389
  75. data/lib/fog/bin/digitalocean.rb +0 -29
  76. data/lib/fog/bin/dnsimple.rb +0 -29
  77. data/lib/fog/bin/ninefold.rb +0 -34
  78. data/lib/fog/digitalocean.rb +0 -1
  79. data/lib/fog/digitalocean/CHANGELOG.md +0 -6
  80. data/lib/fog/digitalocean/compute_v2.rb +0 -109
  81. data/lib/fog/digitalocean/core.rb +0 -9
  82. data/lib/fog/digitalocean/examples/getting_started.md +0 -124
  83. data/lib/fog/digitalocean/models/compute_v2/flavor.rb +0 -17
  84. data/lib/fog/digitalocean/models/compute_v2/flavors.rb +0 -21
  85. data/lib/fog/digitalocean/models/compute_v2/image.rb +0 -25
  86. data/lib/fog/digitalocean/models/compute_v2/images.rb +0 -42
  87. data/lib/fog/digitalocean/models/compute_v2/region.rb +0 -13
  88. data/lib/fog/digitalocean/models/compute_v2/regions.rb +0 -21
  89. data/lib/fog/digitalocean/models/compute_v2/server.rb +0 -170
  90. data/lib/fog/digitalocean/models/compute_v2/servers.rb +0 -43
  91. data/lib/fog/digitalocean/models/compute_v2/ssh_key.rb +0 -31
  92. data/lib/fog/digitalocean/models/compute_v2/ssh_keys.rb +0 -40
  93. data/lib/fog/digitalocean/models/paging_collection.rb +0 -41
  94. data/lib/fog/digitalocean/requests/compute_v2/change_kernel.rb +0 -44
  95. data/lib/fog/digitalocean/requests/compute_v2/convert_to_snapshot.rb +0 -44
  96. data/lib/fog/digitalocean/requests/compute_v2/create_server.rb +0 -93
  97. data/lib/fog/digitalocean/requests/compute_v2/create_ssh_key.rb +0 -49
  98. data/lib/fog/digitalocean/requests/compute_v2/delete_ssh_key.rb +0 -32
  99. data/lib/fog/digitalocean/requests/compute_v2/destroy_server.rb +0 -35
  100. data/lib/fog/digitalocean/requests/compute_v2/disable_backups.rb +0 -45
  101. data/lib/fog/digitalocean/requests/compute_v2/enable_ipv6.rb +0 -44
  102. data/lib/fog/digitalocean/requests/compute_v2/enable_private_networking.rb +0 -44
  103. data/lib/fog/digitalocean/requests/compute_v2/get_droplet_action.rb +0 -36
  104. data/lib/fog/digitalocean/requests/compute_v2/get_image_details.rb +0 -42
  105. data/lib/fog/digitalocean/requests/compute_v2/get_server_details.rb +0 -84
  106. data/lib/fog/digitalocean/requests/compute_v2/get_ssh_key.rb +0 -34
  107. data/lib/fog/digitalocean/requests/compute_v2/list_droplet_actions.rb +0 -38
  108. data/lib/fog/digitalocean/requests/compute_v2/list_flavors.rb +0 -131
  109. data/lib/fog/digitalocean/requests/compute_v2/list_images.rb +0 -50
  110. data/lib/fog/digitalocean/requests/compute_v2/list_regions.rb +0 -94
  111. data/lib/fog/digitalocean/requests/compute_v2/list_servers.rb +0 -28
  112. data/lib/fog/digitalocean/requests/compute_v2/list_ssh_keys.rb +0 -31
  113. data/lib/fog/digitalocean/requests/compute_v2/password_reset.rb +0 -44
  114. data/lib/fog/digitalocean/requests/compute_v2/power_cycle.rb +0 -44
  115. data/lib/fog/digitalocean/requests/compute_v2/power_off.rb +0 -44
  116. data/lib/fog/digitalocean/requests/compute_v2/power_on.rb +0 -44
  117. data/lib/fog/digitalocean/requests/compute_v2/reboot_server.rb +0 -44
  118. data/lib/fog/digitalocean/requests/compute_v2/rebuild.rb +0 -44
  119. data/lib/fog/digitalocean/requests/compute_v2/rename.rb +0 -44
  120. data/lib/fog/digitalocean/requests/compute_v2/resize.rb +0 -48
  121. data/lib/fog/digitalocean/requests/compute_v2/restore.rb +0 -44
  122. data/lib/fog/digitalocean/requests/compute_v2/shutdown.rb +0 -44
  123. data/lib/fog/digitalocean/requests/compute_v2/snapshot.rb +0 -44
  124. data/lib/fog/digitalocean/requests/compute_v2/transfer_image.rb +0 -44
  125. data/lib/fog/digitalocean/requests/compute_v2/update_ssh_key.rb +0 -46
  126. data/lib/fog/digitalocean/requests/compute_v2/upgrade.rb +0 -44
  127. data/lib/fog/digitalocean/service.rb +0 -51
  128. data/lib/fog/dnsimple.rb +0 -1
  129. data/lib/fog/dnsimple/core.rb +0 -10
  130. data/lib/fog/dnsimple/dns.rb +0 -112
  131. data/lib/fog/dnsimple/models/dns/record.rb +0 -63
  132. data/lib/fog/dnsimple/models/dns/records.rb +0 -34
  133. data/lib/fog/dnsimple/models/dns/zone.rb +0 -46
  134. data/lib/fog/dnsimple/models/dns/zones.rb +0 -25
  135. data/lib/fog/dnsimple/requests/dns/create_domain.rb +0 -62
  136. data/lib/fog/dnsimple/requests/dns/create_record.rb +0 -67
  137. data/lib/fog/dnsimple/requests/dns/delete_domain.rb +0 -35
  138. data/lib/fog/dnsimple/requests/dns/delete_record.rb +0 -30
  139. data/lib/fog/dnsimple/requests/dns/get_domain.rb +0 -39
  140. data/lib/fog/dnsimple/requests/dns/get_record.rb +0 -49
  141. data/lib/fog/dnsimple/requests/dns/list_domains.rb +0 -34
  142. data/lib/fog/dnsimple/requests/dns/list_records.rb +0 -34
  143. data/lib/fog/dnsimple/requests/dns/update_record.rb +0 -53
  144. data/lib/fog/ninefold.rb +0 -1
  145. data/lib/fog/ninefold/compute.rb +0 -144
  146. data/lib/fog/ninefold/core.rb +0 -11
  147. data/lib/fog/ninefold/models/compute/address.rb +0 -100
  148. data/lib/fog/ninefold/models/compute/addresses.rb +0 -27
  149. data/lib/fog/ninefold/models/compute/flavor.rb +0 -24
  150. data/lib/fog/ninefold/models/compute/flavors.rb +0 -26
  151. data/lib/fog/ninefold/models/compute/image.rb +0 -38
  152. data/lib/fog/ninefold/models/compute/images.rb +0 -26
  153. data/lib/fog/ninefold/models/compute/ip_forwarding_rule.rb +0 -76
  154. data/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb +0 -27
  155. data/lib/fog/ninefold/models/compute/server.rb +0 -182
  156. data/lib/fog/ninefold/models/compute/servers.rb +0 -27
  157. data/lib/fog/ninefold/requests/compute/assign_to_load_balancer_rule.rb +0 -11
  158. data/lib/fog/ninefold/requests/compute/associate_ip_address.rb +0 -12
  159. data/lib/fog/ninefold/requests/compute/change_service_for_virtual_machine.rb +0 -12
  160. data/lib/fog/ninefold/requests/compute/create_ip_forwarding_rule.rb +0 -12
  161. data/lib/fog/ninefold/requests/compute/create_load_balancer_rule.rb +0 -11
  162. data/lib/fog/ninefold/requests/compute/delete_ip_forwarding_rule.rb +0 -12
  163. data/lib/fog/ninefold/requests/compute/delete_load_balancer_rule.rb +0 -11
  164. data/lib/fog/ninefold/requests/compute/deploy_virtual_machine.rb +0 -12
  165. data/lib/fog/ninefold/requests/compute/destroy_virtual_machine.rb +0 -12
  166. data/lib/fog/ninefold/requests/compute/disable_static_nat.rb +0 -12
  167. data/lib/fog/ninefold/requests/compute/disassociate_ip_address.rb +0 -12
  168. data/lib/fog/ninefold/requests/compute/enable_static_nat.rb +0 -12
  169. data/lib/fog/ninefold/requests/compute/list_accounts.rb +0 -12
  170. data/lib/fog/ninefold/requests/compute/list_async_jobs.rb +0 -12
  171. data/lib/fog/ninefold/requests/compute/list_capabilities.rb +0 -12
  172. data/lib/fog/ninefold/requests/compute/list_disk_offerings.rb +0 -12
  173. data/lib/fog/ninefold/requests/compute/list_events.rb +0 -12
  174. data/lib/fog/ninefold/requests/compute/list_hypervisors.rb +0 -12
  175. data/lib/fog/ninefold/requests/compute/list_ip_forwarding_rules.rb +0 -12
  176. data/lib/fog/ninefold/requests/compute/list_load_balancer_rule_instances.rb +0 -11
  177. data/lib/fog/ninefold/requests/compute/list_load_balancer_rules.rb +0 -11
  178. data/lib/fog/ninefold/requests/compute/list_network_offerings.rb +0 -12
  179. data/lib/fog/ninefold/requests/compute/list_networks.rb +0 -12
  180. data/lib/fog/ninefold/requests/compute/list_public_ip_addresses.rb +0 -12
  181. data/lib/fog/ninefold/requests/compute/list_resource_limits.rb +0 -12
  182. data/lib/fog/ninefold/requests/compute/list_service_offerings.rb +0 -12
  183. data/lib/fog/ninefold/requests/compute/list_templates.rb +0 -12
  184. data/lib/fog/ninefold/requests/compute/list_virtual_machines.rb +0 -12
  185. data/lib/fog/ninefold/requests/compute/list_zones.rb +0 -12
  186. data/lib/fog/ninefold/requests/compute/query_async_job_result.rb +0 -12
  187. data/lib/fog/ninefold/requests/compute/reboot_virtual_machine.rb +0 -12
  188. data/lib/fog/ninefold/requests/compute/remove_from_load_balancer_rule.rb +0 -11
  189. data/lib/fog/ninefold/requests/compute/reset_password_for_virtual_machine.rb +0 -12
  190. data/lib/fog/ninefold/requests/compute/start_virtual_machine.rb +0 -12
  191. data/lib/fog/ninefold/requests/compute/stop_virtual_machine.rb +0 -12
  192. data/lib/fog/ninefold/requests/compute/update_load_balancer_rule.rb +0 -11
  193. data/lib/fog/ninefold/requests/compute/update_virtual_machine.rb +0 -12
  194. data/lib/fog/ninefold/storage.rb +0 -53
  195. data/spec/fog/bin/digitalocean_spec.rb +0 -9
  196. data/spec/fog/bin/ninefold_spec.rb +0 -10
  197. data/tests/digitalocean/helper.rb +0 -56
  198. data/tests/digitalocean/requests/compute_v2/list_flavors_tests.rb +0 -25
  199. data/tests/digitalocean/requests/compute_v2/list_images_tests.rb +0 -25
  200. data/tests/digitalocean/requests/compute_v2/list_regions_tests.rb +0 -21
  201. data/tests/digitalocean/requests/compute_v2/server_tests.rb +0 -77
  202. data/tests/dnsimple/requests/dns/dns_tests.rb +0 -122
  203. data/tests/hp/block_storage_tests.rb +0 -47
  204. data/tests/hp/cdn_tests.rb +0 -23
  205. data/tests/hp/compute_tests.rb +0 -22
  206. data/tests/hp/models/block_storage/bootable_volume_tests.rb +0 -23
  207. data/tests/hp/models/block_storage/snapshot_tests.rb +0 -23
  208. data/tests/hp/models/block_storage/volume_tests.rb +0 -21
  209. data/tests/hp/models/block_storage_v2/snapshot_tests.rb +0 -22
  210. data/tests/hp/models/block_storage_v2/snapshots_tests.rb +0 -10
  211. data/tests/hp/models/block_storage_v2/volume_backup_tests.rb +0 -22
  212. data/tests/hp/models/block_storage_v2/volume_backups_tests.rb +0 -9
  213. data/tests/hp/models/block_storage_v2/volume_tests.rb +0 -22
  214. data/tests/hp/models/block_storage_v2/volumes_tests.rb +0 -5
  215. data/tests/hp/models/compute/address_tests.rb +0 -18
  216. data/tests/hp/models/compute/addresses_tests.rb +0 -5
  217. data/tests/hp/models/compute/key_pair_tests.rb +0 -26
  218. data/tests/hp/models/compute/key_pairs_tests.rb +0 -5
  219. data/tests/hp/models/compute/metadata_image_tests.rb +0 -60
  220. data/tests/hp/models/compute/metadata_server_tests.rb +0 -54
  221. data/tests/hp/models/compute/security_group_tests.rb +0 -38
  222. data/tests/hp/models/compute/security_groups_tests.rb +0 -5
  223. data/tests/hp/models/compute_v2/address_tests.rb +0 -23
  224. data/tests/hp/models/compute_v2/addresses_tests.rb +0 -7
  225. data/tests/hp/models/compute_v2/availability_zone_tests.rb +0 -11
  226. data/tests/hp/models/compute_v2/availability_zones_tests.rb +0 -13
  227. data/tests/hp/models/compute_v2/key_pair_tests.rb +0 -28
  228. data/tests/hp/models/compute_v2/key_pairs_tests.rb +0 -7
  229. data/tests/hp/models/compute_v2/metadata_image_tests.rb +0 -60
  230. data/tests/hp/models/compute_v2/metadata_server_tests.rb +0 -56
  231. data/tests/hp/models/compute_v2/server_tests.rb +0 -45
  232. data/tests/hp/models/compute_v2/servers_tests.rb +0 -9
  233. data/tests/hp/models/compute_v2/volume_attachment_tests.rb +0 -40
  234. data/tests/hp/models/compute_v2/volume_attachments_tests.rb +0 -17
  235. data/tests/hp/models/dns/domain_tests.rb +0 -25
  236. data/tests/hp/models/dns/domains_tests.rb +0 -14
  237. data/tests/hp/models/dns/record_tests.rb +0 -29
  238. data/tests/hp/models/dns/records_tests.rb +0 -9
  239. data/tests/hp/models/lb/algorithms_tests.rb +0 -15
  240. data/tests/hp/models/lb/load_balancer_node_tests.rb +0 -9
  241. data/tests/hp/models/lb/load_balancer_nodes_tests.rb +0 -27
  242. data/tests/hp/models/lb/load_balancer_tests.rb +0 -6
  243. data/tests/hp/models/lb/load_balancer_virtual_ips_tests.rb +0 -22
  244. data/tests/hp/models/lb/load_balancers_tests.rb +0 -22
  245. data/tests/hp/models/lb/protocols_tests.rb +0 -15
  246. data/tests/hp/models/network/floating_ip_tests.rb +0 -37
  247. data/tests/hp/models/network/floating_ips_tests.rb +0 -8
  248. data/tests/hp/models/network/network_tests.rb +0 -25
  249. data/tests/hp/models/network/networks_tests.rb +0 -15
  250. data/tests/hp/models/network/port_tests.rb +0 -30
  251. data/tests/hp/models/network/ports_tests.rb +0 -21
  252. data/tests/hp/models/network/router_tests.rb +0 -55
  253. data/tests/hp/models/network/routers_tests.rb +0 -19
  254. data/tests/hp/models/network/security_group_rule_tests.rb +0 -25
  255. data/tests/hp/models/network/security_group_rules_tests.rb +0 -23
  256. data/tests/hp/models/network/security_group_tests.rb +0 -20
  257. data/tests/hp/models/network/security_groups_tests.rb +0 -20
  258. data/tests/hp/models/network/subnet_tests.rb +0 -30
  259. data/tests/hp/models/network/subnets_tests.rb +0 -22
  260. data/tests/hp/models/storage/directories_tests.rb +0 -23
  261. data/tests/hp/models/storage/directory_tests.rb +0 -131
  262. data/tests/hp/models/storage/file_tests.rb +0 -44
  263. data/tests/hp/models/storage/files_tests.rb +0 -38
  264. data/tests/hp/requests/block_storage/bootable_volume_tests.rb +0 -78
  265. data/tests/hp/requests/block_storage/snapshot_tests.rb +0 -56
  266. data/tests/hp/requests/block_storage/volume_tests.rb +0 -94
  267. data/tests/hp/requests/block_storage_v2/snapshot_tests.rb +0 -69
  268. data/tests/hp/requests/block_storage_v2/volume_backup_tests.rb +0 -117
  269. data/tests/hp/requests/block_storage_v2/volume_tests.rb +0 -106
  270. data/tests/hp/requests/cdn/container_tests.rb +0 -56
  271. data/tests/hp/requests/compute/address_tests.rb +0 -72
  272. data/tests/hp/requests/compute/flavor_tests.rb +0 -45
  273. data/tests/hp/requests/compute/image_tests.rb +0 -79
  274. data/tests/hp/requests/compute/key_pair_tests.rb +0 -65
  275. data/tests/hp/requests/compute/metadata_tests.rb +0 -70
  276. data/tests/hp/requests/compute/persistent_server_tests.rb +0 -66
  277. data/tests/hp/requests/compute/security_group_rule_tests.rb +0 -54
  278. data/tests/hp/requests/compute/security_group_tests.rb +0 -63
  279. data/tests/hp/requests/compute/server_address_tests.rb +0 -45
  280. data/tests/hp/requests/compute/server_tests.rb +0 -126
  281. data/tests/hp/requests/compute/server_volume_tests.rb +0 -75
  282. data/tests/hp/requests/compute_v2/address_tests.rb +0 -80
  283. data/tests/hp/requests/compute_v2/availability_zone_tests.rb +0 -19
  284. data/tests/hp/requests/compute_v2/flavor_tests.rb +0 -45
  285. data/tests/hp/requests/compute_v2/image_tests.rb +0 -86
  286. data/tests/hp/requests/compute_v2/key_pair_tests.rb +0 -66
  287. data/tests/hp/requests/compute_v2/metadata_tests.rb +0 -101
  288. data/tests/hp/requests/compute_v2/persistent_server_tests.rb +0 -67
  289. data/tests/hp/requests/compute_v2/server_address_tests.rb +0 -46
  290. data/tests/hp/requests/compute_v2/server_security_group_tests.rb +0 -42
  291. data/tests/hp/requests/compute_v2/server_tests.rb +0 -113
  292. data/tests/hp/requests/compute_v2/server_volume_tests.rb +0 -84
  293. data/tests/hp/requests/dns/domain_tests.rb +0 -72
  294. data/tests/hp/requests/dns/records_tests.rb +0 -64
  295. data/tests/hp/requests/lb/algorithms_tests.rb +0 -14
  296. data/tests/hp/requests/lb/limits_tests.rb +0 -16
  297. data/tests/hp/requests/lb/load_balancer_nodes_tests.rb +0 -46
  298. data/tests/hp/requests/lb/load_balancer_tests.rb +0 -56
  299. data/tests/hp/requests/lb/protocols_tests.rb +0 -14
  300. data/tests/hp/requests/lb/versions_tests.rb +0 -16
  301. data/tests/hp/requests/lb/virtual_ips_tests.rb +0 -34
  302. data/tests/hp/requests/network/floating_ip_tests.rb +0 -70
  303. data/tests/hp/requests/network/network_tests.rb +0 -57
  304. data/tests/hp/requests/network/port_tests.rb +0 -71
  305. data/tests/hp/requests/network/router_tests.rb +0 -108
  306. data/tests/hp/requests/network/security_group_rule_tests.rb +0 -58
  307. data/tests/hp/requests/network/security_group_tests.rb +0 -48
  308. data/tests/hp/requests/network/subnet_tests.rb +0 -71
  309. data/tests/hp/requests/storage/container_tests.rb +0 -86
  310. data/tests/hp/requests/storage/object_tests.rb +0 -121
  311. data/tests/hp/storage_tests.rb +0 -28
  312. data/tests/hp/user_agent_tests.rb +0 -13
  313. data/tests/ninefold/models/storage/file_update_tests.rb +0 -19
  314. data/tests/ninefold/models/storage/nested_directories_tests.rb +0 -23
  315. data/tests/ninefold/requests/compute/address_tests.rb +0 -42
  316. data/tests/ninefold/requests/compute/async_job_tests.rb +0 -33
  317. data/tests/ninefold/requests/compute/helper.rb +0 -369
  318. data/tests/ninefold/requests/compute/list_tests.rb +0 -56
  319. data/tests/ninefold/requests/compute/load_balancer_tests.rb +0 -66
  320. data/tests/ninefold/requests/compute/nat_tests.rb +0 -91
  321. data/tests/ninefold/requests/compute/network_tests.rb +0 -21
  322. data/tests/ninefold/requests/compute/template_tests.rb +0 -21
  323. data/tests/ninefold/requests/compute/virtual_machine_tests.rb +0 -68
@@ -1,121 +0,0 @@
1
- Shindo.tests("Fog::Storage[:hp] | object requests", ['hp', 'storage']) do
2
-
3
- @directory = Fog::Storage[:hp].directories.create(:key => 'fogobjecttests')
4
- @dir_name = @directory.identity
5
-
6
- tests('success') do
7
-
8
- tests("#put_object('#{@dir_name}', 'fog_object')").succeeds do
9
- Fog::Storage[:hp].put_object(@dir_name, 'fog_object', lorem_file)
10
- end
11
-
12
- tests("#post_object('#{@dir_name}', 'fog_object', {'X-Object-Meta-Foo' => 'foometa'})").succeeds do
13
- Fog::Storage[:hp].post_object(@dir_name, 'fog_object', {'X-Object-Meta-Foo' => 'foometa'})
14
- end
15
-
16
- tests("#get_object('#{@dir_name}', 'fog_object')").succeeds do
17
- Fog::Storage[:hp].get_object(@dir_name, 'fog_object')
18
- end
19
-
20
- tests("#get_object('#{@dir_name}', 'fog_object', &block)").returns(lorem_file.read) do
21
- data = ''
22
- Fog::Storage[:hp].get_object(@dir_name, 'fog_object') do |chunk, remaining_bytes, total_bytes|
23
- data << chunk
24
- end
25
- data
26
- end
27
-
28
- tests("#head_object('#{@dir_name}', 'fog_object')").succeeds do
29
- Fog::Storage[:hp].head_object(@dir_name, 'fog_object')
30
- end
31
-
32
- tests("#get_object_temp_url('#{@dir_name}', 'fog_object', 60, 'GET')").succeeds do
33
- Fog::Storage[:hp].get_object_temp_url(@dir_name, 'fog_object', 60, 'GET')
34
- end
35
-
36
- # copy a file within the same container
37
- tests("#put_object('#{@dir_name}', 'fog_other_object', nil, {'X-Copy-From' => '/#{@dir_name}/fog_object'})" ).succeeds do
38
- Fog::Storage[:hp].put_object(@dir_name, 'fog_other_object', nil, {'X-Copy-From' => "/#{@dir_name}/fog_object"})
39
- end
40
- @directory.files.get('fog_other_object').destroy
41
-
42
- # copy a file from one container to another
43
- @another_dir = Fog::Storage[:hp].directories.create(:key => 'fogobjecttests2')
44
- tests("#put_object('#{@another_dir.identity}', 'fog_another_object', nil, {'X-Copy-From' => '/#{@dir_name}/fog_object'})" ).succeeds do
45
- Fog::Storage[:hp].put_object(@another_dir.identity, 'fog_another_object', nil, {'X-Copy-From' => "/#{@dir_name}/fog_object"})
46
- end
47
- @another_dir.files.get('fog_another_object').destroy
48
- @another_dir.destroy
49
-
50
- tests("#post_object('#{@dir_name}', 'fog_delete_object', {'X-Delete-After' => 40})" ).succeeds do
51
- Fog::Storage[:hp].put_object(@dir_name, 'fog_delete_object', lorem_file)
52
- Fog::Storage[:hp].post_object(@dir_name, 'fog_delete_object', {'X-Delete-After' => 40})
53
- end
54
-
55
- tests("#delete_object('#{@dir_name}', 'fog_object')").succeeds do
56
- Fog::Storage[:hp].delete_object(@dir_name, 'fog_object')
57
- Fog::Storage[:hp].delete_object(@dir_name, 'fog_delete_object')
58
- end
59
-
60
- tests("#get_object_http_url('#{@directory.identity}', 'fog_object', expiration timestamp)").returns(true) do
61
- object_url = Fog::Storage[:hp].get_object_http_url(@dir_name, 'fog_object', (Time.now + 60))
62
- object_url.include? "fog_object"
63
- object_url.include? "&temp_url_expires="
64
- object_url.include? "temp_url_sig="
65
- object_url.include? @dir_name
66
- object_url.start_with? "http://"
67
- end
68
-
69
- tests("#get_object_https_url('#{@directory.identity}', 'fog_object', expiration timestamp)").returns(true) do
70
- object_url = Fog::Storage[:hp].get_object_https_url(@dir_name, 'fog_object', (Time.now + 60))
71
- object_url.include? "fog_object"
72
- object_url.include? "&temp_url_expires="
73
- object_url.include? "temp_url_sig="
74
- object_url.include? @dir_name
75
- object_url.start_with? "https://"
76
- end
77
- end
78
-
79
- tests('failure') do
80
-
81
- tests("#put_object('fognoncontainer', 'fog_object')").raises(Fog::Storage::HP::NotFound) do
82
- Fog::Storage[:hp].put_object('fognoncontainer', 'fog_object', lorem_file)
83
- end
84
-
85
- tests("#post_object('fognoncontainer', 'fog_object')").raises(Fog::Storage::HP::NotFound) do
86
- Fog::Storage[:hp].post_object('fognoncontainer', 'fog_object')
87
- end
88
-
89
- tests("#get_object('#{@dir_name}', 'fog_non_object')").raises(Fog::Storage::HP::NotFound) do
90
- Fog::Storage[:hp].get_object(@dir_name, 'fog_non_object')
91
- end
92
-
93
- tests("#get_object('fognoncontainer', 'fog_non_object')").raises(Fog::Storage::HP::NotFound) do
94
- Fog::Storage[:hp].get_object('fognoncontainer', 'fog_non_object')
95
- end
96
-
97
- tests("#get_object_temp_url('#{@dir_name}', 'fog_object', 60, 'POST')").raises(ArgumentError) do
98
- Fog::Storage[:hp].get_object_temp_url(@dir_name, 'fog_object', 60, 'POST')
99
- end
100
-
101
- tests("#head_object('#{@dir_name}', 'fog_non_object')").raises(Fog::Storage::HP::NotFound) do
102
- Fog::Storage[:hp].head_object(@dir_name, 'fog_non_object')
103
- end
104
-
105
- tests("#head_object('fognoncontainer', 'fog_non_object')").raises(Fog::Storage::HP::NotFound) do
106
- Fog::Storage[:hp].head_object('fognoncontainer', 'fog_non_object')
107
- end
108
-
109
- tests("#delete_object('#{@dir_name}', 'fog_non_object')").raises(Fog::Storage::HP::NotFound) do
110
- Fog::Storage[:hp].delete_object(@dir_name, 'fog_non_object')
111
- end
112
-
113
- tests("#delete_object('fognoncontainer', 'fog_non_object')").raises(Fog::Storage::HP::NotFound) do
114
- Fog::Storage[:hp].delete_object('fognoncontainer', 'fog_non_object')
115
- end
116
-
117
- end
118
-
119
- @directory.destroy
120
-
121
- end
@@ -1,28 +0,0 @@
1
- unless ENV["FOG_MOCK"] == "true"
2
- Shindo.tests('Fog::Storage::HP', ['hp', 'storage']) do
3
- credentials = {
4
- :auth_token => 'auth_token',
5
- :endpoint_url => 'http://127.0.0.1/path/',
6
- :cdn_endpoint_url => 'http://127.0.0.1/cdnpath/',
7
- :service_catalog => {
8
- :"Object Storage" => {
9
- :zone => 'http://127.0.0.1/path/'},
10
- :"CDN" => {
11
- :zone => 'http://127.0.0.1/cdnpath/'}},
12
- :expires => (DateTime.now + 1).to_s
13
- }
14
- options = {
15
- :hp_access_key => 'key',
16
- :hp_secret_key => 'secret',
17
- :hp_tenant_id => 'tenant',
18
- :hp_avl_zone => 'zone',
19
- :hp_auth_uri => 'https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0/tokens',
20
- :credentials => credentials
21
- }
22
- tests('Test cached Storage credentials').returns(credentials) do
23
-
24
- conn = Fog::Storage::HP::Real.new(options)
25
- conn.credentials
26
- end
27
- end
28
- end
@@ -1,13 +0,0 @@
1
- Shindo.tests('Fog::Compute[:hp] | user agent', ['hp', 'user_agent']) do
2
- tests('default for HP providers').returns("hpfog/#{Fog::HP::VERSION}") do
3
- pending if Fog.mocking?
4
- conn = Fog::Compute[:hp]
5
- conn.instance_variable_get(:@connection_options)[:headers]['User-Agent']
6
- end
7
-
8
- tests('overriden by clients').returns("hpfog/#{Fog::HP::VERSION} (TesterClient/1.0.0)") do
9
- pending if Fog.mocking?
10
- conn = Fog::Compute::HP.new(:user_agent => "TesterClient/1.0.0")
11
- conn.instance_variable_get(:@connection_options)[:headers]['User-Agent']
12
- end
13
- end
@@ -1,19 +0,0 @@
1
- Shindo.tests("Storage[:ninefold] | nested directories", ['ninefold']) do
2
-
3
- unless Fog.mocking?
4
- @directory = Fog::Storage[:ninefold].directories.create(:key => 'updatefiletests')
5
- end
6
-
7
- ninefold = Fog::Storage[:ninefold]
8
- tests("update a file").succeeds do
9
- pending if Fog.mocking?
10
- file = @directory.files.create(:key => 'lorem.txt', :body => lorem_file)
11
- file.body = "xxxxxx"
12
- file.save
13
- end
14
-
15
- unless Fog.mocking?
16
- @directory.destroy(:recursive => true)
17
- end
18
-
19
- end
@@ -1,23 +0,0 @@
1
- Shindo.tests("Storage[:ninefold] | nested directories", ['ninefold']) do
2
- ninefold = Fog::Storage[:ninefold]
3
- tests("create a directory with a / character").succeeds do
4
- pending if Fog.mocking?
5
- ninefold.directories.create(:key => 'sub/path')
6
- end
7
-
8
- tests("List of top directory returns sub dir").returns(1) do
9
- pending if Fog.mocking?
10
- ninefold.directories.get('sub').directories.count
11
- end
12
-
13
- tests("create a directory in a sub dir").returns('sub/path/newdir/') do
14
- pending if Fog.mocking?
15
- ninefold.directories.get('sub/path').directories.create(:key => 'newdir').identity
16
- end
17
-
18
- tests("Recursively destroy parent dir").succeeds do
19
- pending if Fog.mocking?
20
- ninefold.directories.get('sub').destroy(:recursive => true)
21
- end
22
-
23
- end
@@ -1,42 +0,0 @@
1
- Shindo.tests('Fog::Compute[:ninefold] | address requests', ['ninefold']) do
2
-
3
- tests('success') do
4
-
5
- tests("#associate_ip_address()").formats(Ninefold::Compute::Formats::Addresses::ADDRESS) do
6
- pending if Fog.mocking?
7
- job = newaddress = Fog::Compute[:ninefold].associate_ip_address(:zoneid => Ninefold::Compute::TestSupport::ZONE_ID)
8
- while Fog::Compute[:ninefold].query_async_job_result(:jobid => job['jobid'])['jobstatus'] == 0
9
- sleep 1
10
- end
11
- result = Fog::Compute[:ninefold].query_async_job_result(:jobid => job['jobid'])['jobresult']['ipaddress']
12
- @newaddressid = result['id']
13
- result
14
- end
15
-
16
- tests("#list_public_ip_addresses()").formats(Ninefold::Compute::Formats::Addresses::ADDRESSES) do
17
- pending if Fog.mocking?
18
- result = Fog::Compute[:ninefold].list_public_ip_addresses
19
- result
20
- end
21
-
22
- tests("#disassociate_ip_address()").formats(Ninefold::Compute::Formats::Addresses::DISASSOC_ADDRESS) do
23
- pending if Fog.mocking?
24
- job = Fog::Compute[:ninefold].disassociate_ip_address(:id => @newaddressid)
25
- while Fog::Compute[:ninefold].query_async_job_result(:jobid => job['jobid'])['jobstatus'] == 0
26
- sleep 1
27
- end
28
- job
29
- end
30
-
31
- end
32
-
33
- tests('failure') do
34
-
35
- tests("#associate_ip_address()").raises(Excon::Errors::HTTPStatusError) do
36
- pending if Fog.mocking?
37
- Fog::Compute[:ninefold].associate_ip_address
38
- end
39
-
40
- end
41
-
42
- end
@@ -1,33 +0,0 @@
1
- # This will fail until there are jobs in the system.
2
-
3
- Shindo.tests('Fog::Compute[:ninefold] | async job requests', ['ninefold']) do
4
-
5
- tests('success') do
6
-
7
- tests("#list_async_jobs()").formats(Ninefold::Compute::Formats::Jobs::JOBS) do
8
- pending if Fog.mocking?
9
- jobs = Fog::Compute[:ninefold].list_async_jobs()
10
- unless jobs[0]
11
- raise "No async jobs in system yet - create a VM through web UI to create"
12
- end
13
- @jobid = jobs[0]['jobid']
14
- jobs
15
- end
16
-
17
- tests("#query_async_job_result()").formats(Ninefold::Compute::Formats::Jobs::JOB_QUERY) do
18
- pending if Fog.mocking?
19
- Fog::Compute[:ninefold].query_async_job_result(:jobid => @jobid)
20
- end
21
-
22
- end
23
-
24
- tests('failure') do
25
-
26
- #tests("#deploy_virtual_machine()").raises(Excon::Errors::HTTPStatusError) do
27
- # pending if Fog.mocking?
28
- # Fog::Compute[:ninefold].deploy_virtual_machine
29
- #end
30
-
31
- end
32
-
33
- end
@@ -1,369 +0,0 @@
1
- class Ninefold
2
- module Compute
3
- module TestSupport
4
- # 1CPU, 1.7GB RAM, 160GB Storage
5
- SERVICE_OFFERING = 67
6
- # alternate for testing -
7
- ALT_SERVICE_OFFERING = 68
8
- # XEN Basic Ubuntu 10.04 Server x64 PV r2.0
9
- TEMPLATE_ID = 421
10
- # Sydney
11
- ZONE_ID = 1
12
- # Max time to wait for job completion (2 mins)
13
- MAXWAIT = 2 * 60
14
-
15
- ## Waits for a job, returning the completed jobs payload.
16
- ## Accepts an integer jobid, or a hash containing a jobid or id.
17
- def wait_for_job(job)
18
- job = job['jobid'] || job['id'] unless job.kind_of? Integer
19
- while Fog::Compute[:ninefold].query_async_job_result(:jobid => job)['jobstatus'] == 0
20
- sleep 1
21
- end
22
- Fog::Compute[:ninefold].query_async_job_result(:jobid => job)
23
- end
24
- module_function :wait_for_job
25
- end
26
- module Formats
27
- module Lists
28
- SERVICE_OFFERING = {
29
- "id" => Integer,
30
- "name" => String,
31
- "displaytext" => String,
32
- "cpunumber" => Integer,
33
- "cpuspeed" => Integer,
34
- "memory" => Integer,
35
- "created" => String,
36
- "storagetype" => String,
37
- "offerha" => Fog::Boolean,
38
- "domainid" => Integer,
39
- "domain" => String,
40
- "issystem" => Fog::Boolean,
41
- "limitcpuuse" => Fog::Boolean,
42
- "defaultuse" => Fog::Boolean
43
-
44
- }
45
- SERVICE_OFFERINGS = [Ninefold::Compute::Formats::Lists::SERVICE_OFFERING]
46
- ACCOUNTS = [{
47
- "id"=>Integer,
48
- "name"=>String,
49
- "accounttype"=>Integer,
50
- "domainid"=>Integer,
51
- "domain"=>String,
52
- "receivedbytes"=>Integer,
53
- "sentbytes"=>Integer,
54
- "vmlimit"=>String,
55
- "vmtotal"=>Integer,
56
- "vmavailable"=>String,
57
- "iplimit"=>String,
58
- "iptotal"=>Integer,
59
- "ipavailable"=>String,
60
- "volumelimit"=>String,
61
- "volumetotal"=>Integer,
62
- "volumeavailable"=>String,
63
- "snapshotlimit"=>String,
64
- "snapshottotal"=>Integer,
65
- "snapshotavailable"=>String,
66
- "templatelimit"=>String,
67
- "templatetotal"=>Integer,
68
- "templateavailable"=>String,
69
- "vmstopped"=>Integer,
70
- "vmrunning"=>Integer,
71
- "state"=>String,
72
- "user"=> [{
73
- "id"=>Integer,
74
- "username"=>String,
75
- "firstname"=>String,
76
- "lastname"=>String,
77
- "email"=>String,
78
- "created"=>String,
79
- "state"=>String,
80
- "account"=>String,
81
- "accounttype"=>Integer,
82
- "domainid"=>Integer,
83
- "domain"=>String,
84
- "apikey"=>String,
85
- "secretkey"=>String
86
- }]
87
- }]
88
- EVENTS = [{
89
- "id"=>Integer,
90
- "username"=>String,
91
- "type"=>String,
92
- "level"=>String,
93
- "description"=>String,
94
- "account"=>String,
95
- "domainid"=>Integer,
96
- "domain"=>String,
97
- "created"=>String,
98
- "state"=>String,
99
- "parentid"=>Integer
100
- }]
101
- DISK_OFFERINGS = [{
102
- "id"=>Integer,
103
- "domainid"=>Integer,
104
- "domain"=>String,
105
- "name"=>String,
106
- "displaytext"=>String,
107
- "disksize"=>Integer,
108
- "created"=>String,
109
- "iscustomized"=>Fog::Boolean,
110
- "tags"=>String
111
- }]
112
- CAPABILITIES = {
113
- "securitygroupsenabled" => Fog::Boolean,
114
- "cloudstackversion" => String,
115
- "userpublictemplateenabled" => Fog::Boolean
116
- }
117
- HYPERVISORS = [{
118
- "name"=>String
119
- }]
120
- ZONES = [{
121
- "allocationstate"=>String,
122
- "dhcpprovider"=>String,
123
- "id"=>Integer,
124
- "name"=>String,
125
- "networktype"=>String,
126
- "securitygroupsenabled"=>Fog::Boolean
127
- }]
128
- NETWORK_OFFERINGS = [{
129
- "id"=>Integer,
130
- "name"=>String,
131
- "displaytext"=>String,
132
- "traffictype"=>String,
133
- "isdefault"=>Fog::Boolean,
134
- "specifyvlan"=>Fog::Boolean,
135
- "availability"=>String,
136
- "guestiptype"=>String,
137
- "networkrate"=>Integer
138
- }]
139
- RESOURCE_LIMITS = [{
140
- "account"=>String,
141
- "domainid"=>Integer,
142
- "domain"=>String,
143
- "resourcetype"=>String,
144
- "max"=>Integer
145
- }]
146
- end
147
- module VirtualMachines
148
- VIRTUAL_MACHINE = {
149
- "id"=>Integer,
150
- "name"=>String,
151
- "displayname"=>String,
152
- "account"=>String,
153
- "domainid"=>Integer,
154
- "domain"=>String,
155
- "created"=>String,
156
- "state"=>String,
157
- "haenable"=>Fog::Boolean,
158
- "zoneid"=>Integer,
159
- "zonename"=>String,
160
- "templateid"=>Integer,
161
- "templatename"=>String,
162
- "templatedisplaytext"=>String,
163
- "passwordenabled"=>Fog::Boolean,
164
- "serviceofferingid"=>Integer,
165
- "serviceofferingname"=>String,
166
- "cpunumber"=>Integer,
167
- "cpuspeed"=>Integer,
168
- "memory"=>Integer,
169
- "guestosid"=>Integer,
170
- "rootdeviceid"=>Integer,
171
- "rootdevicetype"=>String,
172
- "nic"=>[{
173
- "id"=>Integer,
174
- "networkid"=>Integer,
175
- "netmask"=>Fog::Nullable::String,
176
- "gateway"=>Fog::Nullable::String,
177
- "ipaddress"=>Fog::Nullable::String,
178
- "traffictype"=>String,
179
- "type"=>String,
180
- "isdefault"=>Fog::Boolean,
181
- }],
182
- "hypervisor"=>String,
183
- "cpuused"=>Fog::Nullable::String,
184
- "networkkbsread"=>Fog::Nullable::Integer,
185
- "networkkbswrite"=>Fog::Nullable::Integer
186
- }
187
- VIRTUAL_MACHINES = [VIRTUAL_MACHINE]
188
- end
189
- module Templates
190
- TEMPLATES = [{
191
- "id"=>Integer,
192
- "name"=>String,
193
- "displaytext"=>String,
194
- "ispublic"=>Fog::Boolean,
195
- "created"=>String,
196
- "isready"=>Fog::Boolean,
197
- "passwordenabled"=>Fog::Boolean,
198
- "format"=>String,
199
- "isfeatured"=>Fog::Boolean,
200
- "crossZones"=>Fog::Boolean,
201
- "ostypeid"=>Integer,
202
- "ostypename"=>String,
203
- "account"=>String,
204
- "zoneid"=>Integer,
205
- "zonename"=>String,
206
- "size"=>Integer,
207
- "templatetype"=>String,
208
- "hypervisor"=>String,
209
- "domain"=>String,
210
- "domainid"=>Integer,
211
- "isextractable"=>Fog::Boolean,
212
- }]
213
- end
214
- module Jobs
215
- JOB = {
216
- "jobid"=>Integer,
217
- "accountid"=>Integer,
218
- "userid"=>Integer,
219
- "cmd"=>String,
220
- "jobstatus"=>Integer,
221
- "jobprocstatus"=>Integer,
222
- "jobresultcode"=>Integer,
223
- "jobresult"=>Hash,
224
- "created"=>String
225
- }
226
- JOBS = [JOB]
227
- JOB_QUERY = {
228
- "jobid"=>Integer,
229
- "jobstatus"=>Integer,
230
- "jobprocstatus"=>Integer,
231
- "jobresultcode"=>Integer,
232
- "jobresulttype"=>String,
233
- "jobresult"=>Hash
234
- }
235
- end
236
- module Networks
237
- NETWORKS=[{"id"=>Integer,
238
- "name"=>String,
239
- "displaytext"=>String,
240
- "broadcastdomaintype"=>String,
241
- "traffictype"=>String,
242
- "zoneid"=>Integer,
243
- "networkofferingid"=>Integer,
244
- "networkofferingname"=>String,
245
- "networkofferingdisplaytext"=>String,
246
- "networkofferingavailability"=>String,
247
- "isshared"=>Fog::Boolean,
248
- "issystem"=>Fog::Boolean,
249
- "state"=>String,
250
- "related"=>Integer,
251
- "broadcasturi"=>Fog::Nullable::String,
252
- "dns1"=>String,
253
- "dns2"=>String,
254
- "type"=>String,
255
- "account"=>String,
256
- "domainid"=>Integer,
257
- "domain"=>String,
258
- "isdefault"=>Fog::Boolean,
259
- "service"=>Array,
260
- "networkdomain"=>Fog::Nullable::String,
261
- "securitygroupenabled"=>Fog::Boolean,
262
- "netmask"=>Fog::Nullable::String,
263
- "startip"=>Fog::Nullable::String,
264
- "endip"=>Fog::Nullable::String,
265
- "gateway"=>Fog::Nullable::String,
266
- "vlan"=>Fog::Nullable::String
267
- }]
268
- end
269
- module Addresses
270
- ADDRESS = {
271
- "id"=>Integer,
272
- "ipaddress"=>String,
273
- "allocated"=>String,
274
- "zoneid"=>Integer,
275
- "zonename"=>String,
276
- "issourcenat"=>Fog::Boolean,
277
- "account"=>String,
278
- "domainid"=>Integer,
279
- "domain"=>String,
280
- "forvirtualnetwork"=>Fog::Boolean,
281
- "isstaticnat"=>Fog::Boolean,
282
- "associatednetworkid"=>Integer,
283
- "networkid"=>Integer,
284
- "state"=>String,
285
- "virtualmachineid"=>Fog::Nullable::Integer,
286
- "virtualmachinename"=>Fog::Nullable::String
287
- }
288
- ADDRESSES = [ADDRESS]
289
- DISASSOC_ADDRESS = {"jobid"=>Integer}
290
- end
291
- module Nat
292
- ENABLE_NAT_RESPONSE = {
293
- 'success' => String
294
- }
295
- DISABLE_NAT_RESPONSE = {
296
- 'success' => Fog::Boolean
297
- }
298
- DELETE_RULE_RESPONSE = {
299
- 'success' => Fog::Boolean
300
- }
301
- FORWARDING_RULE = {
302
- "id"=>Integer,
303
- "protocol"=>String,
304
- "virtualmachineid"=>Integer,
305
- "virtualmachinename"=>String,
306
- "ipaddressid"=>Integer,
307
- "ipaddress"=>String,
308
- "startport"=>Integer,
309
- "endport"=>Integer,
310
- "state"=>String
311
- }
312
- FORWARDING_RULES = [FORWARDING_RULE]
313
- end
314
- module LoadBalancers
315
- CREATE_LOAD_BALANCER_RULE_RESPONSE = {
316
- "id"=>Integer,
317
- "account"=>String,
318
- "algorithm"=>String,
319
- "cidrlist"=>String,
320
- "domain"=>String,
321
- "domainid"=>Integer,
322
- "name"=>String,
323
- "privateport"=>String,
324
- "publicip"=>String,
325
- "publicipid"=>Integer,
326
- "publicport"=>String,
327
- "state"=>String,
328
- "zoneid"=>Integer
329
- }
330
- ASSIGN_LOAD_BALANCER_RULE_RESPONSE = {
331
- "success"=>Fog::Boolean
332
- }
333
- LIST_LOAD_BALANCER_RULES_RESPONSE = {
334
- "id"=>Integer,
335
- "name"=>String,
336
- "publicipid"=>Integer,
337
- "publicip"=>String,
338
- "publicport"=>String,
339
- "privateport"=>String,
340
- "algorithm"=>String,
341
- "cidrlist"=>String,
342
- "account"=>String,
343
- "domainid"=>Integer,
344
- "domain"=>String,
345
- "state"=>String,
346
- "zoneid"=>Integer
347
- }
348
- UPDATE_LOAD_BALANCER_RULE_RESPONSE = {
349
- "id"=>Integer,
350
- "name"=>String,
351
- "publicipid"=>Integer,
352
- "publicip"=>String,
353
- "publicport"=>String,
354
- "privateport"=>String,
355
- "algorithm"=>String,
356
- "cidrlist"=>String,
357
- "account"=>String,
358
- "domainid"=>Integer,
359
- "domain"=>String,
360
- "state"=>String,
361
- "zoneid"=>Integer
362
- }
363
- REMOVE_FROM_LOAD_BALANCER_RULE_RESPONSE = {
364
- "success"=>Fog::Boolean
365
- }
366
- end
367
- end
368
- end
369
- end