fog 1.23.0 → 1.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (936) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGELOG.md +275 -2
  3. data/CONTRIBUTORS.md +27 -0
  4. data/fog.gemspec +5 -2
  5. data/lib/fog/atmos/models/storage/files.rb +1 -1
  6. data/lib/fog/atmos/requests/storage/get_namespace.rb +6 -1
  7. data/lib/fog/aws/beanstalk.rb +29 -19
  8. data/lib/fog/aws/cdn.rb +14 -1
  9. data/lib/fog/aws/cloud_formation.rb +29 -19
  10. data/lib/fog/aws/compute.rb +20 -4
  11. data/lib/fog/aws/data_pipeline.rb +14 -4
  12. data/lib/fog/aws/dns.rb +19 -1
  13. data/lib/fog/aws/dynamodb.rb +14 -1
  14. data/lib/fog/aws/elasticache.rb +33 -23
  15. data/lib/fog/aws/emr.rb +20 -13
  16. data/lib/fog/aws/glacier.rb +13 -1
  17. data/lib/fog/aws/iam.rb +3 -0
  18. data/lib/fog/aws/models/auto_scaling/configuration.rb +1 -0
  19. data/lib/fog/aws/models/auto_scaling/instance.rb +1 -1
  20. data/lib/fog/aws/models/compute/server.rb +1 -2
  21. data/lib/fog/aws/models/compute/servers.rb +2 -2
  22. data/lib/fog/aws/models/dns/record.rb +19 -13
  23. data/lib/fog/aws/models/storage/file.rb +11 -2
  24. data/lib/fog/aws/parsers/compute/spot_instance_requests.rb +4 -2
  25. data/lib/fog/aws/parsers/dns/create_health_check.rb +0 -0
  26. data/lib/fog/aws/parsers/dns/health_check.rb +33 -0
  27. data/lib/fog/aws/parsers/dns/list_health_checks.rb +41 -0
  28. data/lib/fog/aws/parsers/dns/list_resource_record_sets.rb +8 -2
  29. data/lib/fog/aws/parsers/iam/get_account_password_policy.rb +26 -0
  30. data/lib/fog/aws/rds.rb +39 -29
  31. data/lib/fog/aws/redshift.rb +16 -4
  32. data/lib/fog/aws/region_methods.rb +2 -2
  33. data/lib/fog/aws/requests/auto_scaling/create_launch_configuration.rb +3 -0
  34. data/lib/fog/aws/requests/compute/describe_instances.rb +3 -0
  35. data/lib/fog/aws/requests/dns/change_resource_record_sets.rb +20 -1
  36. data/lib/fog/aws/requests/dns/create_health_check.rb +64 -0
  37. data/lib/fog/aws/requests/dns/delete_health_check.rb +24 -0
  38. data/lib/fog/aws/requests/dns/get_health_check.rb +41 -0
  39. data/lib/fog/aws/requests/dns/list_health_checks.rb +36 -0
  40. data/lib/fog/aws/requests/dns/list_hosted_zones.rb +1 -1
  41. data/lib/fog/aws/requests/iam/delete_account_password_policy.rb +36 -0
  42. data/lib/fog/aws/requests/iam/get_account_password_policy.rb +36 -0
  43. data/lib/fog/aws/requests/iam/update_account_password_policy.rb +56 -0
  44. data/lib/fog/aws/requests/storage/head_bucket.rb +38 -0
  45. data/lib/fog/aws/ses.rb +31 -23
  46. data/lib/fog/aws/simpledb.rb +14 -4
  47. data/lib/fog/aws/sns.rb +14 -4
  48. data/lib/fog/aws/sqs.rb +17 -7
  49. data/lib/fog/aws/storage.rb +18 -9
  50. data/lib/fog/aws/sts.rb +29 -19
  51. data/lib/fog/bin/google.rb +16 -4
  52. data/lib/fog/cloudstack/compute.rb +49 -19
  53. data/lib/fog/cloudstack/requests/compute/activate_project.rb +10 -6
  54. data/lib/fog/cloudstack/requests/compute/add_account_to_project.rb +10 -6
  55. data/lib/fog/cloudstack/requests/compute/add_baremetal_dhcp.rb +14 -10
  56. data/lib/fog/cloudstack/requests/compute/add_baremetal_host.rb +15 -11
  57. data/lib/fog/cloudstack/requests/compute/add_baremetal_pxe_kick_start_server.rb +15 -11
  58. data/lib/fog/cloudstack/requests/compute/add_baremetal_pxe_ping_server.rb +17 -13
  59. data/lib/fog/cloudstack/requests/compute/add_big_switch_vns_device.rb +26 -0
  60. data/lib/fog/cloudstack/requests/compute/add_cisco_asa1000v_resource.rb +13 -9
  61. data/lib/fog/cloudstack/requests/compute/add_cisco_vnmc_resource.rb +13 -9
  62. data/lib/fog/cloudstack/requests/compute/add_cluster.rb +14 -10
  63. data/lib/fog/cloudstack/requests/compute/add_external_firewall.rb +13 -9
  64. data/lib/fog/cloudstack/requests/compute/add_external_load_balancer.rb +13 -9
  65. data/lib/fog/cloudstack/requests/compute/add_f5_load_balancer.rb +14 -10
  66. data/lib/fog/cloudstack/requests/compute/add_guest_os.rb +26 -0
  67. data/lib/fog/cloudstack/requests/compute/add_guest_os_mapping.rb +27 -0
  68. data/lib/fog/cloudstack/requests/compute/add_host.rb +15 -11
  69. data/lib/fog/cloudstack/requests/compute/add_image_store.rb +10 -6
  70. data/lib/fog/cloudstack/requests/compute/add_ip_to_nic.rb +10 -6
  71. data/lib/fog/cloudstack/requests/compute/add_ldap_configuration.rb +26 -0
  72. data/lib/fog/cloudstack/requests/compute/add_netscaler_load_balancer.rb +14 -10
  73. data/lib/fog/cloudstack/requests/compute/add_network_device.rb +9 -5
  74. data/lib/fog/cloudstack/requests/compute/add_network_service_provider.rb +11 -7
  75. data/lib/fog/cloudstack/requests/compute/add_nic_to_virtual_machine.rb +11 -7
  76. data/lib/fog/cloudstack/requests/compute/add_nicira_nvp_device.rb +14 -10
  77. data/lib/fog/cloudstack/requests/compute/add_open_daylight_controller.rb +28 -0
  78. data/lib/fog/cloudstack/requests/compute/add_palo_alto_firewall.rb +29 -0
  79. data/lib/fog/cloudstack/requests/compute/add_region.rb +12 -8
  80. data/lib/fog/cloudstack/requests/compute/add_resource_detail.rb +12 -8
  81. data/lib/fog/cloudstack/requests/compute/add_s3.rb +12 -8
  82. data/lib/fog/cloudstack/requests/compute/add_secondary_storage.rb +10 -6
  83. data/lib/fog/cloudstack/requests/compute/add_srx_firewall.rb +14 -10
  84. data/lib/fog/cloudstack/requests/compute/add_stratosphere_ssp.rb +27 -0
  85. data/lib/fog/cloudstack/requests/compute/add_swift.rb +10 -6
  86. data/lib/fog/cloudstack/requests/compute/add_traffic_monitor.rb +11 -7
  87. data/lib/fog/cloudstack/requests/compute/add_traffic_type.rb +11 -7
  88. data/lib/fog/cloudstack/requests/compute/add_ucs_manager.rb +13 -9
  89. data/lib/fog/cloudstack/requests/compute/add_vmware_dc.rb +12 -8
  90. data/lib/fog/cloudstack/requests/compute/add_vpn_user.rb +11 -7
  91. data/lib/fog/cloudstack/requests/compute/archive_alerts.rb +9 -5
  92. data/lib/fog/cloudstack/requests/compute/archive_events.rb +9 -5
  93. data/lib/fog/cloudstack/requests/compute/assign_cert_to_load_balancer.rb +26 -0
  94. data/lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb +11 -7
  95. data/lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb +10 -7
  96. data/lib/fog/cloudstack/requests/compute/assign_virtual_machine.rb +12 -8
  97. data/lib/fog/cloudstack/requests/compute/associate_ip_address.rb +9 -5
  98. data/lib/fog/cloudstack/requests/compute/associate_ucs_profile_to_blade.rb +12 -8
  99. data/lib/fog/cloudstack/requests/compute/attach_iso.rb +11 -7
  100. data/lib/fog/cloudstack/requests/compute/attach_volume.rb +11 -7
  101. data/lib/fog/cloudstack/requests/compute/authorize_security_group_egress.rb +9 -5
  102. data/lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb +9 -5
  103. data/lib/fog/cloudstack/requests/compute/cancel_host_maintenance.rb +10 -6
  104. data/lib/fog/cloudstack/requests/compute/cancel_storage_maintenance.rb +10 -6
  105. data/lib/fog/cloudstack/requests/compute/change_service_for_router.rb +11 -7
  106. data/lib/fog/cloudstack/requests/compute/change_service_for_system_vm.rb +11 -7
  107. data/lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb +11 -7
  108. data/lib/fog/cloudstack/requests/compute/clean_vmreservations.rb +9 -5
  109. data/lib/fog/cloudstack/requests/compute/configure_f5_load_balancer.rb +10 -6
  110. data/lib/fog/cloudstack/requests/compute/configure_internal_load_balancer_element.rb +11 -7
  111. data/lib/fog/cloudstack/requests/compute/configure_netscaler_load_balancer.rb +10 -6
  112. data/lib/fog/cloudstack/requests/compute/configure_ovs_element.rb +26 -0
  113. data/lib/fog/cloudstack/requests/compute/configure_palo_alto_firewall.rb +25 -0
  114. data/lib/fog/cloudstack/requests/compute/configure_srx_firewall.rb +10 -6
  115. data/lib/fog/cloudstack/requests/compute/configure_virtual_router_element.rb +11 -7
  116. data/lib/fog/cloudstack/requests/compute/copy_iso.rb +11 -8
  117. data/lib/fog/cloudstack/requests/compute/copy_template.rb +11 -8
  118. data/lib/fog/cloudstack/requests/compute/create_account.rb +15 -11
  119. data/lib/fog/cloudstack/requests/compute/create_affinity_group.rb +11 -7
  120. data/lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb +12 -8
  121. data/lib/fog/cloudstack/requests/compute/create_auto_scale_vm_group.rb +15 -11
  122. data/lib/fog/cloudstack/requests/compute/create_auto_scale_vm_profile.rb +12 -8
  123. data/lib/fog/cloudstack/requests/compute/create_condition.rb +12 -8
  124. data/lib/fog/cloudstack/requests/compute/create_counter.rb +12 -8
  125. data/lib/fog/cloudstack/requests/compute/create_disk_offering.rb +11 -7
  126. data/lib/fog/cloudstack/requests/compute/create_domain.rb +10 -6
  127. data/lib/fog/cloudstack/requests/compute/create_egress_firewall_rule.rb +11 -7
  128. data/lib/fog/cloudstack/requests/compute/create_firewall_rule.rb +11 -7
  129. data/lib/fog/cloudstack/requests/compute/create_global_load_balancer_rule.rb +13 -9
  130. data/lib/fog/cloudstack/requests/compute/create_instance_group.rb +10 -6
  131. data/lib/fog/cloudstack/requests/compute/create_internal_load_balancer_element.rb +10 -6
  132. data/lib/fog/cloudstack/requests/compute/create_ip_forwarding_rule.rb +12 -8
  133. data/lib/fog/cloudstack/requests/compute/create_lb_health_check_policy.rb +10 -6
  134. data/lib/fog/cloudstack/requests/compute/create_lb_stickiness_policy.rb +12 -8
  135. data/lib/fog/cloudstack/requests/compute/create_load_balancer.rb +16 -12
  136. data/lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb +13 -9
  137. data/lib/fog/cloudstack/requests/compute/create_network.rb +13 -9
  138. data/lib/fog/cloudstack/requests/compute/create_network_acl.rb +10 -6
  139. data/lib/fog/cloudstack/requests/compute/create_network_acl_list.rb +11 -7
  140. data/lib/fog/cloudstack/requests/compute/create_network_offering.rb +14 -10
  141. data/lib/fog/cloudstack/requests/compute/create_physical_network.rb +11 -7
  142. data/lib/fog/cloudstack/requests/compute/create_pod.rb +14 -10
  143. data/lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb +14 -10
  144. data/lib/fog/cloudstack/requests/compute/create_portable_ip_range.rb +14 -10
  145. data/lib/fog/cloudstack/requests/compute/create_private_gateway.rb +14 -10
  146. data/lib/fog/cloudstack/requests/compute/create_project.rb +11 -7
  147. data/lib/fog/cloudstack/requests/compute/create_remote_access_vpn.rb +10 -6
  148. data/lib/fog/cloudstack/requests/compute/create_secondary_staging_store.rb +10 -6
  149. data/lib/fog/cloudstack/requests/compute/create_security_group.rb +10 -6
  150. data/lib/fog/cloudstack/requests/compute/create_service_instance.rb +30 -0
  151. data/lib/fog/cloudstack/requests/compute/create_service_offering.rb +11 -10
  152. data/lib/fog/cloudstack/requests/compute/create_snapshot.rb +10 -6
  153. data/lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb +14 -10
  154. data/lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb +10 -6
  155. data/lib/fog/cloudstack/requests/compute/create_static_route.rb +11 -7
  156. data/lib/fog/cloudstack/requests/compute/create_storage_network_ip_range.rb +13 -9
  157. data/lib/fog/cloudstack/requests/compute/create_storage_pool.rb +12 -8
  158. data/lib/fog/cloudstack/requests/compute/create_tags.rb +12 -8
  159. data/lib/fog/cloudstack/requests/compute/create_template.rb +12 -8
  160. data/lib/fog/cloudstack/requests/compute/create_user.rb +15 -11
  161. data/lib/fog/cloudstack/requests/compute/create_virtual_router_element.rb +10 -6
  162. data/lib/fog/cloudstack/requests/compute/create_vlan_ip_range.rb +9 -5
  163. data/lib/fog/cloudstack/requests/compute/create_vm_snapshot.rb +10 -6
  164. data/lib/fog/cloudstack/requests/compute/create_volume.rb +10 -6
  165. data/lib/fog/cloudstack/requests/compute/create_vpc.rb +14 -10
  166. data/lib/fog/cloudstack/requests/compute/create_vpcoffering.rb +12 -8
  167. data/lib/fog/cloudstack/requests/compute/create_vpn_connection.rb +11 -7
  168. data/lib/fog/cloudstack/requests/compute/create_vpn_customer_gateway.rb +14 -10
  169. data/lib/fog/cloudstack/requests/compute/create_vpn_gateway.rb +10 -6
  170. data/lib/fog/cloudstack/requests/compute/create_zone.rb +13 -9
  171. data/lib/fog/cloudstack/requests/compute/dedicate_cluster.rb +11 -7
  172. data/lib/fog/cloudstack/requests/compute/dedicate_guest_vlan_range.rb +13 -9
  173. data/lib/fog/cloudstack/requests/compute/dedicate_host.rb +11 -7
  174. data/lib/fog/cloudstack/requests/compute/dedicate_pod.rb +11 -7
  175. data/lib/fog/cloudstack/requests/compute/dedicate_public_ip_range.rb +12 -8
  176. data/lib/fog/cloudstack/requests/compute/dedicate_zone.rb +11 -7
  177. data/lib/fog/cloudstack/requests/compute/delete_account.rb +10 -6
  178. data/lib/fog/cloudstack/requests/compute/delete_account_from_project.rb +11 -7
  179. data/lib/fog/cloudstack/requests/compute/delete_affinity_group.rb +9 -5
  180. data/lib/fog/cloudstack/requests/compute/delete_alerts.rb +9 -5
  181. data/lib/fog/cloudstack/requests/compute/delete_auto_scale_policy.rb +10 -6
  182. data/lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_group.rb +10 -6
  183. data/lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_profile.rb +10 -6
  184. data/lib/fog/cloudstack/requests/compute/delete_big_switch_vns_device.rb +25 -0
  185. data/lib/fog/cloudstack/requests/compute/delete_cisco_asa1000v_resource.rb +10 -6
  186. data/lib/fog/cloudstack/requests/compute/delete_cisco_nexus_vsm.rb +10 -6
  187. data/lib/fog/cloudstack/requests/compute/delete_cisco_vnmc_resource.rb +10 -6
  188. data/lib/fog/cloudstack/requests/compute/delete_cluster.rb +10 -6
  189. data/lib/fog/cloudstack/requests/compute/delete_condition.rb +10 -6
  190. data/lib/fog/cloudstack/requests/compute/delete_counter.rb +10 -6
  191. data/lib/fog/cloudstack/requests/compute/delete_disk_offering.rb +10 -6
  192. data/lib/fog/cloudstack/requests/compute/delete_domain.rb +10 -6
  193. data/lib/fog/cloudstack/requests/compute/delete_egress_firewall_rule.rb +10 -6
  194. data/lib/fog/cloudstack/requests/compute/delete_events.rb +9 -5
  195. data/lib/fog/cloudstack/requests/compute/delete_external_firewall.rb +10 -6
  196. data/lib/fog/cloudstack/requests/compute/delete_external_load_balancer.rb +10 -6
  197. data/lib/fog/cloudstack/requests/compute/delete_f5_load_balancer.rb +10 -6
  198. data/lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb +10 -6
  199. data/lib/fog/cloudstack/requests/compute/delete_global_load_balancer_rule.rb +10 -6
  200. data/lib/fog/cloudstack/requests/compute/delete_host.rb +10 -6
  201. data/lib/fog/cloudstack/requests/compute/delete_image_store.rb +10 -6
  202. data/lib/fog/cloudstack/requests/compute/delete_instance_group.rb +10 -6
  203. data/lib/fog/cloudstack/requests/compute/delete_ip_forwarding_rule.rb +10 -6
  204. data/lib/fog/cloudstack/requests/compute/delete_iso.rb +10 -6
  205. data/lib/fog/cloudstack/requests/compute/delete_lb_health_check_policy.rb +10 -6
  206. data/lib/fog/cloudstack/requests/compute/delete_lb_stickiness_policy.rb +10 -6
  207. data/lib/fog/cloudstack/requests/compute/delete_ldap_configuration.rb +25 -0
  208. data/lib/fog/cloudstack/requests/compute/delete_load_balancer.rb +10 -6
  209. data/lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb +10 -6
  210. data/lib/fog/cloudstack/requests/compute/delete_netscaler_load_balancer.rb +10 -6
  211. data/lib/fog/cloudstack/requests/compute/delete_network.rb +10 -6
  212. data/lib/fog/cloudstack/requests/compute/delete_network_acl.rb +10 -6
  213. data/lib/fog/cloudstack/requests/compute/delete_network_acl_list.rb +10 -6
  214. data/lib/fog/cloudstack/requests/compute/delete_network_device.rb +10 -6
  215. data/lib/fog/cloudstack/requests/compute/delete_network_offering.rb +10 -6
  216. data/lib/fog/cloudstack/requests/compute/delete_network_service_provider.rb +10 -6
  217. data/lib/fog/cloudstack/requests/compute/delete_nicira_nvp_device.rb +10 -6
  218. data/lib/fog/cloudstack/requests/compute/delete_open_daylight_controller.rb +25 -0
  219. data/lib/fog/cloudstack/requests/compute/delete_palo_alto_firewall.rb +25 -0
  220. data/lib/fog/cloudstack/requests/compute/delete_physical_network.rb +10 -6
  221. data/lib/fog/cloudstack/requests/compute/delete_pod.rb +10 -6
  222. data/lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb +10 -6
  223. data/lib/fog/cloudstack/requests/compute/delete_portable_ip_range.rb +10 -6
  224. data/lib/fog/cloudstack/requests/compute/delete_private_gateway.rb +10 -6
  225. data/lib/fog/cloudstack/requests/compute/delete_project.rb +10 -6
  226. data/lib/fog/cloudstack/requests/compute/delete_project_invitation.rb +10 -6
  227. data/lib/fog/cloudstack/requests/compute/delete_remote_access_vpn.rb +10 -6
  228. data/lib/fog/cloudstack/requests/compute/delete_secondary_staging_store.rb +10 -6
  229. data/lib/fog/cloudstack/requests/compute/delete_security_group.rb +9 -5
  230. data/lib/fog/cloudstack/requests/compute/delete_service_offering.rb +10 -6
  231. data/lib/fog/cloudstack/requests/compute/delete_snapshot.rb +10 -6
  232. data/lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb +9 -5
  233. data/lib/fog/cloudstack/requests/compute/delete_srx_firewall.rb +10 -6
  234. data/lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb +10 -6
  235. data/lib/fog/cloudstack/requests/compute/delete_ssl_cert.rb +25 -0
  236. data/lib/fog/cloudstack/requests/compute/delete_static_route.rb +10 -6
  237. data/lib/fog/cloudstack/requests/compute/delete_storage_network_ip_range.rb +10 -6
  238. data/lib/fog/cloudstack/requests/compute/delete_storage_pool.rb +10 -6
  239. data/lib/fog/cloudstack/requests/compute/delete_tags.rb +11 -7
  240. data/lib/fog/cloudstack/requests/compute/delete_template.rb +10 -6
  241. data/lib/fog/cloudstack/requests/compute/delete_traffic_monitor.rb +10 -6
  242. data/lib/fog/cloudstack/requests/compute/delete_traffic_type.rb +10 -6
  243. data/lib/fog/cloudstack/requests/compute/delete_user.rb +10 -6
  244. data/lib/fog/cloudstack/requests/compute/delete_vlan_ip_range.rb +10 -6
  245. data/lib/fog/cloudstack/requests/compute/delete_vm_snapshot.rb +10 -6
  246. data/lib/fog/cloudstack/requests/compute/delete_volume.rb +10 -6
  247. data/lib/fog/cloudstack/requests/compute/delete_vpc.rb +10 -6
  248. data/lib/fog/cloudstack/requests/compute/delete_vpcoffering.rb +10 -6
  249. data/lib/fog/cloudstack/requests/compute/delete_vpn_connection.rb +10 -6
  250. data/lib/fog/cloudstack/requests/compute/delete_vpn_customer_gateway.rb +10 -6
  251. data/lib/fog/cloudstack/requests/compute/delete_vpn_gateway.rb +10 -6
  252. data/lib/fog/cloudstack/requests/compute/delete_zone.rb +10 -6
  253. data/lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb +12 -8
  254. data/lib/fog/cloudstack/requests/compute/destroy_router.rb +10 -6
  255. data/lib/fog/cloudstack/requests/compute/destroy_system_vm.rb +10 -6
  256. data/lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb +10 -6
  257. data/lib/fog/cloudstack/requests/compute/detach_iso.rb +10 -6
  258. data/lib/fog/cloudstack/requests/compute/detach_volume.rb +9 -5
  259. data/lib/fog/cloudstack/requests/compute/disable_account.rb +10 -6
  260. data/lib/fog/cloudstack/requests/compute/disable_auto_scale_vm_group.rb +10 -6
  261. data/lib/fog/cloudstack/requests/compute/disable_cisco_nexus_vsm.rb +10 -6
  262. data/lib/fog/cloudstack/requests/compute/disable_static_nat.rb +10 -6
  263. data/lib/fog/cloudstack/requests/compute/disable_user.rb +10 -6
  264. data/lib/fog/cloudstack/requests/compute/disassociate_ip_address.rb +10 -6
  265. data/lib/fog/cloudstack/requests/compute/enable_account.rb +9 -5
  266. data/lib/fog/cloudstack/requests/compute/enable_auto_scale_vm_group.rb +10 -6
  267. data/lib/fog/cloudstack/requests/compute/enable_cisco_nexus_vsm.rb +10 -6
  268. data/lib/fog/cloudstack/requests/compute/enable_static_nat.rb +11 -7
  269. data/lib/fog/cloudstack/requests/compute/enable_storage_maintenance.rb +10 -6
  270. data/lib/fog/cloudstack/requests/compute/enable_user.rb +10 -6
  271. data/lib/fog/cloudstack/requests/compute/expunge_virtual_machine.rb +25 -0
  272. data/lib/fog/cloudstack/requests/compute/extract_iso.rb +11 -7
  273. data/lib/fog/cloudstack/requests/compute/extract_template.rb +50 -7
  274. data/lib/fog/cloudstack/requests/compute/extract_volume.rb +12 -8
  275. data/lib/fog/cloudstack/requests/compute/find_hosts_for_migration.rb +10 -6
  276. data/lib/fog/cloudstack/requests/compute/find_storage_pools_for_migration.rb +10 -6
  277. data/lib/fog/cloudstack/requests/compute/generate_alert.rb +27 -0
  278. data/lib/fog/cloudstack/requests/compute/generate_usage_records.rb +11 -7
  279. data/lib/fog/cloudstack/requests/compute/get_api_limit.rb +9 -5
  280. data/lib/fog/cloudstack/requests/compute/get_cloud_identifier.rb +10 -6
  281. data/lib/fog/cloudstack/requests/compute/get_user.rb +10 -6
  282. data/lib/fog/cloudstack/requests/compute/get_virtual_machine_user_data.rb +25 -0
  283. data/lib/fog/cloudstack/requests/compute/get_vm_password.rb +10 -6
  284. data/lib/fog/cloudstack/requests/compute/import_ldap_users.rb +25 -0
  285. data/lib/fog/cloudstack/requests/compute/ldap_create_account.rb +26 -0
  286. data/lib/fog/cloudstack/requests/compute/list_accounts.rb +9 -5
  287. data/lib/fog/cloudstack/requests/compute/list_affinity_group_types.rb +9 -5
  288. data/lib/fog/cloudstack/requests/compute/list_affinity_groups.rb +9 -5
  289. data/lib/fog/cloudstack/requests/compute/list_alerts.rb +9 -5
  290. data/lib/fog/cloudstack/requests/compute/list_apis.rb +9 -5
  291. data/lib/fog/cloudstack/requests/compute/list_async_jobs.rb +9 -5
  292. data/lib/fog/cloudstack/requests/compute/list_auto_scale_policies.rb +9 -5
  293. data/lib/fog/cloudstack/requests/compute/list_auto_scale_vm_groups.rb +9 -5
  294. data/lib/fog/cloudstack/requests/compute/list_auto_scale_vm_profiles.rb +9 -5
  295. data/lib/fog/cloudstack/requests/compute/list_baremetal_dhcp.rb +9 -5
  296. data/lib/fog/cloudstack/requests/compute/list_baremetal_pxe_servers.rb +9 -5
  297. data/lib/fog/cloudstack/requests/compute/list_big_switch_vns_devices.rb +24 -0
  298. data/lib/fog/cloudstack/requests/compute/list_capabilities.rb +9 -5
  299. data/lib/fog/cloudstack/requests/compute/list_capacity.rb +9 -5
  300. data/lib/fog/cloudstack/requests/compute/list_cisco_asa1000v_resources.rb +9 -5
  301. data/lib/fog/cloudstack/requests/compute/list_cisco_nexus_vsms.rb +9 -5
  302. data/lib/fog/cloudstack/requests/compute/list_cisco_vnmc_resources.rb +9 -5
  303. data/lib/fog/cloudstack/requests/compute/list_clusters.rb +9 -5
  304. data/lib/fog/cloudstack/requests/compute/list_conditions.rb +9 -5
  305. data/lib/fog/cloudstack/requests/compute/list_configurations.rb +9 -5
  306. data/lib/fog/cloudstack/requests/compute/list_counters.rb +9 -5
  307. data/lib/fog/cloudstack/requests/compute/list_dedicated_clusters.rb +9 -5
  308. data/lib/fog/cloudstack/requests/compute/list_dedicated_guest_vlan_ranges.rb +9 -5
  309. data/lib/fog/cloudstack/requests/compute/list_dedicated_hosts.rb +9 -5
  310. data/lib/fog/cloudstack/requests/compute/list_dedicated_pods.rb +9 -5
  311. data/lib/fog/cloudstack/requests/compute/list_dedicated_zones.rb +9 -5
  312. data/lib/fog/cloudstack/requests/compute/list_deployment_planners.rb +9 -5
  313. data/lib/fog/cloudstack/requests/compute/list_disk_offerings.rb +9 -5
  314. data/lib/fog/cloudstack/requests/compute/list_domain_children.rb +9 -5
  315. data/lib/fog/cloudstack/requests/compute/list_domains.rb +9 -5
  316. data/lib/fog/cloudstack/requests/compute/list_egress_firewall_rules.rb +9 -5
  317. data/lib/fog/cloudstack/requests/compute/list_event_types.rb +9 -5
  318. data/lib/fog/cloudstack/requests/compute/list_events.rb +9 -5
  319. data/lib/fog/cloudstack/requests/compute/list_external_firewalls.rb +10 -6
  320. data/lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb +9 -5
  321. data/lib/fog/cloudstack/requests/compute/list_f5_load_balancer_networks.rb +10 -6
  322. data/lib/fog/cloudstack/requests/compute/list_f5_load_balancers.rb +9 -5
  323. data/lib/fog/cloudstack/requests/compute/list_firewall_rules.rb +9 -5
  324. data/lib/fog/cloudstack/requests/compute/list_global_load_balancer_rules.rb +9 -5
  325. data/lib/fog/cloudstack/requests/compute/list_guest_os_mapping.rb +24 -0
  326. data/lib/fog/cloudstack/requests/compute/list_hosts.rb +9 -5
  327. data/lib/fog/cloudstack/requests/compute/list_hypervisor_capabilities.rb +9 -5
  328. data/lib/fog/cloudstack/requests/compute/list_hypervisors.rb +9 -5
  329. data/lib/fog/cloudstack/requests/compute/list_image_stores.rb +9 -5
  330. data/lib/fog/cloudstack/requests/compute/list_instance_groups.rb +9 -5
  331. data/lib/fog/cloudstack/requests/compute/list_internal_load_balancer_elements.rb +9 -5
  332. data/lib/fog/cloudstack/requests/compute/list_internal_load_balancer_vms.rb +9 -5
  333. data/lib/fog/cloudstack/requests/compute/list_ip_forwarding_rules.rb +9 -5
  334. data/lib/fog/cloudstack/requests/compute/list_iso_permissions.rb +10 -6
  335. data/lib/fog/cloudstack/requests/compute/list_isos.rb +9 -5
  336. data/lib/fog/cloudstack/requests/compute/list_lb_health_check_policies.rb +9 -6
  337. data/lib/fog/cloudstack/requests/compute/list_lb_stickiness_policies.rb +9 -6
  338. data/lib/fog/cloudstack/requests/compute/list_ldap_configurations.rb +24 -0
  339. data/lib/fog/cloudstack/requests/compute/list_ldap_users.rb +24 -0
  340. data/lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb +10 -6
  341. data/lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb +9 -5
  342. data/lib/fog/cloudstack/requests/compute/list_load_balancers.rb +9 -5
  343. data/lib/fog/cloudstack/requests/compute/list_netscaler_load_balancer_networks.rb +10 -6
  344. data/lib/fog/cloudstack/requests/compute/list_netscaler_load_balancers.rb +9 -5
  345. data/lib/fog/cloudstack/requests/compute/list_network_acl_lists.rb +9 -5
  346. data/lib/fog/cloudstack/requests/compute/list_network_acls.rb +9 -5
  347. data/lib/fog/cloudstack/requests/compute/list_network_device.rb +9 -5
  348. data/lib/fog/cloudstack/requests/compute/list_network_isolation_methods.rb +9 -5
  349. data/lib/fog/cloudstack/requests/compute/list_network_offerings.rb +9 -5
  350. data/lib/fog/cloudstack/requests/compute/list_network_service_providers.rb +9 -5
  351. data/lib/fog/cloudstack/requests/compute/list_networks.rb +9 -5
  352. data/lib/fog/cloudstack/requests/compute/list_nicira_nvp_device_networks.rb +10 -6
  353. data/lib/fog/cloudstack/requests/compute/list_nicira_nvp_devices.rb +9 -5
  354. data/lib/fog/cloudstack/requests/compute/list_nics.rb +10 -6
  355. data/lib/fog/cloudstack/requests/compute/list_open_daylight_controllers.rb +24 -0
  356. data/lib/fog/cloudstack/requests/compute/list_os_categories.rb +9 -5
  357. data/lib/fog/cloudstack/requests/compute/list_os_types.rb +9 -5
  358. data/lib/fog/cloudstack/requests/compute/list_ovs_elements.rb +24 -0
  359. data/lib/fog/cloudstack/requests/compute/list_palo_alto_firewall_networks.rb +25 -0
  360. data/lib/fog/cloudstack/requests/compute/list_palo_alto_firewalls.rb +24 -0
  361. data/lib/fog/cloudstack/requests/compute/list_physical_networks.rb +9 -5
  362. data/lib/fog/cloudstack/requests/compute/list_pods.rb +9 -5
  363. data/lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb +9 -5
  364. data/lib/fog/cloudstack/requests/compute/list_portable_ip_ranges.rb +9 -5
  365. data/lib/fog/cloudstack/requests/compute/list_private_gateways.rb +9 -5
  366. data/lib/fog/cloudstack/requests/compute/list_project_accounts.rb +10 -6
  367. data/lib/fog/cloudstack/requests/compute/list_project_invitations.rb +9 -5
  368. data/lib/fog/cloudstack/requests/compute/list_projects.rb +9 -5
  369. data/lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb +9 -5
  370. data/lib/fog/cloudstack/requests/compute/list_regions.rb +9 -5
  371. data/lib/fog/cloudstack/requests/compute/list_remote_access_vpns.rb +9 -6
  372. data/lib/fog/cloudstack/requests/compute/list_resource_details.rb +10 -5
  373. data/lib/fog/cloudstack/requests/compute/list_resource_limits.rb +9 -5
  374. data/lib/fog/cloudstack/requests/compute/list_routers.rb +9 -5
  375. data/lib/fog/cloudstack/requests/compute/list_s3s.rb +9 -5
  376. data/lib/fog/cloudstack/requests/compute/list_secondary_staging_stores.rb +9 -5
  377. data/lib/fog/cloudstack/requests/compute/list_security_groups.rb +9 -5
  378. data/lib/fog/cloudstack/requests/compute/list_service_offerings.rb +9 -5
  379. data/lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb +10 -6
  380. data/lib/fog/cloudstack/requests/compute/list_snapshots.rb +9 -5
  381. data/lib/fog/cloudstack/requests/compute/list_srx_firewall_networks.rb +10 -6
  382. data/lib/fog/cloudstack/requests/compute/list_srx_firewalls.rb +9 -5
  383. data/lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb +9 -5
  384. data/lib/fog/cloudstack/requests/compute/list_ssl_certs.rb +24 -0
  385. data/lib/fog/cloudstack/requests/compute/list_static_routes.rb +9 -5
  386. data/lib/fog/cloudstack/requests/compute/list_storage_network_ip_range.rb +9 -5
  387. data/lib/fog/cloudstack/requests/compute/list_storage_pools.rb +9 -5
  388. data/lib/fog/cloudstack/requests/compute/list_storage_providers.rb +10 -6
  389. data/lib/fog/cloudstack/requests/compute/list_supported_network_services.rb +9 -5
  390. data/lib/fog/cloudstack/requests/compute/list_swifts.rb +9 -5
  391. data/lib/fog/cloudstack/requests/compute/list_system_vms.rb +9 -5
  392. data/lib/fog/cloudstack/requests/compute/list_tags.rb +9 -5
  393. data/lib/fog/cloudstack/requests/compute/list_template_permissions.rb +10 -6
  394. data/lib/fog/cloudstack/requests/compute/list_templates.rb +10 -6
  395. data/lib/fog/cloudstack/requests/compute/list_traffic_monitors.rb +10 -6
  396. data/lib/fog/cloudstack/requests/compute/list_traffic_type_implementors.rb +9 -5
  397. data/lib/fog/cloudstack/requests/compute/list_traffic_types.rb +10 -6
  398. data/lib/fog/cloudstack/requests/compute/list_ucs_blades.rb +10 -6
  399. data/lib/fog/cloudstack/requests/compute/list_ucs_managers.rb +9 -5
  400. data/lib/fog/cloudstack/requests/compute/list_ucs_profiles.rb +10 -6
  401. data/lib/fog/cloudstack/requests/compute/list_usage_records.rb +11 -7
  402. data/lib/fog/cloudstack/requests/compute/list_usage_types.rb +9 -5
  403. data/lib/fog/cloudstack/requests/compute/list_users.rb +9 -5
  404. data/lib/fog/cloudstack/requests/compute/list_virtual_machines.rb +9 -5
  405. data/lib/fog/cloudstack/requests/compute/list_virtual_router_elements.rb +9 -5
  406. data/lib/fog/cloudstack/requests/compute/list_vlan_ip_ranges.rb +9 -5
  407. data/lib/fog/cloudstack/requests/compute/list_vm_snapshot.rb +9 -5
  408. data/lib/fog/cloudstack/requests/compute/list_vmware_dcs.rb +10 -6
  409. data/lib/fog/cloudstack/requests/compute/list_volumes.rb +9 -5
  410. data/lib/fog/cloudstack/requests/compute/list_vpc_offerings.rb +9 -5
  411. data/lib/fog/cloudstack/requests/compute/list_vpcs.rb +9 -5
  412. data/lib/fog/cloudstack/requests/compute/list_vpn_connections.rb +9 -5
  413. data/lib/fog/cloudstack/requests/compute/list_vpn_customer_gateways.rb +9 -5
  414. data/lib/fog/cloudstack/requests/compute/list_vpn_gateways.rb +9 -5
  415. data/lib/fog/cloudstack/requests/compute/list_vpn_users.rb +9 -5
  416. data/lib/fog/cloudstack/requests/compute/list_zones.rb +9 -5
  417. data/lib/fog/cloudstack/requests/compute/lock_account.rb +11 -7
  418. data/lib/fog/cloudstack/requests/compute/lock_user.rb +10 -6
  419. data/lib/fog/cloudstack/requests/compute/mark_default_zone_for_account.rb +12 -8
  420. data/lib/fog/cloudstack/requests/compute/migrate_system_vm.rb +11 -7
  421. data/lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb +10 -6
  422. data/lib/fog/cloudstack/requests/compute/migrate_virtual_machine_with_volume.rb +11 -7
  423. data/lib/fog/cloudstack/requests/compute/migrate_volume.rb +11 -7
  424. data/lib/fog/cloudstack/requests/compute/prepare_host_for_maintenance.rb +10 -6
  425. data/lib/fog/cloudstack/requests/compute/prepare_template.rb +11 -7
  426. data/lib/fog/cloudstack/requests/compute/query_async_job_result.rb +10 -6
  427. data/lib/fog/cloudstack/requests/compute/reboot_router.rb +10 -6
  428. data/lib/fog/cloudstack/requests/compute/reboot_system_vm.rb +10 -6
  429. data/lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb +10 -6
  430. data/lib/fog/cloudstack/requests/compute/reconnect_host.rb +10 -6
  431. data/lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb +10 -6
  432. data/lib/fog/cloudstack/requests/compute/register_iso.rb +13 -9
  433. data/lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb +11 -7
  434. data/lib/fog/cloudstack/requests/compute/register_template.rb +16 -12
  435. data/lib/fog/cloudstack/requests/compute/register_user_keys.rb +10 -6
  436. data/lib/fog/cloudstack/requests/compute/release_dedicated_cluster.rb +10 -6
  437. data/lib/fog/cloudstack/requests/compute/release_dedicated_guest_vlan_range.rb +10 -6
  438. data/lib/fog/cloudstack/requests/compute/release_dedicated_host.rb +10 -6
  439. data/lib/fog/cloudstack/requests/compute/release_dedicated_pod.rb +10 -6
  440. data/lib/fog/cloudstack/requests/compute/release_dedicated_zone.rb +10 -6
  441. data/lib/fog/cloudstack/requests/compute/release_host_reservation.rb +10 -6
  442. data/lib/fog/cloudstack/requests/compute/release_public_ip_range.rb +10 -6
  443. data/lib/fog/cloudstack/requests/compute/remove_cert_from_load_balancer.rb +25 -0
  444. data/lib/fog/cloudstack/requests/compute/remove_from_global_load_balancer_rule.rb +11 -7
  445. data/lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb +10 -7
  446. data/lib/fog/cloudstack/requests/compute/remove_guest_os.rb +25 -0
  447. data/lib/fog/cloudstack/requests/compute/remove_guest_os_mapping.rb +25 -0
  448. data/lib/fog/cloudstack/requests/compute/remove_ip_from_nic.rb +11 -7
  449. data/lib/fog/cloudstack/requests/compute/remove_nic_from_virtual_machine.rb +11 -7
  450. data/lib/fog/cloudstack/requests/compute/remove_region.rb +10 -6
  451. data/lib/fog/cloudstack/requests/compute/remove_resource_detail.rb +11 -7
  452. data/lib/fog/cloudstack/requests/compute/remove_vmware_dc.rb +10 -6
  453. data/lib/fog/cloudstack/requests/compute/remove_vpn_user.rb +10 -6
  454. data/lib/fog/cloudstack/requests/compute/replace_network_acl_list.rb +10 -6
  455. data/lib/fog/cloudstack/requests/compute/reset_api_limit.rb +9 -5
  456. data/lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb +10 -6
  457. data/lib/fog/cloudstack/requests/compute/reset_ssh_key_for_virtual_machine.rb +11 -7
  458. data/lib/fog/cloudstack/requests/compute/reset_vpn_connection.rb +10 -6
  459. data/lib/fog/cloudstack/requests/compute/resize_volume.rb +10 -5
  460. data/lib/fog/cloudstack/requests/compute/restart_network.rb +10 -6
  461. data/lib/fog/cloudstack/requests/compute/restart_vpc.rb +10 -6
  462. data/lib/fog/cloudstack/requests/compute/restore_virtual_machine.rb +10 -6
  463. data/lib/fog/cloudstack/requests/compute/revert_snapshot.rb +25 -0
  464. data/lib/fog/cloudstack/requests/compute/revert_to_vm_snapshot.rb +10 -6
  465. data/lib/fog/cloudstack/requests/compute/revoke_security_group_egress.rb +10 -6
  466. data/lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb +10 -6
  467. data/lib/fog/cloudstack/requests/compute/scale_system_vm.rb +11 -7
  468. data/lib/fog/cloudstack/requests/compute/scale_virtual_machine.rb +11 -7
  469. data/lib/fog/cloudstack/requests/compute/start_internal_load_balancer_vm.rb +10 -6
  470. data/lib/fog/cloudstack/requests/compute/start_router.rb +10 -6
  471. data/lib/fog/cloudstack/requests/compute/start_system_vm.rb +10 -6
  472. data/lib/fog/cloudstack/requests/compute/start_virtual_machine.rb +10 -6
  473. data/lib/fog/cloudstack/requests/compute/stop_internal_load_balancer_vm.rb +10 -6
  474. data/lib/fog/cloudstack/requests/compute/stop_router.rb +10 -6
  475. data/lib/fog/cloudstack/requests/compute/stop_system_vm.rb +10 -6
  476. data/lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb +10 -6
  477. data/lib/fog/cloudstack/requests/compute/suspend_project.rb +10 -6
  478. data/lib/fog/cloudstack/requests/compute/update_account.rb +10 -6
  479. data/lib/fog/cloudstack/requests/compute/update_auto_scale_policy.rb +10 -6
  480. data/lib/fog/cloudstack/requests/compute/update_auto_scale_vm_group.rb +10 -6
  481. data/lib/fog/cloudstack/requests/compute/update_auto_scale_vm_profile.rb +10 -6
  482. data/lib/fog/cloudstack/requests/compute/update_cloud_to_use_object_store.rb +25 -0
  483. data/lib/fog/cloudstack/requests/compute/update_cluster.rb +10 -6
  484. data/lib/fog/cloudstack/requests/compute/update_configuration.rb +10 -6
  485. data/lib/fog/cloudstack/requests/compute/update_default_nic_for_virtual_machine.rb +11 -7
  486. data/lib/fog/cloudstack/requests/compute/update_disk_offering.rb +10 -6
  487. data/lib/fog/cloudstack/requests/compute/update_domain.rb +10 -6
  488. data/lib/fog/cloudstack/requests/compute/update_egress_firewall_rule.rb +25 -0
  489. data/lib/fog/cloudstack/requests/compute/update_firewall_rule.rb +25 -0
  490. data/lib/fog/cloudstack/requests/compute/update_global_load_balancer_rule.rb +10 -6
  491. data/lib/fog/cloudstack/requests/compute/update_guest_os.rb +26 -0
  492. data/lib/fog/cloudstack/requests/compute/update_guest_os_mapping.rb +26 -0
  493. data/lib/fog/cloudstack/requests/compute/update_host.rb +10 -6
  494. data/lib/fog/cloudstack/requests/compute/update_host_password.rb +11 -7
  495. data/lib/fog/cloudstack/requests/compute/update_hypervisor_capabilities.rb +9 -5
  496. data/lib/fog/cloudstack/requests/compute/update_instance_group.rb +10 -6
  497. data/lib/fog/cloudstack/requests/compute/update_ip_address.rb +25 -0
  498. data/lib/fog/cloudstack/requests/compute/update_iso.rb +10 -6
  499. data/lib/fog/cloudstack/requests/compute/update_iso_permissions.rb +10 -6
  500. data/lib/fog/cloudstack/requests/compute/update_lb_health_check_policy.rb +25 -0
  501. data/lib/fog/cloudstack/requests/compute/update_lb_stickiness_policy.rb +25 -0
  502. data/lib/fog/cloudstack/requests/compute/update_load_balancer.rb +25 -0
  503. data/lib/fog/cloudstack/requests/compute/update_load_balancer_rule.rb +10 -6
  504. data/lib/fog/cloudstack/requests/compute/update_network.rb +10 -6
  505. data/lib/fog/cloudstack/requests/compute/update_network_acl_item.rb +10 -6
  506. data/lib/fog/cloudstack/requests/compute/update_network_acl_list.rb +25 -0
  507. data/lib/fog/cloudstack/requests/compute/update_network_offering.rb +9 -5
  508. data/lib/fog/cloudstack/requests/compute/update_network_service_provider.rb +10 -6
  509. data/lib/fog/cloudstack/requests/compute/update_physical_network.rb +10 -6
  510. data/lib/fog/cloudstack/requests/compute/update_pod.rb +10 -6
  511. data/lib/fog/cloudstack/requests/compute/update_port_forwarding_rule.rb +10 -9
  512. data/lib/fog/cloudstack/requests/compute/update_project.rb +10 -6
  513. data/lib/fog/cloudstack/requests/compute/update_project_invitation.rb +10 -6
  514. data/lib/fog/cloudstack/requests/compute/update_region.rb +10 -6
  515. data/lib/fog/cloudstack/requests/compute/update_remote_access_vpn.rb +25 -0
  516. data/lib/fog/cloudstack/requests/compute/update_resource_count.rb +10 -6
  517. data/lib/fog/cloudstack/requests/compute/update_resource_limit.rb +10 -6
  518. data/lib/fog/cloudstack/requests/compute/update_service_offering.rb +10 -6
  519. data/lib/fog/cloudstack/requests/compute/update_storage_network_ip_range.rb +10 -6
  520. data/lib/fog/cloudstack/requests/compute/update_storage_pool.rb +10 -6
  521. data/lib/fog/cloudstack/requests/compute/update_template.rb +10 -6
  522. data/lib/fog/cloudstack/requests/compute/update_template_permissions.rb +10 -6
  523. data/lib/fog/cloudstack/requests/compute/update_traffic_type.rb +10 -6
  524. data/lib/fog/cloudstack/requests/compute/update_user.rb +10 -6
  525. data/lib/fog/cloudstack/requests/compute/update_virtual_machine.rb +10 -6
  526. data/lib/fog/cloudstack/requests/compute/update_vm_affinity_group.rb +10 -6
  527. data/lib/fog/cloudstack/requests/compute/update_volume.rb +9 -7
  528. data/lib/fog/cloudstack/requests/compute/update_vpc.rb +10 -7
  529. data/lib/fog/cloudstack/requests/compute/update_vpcoffering.rb +10 -6
  530. data/lib/fog/cloudstack/requests/compute/update_vpn_connection.rb +25 -0
  531. data/lib/fog/cloudstack/requests/compute/update_vpn_customer_gateway.rb +15 -11
  532. data/lib/fog/cloudstack/requests/compute/update_vpn_gateway.rb +25 -0
  533. data/lib/fog/cloudstack/requests/compute/update_zone.rb +10 -6
  534. data/lib/fog/cloudstack/requests/compute/upgrade_router_template.rb +24 -0
  535. data/lib/fog/cloudstack/requests/compute/upload_custom_certificate.rb +11 -7
  536. data/lib/fog/cloudstack/requests/compute/upload_ssl_cert.rb +26 -0
  537. data/lib/fog/cloudstack/requests/compute/upload_volume.rb +13 -9
  538. data/lib/fog/digitalocean/compute.rb +1 -1
  539. data/lib/fog/dynect/dns.rb +11 -10
  540. data/lib/fog/google.rb +3 -0
  541. data/lib/fog/google/compute.rb +247 -146
  542. data/lib/fog/google/core.rb +160 -2
  543. data/lib/fog/google/dns.rb +63 -0
  544. data/lib/fog/google/examples/backend_services.rb +22 -0
  545. data/lib/fog/google/examples/create.rb +1 -1
  546. data/lib/fog/google/examples/eric-fail.rb +1 -1
  547. data/lib/fog/google/examples/image_create.rb +1 -1
  548. data/lib/fog/google/examples/l7_load_balance.rb +73 -0
  549. data/lib/fog/google/examples/monitoring/metric_descriptors.rb +11 -0
  550. data/lib/fog/google/examples/monitoring/timeseries_collection.rb +15 -0
  551. data/lib/fog/google/examples/monitoring/timeseries_descriptors.rb +15 -0
  552. data/lib/fog/google/examples/sql/flags.rb +7 -0
  553. data/lib/fog/google/examples/sql/instances.rb +38 -0
  554. data/lib/fog/google/examples/sql/operations.rb +20 -0
  555. data/lib/fog/google/examples/sql/ssl_certs.rb +28 -0
  556. data/lib/fog/google/examples/sql/tiers.rb +7 -0
  557. data/lib/fog/google/models/compute/backend_service.rb +92 -0
  558. data/lib/fog/google/models/compute/backend_services.rb +22 -0
  559. data/lib/fog/google/models/compute/global_forwarding_rule.rb +86 -0
  560. data/lib/fog/google/models/compute/global_forwarding_rules.rb +23 -0
  561. data/lib/fog/google/models/compute/http_health_checks.rb +5 -1
  562. data/lib/fog/google/models/compute/images.rb +7 -4
  563. data/lib/fog/google/models/compute/resource_view.rb +116 -0
  564. data/lib/fog/google/models/compute/resource_views.rb +57 -0
  565. data/lib/fog/google/models/compute/target_http_proxies.rb +22 -0
  566. data/lib/fog/google/models/compute/target_http_proxy.rb +75 -0
  567. data/lib/fog/google/models/compute/target_instance.rb +74 -0
  568. data/lib/fog/google/models/compute/target_instances.rb +28 -0
  569. data/lib/fog/google/models/compute/target_pool.rb +4 -0
  570. data/lib/fog/google/models/compute/target_pools.rb +2 -2
  571. data/lib/fog/google/models/compute/url_map.rb +95 -0
  572. data/lib/fog/google/models/compute/url_maps.rb +22 -0
  573. data/lib/fog/google/models/monitoring/metric_descriptor.rb +20 -0
  574. data/lib/fog/google/models/monitoring/metric_descriptors.rb +28 -0
  575. data/lib/fog/google/models/monitoring/timeseries.rb +17 -0
  576. data/lib/fog/google/models/monitoring/timeseries_collection.rb +31 -0
  577. data/lib/fog/google/models/monitoring/timeseries_descriptor.rb +20 -0
  578. data/lib/fog/google/models/monitoring/timeseries_descriptors.rb +31 -0
  579. data/lib/fog/google/models/sql/backup_run.rb +34 -0
  580. data/lib/fog/google/models/sql/backup_runs.rb +38 -0
  581. data/lib/fog/google/models/sql/flag.rb +22 -0
  582. data/lib/fog/google/models/sql/flags.rb +21 -0
  583. data/lib/fog/google/models/sql/instance.rb +353 -0
  584. data/lib/fog/google/models/sql/instances.rb +39 -0
  585. data/lib/fog/google/models/sql/operation.rb +61 -0
  586. data/lib/fog/google/models/sql/operations.rb +49 -0
  587. data/lib/fog/google/models/sql/ssl_cert.rb +73 -0
  588. data/lib/fog/google/models/sql/ssl_certs.rb +49 -0
  589. data/lib/fog/google/models/sql/tier.rb +20 -0
  590. data/lib/fog/google/models/sql/tiers.rb +21 -0
  591. data/lib/fog/google/models/storage/files.rb +5 -1
  592. data/lib/fog/google/monitoring.rb +89 -0
  593. data/lib/fog/google/requests/compute/add_backend_service_backends.rb +29 -0
  594. data/lib/fog/google/requests/compute/add_region_view_resources.rb +27 -0
  595. data/lib/fog/google/requests/compute/add_server_access_config.rb +1 -2
  596. data/lib/fog/google/requests/compute/add_target_pool_health_checks.rb +1 -2
  597. data/lib/fog/google/requests/compute/add_target_pool_instances.rb +1 -2
  598. data/lib/fog/google/requests/compute/add_url_map_host_rules.rb +25 -0
  599. data/lib/fog/google/requests/compute/add_url_map_path_matchers.rb +29 -0
  600. data/lib/fog/google/requests/compute/add_zone_view_resources.rb +27 -0
  601. data/lib/fog/google/requests/compute/attach_disk.rb +1 -2
  602. data/lib/fog/google/requests/compute/delete_address.rb +1 -2
  603. data/lib/fog/google/requests/compute/delete_backend_service.rb +43 -0
  604. data/lib/fog/google/requests/compute/delete_disk.rb +2 -3
  605. data/lib/fog/google/requests/compute/delete_firewall.rb +1 -2
  606. data/lib/fog/google/requests/compute/delete_forwarding_rule.rb +22 -4
  607. data/lib/fog/google/requests/compute/delete_global_forwarding_rule.rb +48 -0
  608. data/lib/fog/google/requests/compute/delete_global_operation.rb +1 -2
  609. data/lib/fog/google/requests/compute/delete_http_health_check.rb +20 -3
  610. data/lib/fog/google/requests/compute/delete_image.rb +21 -3
  611. data/lib/fog/google/requests/compute/delete_network.rb +1 -2
  612. data/lib/fog/google/requests/compute/delete_region_operation.rb +1 -2
  613. data/lib/fog/google/requests/compute/delete_region_view.rb +24 -0
  614. data/lib/fog/google/requests/compute/delete_route.rb +1 -2
  615. data/lib/fog/google/requests/compute/delete_server.rb +2 -3
  616. data/lib/fog/google/requests/compute/delete_server_access_config.rb +1 -2
  617. data/lib/fog/google/requests/compute/delete_snapshot.rb +1 -2
  618. data/lib/fog/google/requests/compute/delete_target_http_proxy.rb +43 -0
  619. data/lib/fog/google/requests/compute/delete_target_instance.rb +48 -0
  620. data/lib/fog/google/requests/compute/delete_target_pool.rb +22 -4
  621. data/lib/fog/google/requests/compute/delete_url_map.rb +43 -0
  622. data/lib/fog/google/requests/compute/delete_zone_operation.rb +1 -2
  623. data/lib/fog/google/requests/compute/delete_zone_view.rb +24 -0
  624. data/lib/fog/google/requests/compute/detach_disk.rb +1 -2
  625. data/lib/fog/google/requests/compute/get_address.rb +1 -2
  626. data/lib/fog/google/requests/compute/get_backend_service.rb +26 -0
  627. data/lib/fog/google/requests/compute/get_backend_service_health.rb +27 -0
  628. data/lib/fog/google/requests/compute/get_backend_services.rb +23 -0
  629. data/lib/fog/google/requests/compute/get_disk.rb +3 -4
  630. data/lib/fog/google/requests/compute/get_disk_type.rb +3 -4
  631. data/lib/fog/google/requests/compute/get_firewall.rb +1 -2
  632. data/lib/fog/google/requests/compute/get_forwarding_rule.rb +21 -4
  633. data/lib/fog/google/requests/compute/get_global_forwarding_rule.rb +32 -0
  634. data/lib/fog/google/requests/compute/get_global_operation.rb +27 -3
  635. data/lib/fog/google/requests/compute/get_http_health_check.rb +18 -3
  636. data/lib/fog/google/requests/compute/get_image.rb +2 -3
  637. data/lib/fog/google/requests/compute/get_machine_type.rb +2 -3
  638. data/lib/fog/google/requests/compute/get_network.rb +1 -2
  639. data/lib/fog/google/requests/compute/get_project.rb +1 -2
  640. data/lib/fog/google/requests/compute/get_region.rb +16 -7
  641. data/lib/fog/google/requests/compute/get_region_operation.rb +27 -3
  642. data/lib/fog/google/requests/compute/get_region_view.rb +24 -0
  643. data/lib/fog/google/requests/compute/get_route.rb +1 -2
  644. data/lib/fog/google/requests/compute/get_server.rb +3 -4
  645. data/lib/fog/google/requests/compute/get_server_serial_port_output.rb +1 -2
  646. data/lib/fog/google/requests/compute/get_snapshot.rb +1 -2
  647. data/lib/fog/google/requests/compute/get_target_http_proxy.rb +27 -0
  648. data/lib/fog/google/requests/compute/get_target_instance.rb +32 -0
  649. data/lib/fog/google/requests/compute/get_target_pool.rb +15 -4
  650. data/lib/fog/google/requests/compute/get_target_pool_health.rb +1 -1
  651. data/lib/fog/google/requests/compute/get_url_map.rb +27 -0
  652. data/lib/fog/google/requests/compute/get_zone.rb +2 -3
  653. data/lib/fog/google/requests/compute/get_zone_operation.rb +3 -4
  654. data/lib/fog/google/requests/compute/get_zone_view.rb +24 -0
  655. data/lib/fog/google/requests/compute/insert_address.rb +1 -2
  656. data/lib/fog/google/requests/compute/insert_backend_service.rb +63 -0
  657. data/lib/fog/google/requests/compute/insert_disk.rb +2 -4
  658. data/lib/fog/google/requests/compute/insert_firewall.rb +3 -4
  659. data/lib/fog/google/requests/compute/insert_forwarding_rule.rb +38 -5
  660. data/lib/fog/google/requests/compute/insert_global_forwarding_rule.rb +56 -0
  661. data/lib/fog/google/requests/compute/insert_http_health_check.rb +36 -3
  662. data/lib/fog/google/requests/compute/insert_image.rb +36 -7
  663. data/lib/fog/google/requests/compute/insert_network.rb +1 -2
  664. data/lib/fog/google/requests/compute/insert_region_view.rb +25 -0
  665. data/lib/fog/google/requests/compute/insert_route.rb +1 -2
  666. data/lib/fog/google/requests/compute/insert_server.rb +4 -7
  667. data/lib/fog/google/requests/compute/insert_snapshot.rb +1 -3
  668. data/lib/fog/google/requests/compute/insert_target_http_proxy.rb +52 -0
  669. data/lib/fog/google/requests/compute/insert_target_instance.rb +55 -0
  670. data/lib/fog/google/requests/compute/insert_target_pool.rb +36 -5
  671. data/lib/fog/google/requests/compute/insert_url_map.rb +55 -0
  672. data/lib/fog/google/requests/compute/insert_zone_view.rb +27 -0
  673. data/lib/fog/google/requests/compute/list_addresses.rb +1 -2
  674. data/lib/fog/google/requests/compute/list_aggregated_addresses.rb +1 -2
  675. data/lib/fog/google/requests/compute/list_aggregated_disk_types.rb +2 -3
  676. data/lib/fog/google/requests/compute/list_aggregated_disks.rb +2 -3
  677. data/lib/fog/google/requests/compute/list_aggregated_machine_types.rb +1 -2
  678. data/lib/fog/google/requests/compute/list_aggregated_servers.rb +2 -3
  679. data/lib/fog/google/requests/compute/list_backend_services.rb +29 -0
  680. data/lib/fog/google/requests/compute/list_disk_types.rb +2 -3
  681. data/lib/fog/google/requests/compute/list_disks.rb +2 -3
  682. data/lib/fog/google/requests/compute/list_firewalls.rb +1 -2
  683. data/lib/fog/google/requests/compute/list_forwarding_rules.rb +2 -3
  684. data/lib/fog/google/requests/compute/list_global_forwarding_rules.rb +30 -0
  685. data/lib/fog/google/requests/compute/list_global_operations.rb +1 -2
  686. data/lib/fog/google/requests/compute/list_http_health_checks.rb +9 -3
  687. data/lib/fog/google/requests/compute/list_images.rb +2 -3
  688. data/lib/fog/google/requests/compute/list_machine_types.rb +2 -3
  689. data/lib/fog/google/requests/compute/list_networks.rb +1 -2
  690. data/lib/fog/google/requests/compute/list_region_operations.rb +1 -2
  691. data/lib/fog/google/requests/compute/list_region_view_resources.rb +25 -0
  692. data/lib/fog/google/requests/compute/list_region_views.rb +23 -0
  693. data/lib/fog/google/requests/compute/list_regions.rb +2 -3
  694. data/lib/fog/google/requests/compute/list_routes.rb +1 -2
  695. data/lib/fog/google/requests/compute/list_servers.rb +2 -3
  696. data/lib/fog/google/requests/compute/list_snapshots.rb +1 -2
  697. data/lib/fog/google/requests/compute/list_target_http_proxies.rb +30 -0
  698. data/lib/fog/google/requests/compute/list_target_instances.rb +30 -0
  699. data/lib/fog/google/requests/compute/list_target_pools.rb +8 -3
  700. data/lib/fog/google/requests/compute/list_url_maps.rb +29 -0
  701. data/lib/fog/google/requests/compute/list_zone_operations.rb +1 -2
  702. data/lib/fog/google/requests/compute/list_zone_view_resources.rb +25 -0
  703. data/lib/fog/google/requests/compute/list_zone_views.rb +23 -0
  704. data/lib/fog/google/requests/compute/list_zones.rb +2 -3
  705. data/lib/fog/google/requests/compute/remove_target_pool_health_checks.rb +1 -2
  706. data/lib/fog/google/requests/compute/remove_target_pool_instance.rb +1 -2
  707. data/lib/fog/google/requests/compute/remove_target_pool_instances.rb +1 -2
  708. data/lib/fog/google/requests/compute/reset_server.rb +1 -2
  709. data/lib/fog/google/requests/compute/set_common_instance_metadata.rb +1 -2
  710. data/lib/fog/google/requests/compute/set_forwarding_rule_target.rb +1 -2
  711. data/lib/fog/google/requests/compute/set_global_forwarding_rule_target.rb +27 -0
  712. data/lib/fog/google/requests/compute/set_metadata.rb +1 -6
  713. data/lib/fog/google/requests/compute/set_server_disk_auto_delete.rb +1 -2
  714. data/lib/fog/google/requests/compute/set_server_scheduling.rb +1 -2
  715. data/lib/fog/google/requests/compute/set_tags.rb +1 -6
  716. data/lib/fog/google/requests/compute/set_target_http_proxy_url_map.rb +27 -0
  717. data/lib/fog/google/requests/compute/update_url_map.rb +39 -0
  718. data/lib/fog/google/requests/compute/validate_url_map.rb +24 -0
  719. data/lib/fog/google/requests/dns/create_managed_zone.rb +49 -0
  720. data/lib/fog/google/requests/dns/delete_managed_zone.rb +39 -0
  721. data/lib/fog/google/requests/dns/get_managed_zone.rb +31 -0
  722. data/lib/fog/google/requests/dns/list_managed_zones.rb +26 -0
  723. data/lib/fog/google/requests/monitoring/list_metric_descriptors.rb +191 -0
  724. data/lib/fog/google/requests/monitoring/list_timeseries.rb +68 -0
  725. data/lib/fog/google/requests/monitoring/list_timeseries_descriptors.rb +87 -0
  726. data/lib/fog/google/requests/sql/clone_instance.rb +84 -0
  727. data/lib/fog/google/requests/sql/delete_instance.rb +67 -0
  728. data/lib/fog/google/requests/sql/delete_ssl_cert.rb +68 -0
  729. data/lib/fog/google/requests/sql/export_instance.rb +56 -0
  730. data/lib/fog/google/requests/sql/get_backup_run.rb +30 -0
  731. data/lib/fog/google/requests/sql/get_instance.rb +48 -0
  732. data/lib/fog/google/requests/sql/get_operation.rb +66 -0
  733. data/lib/fog/google/requests/sql/get_ssl_cert.rb +66 -0
  734. data/lib/fog/google/requests/sql/import_instance.rb +55 -0
  735. data/lib/fog/google/requests/sql/insert_instance.rb +165 -0
  736. data/lib/fog/google/requests/sql/insert_ssl_cert.rb +80 -0
  737. data/lib/fog/google/requests/sql/list_backup_runs.rb +30 -0
  738. data/lib/fog/google/requests/sql/list_flags.rb +143 -0
  739. data/lib/fog/google/requests/sql/list_instances.rb +32 -0
  740. data/lib/fog/google/requests/sql/list_operations.rb +52 -0
  741. data/lib/fog/google/requests/sql/list_ssl_certs.rb +51 -0
  742. data/lib/fog/google/requests/sql/list_tiers.rb +82 -0
  743. data/lib/fog/google/requests/sql/reset_instance_ssl_config.rb +49 -0
  744. data/lib/fog/google/requests/sql/restart_instance.rb +47 -0
  745. data/lib/fog/google/requests/sql/restore_instance_backup.rb +30 -0
  746. data/lib/fog/google/requests/sql/set_instance_root_password.rb +54 -0
  747. data/lib/fog/google/requests/sql/update_instance.rb +132 -0
  748. data/lib/fog/google/sql.rb +132 -0
  749. data/lib/fog/hp/block_storage_v2.rb +1 -1
  750. data/lib/fog/hp/compute_v2.rb +1 -1
  751. data/lib/fog/hp/core.rb +8 -6
  752. data/lib/fog/hp/dns.rb +1 -1
  753. data/lib/fog/hp/docs/connect.md +2 -2
  754. data/lib/fog/hp/lb.rb +1 -1
  755. data/lib/fog/hp/network.rb +10 -2
  756. data/lib/fog/hp/requests/network/list_networks.rb +19 -6
  757. data/lib/fog/hp/storage.rb +1 -1
  758. data/lib/fog/linode/models/compute/disks.rb +1 -1
  759. data/lib/fog/linode/models/compute/flavor.rb +1 -25
  760. data/lib/fog/linode/models/compute/flavors.rb +1 -1
  761. data/lib/fog/linode/models/compute/server.rb +6 -2
  762. data/lib/fog/linode/requests/compute/avail_linodeplans.rb +1 -2
  763. data/lib/fog/local/models/storage/file.rb +3 -1
  764. data/lib/fog/openstack/models/storage/directory.rb +3 -5
  765. data/lib/fog/openstack/network.rb +1 -1
  766. data/lib/fog/openstack/requests/storage/put_container.rb +5 -2
  767. data/lib/fog/openstack/storage.rb +5 -3
  768. data/lib/fog/ovirt/models/compute/server.rb +1 -0
  769. data/lib/fog/rackspace/block_storage.rb +1 -5
  770. data/lib/fog/rackspace/cdn.rb +1 -1
  771. data/lib/fog/rackspace/compute_v2.rb +1 -5
  772. data/lib/fog/rackspace/databases.rb +4 -6
  773. data/lib/fog/rackspace/docs/storage.md +4 -4
  774. data/lib/fog/rackspace/load_balancers.rb +1 -5
  775. data/lib/fog/rackspace/models/auto_scale/group_builder.rb +2 -0
  776. data/lib/fog/rackspace/models/block_storage/volume.rb +6 -1
  777. data/lib/fog/rackspace/models/compute_v2/server.rb +15 -1
  778. data/lib/fog/rackspace/models/databases/database.rb +11 -0
  779. data/lib/fog/rackspace/models/databases/user.rb +2 -1
  780. data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +21 -4
  781. data/lib/fog/rackspace/queues.rb +9 -2
  782. data/lib/fog/rackspace/requests/block_storage/create_volume.rb +4 -0
  783. data/lib/fog/rackspace/requests/compute_v2/create_server.rb +43 -0
  784. data/lib/fog/rackspace/requests/compute_v2/create_virtual_interface.rb +1 -1
  785. data/lib/fog/rackspace/requests/compute_v2/delete_metadata_item.rb +1 -1
  786. data/lib/fog/rackspace/requests/compute_v2/delete_virtual_interface.rb +1 -1
  787. data/lib/fog/rackspace/requests/compute_v2/get_metadata_item.rb +1 -1
  788. data/lib/fog/rackspace/requests/compute_v2/list_keypairs.rb +1 -1
  789. data/lib/fog/rackspace/requests/compute_v2/list_metadata.rb +1 -1
  790. data/lib/fog/rackspace/requests/compute_v2/list_virtual_interfaces.rb +1 -1
  791. data/lib/fog/rackspace/requests/compute_v2/set_metadata.rb +1 -1
  792. data/lib/fog/rackspace/requests/compute_v2/set_metadata_item.rb +1 -1
  793. data/lib/fog/rackspace/requests/compute_v2/update_metadata.rb +1 -1
  794. data/lib/fog/rackspace/requests/databases/create_user.rb +2 -1
  795. data/lib/fog/rackspace/requests/databases/grant_user_access.rb +32 -0
  796. data/lib/fog/rackspace/requests/databases/revoke_user_access.rb +26 -0
  797. data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +84 -16
  798. data/lib/fog/rackspace/requests/load_balancers/get_load_balancer.rb +6 -5
  799. data/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb +2 -1
  800. data/lib/fog/rackspace/requests/storage/get_object_https_url.rb +2 -1
  801. data/lib/fog/rackspace/storage.rb +7 -1
  802. data/lib/fog/vcloud_director/README.md +1 -0
  803. data/lib/fog/vcloud_director/compute.rb +23 -1
  804. data/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +22 -0
  805. data/lib/fog/vcloud_director/models/compute/networks.rb +7 -0
  806. data/lib/fog/vcloud_director/models/compute/tasks.rb +7 -0
  807. data/lib/fog/vcloud_director/models/compute/vapps.rb +8 -0
  808. data/lib/fog/vcloud_director/models/compute/vdcs.rb +7 -0
  809. data/lib/fog/vcloud_director/models/compute/vms.rb +7 -0
  810. data/lib/fog/vcloud_director/query.rb +59 -0
  811. data/lib/fog/vcloud_director/requests/compute/get_execute_query.rb +91 -1
  812. data/lib/fog/vcloud_director/requests/compute/post_configure_edge_gateway_services.rb +8 -2
  813. data/lib/fog/vcloud_director/requests/compute/put_network.rb +7 -3
  814. data/lib/fog/version.rb +1 -1
  815. data/lib/fog/vsphere/requests/compute/vm_clone.rb +2 -1
  816. data/lib/fog/xenserver/compute.rb +3 -0
  817. data/lib/fog/xenserver/core.rb +2 -0
  818. data/lib/tasks/changelog_task.rb +2 -0
  819. data/tests/aws/models/auto_scaling/instance_tests.rb +15 -0
  820. data/tests/aws/models/storage/file_tests.rb +10 -0
  821. data/tests/aws/requests/compute/region_tests.rb +19 -1
  822. data/tests/aws/requests/dns/health_check_tests.rb +159 -0
  823. data/tests/aws/requests/iam/account_policy_tests.rb +20 -0
  824. data/tests/aws/requests/storage/bucket_tests.rb +4 -0
  825. data/tests/google/helpers/google_tests_helper.rb +68 -0
  826. data/tests/google/models/compute/backend_service_tests.rb +6 -0
  827. data/tests/google/models/compute/backend_services_tests.rb +8 -0
  828. data/tests/google/models/compute/forwarding_rule_tests.rb +8 -0
  829. data/tests/google/models/compute/forwarding_rules_tests.rb +8 -0
  830. data/tests/google/models/compute/global_forwarding_rule_tests.rb +7 -0
  831. data/tests/google/models/compute/global_forwarding_rules_tests.rb +7 -0
  832. data/tests/google/models/compute/http_health_check_tests.rb +5 -0
  833. data/tests/google/models/compute/http_health_checks_tests.rb +5 -0
  834. data/tests/google/models/compute/image_tests.rb +6 -0
  835. data/tests/google/models/compute/images_tests.rb +6 -0
  836. data/tests/google/models/compute/target_http_proxies_tests.rb +7 -0
  837. data/tests/google/models/compute/target_http_proxy_test.rb +6 -0
  838. data/tests/google/models/compute/target_instance_tests.rb +7 -0
  839. data/tests/google/models/compute/target_instances_tests.rb +7 -0
  840. data/tests/google/models/compute/target_pool_tests.rb +12 -0
  841. data/tests/google/models/compute/target_pools_tests.rb +11 -0
  842. data/tests/google/models/compute/url_map_tests.rb +6 -0
  843. data/tests/google/models/compute/url_maps_tests.rb +7 -0
  844. data/tests/google/models/monitoring/metric_descriptors_tests.rb +12 -0
  845. data/tests/google/models/monitoring/timeseries_collection_tests.rb +12 -0
  846. data/tests/google/models/monitoring/timeseries_descriptors_tests.rb +13 -0
  847. data/tests/google/models/sql/flags_tests.rb +12 -0
  848. data/tests/google/models/sql/instance_tests.rb +56 -0
  849. data/tests/google/models/sql/instances_tests.rb +32 -0
  850. data/tests/google/models/sql/operation_tests.rb +25 -0
  851. data/tests/google/models/sql/operations_tests.rb +38 -0
  852. data/tests/google/models/sql/ssl_cert_tests.rb +24 -0
  853. data/tests/google/models/sql/ssl_certs_tests.rb +39 -0
  854. data/tests/google/models/sql/tiers_tests.rb +12 -0
  855. data/tests/google/requests/compute/backend_service_tests.rb +83 -0
  856. data/tests/google/requests/compute/forwarding_rules_tests.rb +83 -0
  857. data/tests/google/requests/compute/global_forwarding_rules_tests.rb +83 -0
  858. data/tests/google/requests/compute/http_health_checks_tests.rb +83 -0
  859. data/tests/google/requests/compute/image_tests.rb +9 -13
  860. data/tests/google/requests/compute/target_http_proxies_test.rb +79 -0
  861. data/tests/google/requests/compute/target_instances_tests.rb +83 -0
  862. data/tests/google/requests/compute/target_pools_tests.rb +82 -0
  863. data/tests/google/requests/compute/url_maps_tests.rb +82 -0
  864. data/tests/google/requests/dns/managed_zone_tests.rb +66 -0
  865. data/tests/google/requests/monitoring/metric_descriptor_tests.rb +25 -0
  866. data/tests/google/requests/monitoring/timeseries_collection_tests.rb +25 -0
  867. data/tests/google/requests/monitoring/timeseries_descriptor_tests.rb +26 -0
  868. data/tests/google/requests/sql/flag_tests.rb +27 -0
  869. data/tests/google/requests/sql/instance_tests.rb +129 -0
  870. data/tests/google/requests/sql/operation_tests.rb +42 -0
  871. data/tests/google/requests/sql/ssl_cert_tests.rb +61 -0
  872. data/tests/google/requests/sql/tier_tests.rb +25 -0
  873. data/tests/google/requests/storage/object_tests.rb +1 -1
  874. data/tests/helpers/collection_helper.rb +1 -1
  875. data/tests/helpers/mock_helper.rb +1 -0
  876. data/tests/hp/storage_tests.rb +26 -23
  877. data/tests/linode/requests/compute/linodeplans_tests.rb +2 -1
  878. data/tests/openstack/authenticate_tests.rb +20 -0
  879. data/tests/rackspace/helper.rb +13 -0
  880. data/tests/rackspace/models/databases/database_tests.rb +12 -0
  881. data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +48 -15
  882. data/tests/rackspace/requests/block_storage/volume_tests.rb +22 -6
  883. data/tests/rackspace/requests/compute_v2/server_tests.rb +27 -0
  884. data/tests/rackspace/requests/load_balancers/helper.rb +1 -1
  885. data/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +15 -5
  886. data/tests/vcloud_director/models/compute/network_tests.rb +17 -0
  887. data/tests/vcloud_director/models/compute/tasks_tests.rb +33 -3
  888. data/tests/vcloud_director/models/compute/vapp_tests.rb +13 -1
  889. data/tests/vcloud_director/models/compute/vdcs_tests.rb +14 -1
  890. data/tests/vcloud_director/models/compute/vms_tests.rb +13 -0
  891. data/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +30 -0
  892. metadata +319 -54
  893. data/lib/fog/bin/sakuracloud.rb +0 -34
  894. data/lib/fog/core/deprecated_connection_accessors.rb +0 -40
  895. data/lib/fog/sakuracloud.rb +0 -16
  896. data/lib/fog/sakuracloud/compute.rb +0 -65
  897. data/lib/fog/sakuracloud/docs/getting_started.md +0 -450
  898. data/lib/fog/sakuracloud/models/compute/plan.rb +0 -15
  899. data/lib/fog/sakuracloud/models/compute/plans.rb +0 -22
  900. data/lib/fog/sakuracloud/models/compute/server.rb +0 -40
  901. data/lib/fog/sakuracloud/models/compute/servers.rb +0 -63
  902. data/lib/fog/sakuracloud/models/compute/ssh_key.rb +0 -13
  903. data/lib/fog/sakuracloud/models/compute/ssh_keys.rb +0 -22
  904. data/lib/fog/sakuracloud/models/compute/zone.rb +0 -13
  905. data/lib/fog/sakuracloud/models/compute/zones.rb +0 -22
  906. data/lib/fog/sakuracloud/models/volume/archive.rb +0 -14
  907. data/lib/fog/sakuracloud/models/volume/archives.rb +0 -22
  908. data/lib/fog/sakuracloud/models/volume/disk.rb +0 -37
  909. data/lib/fog/sakuracloud/models/volume/disks.rb +0 -27
  910. data/lib/fog/sakuracloud/models/volume/plan.rb +0 -12
  911. data/lib/fog/sakuracloud/models/volume/plans.rb +0 -22
  912. data/lib/fog/sakuracloud/requests/compute/boot_server.rb +0 -31
  913. data/lib/fog/sakuracloud/requests/compute/create_server.rb +0 -41
  914. data/lib/fog/sakuracloud/requests/compute/delete_server.rb +0 -33
  915. data/lib/fog/sakuracloud/requests/compute/list_plans.rb +0 -46
  916. data/lib/fog/sakuracloud/requests/compute/list_servers.rb +0 -44
  917. data/lib/fog/sakuracloud/requests/compute/list_ssh_keys.rb +0 -40
  918. data/lib/fog/sakuracloud/requests/compute/list_zones.rb +0 -40
  919. data/lib/fog/sakuracloud/requests/compute/stop_server.rb +0 -37
  920. data/lib/fog/sakuracloud/requests/volume/attach_disk.rb +0 -30
  921. data/lib/fog/sakuracloud/requests/volume/configure_disk.rb +0 -35
  922. data/lib/fog/sakuracloud/requests/volume/create_disk.rb +0 -43
  923. data/lib/fog/sakuracloud/requests/volume/delete_disk.rb +0 -30
  924. data/lib/fog/sakuracloud/requests/volume/list_archives.rb +0 -46
  925. data/lib/fog/sakuracloud/requests/volume/list_disks.rb +0 -50
  926. data/lib/fog/sakuracloud/requests/volume/list_plans.rb +0 -40
  927. data/lib/fog/sakuracloud/volume.rb +0 -88
  928. data/lib/fog/schema/data_validator.rb +0 -153
  929. data/tests/sakuracloud/helper.rb +0 -7
  930. data/tests/sakuracloud/requests/compute/plans_tests.rb +0 -32
  931. data/tests/sakuracloud/requests/compute/servers_tests.rb +0 -46
  932. data/tests/sakuracloud/requests/compute/ssh_keys_tests.rb +0 -30
  933. data/tests/sakuracloud/requests/compute/zones_tests.rb +0 -30
  934. data/tests/sakuracloud/requests/volume/archives_tests.rb +0 -31
  935. data/tests/sakuracloud/requests/volume/disks_tests.rb +0 -47
  936. data/tests/sakuracloud/requests/volume/plans_tests.rb +0 -30
@@ -4,7 +4,7 @@ module Fog
4
4
  class Mock
5
5
  def list_zones
6
6
  zones = self.data[:zones].values
7
- build_response(:body => {
7
+ build_excon_response({
8
8
  "kind" => "compute#zoneList",
9
9
  "selfLink" => "https://www.googleapis.com/compute/#{api_version}/projects/#{@project}/zones",
10
10
  "id" => "projects/#{@project}/zones",
@@ -20,8 +20,7 @@ module Fog
20
20
  'project' => @project
21
21
  }
22
22
 
23
- result = self.build_result(api_method, parameters)
24
- response = self.build_response(result)
23
+ request(api_method, parameters)
25
24
  end
26
25
  end
27
26
  end
@@ -19,8 +19,7 @@ module Fog
19
19
  'healthChecks' => health_checks.map { |i| { 'healthCheck' => i } }
20
20
  }
21
21
 
22
- result = self.build_result(api_method, parameters, body_object=body)
23
- self.build_response(result)
22
+ request(api_method, parameters, body_object=body)
24
23
  end
25
24
  end
26
25
  end
@@ -19,8 +19,7 @@ module Fog
19
19
  'instances' => instances.map { |i| { 'instance' => i } }
20
20
  }
21
21
 
22
- result = self.build_result(api_method, parameters, body_object=body)
23
- self.build_response(result)
22
+ request(api_method, parameters, body_object=body)
24
23
  end
25
24
  end
26
25
  end
@@ -19,8 +19,7 @@ module Fog
19
19
  'instances' => instances.map { |i| { 'instance' => i } }
20
20
  }
21
21
 
22
- result = self.build_result(api_method, parameters, body_object=body)
23
- self.build_response(result)
22
+ request(api_method, parameters, body_object=body)
24
23
  end
25
24
  end
26
25
  end
@@ -16,8 +16,7 @@ module Fog
16
16
  'zone' => zone.split('/')[-1],
17
17
  }
18
18
 
19
- result = self.build_result(api_method, parameters)
20
- response = self.build_response(result)
19
+ request(api_method, parameters)
21
20
  end
22
21
  end
23
22
  end
@@ -18,8 +18,7 @@ module Fog
18
18
  :items => Array(metadata).map { |pair| { :key => pair[0], :value => pair[1] } },
19
19
  }
20
20
 
21
- result = self.build_result(api_method, parameters, body_object)
22
- response = self.build_response(result)
21
+ request(api_method, parameters, body_object)
23
22
  end
24
23
  end
25
24
  end
@@ -19,8 +19,7 @@ module Fog
19
19
  'target' => target
20
20
  }
21
21
 
22
- result = self.build_result(api_method, parameters, body_object=body)
23
- self.build_response(result)
22
+ request(api_method, parameters, body_object=body)
24
23
  end
25
24
  end
26
25
  end
@@ -0,0 +1,27 @@
1
+ module Fog
2
+ module Compute
3
+ class Google
4
+ class Mock
5
+ def set_global_forwarding_rule_target(rule, target)
6
+ Fog::Mock.not_implemented
7
+ end
8
+ end
9
+
10
+ class Real
11
+ def set_global_forwarding_rule_target(rule, target)
12
+ api_method = @compute.global_forwarding_rules.set_target
13
+ parameters = {
14
+ 'project' => @project,
15
+ 'forwardingRule' => rule.name,
16
+ 'region' => 'global'
17
+ }
18
+ body = {
19
+ 'target' => target
20
+ }
21
+
22
+ request(api_method, parameters, body_object=body)
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -31,12 +31,7 @@ module Fog
31
31
  'fingerprint' => fingerprint,
32
32
  "items" => metadata.to_a.map {|pair| { :key => pair[0], :value => pair[1] } }
33
33
  }
34
- result = self.build_result(
35
- api_method,
36
- parameters,
37
- body_object=body_object
38
- )
39
- response = self.build_response(result)
34
+ request(api_method, parameters, body_object=body_object)
40
35
  end
41
36
  end
42
37
  end
@@ -18,8 +18,7 @@ module Fog
18
18
  'deviceName' => device_name,
19
19
  }
20
20
 
21
- result = self.build_result(api_method, parameters)
22
- response = self.build_response(result)
21
+ request(api_method, parameters)
23
22
  end
24
23
  end
25
24
  end
@@ -21,8 +21,7 @@ module Fog
21
21
  'automaticRestart' => automatic_restart,
22
22
  }
23
23
 
24
- result = self.build_result(api_method, parameters, body_object)
25
- response = self.build_response(result)
24
+ request(api_method, parameters, body_object)
26
25
  end
27
26
  end
28
27
  end
@@ -16,12 +16,7 @@ module Fog
16
16
  'zone' => zone
17
17
  }
18
18
  body_object = { "fingerprint" => fingerprint, "items" => tags }
19
- result = self.build_result(
20
- api_method,
21
- parameters,
22
- body_object=body_object
23
- )
24
- response = self.build_response(result)
19
+ request(api_method, parameters, body_object=body_object)
25
20
  end
26
21
  end
27
22
  end
@@ -0,0 +1,27 @@
1
+ module Fog
2
+ module Compute
3
+ class Google
4
+ class Mock
5
+ def set_target_http_proxy_url_map(target_http_proxy, url_map)
6
+ Fog::Mock.not_implemented
7
+ end
8
+ end
9
+
10
+ class Real
11
+ def set_target_http_proxy_url_map(target_http_proxy, url_map)
12
+ api_method = @compute.target_http_proxies.set_url_map
13
+ parameters = {
14
+ 'project' => @project,
15
+ 'targetHttpProxy' => target_http_proxy.name,
16
+ }
17
+ url_map = url_map.self_link unless url_map.class == String
18
+ body = {
19
+ 'urlMap' => url_map
20
+ }
21
+
22
+ request(api_method, parameters, body_object=body)
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,39 @@
1
+ module Fog
2
+ module Compute
3
+ class Google
4
+ class Mock
5
+ def update_url_map(url_map, host_rules)
6
+ Fog::Mock.not_implemented
7
+ end
8
+ end
9
+
10
+ class Real
11
+ def update_url_map(url_map, host_rules, path_matchers = nil)
12
+ api_method = @compute.url_maps.update
13
+ parameters = {
14
+ 'project' => @project,
15
+ 'urlMap' => url_map.name
16
+ }
17
+
18
+ # add new properties to the url_map resource
19
+ if url_map.hostRules then
20
+ url_map.hostRules.concat(host_rules)
21
+ else
22
+ url_map.hostRules = host_rules
23
+ end
24
+
25
+ # a path matcher can only be created with a host rule that uses it
26
+ if path_matchers then
27
+ if url_map.pathMatchers then
28
+ url_map.pathMatchers.concat(path_matchers)
29
+ else
30
+ url_map.pathMatchers = path_matchers
31
+ end
32
+ end
33
+
34
+ request(api_method, parameters, body_object=url_map)
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,24 @@
1
+ module Fog
2
+ module Compute
3
+ class Google
4
+ class Mock
5
+ def validate_url_map(url_map)
6
+ Fog::Mock::not_implemented
7
+ end
8
+ end
9
+
10
+ class Real
11
+ def validate_url_map(url_map)
12
+ api_method = @compute.url_maps.validate
13
+ parameters = {
14
+ 'project' => @project,
15
+ 'urlMap' => url_map.name
16
+ }
17
+ body = { 'resource' => url_map }
18
+
19
+ request(api_method, parameters, body_object = body)
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,49 @@
1
+ require 'date'
2
+ module Fog
3
+ module DNS
4
+ class Google
5
+
6
+ class Mock
7
+ def create_managed_zone(zone_name, dns_name, descr='')
8
+ id = Fog::Mock.random_numbers(19).to_s
9
+ object = {
10
+ "kind" => "dns#managedZone",
11
+ "id" => id,
12
+ "creationTime" => DateTime.now.strftime('%FT%T.%LZ'),
13
+ "name" => zone_name,
14
+ "dnsName" => dns_name,
15
+ "description" => descr,
16
+ "nameServers" => [
17
+ "ns-cloud-e1.googledomains.com.",
18
+ "ns-cloud-e2.googledomains.com.",
19
+ "ns-cloud-e3.googledomains.com.",
20
+ "ns-cloud-e4.googledomains.com.",
21
+ ],
22
+ }
23
+ self.data[:managed_zones][:by_name][zone_name] = object
24
+ self.data[:managed_zones][:by_id][id] = object
25
+
26
+ build_excon_response(object)
27
+ end
28
+
29
+ end
30
+
31
+ class Real
32
+ def create_managed_zone(zone_name, dns_name, descr='')
33
+ api_method = @dns.managed_zones.create
34
+ parameters = {
35
+ 'project' => @project,
36
+ }
37
+
38
+ body_object = {
39
+ 'name' => zone_name,
40
+ 'dnsName' => dns_name,
41
+ }
42
+ body_object['description'] = descr unless descr.nil?
43
+
44
+ request(api_method, parameters, body_object)
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,39 @@
1
+ module Fog
2
+ module DNS
3
+ class Google
4
+
5
+ class Mock
6
+ def delete_managed_zone(zone_name_or_id)
7
+ if self.data[:managed_zones][:by_name].has_key?(zone_name_or_id)
8
+ zone_name = zone_name_or_id
9
+ zone = self.data[:managed_zones][:by_name][zone_name]
10
+ zone_id = zone['id']
11
+ elsif self.data[:managed_zones][:by_id].has_key?(zone_name_or_id)
12
+ zone_id = zone_name_or_id
13
+ zone = self.data[:managed_zones][:by_name][zone_id]
14
+ zone_name = zone['name']
15
+ else
16
+ raise Fog::Errors::NotFound, "The 'parameters.managedZone' resource named '#{zone_name_or_id}' does not exist."
17
+ end
18
+ self.data[:managed_zones][:by_name].delete(zone_name)
19
+ self.data[:managed_zones][:by_id].delete(zone_id)
20
+
21
+ build_excon_response(nil)
22
+ end
23
+
24
+ end
25
+
26
+ class Real
27
+ def delete_managed_zone(zone_name_or_id)
28
+ api_method = @dns.managed_zones.delete
29
+ parameters = {
30
+ 'project' => @project,
31
+ 'managedZone' => zone_name_or_id,
32
+ }
33
+
34
+ request(api_method, parameters)
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,31 @@
1
+ module Fog
2
+ module DNS
3
+ class Google
4
+
5
+ class Mock
6
+ def get_managed_zone(zone_name_or_id)
7
+ if self.data[:managed_zones][:by_name].has_key?(zone_name_or_id)
8
+ build_excon_response(self.data[:managed_zones][:by_name][zone_name_or_id])
9
+ elsif self.data[:managed_zones][:by_id].has_key?(zone_name_or_id)
10
+ build_excon_response(self.data[:managed_zones][:by_id][zone_name_or_id])
11
+ else
12
+ raise Fog::Errors::NotFound, "The 'parameters.managedZone' resource named '#{zone_name_or_id}' does not exist."
13
+ end
14
+ end
15
+
16
+ end
17
+
18
+ class Real
19
+ def get_managed_zone(zone_name_or_id)
20
+ api_method = @dns.managed_zones.get
21
+ parameters = {
22
+ 'project' => @project,
23
+ 'managedZone' => zone_name_or_id,
24
+ }
25
+
26
+ request(api_method, parameters)
27
+ end
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,26 @@
1
+ module Fog
2
+ module DNS
3
+ class Google
4
+ class Mock
5
+ def list_managed_zones()
6
+ zones = self.data[:managed_zones][:by_id].values
7
+ build_excon_response({
8
+ "kind" => "dns#managedZonesListResponse",
9
+ "managedZones" => zones,
10
+ })
11
+ end
12
+ end
13
+
14
+ class Real
15
+ def list_managed_zones()
16
+ api_method = @dns.managed_zones.list
17
+ parameters = {
18
+ 'project' => @project,
19
+ }
20
+
21
+ request(api_method, parameters)
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,191 @@
1
+ module Fog
2
+ module Google
3
+ class Monitoring
4
+ ##
5
+ # List metric descriptors that match the query. If the query is not set, then all of the metric descriptors
6
+ # will be returned.
7
+ #
8
+ # @see https://developers.google.com/cloud-monitoring/v2beta1/metricDescriptors/list
9
+ class Real
10
+ def list_metric_descriptors(options = {})
11
+ api_method = @monitoring.metric_descriptors.list
12
+ parameters = {
13
+ 'project' => @project,
14
+ }
15
+
16
+ parameters['count'] = options[:count] if options.key?(:count)
17
+ parameters['pageToken'] = options[:page_token] if options.key?(:page_token)
18
+ parameters['query'] = options[:query] if options.key?(:query)
19
+
20
+ request(api_method, parameters)
21
+ end
22
+ end
23
+
24
+ class Mock
25
+ def list_metric_descriptors(options = {})
26
+ body = {
27
+ 'kind' => 'cloudmonitoring#listMetricDescriptorsResponse',
28
+ 'metrics' => [
29
+ { 'name' => 'compute.googleapis.com/instance/cpu/reserved_cores',
30
+ 'project' => @project,
31
+ 'labels' => [
32
+ { 'key' => 'compute.googleapis.com/instance_name' },
33
+ { 'key' => 'cloud.googleapis.com/location' },
34
+ { 'key' => 'compute.googleapis.com/resource_id' },
35
+ { 'key' => 'compute.googleapis.com/resource_type' },
36
+ { 'key' => 'cloud.googleapis.com/service' }
37
+ ],
38
+ 'typeDescriptor' => { 'metricType' => 'gauge', 'valueType' => 'double' },
39
+ 'description' => 'Number of cores reserved on the host of the instance.'
40
+ },
41
+ {
42
+ 'name' => 'compute.googleapis.com/instance/cpu/usage_time',
43
+ 'project' => @project,
44
+ 'labels' => [
45
+ { 'key' => 'compute.googleapis.com/instance_name' },
46
+ { 'key' => 'cloud.googleapis.com/location' },
47
+ { 'key' => 'compute.googleapis.com/resource_id' },
48
+ { 'key' => 'compute.googleapis.com/resource_type' },
49
+ { 'key' => 'cloud.googleapis.com/service' }
50
+ ],
51
+ 'typeDescriptor' => { 'metricType' => 'delta', 'valueType' => 'double' },
52
+ 'description' => 'Delta CPU usage time. Units are seconds. You can get the per-core CPU utilization ratio by performing a rate operation on a point: doubleValue/(end-start), then divide by compute.googleapis.com/instance/cpu/reserved_cores at the corresponding end timestamp.'
53
+ },
54
+ {
55
+ 'name' => 'compute.googleapis.com/instance/disk/read_bytes_count',
56
+ 'project' => @project,
57
+ 'labels' => [
58
+ { 'key' => 'compute.googleapis.com/instance_name' },
59
+ { 'key' => 'compute.googleapis.com/device_name' },
60
+ { 'key' => 'compute.googleapis.com/device_type' },
61
+ { 'key' => 'cloud.googleapis.com/location' },
62
+ { 'key' => 'compute.googleapis.com/resource_id' },
63
+ { 'key' => 'compute.googleapis.com/resource_type' },
64
+ { 'key' => 'cloud.googleapis.com/service' }
65
+ ],
66
+ 'typeDescriptor' => { 'metricType' => 'delta', 'valueType' => 'int64' },
67
+ 'description' => 'Delta count of bytes read from disk.'
68
+ },
69
+ {
70
+ 'name' => 'compute.googleapis.com/instance/disk/read_ops_count',
71
+ 'project' => @project,
72
+ 'labels' => [
73
+ { 'key' => 'compute.googleapis.com/instance_name' },
74
+ { 'key' => 'compute.googleapis.com/device_name' },
75
+ { 'key' => 'compute.googleapis.com/device_type' },
76
+ { 'key' => 'cloud.googleapis.com/location' },
77
+ { 'key' => 'compute.googleapis.com/resource_id' },
78
+ { 'key' => 'compute.googleapis.com/resource_type' },
79
+ { 'key' => 'cloud.googleapis.com/service' }
80
+ ],
81
+ 'typeDescriptor' => { 'metricType' => 'delta', 'valueType' => 'int64' },
82
+ 'description' => 'Delta count of disk read IO operations.'
83
+ },
84
+ {
85
+ 'name' => 'compute.googleapis.com/instance/disk/write_bytes_count',
86
+ 'project' => @project,
87
+ 'labels' => [
88
+ { 'key' => 'compute.googleapis.com/instance_name' },
89
+ { 'key' => 'compute.googleapis.com/device_name' },
90
+ { 'key' => 'compute.googleapis.com/device_type' },
91
+ { 'key' => 'cloud.googleapis.com/location' },
92
+ { 'key' => '"compute.googleapis.com/resource_id' },
93
+ { 'key' => 'compute.googleapis.com/resource_type' },
94
+ { 'key' => 'cloud.googleapis.com/service' }
95
+ ],
96
+ 'typeDescriptor' => { 'metricType' => 'delta', 'valueType' => 'int64' },
97
+ 'description' => 'Delta count of bytes written to disk.'
98
+ },
99
+ {
100
+ 'name' => 'compute.googleapis.com/instance/disk/write_ops_count',
101
+ 'project' => @project,
102
+ 'labels' => [
103
+ { 'key' => 'compute.googleapis.com/instance_name' },
104
+ { 'key' => 'compute.googleapis.com/device_name' },
105
+ { 'key' => '"compute.googleapis.com/device_type' },
106
+ { 'key' => 'cloud.googleapis.com/location' },
107
+ { 'key' => 'compute.googleapis.com/resource_id' },
108
+ { 'key' => 'compute.googleapis.com/resource_type' },
109
+ { 'key' => 'cloud.googleapis.com/service' }
110
+ ],
111
+ 'typeDescriptor' => { 'metricType' => 'delta', 'valueType' => 'int64' },
112
+ 'description' => 'Delta count of disk write IO operations.'
113
+ },
114
+ {
115
+ 'name' => 'compute.googleapis.com/instance/network/received_bytes_count',
116
+ 'project' => @project,
117
+ 'labels' => [
118
+ { 'key' => 'compute.googleapis.com/instance_name' },
119
+ { 'key' => 'compute.googleapis.com/loadbalanced' },
120
+ { 'key' => 'cloud.googleapis.com/location' },
121
+ { 'key' => 'compute.googleapis.com/resource_id' },
122
+ { 'key' => 'compute.googleapis.com/resource_type' },
123
+ { 'key' => 'cloud.googleapis.com/service' }
124
+ ],
125
+ 'typeDescriptor' => { 'metricType' => 'delta', 'valueType' => 'int64' },
126
+ 'description' => 'Delta count of bytes received from network.'
127
+ },
128
+ {
129
+ 'name' => 'compute.googleapis.com/instance/network/received_packets_count',
130
+ 'project' => @project,
131
+ 'labels' => [
132
+ { 'key' => 'compute.googleapis.com/instance_name' },
133
+ { 'key' => 'compute.googleapis.com/loadbalanced' },
134
+ { 'key' => 'cloud.googleapis.com/location' },
135
+ { 'key' => 'compute.googleapis.com/resource_id' },
136
+ { 'key' => 'compute.googleapis.com/resource_type' },
137
+ { 'key' => 'cloud.googleapis.com/service' }
138
+ ],
139
+ 'typeDescriptor' => { 'metricType' => 'delta', 'valueType' => 'int64' },
140
+ 'description' => 'Delta count of packets received from network.'
141
+ },
142
+ {
143
+ 'name' => 'compute.googleapis.com/instance/network/sent_bytes_count',
144
+ 'project' => @project,
145
+ 'labels' => [
146
+ { 'key' => 'compute.googleapis.com/instance_name' },
147
+ { 'key' => 'compute.googleapis.com/loadbalanced' },
148
+ { 'key' => 'cloud.googleapis.com/location' },
149
+ { 'key' => 'compute.googleapis.com/resource_id' },
150
+ { 'key' => 'compute.googleapis.com/resource_type' },
151
+ { 'key' => 'cloud.googleapis.com/service' }
152
+ ],
153
+ 'typeDescriptor' => { 'metricType' => 'delta', 'valueType' => 'int64' },
154
+ 'description' => 'Delta count of bytes sent over network.'
155
+ },
156
+ {
157
+ 'name' => 'compute.googleapis.com/instance/network/sent_packets_count',
158
+ 'project' => @project,
159
+ 'labels' => [
160
+ { 'key' => 'compute.googleapis.com/instance_name' },
161
+ { 'key' => 'compute.googleapis.com/loadbalanced' },
162
+ { 'key' => 'cloud.googleapis.com/location' },
163
+ { 'key' => 'compute.googleapis.com/resource_id' },
164
+ { 'key' => 'compute.googleapis.com/resource_type' },
165
+ { 'key' => 'cloud.googleapis.com/service' }
166
+ ],
167
+ 'typeDescriptor' => { 'metricType' => 'delta', 'valueType' => 'int64' },
168
+ 'description' => 'Delta count of packets sent over network.'
169
+ },
170
+ {
171
+ 'name' => 'compute.googleapis.com/instance/uptime',
172
+ 'project' => @project,
173
+ 'labels' => [
174
+ { 'key' => 'compute.googleapis.com/instance_name' },
175
+ { 'key' => 'cloud.googleapis.com/location' },
176
+ { 'key' => 'compute.googleapis.com/resource_id' },
177
+ { 'key' => 'compute.googleapis.com/resource_type' },
178
+ { 'key' => 'cloud.googleapis.com/service' }
179
+ ],
180
+ 'typeDescriptor' => { 'metricType' => 'delta', 'valueType' => 'double' },
181
+ 'description' => 'Indicates the VM running time in seconds.'
182
+ },
183
+ ]
184
+ }
185
+
186
+ build_excon_response(body)
187
+ end
188
+ end
189
+ end
190
+ end
191
+ end