fog 1.15.0 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (717) hide show
  1. data/Gemfile.1.8.7 +1 -0
  2. data/README.md +1 -0
  3. data/changelog.txt +596 -0
  4. data/fog.gemspec +4 -3
  5. data/lib/fog.rb +1 -0
  6. data/lib/fog/atmos/models/storage/file.rb +12 -9
  7. data/lib/fog/atmos/models/storage/files.rb +5 -0
  8. data/lib/fog/atmos/storage.rb +5 -4
  9. data/lib/fog/aws.rb +3 -0
  10. data/lib/fog/aws/auto_scaling.rb +0 -1
  11. data/lib/fog/aws/cdn.rb +1 -2
  12. data/lib/fog/aws/compute.rb +11 -2
  13. data/lib/fog/aws/data_pipeline.rb +3 -0
  14. data/lib/fog/aws/dns.rb +0 -1
  15. data/lib/fog/aws/elasticache.rb +2 -0
  16. data/lib/fog/aws/iam.rb +3 -1
  17. data/lib/fog/aws/models/auto_scaling/group.rb +12 -12
  18. data/lib/fog/aws/models/compute/address.rb +1 -0
  19. data/lib/fog/aws/models/compute/route_table.rb +69 -0
  20. data/lib/fog/aws/models/compute/route_tables.rb +92 -0
  21. data/lib/fog/aws/models/compute/server.rb +15 -0
  22. data/lib/fog/aws/models/compute/subnet.rb +3 -1
  23. data/lib/fog/aws/models/elasticache/cluster.rb +3 -1
  24. data/lib/fog/aws/parsers/compute/associate_route_table.rb +20 -0
  25. data/lib/fog/aws/parsers/compute/create_route_table.rb +75 -0
  26. data/lib/fog/aws/parsers/compute/describe_route_tables.rb +85 -0
  27. data/lib/fog/aws/parsers/compute/run_instances.rb +2 -0
  28. data/lib/fog/aws/parsers/iam/get_group_policy.rb +10 -4
  29. data/lib/fog/aws/parsers/redshift/cluster.rb +29 -0
  30. data/lib/fog/aws/parsers/redshift/cluster_parser.rb +144 -0
  31. data/lib/fog/aws/parsers/redshift/cluster_security_group_parser.rb +50 -0
  32. data/lib/fog/aws/parsers/redshift/cluster_snapshot.rb +32 -0
  33. data/lib/fog/aws/parsers/redshift/cluster_snapshot_parser.rb +66 -0
  34. data/lib/fog/aws/parsers/redshift/cluster_subnet_group_parser.rb +51 -0
  35. data/lib/fog/aws/parsers/redshift/create_cluster_parameter_group.rb +30 -0
  36. data/lib/fog/aws/parsers/redshift/create_cluster_security_group.rb +31 -0
  37. data/lib/fog/aws/parsers/redshift/describe_cluster_parameter_groups.rb +41 -0
  38. data/lib/fog/aws/parsers/redshift/describe_cluster_parameters.rb +48 -0
  39. data/lib/fog/aws/parsers/redshift/describe_cluster_security_groups.rb +38 -0
  40. data/lib/fog/aws/parsers/redshift/describe_cluster_snapshots.rb +38 -0
  41. data/lib/fog/aws/parsers/redshift/describe_cluster_subnet_groups.rb +58 -0
  42. data/lib/fog/aws/parsers/redshift/describe_cluster_versions.rb +53 -0
  43. data/lib/fog/aws/parsers/redshift/describe_clusters.rb +30 -0
  44. data/lib/fog/aws/parsers/redshift/describe_default_cluster_parameters.rb +49 -0
  45. data/lib/fog/aws/parsers/redshift/describe_events.rb +44 -0
  46. data/lib/fog/aws/parsers/redshift/describe_orderable_cluster_options.rb +54 -0
  47. data/lib/fog/aws/parsers/redshift/describe_reserved_node_offerings.rb +64 -0
  48. data/lib/fog/aws/parsers/redshift/describe_reserved_nodes.rb +71 -0
  49. data/lib/fog/aws/parsers/redshift/describe_resize.rb +60 -0
  50. data/lib/fog/aws/parsers/redshift/purchase_reserved_node_offering.rb +58 -0
  51. data/lib/fog/aws/parsers/redshift/revoke_cluster_security_group_ingress.rb +31 -0
  52. data/lib/fog/aws/parsers/redshift/update_cluster_parameter_group_parser.rb +29 -0
  53. data/lib/fog/aws/parsers/sts/get_session_token.rb +1 -3
  54. data/lib/fog/aws/redshift.rb +126 -0
  55. data/lib/fog/aws/requests/auto_scaling/create_auto_scaling_group.rb +5 -4
  56. data/lib/fog/aws/requests/compute/associate_dhcp_options.rb +2 -2
  57. data/lib/fog/aws/requests/compute/associate_route_table.rb +75 -0
  58. data/lib/fog/aws/requests/compute/attach_internet_gateway.rb +2 -2
  59. data/lib/fog/aws/requests/compute/create_route.rb +89 -0
  60. data/lib/fog/aws/requests/compute/create_route_table.rb +70 -0
  61. data/lib/fog/aws/requests/compute/create_vpc.rb +16 -1
  62. data/lib/fog/aws/requests/compute/delete_dhcp_options.rb +2 -2
  63. data/lib/fog/aws/requests/compute/delete_internet_gateway.rb +2 -2
  64. data/lib/fog/aws/requests/compute/delete_network_interface.rb +2 -2
  65. data/lib/fog/aws/requests/compute/delete_route.rb +60 -0
  66. data/lib/fog/aws/requests/compute/delete_route_table.rb +51 -0
  67. data/lib/fog/aws/requests/compute/delete_subnet.rb +2 -2
  68. data/lib/fog/aws/requests/compute/delete_vpc.rb +2 -2
  69. data/lib/fog/aws/requests/compute/describe_route_tables.rb +87 -0
  70. data/lib/fog/aws/requests/compute/detach_internet_gateway.rb +2 -2
  71. data/lib/fog/aws/requests/compute/detach_network_interface.rb +2 -2
  72. data/lib/fog/aws/requests/compute/disassociate_route_table.rb +57 -0
  73. data/lib/fog/aws/requests/compute/reset_network_interface_attribute.rb +2 -1
  74. data/lib/fog/aws/requests/compute/run_instances.rb +3 -0
  75. data/lib/fog/aws/requests/data_pipeline/delete_pipeline.rb +2 -3
  76. data/lib/fog/aws/requests/data_pipeline/describe_objects.rb +41 -0
  77. data/lib/fog/aws/requests/data_pipeline/get_pipeline_definition.rb +37 -0
  78. data/lib/fog/aws/requests/data_pipeline/query_objects.rb +41 -0
  79. data/lib/fog/aws/requests/elasticache/authorize_cache_security_group_ingress.rb +27 -2
  80. data/lib/fog/aws/requests/elasticache/create_cache_security_group.rb +23 -2
  81. data/lib/fog/aws/requests/elasticache/delete_cache_security_group.rb +10 -1
  82. data/lib/fog/aws/requests/elasticache/describe_cache_security_groups.rb +36 -2
  83. data/lib/fog/aws/requests/iam/get_group_policy.rb +18 -1
  84. data/lib/fog/aws/requests/iam/get_user_policy.rb +4 -4
  85. data/lib/fog/aws/requests/iam/put_group_policy.rb +17 -1
  86. data/lib/fog/aws/requests/iam/put_user_policy.rb +1 -1
  87. data/lib/fog/aws/requests/redshift/authorize_cluster_security_group_ingress.rb +56 -0
  88. data/lib/fog/aws/requests/redshift/authorize_snapshot_access.rb +43 -0
  89. data/lib/fog/aws/requests/redshift/copy_cluster_snapshot.rb +48 -0
  90. data/lib/fog/aws/requests/redshift/create_cluster.rb +151 -0
  91. data/lib/fog/aws/requests/redshift/create_cluster_parameter_group.rb +54 -0
  92. data/lib/fog/aws/requests/redshift/create_cluster_security_group.rb +42 -0
  93. data/lib/fog/aws/requests/redshift/create_cluster_snapshot.rb +44 -0
  94. data/lib/fog/aws/requests/redshift/create_cluster_subnet_group.rb +50 -0
  95. data/lib/fog/aws/requests/redshift/delete_cluster.rb +51 -0
  96. data/lib/fog/aws/requests/redshift/delete_cluster_parameter_group.rb +34 -0
  97. data/lib/fog/aws/requests/redshift/delete_cluster_security_group.rb +33 -0
  98. data/lib/fog/aws/requests/redshift/delete_cluster_snapshot.rb +44 -0
  99. data/lib/fog/aws/requests/redshift/delete_cluster_subnet_group.rb +38 -0
  100. data/lib/fog/aws/requests/redshift/describe_cluster_parameter_groups.rb +48 -0
  101. data/lib/fog/aws/requests/redshift/describe_cluster_parameters.rb +55 -0
  102. data/lib/fog/aws/requests/redshift/describe_cluster_security_groups.rb +50 -0
  103. data/lib/fog/aws/requests/redshift/describe_cluster_snapshots.rb +73 -0
  104. data/lib/fog/aws/requests/redshift/describe_cluster_subnet_groups.rb +47 -0
  105. data/lib/fog/aws/requests/redshift/describe_cluster_versions.rb +54 -0
  106. data/lib/fog/aws/requests/redshift/describe_clusters.rb +49 -0
  107. data/lib/fog/aws/requests/redshift/describe_default_cluster_parameters.rb +49 -0
  108. data/lib/fog/aws/requests/redshift/describe_events.rb +80 -0
  109. data/lib/fog/aws/requests/redshift/describe_orderable_cluster_options.rb +55 -0
  110. data/lib/fog/aws/requests/redshift/describe_reserved_node_offerings.rb +48 -0
  111. data/lib/fog/aws/requests/redshift/describe_reserved_nodes.rb +48 -0
  112. data/lib/fog/aws/requests/redshift/describe_resize.rb +39 -0
  113. data/lib/fog/aws/requests/redshift/modify_cluster.rb +111 -0
  114. data/lib/fog/aws/requests/redshift/modify_cluster_parameter_group.rb +44 -0
  115. data/lib/fog/aws/requests/redshift/modify_cluster_subnet_group.rb +50 -0
  116. data/lib/fog/aws/requests/redshift/purchase_reserved_node_offering.rb +41 -0
  117. data/lib/fog/aws/requests/redshift/reboot_cluster.rb +37 -0
  118. data/lib/fog/aws/requests/redshift/reset_cluster_parameter_group.rb +57 -0
  119. data/lib/fog/aws/requests/redshift/restore_from_cluster_snapshot.rb +77 -0
  120. data/lib/fog/aws/requests/redshift/revoke_cluster_security_group_ingress.rb +56 -0
  121. data/lib/fog/aws/requests/redshift/revoke_snapshot_access.rb +44 -0
  122. data/lib/fog/aws/requests/storage/post_object_restore.rb +1 -1
  123. data/lib/fog/aws/requests/sts/get_federation_token.rb +42 -0
  124. data/lib/fog/aws/simpledb.rb +0 -1
  125. data/lib/fog/aws/sqs.rb +2 -0
  126. data/lib/fog/aws/storage.rb +11 -5
  127. data/lib/fog/bin.rb +1 -0
  128. data/lib/fog/bin/aws.rb +4 -0
  129. data/lib/fog/bin/openstack.rb +5 -0
  130. data/lib/fog/bin/rackspace.rb +8 -0
  131. data/lib/fog/bin/vcloud_director.rb +30 -0
  132. data/lib/fog/brightbox/requests/compute/update_server.rb +1 -0
  133. data/lib/fog/cloudsigma/compute.rb +5 -0
  134. data/lib/fog/cloudsigma/models/fwpolicies.rb +21 -0
  135. data/lib/fog/cloudsigma/models/fwpolicy.rb +21 -0
  136. data/lib/fog/cloudsigma/models/rule.rb +21 -0
  137. data/lib/fog/cloudsigma/requests/list_fwpolicies.rb +18 -0
  138. data/lib/fog/cloudstack/models/compute/server.rb +1 -0
  139. data/lib/fog/compute.rb +7 -4
  140. data/lib/fog/core.rb +3 -0
  141. data/lib/fog/core/class_from_string.rb +26 -0
  142. data/lib/fog/core/errors.rb +3 -0
  143. data/lib/fog/core/uuid.rb +23 -0
  144. data/lib/fog/dynect/dns.rb +4 -2
  145. data/lib/fog/dynect/models/dns/records.rb +32 -20
  146. data/lib/fog/dynect/requests/dns/get_all_records.rb +56 -0
  147. data/lib/fog/dynect/requests/dns/get_node_list.rb +1 -1
  148. data/lib/fog/dynect/requests/dns/put_record.rb +76 -0
  149. data/lib/fog/google/compute.rb +693 -32
  150. data/lib/fog/google/models/compute/disk.rb +2 -1
  151. data/lib/fog/google/models/compute/flavors.rb +2 -2
  152. data/lib/fog/google/models/compute/server.rb +27 -7
  153. data/lib/fog/google/models/compute/servers.rb +2 -2
  154. data/lib/fog/google/models/compute/zone.rb +25 -0
  155. data/lib/fog/google/models/compute/zones.rb +27 -0
  156. data/lib/fog/google/requests/compute/delete_server.rb +40 -13
  157. data/lib/fog/google/requests/compute/get_image.rb +15 -2
  158. data/lib/fog/google/requests/compute/get_machine_type.rb +23 -3
  159. data/lib/fog/google/requests/compute/get_server.rb +46 -2
  160. data/lib/fog/google/requests/compute/get_zone.rb +14 -1
  161. data/lib/fog/google/requests/compute/insert_server.rb +74 -2
  162. data/lib/fog/google/requests/compute/list_images.rb +8 -2
  163. data/lib/fog/google/requests/compute/list_machine_types.rb +9 -2
  164. data/lib/fog/google/requests/compute/list_servers.rb +10 -2
  165. data/lib/fog/google/requests/compute/list_zones.rb +7 -1
  166. data/lib/fog/google/storage.rb +1 -3
  167. data/lib/fog/hp/block_storage.rb +3 -0
  168. data/lib/fog/hp/cdn.rb +3 -0
  169. data/lib/fog/hp/compute.rb +3 -0
  170. data/lib/fog/hp/models/storage/file.rb +12 -0
  171. data/lib/fog/hp/models/storage/files.rb +23 -1
  172. data/lib/fog/hp/storage.rb +74 -20
  173. data/lib/fog/internet_archive/storage.rb +0 -2
  174. data/lib/fog/joyent/compute.rb +1 -1
  175. data/lib/fog/linode/models/compute/server.rb +1 -1
  176. data/lib/fog/local/models/storage/directories.rb +1 -1
  177. data/lib/fog/local/storage.rb +0 -2
  178. data/lib/fog/ninefold/storage.rb +0 -1
  179. data/lib/fog/openstack.rb +1 -4
  180. data/lib/fog/openstack/compute.rb +1 -2
  181. data/lib/fog/openstack/identity.rb +1 -2
  182. data/lib/fog/openstack/image.rb +1 -2
  183. data/lib/fog/openstack/metering.rb +0 -1
  184. data/lib/fog/openstack/models/compute/images.rb +10 -2
  185. data/lib/fog/openstack/models/compute/server.rb +3 -1
  186. data/lib/fog/openstack/models/network/floating_ip.rb +1 -1
  187. data/lib/fog/openstack/models/orchestration/stack.rb +52 -0
  188. data/lib/fog/openstack/models/orchestration/stacks.rb +21 -0
  189. data/lib/fog/openstack/models/storage/file.rb +16 -0
  190. data/lib/fog/openstack/models/storage/files.rb +10 -0
  191. data/lib/fog/openstack/models/volume/volumes.rb +5 -2
  192. data/lib/fog/openstack/network.rb +0 -1
  193. data/lib/fog/openstack/orchestration.rb +228 -0
  194. data/lib/fog/openstack/requests/compute/create_server.rb +41 -31
  195. data/lib/fog/openstack/requests/compute/list_images_detail.rb +4 -3
  196. data/lib/fog/openstack/requests/network/create_floating_ip.rb +1 -4
  197. data/lib/fog/openstack/requests/orchestration/create_stack.rb +58 -0
  198. data/lib/fog/openstack/requests/orchestration/delete_stack.rb +37 -0
  199. data/lib/fog/openstack/requests/orchestration/list_stacks.rb +49 -0
  200. data/lib/fog/openstack/requests/orchestration/update_stack.rb +41 -0
  201. data/lib/fog/openstack/requests/storage/delete_multiple_objects.rb +67 -0
  202. data/lib/fog/openstack/requests/storage/delete_static_large_object.rb +43 -0
  203. data/lib/fog/openstack/requests/storage/get_object.rb +7 -7
  204. data/lib/fog/openstack/requests/storage/get_object_https_url.rb +44 -6
  205. data/lib/fog/openstack/requests/storage/put_dynamic_obj_manifest.rb +43 -0
  206. data/lib/fog/openstack/requests/storage/put_object.rb +13 -4
  207. data/lib/fog/openstack/requests/storage/put_object_manifest.rb +3 -25
  208. data/lib/fog/openstack/requests/storage/put_static_obj_manifest.rb +57 -0
  209. data/lib/fog/openstack/requests/volume/list_volumes.rb +4 -4
  210. data/lib/fog/openstack/storage.rb +7 -5
  211. data/lib/fog/openstack/volume.rb +1 -2
  212. data/lib/fog/orchestration.rb +25 -0
  213. data/lib/fog/rackspace.rb +7 -3
  214. data/lib/fog/rackspace/auto_scale.rb +136 -0
  215. data/lib/fog/rackspace/block_storage.rb +2 -2
  216. data/lib/fog/rackspace/cdn.rb +23 -23
  217. data/lib/fog/rackspace/compute.rb +6 -2
  218. data/lib/fog/rackspace/compute_v2.rb +4 -2
  219. data/lib/fog/rackspace/databases.rb +2 -2
  220. data/lib/fog/rackspace/dns.rb +14 -16
  221. data/lib/fog/rackspace/docs/auto_scale.md +501 -0
  222. data/lib/fog/rackspace/docs/getting_started.md +1 -0
  223. data/lib/fog/rackspace/examples/auto_scale/add_policy.rb +68 -0
  224. data/lib/fog/rackspace/examples/auto_scale/add_webhook.rb +74 -0
  225. data/lib/fog/rackspace/examples/auto_scale/create_scaling_group.rb +115 -0
  226. data/lib/fog/rackspace/examples/auto_scale/delete_policy.rb +71 -0
  227. data/lib/fog/rackspace/examples/auto_scale/delete_scaling_group.rb +61 -0
  228. data/lib/fog/rackspace/examples/auto_scale/delete_webhook.rb +91 -0
  229. data/lib/fog/rackspace/examples/compute_v2/bootstrap_server.rb +98 -0
  230. data/lib/fog/rackspace/examples/compute_v2/create_network.rb +81 -0
  231. data/lib/fog/rackspace/examples/compute_v2/delete_network.rb +78 -0
  232. data/lib/fog/rackspace/load_balancers.rb +3 -2
  233. data/lib/fog/rackspace/mock_data.rb +69 -4
  234. data/lib/fog/rackspace/models/auto_scale/group.rb +207 -0
  235. data/lib/fog/rackspace/models/auto_scale/group_builder.rb +85 -0
  236. data/lib/fog/rackspace/models/auto_scale/group_config.rb +79 -0
  237. data/lib/fog/rackspace/models/auto_scale/groups.rb +46 -0
  238. data/lib/fog/rackspace/models/auto_scale/launch_config.rb +64 -0
  239. data/lib/fog/rackspace/models/auto_scale/policies.rb +67 -0
  240. data/lib/fog/rackspace/models/auto_scale/policy.rb +222 -0
  241. data/lib/fog/rackspace/models/auto_scale/webhook.rb +118 -0
  242. data/lib/fog/rackspace/models/auto_scale/webhooks.rb +63 -0
  243. data/lib/fog/rackspace/models/block_storage/volume.rb +2 -1
  244. data/lib/fog/rackspace/models/compute_v2/flavors.rb +1 -2
  245. data/lib/fog/rackspace/models/compute_v2/images.rb +35 -3
  246. data/lib/fog/rackspace/models/compute_v2/metadata.rb +0 -1
  247. data/lib/fog/rackspace/models/compute_v2/metadatum.rb +2 -2
  248. data/lib/fog/rackspace/models/compute_v2/server.rb +9 -8
  249. data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +8 -3
  250. data/lib/fog/rackspace/models/monitoring/notification.rb +42 -0
  251. data/lib/fog/rackspace/models/monitoring/notifications.rb +30 -0
  252. data/lib/fog/rackspace/models/queues/claim.rb +92 -0
  253. data/lib/fog/rackspace/models/queues/claims.rb +40 -0
  254. data/lib/fog/rackspace/models/queues/message.rb +51 -0
  255. data/lib/fog/rackspace/models/queues/messages.rb +54 -0
  256. data/lib/fog/rackspace/models/queues/queue.rb +73 -0
  257. data/lib/fog/rackspace/models/queues/queues.rb +32 -0
  258. data/lib/fog/rackspace/monitoring.rb +21 -14
  259. data/lib/fog/rackspace/queues.rb +117 -0
  260. data/lib/fog/rackspace/requests/auto_scale/create_group.rb +61 -0
  261. data/lib/fog/rackspace/requests/auto_scale/create_policy.rb +45 -0
  262. data/lib/fog/rackspace/requests/auto_scale/create_webhook.rb +57 -0
  263. data/lib/fog/rackspace/requests/auto_scale/delete_group.rb +23 -0
  264. data/lib/fog/rackspace/requests/auto_scale/delete_policy.rb +31 -0
  265. data/lib/fog/rackspace/requests/auto_scale/delete_webhook.rb +34 -0
  266. data/lib/fog/rackspace/requests/auto_scale/execute_anonymous_webhook.rb +22 -0
  267. data/lib/fog/rackspace/requests/auto_scale/execute_policy.rb +22 -0
  268. data/lib/fog/rackspace/requests/auto_scale/get_group.rb +29 -0
  269. data/lib/fog/rackspace/requests/auto_scale/get_group_config.rb +30 -0
  270. data/lib/fog/rackspace/requests/auto_scale/get_group_state.rb +62 -0
  271. data/lib/fog/rackspace/requests/auto_scale/get_launch_config.rb +30 -0
  272. data/lib/fog/rackspace/requests/auto_scale/get_policy.rb +35 -0
  273. data/lib/fog/rackspace/requests/auto_scale/get_webhook.rb +39 -0
  274. data/lib/fog/rackspace/requests/auto_scale/list_groups.rb +35 -0
  275. data/lib/fog/rackspace/requests/auto_scale/list_policies.rb +23 -0
  276. data/lib/fog/rackspace/requests/auto_scale/list_webhooks.rb +33 -0
  277. data/lib/fog/rackspace/requests/auto_scale/pause_group_state.rb +23 -0
  278. data/lib/fog/rackspace/requests/auto_scale/resume_group_state.rb +22 -0
  279. data/lib/fog/rackspace/requests/auto_scale/update_group_config.rb +39 -0
  280. data/lib/fog/rackspace/requests/auto_scale/update_launch_config.rb +36 -0
  281. data/lib/fog/rackspace/requests/auto_scale/update_policy.rb +33 -0
  282. data/lib/fog/rackspace/requests/auto_scale/update_webhook.rb +44 -0
  283. data/lib/fog/rackspace/requests/block_storage/create_volume.rb +1 -1
  284. data/lib/fog/rackspace/requests/compute_v2/delete_server.rb +2 -2
  285. data/lib/fog/rackspace/requests/compute_v2/list_flavors_detail.rb +39 -0
  286. data/lib/fog/rackspace/requests/compute_v2/list_images.rb +15 -5
  287. data/lib/fog/rackspace/requests/compute_v2/list_images_detail.rb +53 -0
  288. data/lib/fog/rackspace/requests/databases/create_database.rb +2 -2
  289. data/lib/fog/rackspace/requests/databases/create_instance.rb +3 -1
  290. data/lib/fog/rackspace/requests/databases/create_user.rb +1 -1
  291. data/lib/fog/rackspace/requests/identity/create_token.rb +1 -1
  292. data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +11 -0
  293. data/lib/fog/rackspace/requests/load_balancers/delete_load_balancer.rb +10 -0
  294. data/lib/fog/rackspace/requests/load_balancers/get_load_balancer.rb +30 -0
  295. data/lib/fog/rackspace/requests/load_balancers/get_stats.rb +31 -0
  296. data/lib/fog/rackspace/requests/monitoring/create_agent_token.rb +31 -0
  297. data/lib/fog/rackspace/requests/monitoring/create_alarm.rb +32 -0
  298. data/lib/fog/rackspace/requests/monitoring/create_check.rb +31 -0
  299. data/lib/fog/rackspace/requests/monitoring/create_entity.rb +32 -0
  300. data/lib/fog/rackspace/requests/monitoring/create_notification.rb +18 -0
  301. data/lib/fog/rackspace/requests/monitoring/delete_agent_token.rb +32 -0
  302. data/lib/fog/rackspace/requests/monitoring/delete_alarm.rb +27 -0
  303. data/lib/fog/rackspace/requests/monitoring/delete_check.rb +26 -0
  304. data/lib/fog/rackspace/requests/monitoring/delete_entity.rb +27 -0
  305. data/lib/fog/rackspace/requests/monitoring/delete_notification.rb +16 -0
  306. data/lib/fog/rackspace/requests/monitoring/get_agent_token.rb +33 -0
  307. data/lib/fog/rackspace/requests/monitoring/get_alarm.rb +38 -0
  308. data/lib/fog/rackspace/requests/monitoring/get_check.rb +41 -0
  309. data/lib/fog/rackspace/requests/monitoring/get_entity.rb +42 -0
  310. data/lib/fog/rackspace/requests/monitoring/get_notification.rb +50 -0
  311. data/lib/fog/rackspace/requests/monitoring/list_agent_tokens.rb +39 -0
  312. data/lib/fog/rackspace/requests/monitoring/list_alarms.rb +50 -0
  313. data/lib/fog/rackspace/requests/monitoring/list_check_types.rb +72 -0
  314. data/lib/fog/rackspace/requests/monitoring/list_checks.rb +54 -0
  315. data/lib/fog/rackspace/requests/monitoring/list_data_points.rb +37 -0
  316. data/lib/fog/rackspace/requests/monitoring/list_entities.rb +53 -0
  317. data/lib/fog/rackspace/requests/monitoring/list_metrics.rb +65 -0
  318. data/lib/fog/rackspace/requests/monitoring/list_notification_plans.rb +55 -0
  319. data/lib/fog/rackspace/requests/monitoring/list_notifications.rb +67 -0
  320. data/lib/fog/rackspace/requests/monitoring/list_overview.rb +97 -1
  321. data/lib/fog/rackspace/requests/monitoring/update_alarm.rb +33 -2
  322. data/lib/fog/rackspace/requests/monitoring/update_check.rb +32 -2
  323. data/lib/fog/rackspace/requests/monitoring/update_entity.rb +33 -2
  324. data/lib/fog/rackspace/requests/monitoring/update_notification.rb +17 -0
  325. data/lib/fog/rackspace/requests/queues/create_claim.rb +24 -0
  326. data/lib/fog/rackspace/requests/queues/create_message.rb +21 -0
  327. data/lib/fog/rackspace/requests/queues/create_queue.rb +16 -0
  328. data/lib/fog/rackspace/requests/queues/delete_claim.rb +15 -0
  329. data/lib/fog/rackspace/requests/queues/delete_message.rb +18 -0
  330. data/lib/fog/rackspace/requests/queues/delete_queue.rb +15 -0
  331. data/lib/fog/rackspace/requests/queues/get_claim.rb +15 -0
  332. data/lib/fog/rackspace/requests/queues/get_message.rb +16 -0
  333. data/lib/fog/rackspace/requests/queues/get_queue.rb +15 -0
  334. data/lib/fog/rackspace/requests/queues/get_queue_stats.rb +15 -0
  335. data/lib/fog/rackspace/requests/queues/list_messages.rb +17 -0
  336. data/lib/fog/rackspace/requests/queues/list_queues.rb +15 -0
  337. data/lib/fog/rackspace/requests/queues/update_claim.rb +19 -0
  338. data/lib/fog/rackspace/requests/storage/get_object.rb +7 -9
  339. data/lib/fog/rackspace/requests/storage/put_object.rb +6 -1
  340. data/lib/fog/rackspace/service.rb +26 -7
  341. data/lib/fog/rackspace/storage.rb +8 -5
  342. data/lib/fog/riakcs/provisioning.rb +0 -1
  343. data/lib/fog/riakcs/usage.rb +2 -3
  344. data/lib/fog/storage.rb +2 -0
  345. data/lib/fog/vcloud_director.rb +67 -0
  346. data/lib/fog/vcloud_director/README.md +953 -0
  347. data/lib/fog/vcloud_director/compute.rb +640 -0
  348. data/lib/fog/vcloud_director/generators/compute/customization.rb +105 -0
  349. data/lib/fog/vcloud_director/generators/compute/disks.rb +186 -0
  350. data/lib/fog/vcloud_director/generators/compute/edge_gateway.rb +156 -0
  351. data/lib/fog/vcloud_director/generators/compute/metadata.rb +104 -0
  352. data/lib/fog/vcloud_director/generators/compute/vm_network.rb +119 -0
  353. data/lib/fog/vcloud_director/models/compute/catalog.rb +25 -0
  354. data/lib/fog/vcloud_director/models/compute/catalog_item.rb +26 -0
  355. data/lib/fog/vcloud_director/models/compute/catalog_items.rb +34 -0
  356. data/lib/fog/vcloud_director/models/compute/catalogs.rb +32 -0
  357. data/lib/fog/vcloud_director/models/compute/disk.rb +51 -0
  358. data/lib/fog/vcloud_director/models/compute/disks.rb +40 -0
  359. data/lib/fog/vcloud_director/models/compute/media.rb +29 -0
  360. data/lib/fog/vcloud_director/models/compute/medias.rb +77 -0
  361. data/lib/fog/vcloud_director/models/compute/network.rb +26 -0
  362. data/lib/fog/vcloud_director/models/compute/networks.rb +31 -0
  363. data/lib/fog/vcloud_director/models/compute/organization.rb +41 -0
  364. data/lib/fog/vcloud_director/models/compute/organizations.rb +30 -0
  365. data/lib/fog/vcloud_director/models/compute/tag.rb +34 -0
  366. data/lib/fog/vcloud_director/models/compute/tags.rb +43 -0
  367. data/lib/fog/vcloud_director/models/compute/task.rb +59 -0
  368. data/lib/fog/vcloud_director/models/compute/tasks.rb +30 -0
  369. data/lib/fog/vcloud_director/models/compute/vapp.rb +142 -0
  370. data/lib/fog/vcloud_director/models/compute/vapps.rb +34 -0
  371. data/lib/fog/vcloud_director/models/compute/vdc.rb +38 -0
  372. data/lib/fog/vcloud_director/models/compute/vdcs.rb +32 -0
  373. data/lib/fog/vcloud_director/models/compute/vm.rb +173 -0
  374. data/lib/fog/vcloud_director/models/compute/vm_customization.rb +41 -0
  375. data/lib/fog/vcloud_director/models/compute/vm_customizations.rb +16 -0
  376. data/lib/fog/vcloud_director/models/compute/vm_network.rb +30 -0
  377. data/lib/fog/vcloud_director/models/compute/vm_networks.rb +21 -0
  378. data/lib/fog/vcloud_director/models/compute/vms.rb +41 -0
  379. data/lib/fog/vcloud_director/parsers/compute/disks.rb +57 -0
  380. data/lib/fog/vcloud_director/parsers/compute/metadata.rb +63 -0
  381. data/lib/fog/vcloud_director/parsers/compute/network.rb +106 -0
  382. data/lib/fog/vcloud_director/parsers/compute/vm.rb +82 -0
  383. data/lib/fog/vcloud_director/parsers/compute/vm_customization.rb +56 -0
  384. data/lib/fog/vcloud_director/parsers/compute/vm_network.rb +109 -0
  385. data/lib/fog/vcloud_director/parsers/compute/vms.rb +96 -0
  386. data/lib/fog/vcloud_director/parsers/compute/vms_by_metadata.rb +41 -0
  387. data/lib/fog/vcloud_director/requests/compute/delete_catalog_item.rb +22 -0
  388. data/lib/fog/vcloud_director/requests/compute/delete_catalog_item_metadata_item_metadata.rb +25 -0
  389. data/lib/fog/vcloud_director/requests/compute/delete_disk.rb +27 -0
  390. data/lib/fog/vcloud_director/requests/compute/delete_disk_metadata_item_metadata.rb +25 -0
  391. data/lib/fog/vcloud_director/requests/compute/delete_logout.rb +18 -0
  392. data/lib/fog/vcloud_director/requests/compute/delete_media.rb +42 -0
  393. data/lib/fog/vcloud_director/requests/compute/delete_media_metadata_item_metadata.rb +25 -0
  394. data/lib/fog/vcloud_director/requests/compute/delete_shadow_vm.rb +30 -0
  395. data/lib/fog/vcloud_director/requests/compute/delete_vapp.rb +29 -0
  396. data/lib/fog/vcloud_director/requests/compute/delete_vapp_metadata_item_metadata.rb +30 -0
  397. data/lib/fog/vcloud_director/requests/compute/delete_vapp_template.rb +27 -0
  398. data/lib/fog/vcloud_director/requests/compute/delete_vapp_template_metadata_item_metadata.rb +26 -0
  399. data/lib/fog/vcloud_director/requests/compute/get_allocated_ip_addresses.rb +25 -0
  400. data/lib/fog/vcloud_director/requests/compute/get_catalog.rb +42 -0
  401. data/lib/fog/vcloud_director/requests/compute/get_catalog_item.rb +25 -0
  402. data/lib/fog/vcloud_director/requests/compute/get_catalog_item_metadata.rb +25 -0
  403. data/lib/fog/vcloud_director/requests/compute/get_catalog_item_metadata_item_metadata.rb +26 -0
  404. data/lib/fog/vcloud_director/requests/compute/get_catalog_metadata.rb +25 -0
  405. data/lib/fog/vcloud_director/requests/compute/get_catalog_metadata_item_metadata.rb +26 -0
  406. data/lib/fog/vcloud_director/requests/compute/get_catalogs_from_query.rb +94 -0
  407. data/lib/fog/vcloud_director/requests/compute/get_control_access_params_catalog.rb +26 -0
  408. data/lib/fog/vcloud_director/requests/compute/get_control_access_params_vapp.rb +25 -0
  409. data/lib/fog/vcloud_director/requests/compute/get_cpu_rasd_item.rb +28 -0
  410. data/lib/fog/vcloud_director/requests/compute/get_current_session.rb +83 -0
  411. data/lib/fog/vcloud_director/requests/compute/get_disk.rb +25 -0
  412. data/lib/fog/vcloud_director/requests/compute/get_disk_metadata.rb +25 -0
  413. data/lib/fog/vcloud_director/requests/compute/get_disk_metadata_item_metadata.rb +26 -0
  414. data/lib/fog/vcloud_director/requests/compute/get_disk_owner.rb +25 -0
  415. data/lib/fog/vcloud_director/requests/compute/get_disks_from_query.rb +94 -0
  416. data/lib/fog/vcloud_director/requests/compute/get_disks_rasd_items_list.rb +26 -0
  417. data/lib/fog/vcloud_director/requests/compute/get_edge_gateway.rb +93 -0
  418. data/lib/fog/vcloud_director/requests/compute/get_entity.rb +38 -0
  419. data/lib/fog/vcloud_director/requests/compute/get_execute_query.rb +462 -0
  420. data/lib/fog/vcloud_director/requests/compute/get_groups_from_query.rb +95 -0
  421. data/lib/fog/vcloud_director/requests/compute/get_guest_customization_system_section_vapp.rb +25 -0
  422. data/lib/fog/vcloud_director/requests/compute/get_guest_customization_system_section_vapp_template.rb +25 -0
  423. data/lib/fog/vcloud_director/requests/compute/get_href.rb +21 -0
  424. data/lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp.rb +25 -0
  425. data/lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp_template.rb +25 -0
  426. data/lib/fog/vcloud_director/requests/compute/get_media.rb +40 -0
  427. data/lib/fog/vcloud_director/requests/compute/get_media_drives_rasd_items_list.rb +26 -0
  428. data/lib/fog/vcloud_director/requests/compute/get_media_metadata.rb +25 -0
  429. data/lib/fog/vcloud_director/requests/compute/get_media_metadata_item_metadata.rb +26 -0
  430. data/lib/fog/vcloud_director/requests/compute/get_media_owner.rb +40 -0
  431. data/lib/fog/vcloud_director/requests/compute/get_medias_from_query.rb +94 -0
  432. data/lib/fog/vcloud_director/requests/compute/get_memory_rasd_item.rb +28 -0
  433. data/lib/fog/vcloud_director/requests/compute/get_metadata.rb +30 -0
  434. data/lib/fog/vcloud_director/requests/compute/get_network.rb +63 -0
  435. data/lib/fog/vcloud_director/requests/compute/get_network_cards_items_list.rb +25 -0
  436. data/lib/fog/vcloud_director/requests/compute/get_network_config_section_vapp.rb +25 -0
  437. data/lib/fog/vcloud_director/requests/compute/get_network_config_section_vapp_template.rb +25 -0
  438. data/lib/fog/vcloud_director/requests/compute/get_network_connection_system_section_vapp.rb +25 -0
  439. data/lib/fog/vcloud_director/requests/compute/get_network_connection_system_section_vapp_template.rb +25 -0
  440. data/lib/fog/vcloud_director/requests/compute/get_network_metadata.rb +25 -0
  441. data/lib/fog/vcloud_director/requests/compute/get_network_metadata_item_metadata.rb +26 -0
  442. data/lib/fog/vcloud_director/requests/compute/get_network_section_vapp.rb +25 -0
  443. data/lib/fog/vcloud_director/requests/compute/get_network_section_vapp_template.rb +25 -0
  444. data/lib/fog/vcloud_director/requests/compute/get_operating_system_section.rb +25 -0
  445. data/lib/fog/vcloud_director/requests/compute/get_org_settings.rb +38 -0
  446. data/lib/fog/vcloud_director/requests/compute/get_org_vdc_gateways.rb +83 -0
  447. data/lib/fog/vcloud_director/requests/compute/get_organization.rb +100 -0
  448. data/lib/fog/vcloud_director/requests/compute/get_organization_metadata.rb +25 -0
  449. data/lib/fog/vcloud_director/requests/compute/get_organization_metadata_item_metadata.rb +28 -0
  450. data/lib/fog/vcloud_director/requests/compute/get_organizations.rb +52 -0
  451. data/lib/fog/vcloud_director/requests/compute/get_organizations_from_query.rb +95 -0
  452. data/lib/fog/vcloud_director/requests/compute/get_product_sections_vapp.rb +25 -0
  453. data/lib/fog/vcloud_director/requests/compute/get_product_sections_vapp_template.rb +26 -0
  454. data/lib/fog/vcloud_director/requests/compute/get_request.rb +19 -0
  455. data/lib/fog/vcloud_director/requests/compute/get_runtime_info_section_type.rb +25 -0
  456. data/lib/fog/vcloud_director/requests/compute/get_serial_ports_items_list.rb +25 -0
  457. data/lib/fog/vcloud_director/requests/compute/get_shadow_vm.rb +24 -0
  458. data/lib/fog/vcloud_director/requests/compute/get_snapshot_section.rb +25 -0
  459. data/lib/fog/vcloud_director/requests/compute/get_startup_section.rb +25 -0
  460. data/lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb +239 -0
  461. data/lib/fog/vcloud_director/requests/compute/get_supported_versions.rb +1159 -0
  462. data/lib/fog/vcloud_director/requests/compute/get_task.rb +40 -0
  463. data/lib/fog/vcloud_director/requests/compute/get_task_list.rb +87 -0
  464. data/lib/fog/vcloud_director/requests/compute/get_thumbnail.rb +28 -0
  465. data/lib/fog/vcloud_director/requests/compute/get_users_from_query.rb +95 -0
  466. data/lib/fog/vcloud_director/requests/compute/get_vapp.rb +27 -0
  467. data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata.rb +25 -0
  468. data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata_item_metadata.rb +26 -0
  469. data/lib/fog/vcloud_director/requests/compute/get_vapp_ovf_descriptor.rb +24 -0
  470. data/lib/fog/vcloud_director/requests/compute/get_vapp_owner.rb +25 -0
  471. data/lib/fog/vcloud_director/requests/compute/get_vapp_template.rb +25 -0
  472. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_customization_system_section.rb +25 -0
  473. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata.rb +25 -0
  474. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata_item_metadata.rb +27 -0
  475. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_ovf_descriptor.rb +24 -0
  476. data/lib/fog/vcloud_director/requests/compute/get_vapp_template_owner.rb +25 -0
  477. data/lib/fog/vcloud_director/requests/compute/get_vapp_templates_from_query.rb +95 -0
  478. data/lib/fog/vcloud_director/requests/compute/get_vapps_in_lease_from_query.rb +94 -0
  479. data/lib/fog/vcloud_director/requests/compute/get_vcloud.rb +76 -0
  480. data/lib/fog/vcloud_director/requests/compute/get_vdc.rb +158 -0
  481. data/lib/fog/vcloud_director/requests/compute/get_vdc_metadata.rb +25 -0
  482. data/lib/fog/vcloud_director/requests/compute/get_vdc_metadata_item_metadata.rb +28 -0
  483. data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class.rb +83 -0
  484. data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata.rb +27 -0
  485. data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata_item_metadata.rb +25 -0
  486. data/lib/fog/vcloud_director/requests/compute/get_vdcs_from_query.rb +94 -0
  487. data/lib/fog/vcloud_director/requests/compute/get_virtual_hardware_section.rb +29 -0
  488. data/lib/fog/vcloud_director/requests/compute/get_vm.rb +28 -0
  489. data/lib/fog/vcloud_director/requests/compute/get_vm_capabilities.rb +30 -0
  490. data/lib/fog/vcloud_director/requests/compute/get_vm_compliance_results.rb +24 -0
  491. data/lib/fog/vcloud_director/requests/compute/get_vm_customization.rb +31 -0
  492. data/lib/fog/vcloud_director/requests/compute/get_vm_disks.rb +31 -0
  493. data/lib/fog/vcloud_director/requests/compute/get_vm_network.rb +31 -0
  494. data/lib/fog/vcloud_director/requests/compute/get_vm_pending_question.rb +34 -0
  495. data/lib/fog/vcloud_director/requests/compute/get_vms.rb +28 -0
  496. data/lib/fog/vcloud_director/requests/compute/get_vms_by_metadata.rb +21 -0
  497. data/lib/fog/vcloud_director/requests/compute/get_vms_disks_attached_to.rb +25 -0
  498. data/lib/fog/vcloud_director/requests/compute/get_vms_in_lease_from_query.rb +95 -0
  499. data/lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb +97 -0
  500. data/lib/fog/vcloud_director/requests/compute/post_acquire_ticket.rb +27 -0
  501. data/lib/fog/vcloud_director/requests/compute/post_answer_vm_pending_question.rb +36 -0
  502. data/lib/fog/vcloud_director/requests/compute/post_attach_disk.rb +51 -0
  503. data/lib/fog/vcloud_director/requests/compute/post_cancel_task.rb +25 -0
  504. data/lib/fog/vcloud_director/requests/compute/post_capture_vapp.rb +46 -0
  505. data/lib/fog/vcloud_director/requests/compute/post_check_vm_compliance.rb +28 -0
  506. data/lib/fog/vcloud_director/requests/compute/post_clone_media.rb +51 -0
  507. data/lib/fog/vcloud_director/requests/compute/post_clone_vapp.rb +62 -0
  508. data/lib/fog/vcloud_director/requests/compute/post_clone_vapp_template.rb +52 -0
  509. data/lib/fog/vcloud_director/requests/compute/post_configure_edge_gateway_services.rb +40 -0
  510. data/lib/fog/vcloud_director/requests/compute/post_consolidate_vm_vapp.rb +27 -0
  511. data/lib/fog/vcloud_director/requests/compute/post_consolidate_vm_vapp_template.rb +27 -0
  512. data/lib/fog/vcloud_director/requests/compute/post_deploy_vapp.rb +51 -0
  513. data/lib/fog/vcloud_director/requests/compute/post_detach_disk.rb +39 -0
  514. data/lib/fog/vcloud_director/requests/compute/post_disable_nested_hv.rb +27 -0
  515. data/lib/fog/vcloud_director/requests/compute/post_disable_vapp_template_download.rb +24 -0
  516. data/lib/fog/vcloud_director/requests/compute/post_discard_vapp_state.rb +30 -0
  517. data/lib/fog/vcloud_director/requests/compute/post_eject_cd_rom.rb +39 -0
  518. data/lib/fog/vcloud_director/requests/compute/post_enable_nested_hv.rb +27 -0
  519. data/lib/fog/vcloud_director/requests/compute/post_enable_vapp_template_download.rb +24 -0
  520. data/lib/fog/vcloud_director/requests/compute/post_enter_maintenance_mode.rb +26 -0
  521. data/lib/fog/vcloud_director/requests/compute/post_exit_maintenance_mode.rb +22 -0
  522. data/lib/fog/vcloud_director/requests/compute/post_insert_cd_rom.rb +39 -0
  523. data/lib/fog/vcloud_director/requests/compute/post_install_vmware_tools.rb +27 -0
  524. data/lib/fog/vcloud_director/requests/compute/post_instantiate_vapp_template.rb +133 -0
  525. data/lib/fog/vcloud_director/requests/compute/post_login_session.rb +39 -0
  526. data/lib/fog/vcloud_director/requests/compute/post_power_off_vapp.rb +36 -0
  527. data/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb +36 -0
  528. data/lib/fog/vcloud_director/requests/compute/post_reboot_vapp.rb +33 -0
  529. data/lib/fog/vcloud_director/requests/compute/post_remove_all_snapshots.rb +27 -0
  530. data/lib/fog/vcloud_director/requests/compute/post_reset_vapp.rb +33 -0
  531. data/lib/fog/vcloud_director/requests/compute/post_revert_snapshot.rb +27 -0
  532. data/lib/fog/vcloud_director/requests/compute/post_shutdown_vapp.rb +33 -0
  533. data/lib/fog/vcloud_director/requests/compute/post_suspend_vapp.rb +33 -0
  534. data/lib/fog/vcloud_director/requests/compute/post_undeploy_vapp.rb +66 -0
  535. data/lib/fog/vcloud_director/requests/compute/post_update_catalog_item_metadata.rb +52 -0
  536. data/lib/fog/vcloud_director/requests/compute/post_update_disk_metadata.rb +52 -0
  537. data/lib/fog/vcloud_director/requests/compute/post_update_media_metadata.rb +52 -0
  538. data/lib/fog/vcloud_director/requests/compute/post_update_vapp_metadata.rb +52 -0
  539. data/lib/fog/vcloud_director/requests/compute/post_update_vapp_template_metadata.rb +52 -0
  540. data/lib/fog/vcloud_director/requests/compute/post_upgrade_hw_version.rb +28 -0
  541. data/lib/fog/vcloud_director/requests/compute/post_upload_media.rb +76 -0
  542. data/lib/fog/vcloud_director/requests/compute/post_upload_vapp_template.rb +46 -0
  543. data/lib/fog/vcloud_director/requests/compute/put_catalog_item_metadata_item_metadata.rb +50 -0
  544. data/lib/fog/vcloud_director/requests/compute/put_cpu.rb +47 -0
  545. data/lib/fog/vcloud_director/requests/compute/put_disk_metadata_item_metadata.rb +46 -0
  546. data/lib/fog/vcloud_director/requests/compute/put_disks.rb +39 -0
  547. data/lib/fog/vcloud_director/requests/compute/put_guest_customization_section_vapp.rb +62 -0
  548. data/lib/fog/vcloud_director/requests/compute/put_media_metadata_item_metadata.rb +50 -0
  549. data/lib/fog/vcloud_director/requests/compute/put_memory.rb +47 -0
  550. data/lib/fog/vcloud_director/requests/compute/put_metadata_value.rb +26 -0
  551. data/lib/fog/vcloud_director/requests/compute/put_network_connection_system_section_vapp.rb +63 -0
  552. data/lib/fog/vcloud_director/requests/compute/put_vapp_metadata_item_metadata.rb +50 -0
  553. data/lib/fog/vcloud_director/requests/compute/put_vapp_template_metadata_item_metadata.rb +50 -0
  554. data/lib/fog/vcloud_director/requests/compute/put_vm_capabilities.rb +44 -0
  555. data/lib/fog/version.rb +1 -1
  556. data/lib/fog/vsphere/compute.rb +9 -1
  557. data/lib/fog/vsphere/models/compute/datacenter.rb +11 -6
  558. data/lib/fog/vsphere/models/compute/interface.rb +6 -2
  559. data/lib/fog/vsphere/models/compute/interfacetype.rb +26 -0
  560. data/lib/fog/vsphere/models/compute/interfacetypes.rb +40 -0
  561. data/lib/fog/vsphere/models/compute/server.rb +1 -1
  562. data/lib/fog/vsphere/models/compute/servertype.rb +39 -0
  563. data/lib/fog/vsphere/models/compute/servertypes.rb +29 -0
  564. data/lib/fog/vsphere/requests/compute/create_vm.rb +2 -2
  565. data/lib/fog/vsphere/requests/compute/get_datacenter.rb +1 -1
  566. data/lib/fog/vsphere/requests/compute/get_interface_type.rb +15 -0
  567. data/lib/fog/vsphere/requests/compute/get_network.rb +2 -2
  568. data/lib/fog/vsphere/requests/compute/get_server_type.rb +32 -0
  569. data/lib/fog/vsphere/requests/compute/list_datacenters.rb +22 -3
  570. data/lib/fog/vsphere/requests/compute/list_interface_types.rb +25 -0
  571. data/lib/fog/vsphere/requests/compute/list_server_types.rb +55 -0
  572. data/lib/tasks/changelog_task.rb +1 -0
  573. data/tests/aws/models/auto_scaling/groups_test.rb +5 -0
  574. data/tests/aws/models/compute/server_tests.rb +21 -1
  575. data/tests/aws/models/compute/subnet_tests.rb +1 -1
  576. data/tests/aws/models/compute/subnets_tests.rb +1 -1
  577. data/tests/aws/requests/compute/instance_tests.rb +1 -0
  578. data/tests/aws/requests/compute/network_interface_tests.rb +17 -0
  579. data/tests/aws/requests/compute/route_tests.rb +277 -0
  580. data/tests/aws/requests/data_pipeline/helper.rb +38 -8
  581. data/tests/aws/requests/data_pipeline/pipeline_tests.rb +25 -1
  582. data/tests/aws/requests/elasticache/security_group_tests.rb +3 -2
  583. data/tests/aws/requests/iam/group_policy_tests.rb +12 -6
  584. data/tests/aws/requests/redshift/cluster_parameter_group_tests.rb +77 -0
  585. data/tests/aws/requests/redshift/cluster_security_group_tests.rb +44 -0
  586. data/tests/aws/requests/redshift/cluster_snapshot_tests.rb +75 -0
  587. data/tests/aws/requests/redshift/cluster_tests.rb +82 -0
  588. data/tests/aws/requests/storage/object_tests.rb +1 -0
  589. data/tests/aws/requests/sts/get_federation_token_tests.rb +0 -1
  590. data/tests/aws/signed_params_tests.rb +9 -1
  591. data/tests/aws/storage_tests.rb +7 -0
  592. data/tests/brightbox/compute/helper.rb +1 -0
  593. data/tests/brightbox/compute/schema.rb +696 -0
  594. data/tests/brightbox/requests/compute/account_tests.rb +7 -7
  595. data/tests/brightbox/requests/compute/api_client_tests.rb +6 -6
  596. data/tests/brightbox/requests/compute/application_test.rb +6 -6
  597. data/tests/brightbox/requests/compute/cloud_ip_tests.rb +7 -7
  598. data/tests/brightbox/requests/compute/firewall_policy_tests.rb +5 -5
  599. data/tests/brightbox/requests/compute/firewall_rule_tests.rb +4 -4
  600. data/tests/brightbox/requests/compute/helper.rb +0 -688
  601. data/tests/brightbox/requests/compute/image_tests.rb +2 -2
  602. data/tests/brightbox/requests/compute/interface_tests.rb +1 -1
  603. data/tests/brightbox/requests/compute/load_balancer_tests.rb +9 -9
  604. data/tests/brightbox/requests/compute/server_group_tests.rb +8 -8
  605. data/tests/brightbox/requests/compute/server_tests.rb +13 -10
  606. data/tests/brightbox/requests/compute/server_type_tests.rb +2 -2
  607. data/tests/brightbox/requests/compute/user_tests.rb +3 -3
  608. data/tests/brightbox/requests/compute/zone_tests.rb +2 -2
  609. data/tests/compute/helper.rb +3 -2
  610. data/tests/core/uuid_tests.rb +10 -0
  611. data/tests/dynect/requests/dns/dns_tests.rb +29 -0
  612. data/tests/helpers/mock_helper.rb +4 -0
  613. data/tests/hp/requests/storage/object_tests.rb +19 -1
  614. data/tests/openstack/models/storage/file_tests.rb +20 -1
  615. data/tests/openstack/requests/compute/server_tests.rb +30 -0
  616. data/tests/openstack/requests/orchestration/stack_tests.rb +35 -0
  617. data/tests/openstack/requests/storage/large_object_tests.rb +320 -59
  618. data/tests/openstack/requests/storage/object_tests.rb +77 -4
  619. data/tests/rackspace/auto_scale_tests.rb +84 -0
  620. data/tests/rackspace/block_storage_tests.rb +9 -4
  621. data/tests/rackspace/cdn_tests.rb +9 -4
  622. data/tests/rackspace/compute_tests.rb +10 -4
  623. data/tests/rackspace/compute_v2_tests.rb +9 -4
  624. data/tests/rackspace/databases_tests.rb +9 -4
  625. data/tests/rackspace/dns_tests.rb +9 -4
  626. data/tests/rackspace/helper.rb +26 -2
  627. data/tests/rackspace/identity_tests.rb +9 -4
  628. data/tests/rackspace/load_balancer_tests.rb +8 -4
  629. data/tests/rackspace/models/auto_scale/group_builder_tests.rb +145 -0
  630. data/tests/rackspace/models/auto_scale/group_tests.rb +36 -0
  631. data/tests/rackspace/models/auto_scale/groups_tests.rb +17 -0
  632. data/tests/rackspace/models/auto_scale/policies_tests.rb +25 -0
  633. data/tests/rackspace/models/auto_scale/policy_tests.rb +35 -0
  634. data/tests/rackspace/models/auto_scale/webhook_tests.rb +42 -0
  635. data/tests/rackspace/models/auto_scale/webhooks_tests.rb +28 -0
  636. data/tests/rackspace/models/compute_v2/server_tests.rb +26 -22
  637. data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +5 -0
  638. data/tests/rackspace/models/monitoring/notification_tests.rb +19 -0
  639. data/tests/rackspace/models/monitoring/notifications_tests.rb +10 -0
  640. data/tests/rackspace/models/queues/claim_tests.rb +43 -0
  641. data/tests/rackspace/models/queues/claims_tests.rb +55 -0
  642. data/tests/rackspace/models/queues/message_tests.rb +35 -0
  643. data/tests/rackspace/models/queues/messages_tests.rb +18 -0
  644. data/tests/rackspace/models/queues/queue_tests.rb +30 -0
  645. data/tests/rackspace/models/queues/queues_tests.rb +10 -0
  646. data/tests/rackspace/monitoring_tests.rb +9 -4
  647. data/tests/rackspace/queues_tests.rb +118 -0
  648. data/tests/rackspace/requests/auto_scale/config_tests.rb +97 -0
  649. data/tests/rackspace/requests/auto_scale/group_tests.rb +50 -0
  650. data/tests/rackspace/requests/auto_scale/helper.rb +224 -0
  651. data/tests/rackspace/requests/auto_scale/policy_tests.rb +71 -0
  652. data/tests/rackspace/requests/auto_scale/webhook_tests.rb +58 -0
  653. data/tests/rackspace/requests/compute_v2/address_tests.rb +1 -1
  654. data/tests/rackspace/requests/compute_v2/flavor_tests.rb +6 -0
  655. data/tests/rackspace/requests/compute_v2/image_tests.rb +4 -0
  656. data/tests/rackspace/requests/compute_v2/server_tests.rb +2 -2
  657. data/tests/rackspace/requests/databases/helper.rb +0 -5
  658. data/tests/rackspace/requests/load_balancers/get_stats_tests.rb +13 -0
  659. data/tests/rackspace/requests/load_balancers/helper.rb +9 -0
  660. data/tests/rackspace/requests/monitoring/agent_tests.rb +0 -1
  661. data/tests/rackspace/requests/monitoring/alarm_tests.rb +3 -3
  662. data/tests/rackspace/requests/monitoring/check_tests.rb +0 -1
  663. data/tests/rackspace/requests/monitoring/entity_tests.rb +6 -7
  664. data/tests/rackspace/requests/monitoring/list_tests.rb +18 -6
  665. data/tests/rackspace/requests/monitoring/notification_tests.rb +46 -0
  666. data/tests/rackspace/requests/queues/claim_tests.rb +62 -0
  667. data/tests/rackspace/requests/queues/helper.rb +50 -0
  668. data/tests/rackspace/requests/queues/messages_tests.rb +60 -0
  669. data/tests/rackspace/requests/queues/queues_tests.rb +43 -0
  670. data/tests/rackspace/requests/storage/large_object_tests.rb +12 -4
  671. data/tests/rackspace/requests/storage/object_tests.rb +1 -1
  672. data/tests/rackspace/service_tests.rb +0 -1
  673. data/tests/rackspace/storage_tests.rb +23 -4
  674. data/tests/rackspace/url_encoding_tests.rb +3 -1
  675. data/tests/vcloud_director/ensure_list_tests.rb +56 -0
  676. data/tests/vcloud_director/fixtures/test.iso +1 -0
  677. data/tests/vcloud_director/models/compute/catalog_items_tests.rb +41 -0
  678. data/tests/vcloud_director/models/compute/catalogs_tests.rb +40 -0
  679. data/tests/vcloud_director/models/compute/helper.rb +60 -0
  680. data/tests/vcloud_director/models/compute/media_tests.rb +45 -0
  681. data/tests/vcloud_director/models/compute/organizations_tests.rb +18 -0
  682. data/tests/vcloud_director/models/compute/tasks_tests.rb +26 -0
  683. data/tests/vcloud_director/models/compute/vapp_life_cycle_tests.rb +93 -0
  684. data/tests/vcloud_director/models/compute/vapp_tests.rb +39 -0
  685. data/tests/vcloud_director/models/compute/vdcs_tests.rb +41 -0
  686. data/tests/vcloud_director/models/compute/vms_tests.rb +85 -0
  687. data/tests/vcloud_director/requests/compute/admin_tests.rb +16 -0
  688. data/tests/vcloud_director/requests/compute/catalog_tests.rb +42 -0
  689. data/tests/vcloud_director/requests/compute/disk_tests.rb +23 -0
  690. data/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +39 -0
  691. data/tests/vcloud_director/requests/compute/groups_tests.rb +18 -0
  692. data/tests/vcloud_director/requests/compute/helper.rb +30 -0
  693. data/tests/vcloud_director/requests/compute/media_tests.rb +185 -0
  694. data/tests/vcloud_director/requests/compute/network_tests.rb +41 -0
  695. data/tests/vcloud_director/requests/compute/organization_tests.rb +37 -0
  696. data/tests/vcloud_director/requests/compute/ovf_descriptor_tests.rb +36 -0
  697. data/tests/vcloud_director/requests/compute/query_tests.rb +34 -0
  698. data/tests/vcloud_director/requests/compute/schema_helper.rb +625 -0
  699. data/tests/vcloud_director/requests/compute/session_tests.rb +14 -0
  700. data/tests/vcloud_director/requests/compute/supported_systems_tests.rb +11 -0
  701. data/tests/vcloud_director/requests/compute/task_tests.rb +20 -0
  702. data/tests/vcloud_director/requests/compute/users_tests.rb +18 -0
  703. data/tests/vcloud_director/requests/compute/vapp_tests.rb +91 -0
  704. data/tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb +27 -0
  705. data/tests/vcloud_director/requests/compute/vdc_tests.rb +36 -0
  706. data/tests/vcloud_director/requests/compute/versions_tests.rb +13 -0
  707. data/tests/vcloud_director/requests/compute/vm_tests.rb +125 -0
  708. metadata +552 -14
  709. data/lib/fog/aws/parsers/compute/associate_dhcp_options.rb +0 -24
  710. data/lib/fog/aws/parsers/compute/attach_internet_gateway.rb +0 -24
  711. data/lib/fog/aws/parsers/compute/delete_dhcp_options.rb +0 -24
  712. data/lib/fog/aws/parsers/compute/delete_internet_gateway.rb +0 -24
  713. data/lib/fog/aws/parsers/compute/delete_network_interface.rb +0 -24
  714. data/lib/fog/aws/parsers/compute/delete_subnet.rb +0 -24
  715. data/lib/fog/aws/parsers/compute/delete_vpc.rb +0 -24
  716. data/lib/fog/aws/parsers/compute/detach_internet_gateway.rb +0 -24
  717. data/lib/fog/aws/parsers/compute/detach_network_interface.rb +0 -24
@@ -10,7 +10,61 @@ module Fog
10
10
  :path => "entities/#{entity_id}/checks"
11
11
  )
12
12
  end
13
+ end
14
+
15
+ class Mock
16
+ def list_checks(entity_id)
13
17
 
18
+ check_id = Fog::Mock.random_letters(10)
19
+
20
+ if entity_id == -1
21
+ raise Fog::Rackspace::Monitoring::NotFound
22
+ end
23
+
24
+ response = Excon::Response.new
25
+ response.status = 200
26
+ response.body = {
27
+ "values" => [
28
+ {
29
+ "id" => check_id,
30
+ "label" => "load",
31
+ "type" => "agent.load_average",
32
+ "details" => {},
33
+ "monitoring_zones_poll" => nil,
34
+ "timeout" => 10,
35
+ "period" => 30,
36
+ "target_alias" => nil,
37
+ "target_hostname" => nil,
38
+ "target_resolver" => nil,
39
+ "disabled" => false,
40
+ "metadata" => nil,
41
+ "created_at" => Time.now.to_i - 1,
42
+ "updated_at" => Time.now.to_i
43
+ }
44
+ ],
45
+ "metadata" => {
46
+ "count" => 1,
47
+ "limit" => 100,
48
+ "marker" => nil,
49
+ "next_marker" => nil,
50
+ "next_href" => nil
51
+ }
52
+ }
53
+ response.headers = {
54
+ "Date" => Time.now.utc.to_s,
55
+ "Content-Type" => "application/json; charset=UTF-8",
56
+ "X-RateLimit-Limit" => "50000",
57
+ "X-RateLimit-Remaining" => "49627",
58
+ "X-RateLimit-Window" => "24 hours",
59
+ "X-RateLimit-Type" => "global",
60
+ "X-Response-Id" => "j23jlk234jl2j34j",
61
+ "X-LB" => "dfw1-maas-prod-api0",
62
+ "Vary" => "Accept-Encoding",
63
+ "Transfer-Encoding" => "chunked"
64
+ }
65
+ response.remote_ip = Fog::Rackspace::MockData.ipv4_address
66
+ response
67
+ end
14
68
  end
15
69
  end
16
70
  end
@@ -13,6 +13,43 @@ module Fog
13
13
  end
14
14
 
15
15
  end
16
+
17
+ class Mock
18
+
19
+ def list_data_points(entity_id, check_id, metric_name, options)
20
+
21
+ if entity_id == -1 || check_id == -1 || metric_name == -1 || options == -1
22
+ raise Fog::Rackspace::Monitoring::BadRequest
23
+ end
24
+
25
+ response = Excon::Response.new
26
+ response.status = 200
27
+ response.body = {
28
+ "values" => [],
29
+ "metadata"=> {
30
+ "count" =>0,
31
+ "limit" =>nil,
32
+ "marker" =>nil,
33
+ "next_marker" =>nil,
34
+ "next_href" =>nil
35
+ }
36
+ }
37
+ response.headers = {
38
+ "Date" => Time.now.utc.to_s,
39
+ "X-RateLimit-Limit" => "50000",
40
+ "X-RateLimit-Remaining" => "49627",
41
+ "X-RateLimit-Window" => "24 hours",
42
+ "X-RateLimit-Type" => "global",
43
+ "X-Response-Id" => "slknbnsodb9830unvnve",
44
+ "X-LB" => "ord1-maas-prod-api1",
45
+ "Content-Type" => "application/json; charset=UTF-8",
46
+ "Vary" => "Accept-Encoding",
47
+ "Transfer-Encoding" => "chunked"
48
+ }
49
+ response.remote_ip = Fog::Rackspace::MockData.ipv4_address
50
+ response
51
+ end
52
+ end
16
53
  end
17
54
  end
18
55
  end
@@ -11,7 +11,60 @@ module Fog
11
11
  :query => options
12
12
  )
13
13
  end
14
+ end
15
+
16
+ class Mock
17
+ def list_entities(options={})
18
+ account_id = Fog::Mock.random_numbers(6).to_s
19
+ server_id = Fog::Rackspace::MockData.uuid
20
+ entity_id = Fog::Mock.random_letters(10)
21
+ entity_label = Fog::Mock.random_letters(10)
14
22
 
23
+ response = Excon::Response.new
24
+ response.status = 200
25
+ response.body = {
26
+ "values"=> [
27
+ {
28
+ "id" => entity_id,
29
+ "label" => entity_label,
30
+ "ip_addresses" => {
31
+ "access_ip0_v6" => Fog::Rackspace::MockData.ipv6_address,
32
+ "public0_v4" => Fog::Rackspace::MockData.ipv4_address,
33
+ "public1_v6" => Fog::Rackspace::MockData.ipv6_address,
34
+ "access_ip1_v4" => Fog::Rackspace::MockData.ipv4_address,
35
+ "private0_v4" => Fog::Rackspace::MockData.ipv4_address
36
+ },
37
+ "metadata" => nil,
38
+ "managed" => false,
39
+ "uri" => "https://ord.servers.api.rackspacecloud.com/" + account_id + "/servers/" + server_id,
40
+ "agent_id" => nil,
41
+ "created_at" => Time.now.to_i - 1,
42
+ "updated_at" => Time.now.to_i
43
+ }
44
+ ],
45
+ "metadata" => {
46
+ "count" => 1,
47
+ "limit" => 100,
48
+ "marker" => nil,
49
+ "next_marker" => nil,
50
+ "next_href" => nil
51
+ }
52
+ }
53
+ response.headers = {
54
+ "Date" => Time.now.utc.to_s,
55
+ "Content-Type" => "application/json; charset=UTF-8",
56
+ "X-RateLimit-Limit" => "50000",
57
+ "X-RateLimit-Remaining" => "49627",
58
+ "X-RateLimit-Window" => "24 hours",
59
+ "X-RateLimit-Type" => "global",
60
+ "X-Response-Id" => "j23jlk234jl2j34j",
61
+ "X-LB" => "dfw1-maas-prod-api0",
62
+ "Vary" => "Accept-Encoding",
63
+ "Transfer-Encoding" => "chunked"
64
+ }
65
+ response.remote_ip = Fog::Rackspace::MockData.ipv4_address
66
+ response
67
+ end
15
68
  end
16
69
  end
17
70
  end
@@ -10,8 +10,73 @@ module Fog
10
10
  :path => "entities/#{entity_id}/checks/#{check_id}/metrics"
11
11
  )
12
12
  end
13
+ end
14
+
15
+ class Mock
16
+ def list_metrics(entity_id, check_id)
17
+ response = Excon::Response.new
18
+ response.status = 200
19
+ response.body = {
20
+ "values" => [
21
+ {
22
+ "name" => "idle_percent_average",
23
+ "unit" => "percent"
24
+ },
25
+ { "name" => "irq_percent_average",
26
+ "unit" => "percent"
27
+ },
28
+ { "name" => "max_cpu_usage",
29
+ "unit" => "percent"
30
+ },
31
+ { "name" => "min_cpu_usage",
32
+ "unit" => "percent"
33
+ },
34
+ { "name" => "stolen_percent_average",
35
+ "unit" => "percent"
36
+ },
37
+ { "name" => "sys_percent_average",
38
+ "unit" => "percent"
39
+ },
40
+ {
41
+ "name" => "usage_average",
42
+ "unit" => "percent"
43
+ },
44
+ { "name" => "user_percent_average",
45
+ "unit" => "percent"
46
+ },
47
+ { "name" => "wait_percent_average",
48
+ "unit" => "percent"
49
+ }
50
+ ],
51
+
52
+ "metadata" => {
53
+ "count" => 9,
54
+ "limit" => nil,
55
+ "marker" => nil,
56
+ "next_marker" => nil,
57
+ "next_href" => nil
58
+ }
13
59
 
60
+ }
61
+
62
+ response.headers = {
63
+ "Date" => Time.now.utc.to_s,
64
+ "Content-Type" => "application/json; charset=UTF-8",
65
+ "X-RateLimit-Limit" => "50000",
66
+ "X-RateLimit-Remaining" => "49627",
67
+ "X-RateLimit-Window" => "24 hours",
68
+ "X-RateLimit-Type" => "global",
69
+ "X-Response-Id" => "zsdvasdtrq345",
70
+ "X-LB" => "dfw1-maas-prod-api0",
71
+ "Vary" => "Accept-Encoding",
72
+ "Transfer-Encoding" => "chunked"
73
+ }
74
+
75
+ response.remote_ip = Fog::Rackspace::MockData.ipv4_address
76
+ response
77
+ end
14
78
  end
79
+
15
80
  end
16
81
  end
17
82
  end
@@ -10,8 +10,63 @@ module Fog
10
10
  :path => "notification_plans"
11
11
  )
12
12
  end
13
+ end
14
+
15
+ class Mock
16
+ def list_notification_plans
17
+ notification_id = Fog::Mock.random_letters(10)
18
+
19
+ response = Excon::Response.new
20
+ response.status = 200
21
+ response.body = {
22
+ "values" => [
23
+ {
24
+ "id" => "npTechnicalContactsEmail",
25
+ "label" => "Technical Contacts - Email",
26
+ "critical_state" => [],
27
+ "warning_state" => [],
28
+ "ok_state" => []
29
+ },
30
+
31
+ {
32
+ "id" => "notification_id",
33
+ "label" => "mock_label",
34
+ "critical_state" => nil,
35
+ "warning_state" => nil,
36
+ "ok_state" => nil,
37
+ "created_at" => Time.now.to_i - 2,
38
+ "updated_at" => Time.now.to_i - 1
39
+ }
40
+ ],
13
41
 
42
+ "metadata" => {
43
+ "count" => 2,
44
+ "limit" => 100,
45
+ "marker" => nil,
46
+ "next_marker" => nil,
47
+ "next_href" => nil
48
+ }
49
+
50
+ }
51
+
52
+ response.headers = {
53
+ "Date" => Time.now.utc.to_s,
54
+ "Content-Type" => "application/json; charset=UTF-8",
55
+ "X-RateLimit-Limit" => "50000",
56
+ "X-RateLimit-Remaining" => "49627",
57
+ "X-RateLimit-Window" => "24 hours",
58
+ "X-RateLimit-Type" => "global",
59
+ "X-Response-Id" =>" zsdvasdtrq345",
60
+ "X-LB" => "dfw1-maas-prod-api0",
61
+ "Vary" => "Accept-Encoding",
62
+ "Transfer-Encoding" => "chunked"
63
+ }
64
+
65
+ response.remote_ip = Fog::Rackspace::MockData.ipv4_address
66
+ response
67
+ end
14
68
  end
69
+
15
70
  end
16
71
  end
17
72
  end
@@ -0,0 +1,67 @@
1
+ module Fog
2
+ module Rackspace
3
+ class Monitoring
4
+ class Real
5
+
6
+ def list_notifications(options={})
7
+ request(
8
+ :expects => [200],
9
+ :method => 'GET',
10
+ :path => "notifications",
11
+ :query => options
12
+ )
13
+ end
14
+
15
+ end
16
+
17
+ class Mock
18
+ def list_notifications(options={})
19
+ account_id = Fog::Mock.random_numbers(6).to_s
20
+ server_id = Fog::Rackspace::MockData.uuid
21
+ entity_id = Fog::Mock.random_letters(10)
22
+ entity_label = Fog::Mock.random_letters(10)
23
+
24
+ response = Excon::Response.new
25
+ response.status = 200
26
+ response.body = {
27
+ "values"=> [
28
+ {
29
+ "created_at"=>1378783452067,
30
+ "details"=>{
31
+ "address"=>"test@test.com"
32
+ },
33
+ "id"=>"ntnJN3MQrA",
34
+ "label"=>"my email update test",
35
+ "type"=>"email",
36
+ "updated_at"=>1378784136307
37
+ }
38
+ ],
39
+ "metadata" => {
40
+ "count" => 1,
41
+ "limit" => 100,
42
+ "marker" => nil,
43
+ "next_marker" => nil,
44
+ "next_href" => nil
45
+ }
46
+ }
47
+ response.headers = {
48
+ "Date" => Time.now.utc.to_s,
49
+ "Content-Type" => "application/json; charset=UTF-8",
50
+ "X-RateLimit-Limit" => "50000",
51
+ "X-RateLimit-Remaining" => "49627",
52
+ "X-RateLimit-Window" => "24 hours",
53
+ "X-RateLimit-Type" => "global",
54
+ "X-Response-Id" => "j23jlk234jl2j34j",
55
+ "X-LB" => "dfw1-maas-prod-api0",
56
+ "Vary" => "Accept-Encoding",
57
+ "Transfer-Encoding" => "chunked"
58
+ }
59
+ response.remote_ip = Fog::Rackspace::MockData.ipv4_address
60
+ response
61
+ end
62
+ end
63
+
64
+ end
65
+ end
66
+ end
67
+
@@ -11,8 +11,104 @@ module Fog
11
11
  :query => options
12
12
  )
13
13
  end
14
-
15
14
  end
15
+
16
+ class Mock
17
+ def list_overview(options={})
18
+
19
+ alarm_id = Fog::Mock.random_letters(10)
20
+ check_id = Fog::Mock.random_letters(10)
21
+ entity_id = Fog::Mock.random_letters(10)
22
+ account_id = Fog::Mock.random_numbers(6).to_s
23
+ server_id = Fog::Rackspace::MockData.uuid
24
+
25
+ response = Excon::Response.new
26
+ response.status = 200
27
+ response.body = {
28
+ "values" => [
29
+ {
30
+ "entity" => {
31
+ "id" => entity_id,
32
+ "label" => "mock_entity",
33
+ "ip_addresses" => {
34
+ "access_ip0_v6" => Fog::Rackspace::MockData.ipv6_address,
35
+ "public0_v4" => Fog::Rackspace::MockData.ipv4_address,
36
+ "public1_v6" => Fog::Rackspace::MockData.ipv6_address,
37
+ "access_ip1_v4" => Fog::Rackspace::MockData.ipv4_address,
38
+ "private0_v4" => Fog::Rackspace::MockData.ipv4_address
39
+ },
40
+ "metadata" => {
41
+ "testing" => "Bar"
42
+ },
43
+ "managed" => false,
44
+ "uri" => "https://ord.servers.api.rackspacecloud.com/" + account_id + "/servers/" + server_id,
45
+ "agent_id" => nil,
46
+ "created_at" => Time.now.to_i - 1,
47
+ "updated_at" => Time.now.to_i
48
+ },
49
+ "checks" => [
50
+ {
51
+ "id" => check_id,
52
+ "label" => "mock",
53
+ "type" => "remote.mock",
54
+ "details" => {},
55
+ "monitoring_zones_poll" => nil,
56
+ "timeout" => 10,
57
+ "period" => 30,
58
+ "target_alias" => nil,
59
+ "target_hostname" => nil,
60
+ "target_resolver" => nil,
61
+ "disabled " => false,
62
+ "metadata" => nil,
63
+ "created_at" => Time.now.to_i - 1,
64
+ "updated_at" => Time.now.to_i
65
+ }
66
+ ],
67
+ "alarms" => [
68
+ {
69
+ "id" => alarm_id,
70
+ "label" => nil,
71
+ "check_id" => check_id,
72
+ "criteria" => nil,
73
+ "disabled" => false,
74
+ "notification_plan_id" => "npTechnicalContactsEmail",
75
+ "metadata" => nil,
76
+ "created_at" => Time.now.to_i - 1,
77
+ "updated_at" => Time.now.to_i
78
+ }
79
+ ],
80
+ "latest_alarm_states" => []
81
+ }
82
+ ],
83
+
84
+ "metadata" => {
85
+ "count" => 1,
86
+ "limit" => 100,
87
+ "marker" => nil,
88
+ "next_marker" => nil,
89
+ "next_href" => nil
90
+ }
91
+
92
+ }
93
+
94
+ response.headers = {
95
+ "Date" => Time.now.utc.to_s,
96
+ "Content-Type" => "application/json; charset=UTF-8",
97
+ "X-RateLimit-Limit" => "50000",
98
+ "X-RateLimit-Remaining" => "49627",
99
+ "X-RateLimit-Window" => "24 hours",
100
+ "X-RateLimit-Type" => "global",
101
+ "X-Response-Id" =>" zsdvasdtrq345",
102
+ "X-LB" => "dfw1-maas-prod-api0",
103
+ "Vary" => "Accept-Encoding",
104
+ "Transfer-Encoding" => "chunked"
105
+ }
106
+
107
+ response.remote_ip = Fog::Rackspace::MockData.ipv4_address
108
+ response
109
+ end
110
+ end
111
+
16
112
  end
17
113
  end
18
114
  end