fog-google 1.9.1 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (273) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/CHANGELOG.md +40 -0
  4. data/README.md +1 -1
  5. data/SECURITY.md +16 -0
  6. data/ci/README.md +3 -2
  7. data/ci/build-head-pipeline.yml +173 -0
  8. data/ci/{pipeline.yml → integration-pipeline.yml} +0 -24
  9. data/ci/pipeline-dev.yml +58 -0
  10. data/ci/tasks/run-int.sh +20 -1
  11. data/ci/tasks/run-int.yml +2 -0
  12. data/examples/sql/flags.rb +10 -6
  13. data/examples/sql/instances.rb +38 -34
  14. data/examples/sql/operations.rb +20 -16
  15. data/examples/sql/ssl_certs.rb +32 -28
  16. data/examples/sql/tiers.rb +10 -6
  17. data/fog-google.gemspec +1 -1
  18. data/lib/fog/compute/google.rb +4 -0
  19. data/lib/fog/compute/google/mock.rb +2 -1
  20. data/lib/fog/compute/google/models/address.rb +15 -2
  21. data/lib/fog/compute/google/models/disk.rb +6 -2
  22. data/lib/fog/compute/google/models/images.rb +6 -1
  23. data/lib/fog/compute/google/models/instance_groups.rb +2 -2
  24. data/lib/fog/compute/google/models/server.rb +30 -6
  25. data/lib/fog/compute/google/real.rb +2 -1
  26. data/lib/fog/compute/google/requests/abandon_instances.rb +2 -0
  27. data/lib/fog/compute/google/requests/add_backend_service_backends.rb +2 -0
  28. data/lib/fog/compute/google/requests/add_instance_group_instances.rb +2 -0
  29. data/lib/fog/compute/google/requests/add_server_access_config.rb +2 -0
  30. data/lib/fog/compute/google/requests/add_target_pool_health_checks.rb +2 -0
  31. data/lib/fog/compute/google/requests/add_target_pool_instances.rb +2 -0
  32. data/lib/fog/compute/google/requests/attach_disk.rb +2 -0
  33. data/lib/fog/compute/google/requests/create_disk_snapshot.rb +2 -0
  34. data/lib/fog/compute/google/requests/delete_address.rb +2 -0
  35. data/lib/fog/compute/google/requests/delete_backend_service.rb +2 -0
  36. data/lib/fog/compute/google/requests/delete_disk.rb +2 -0
  37. data/lib/fog/compute/google/requests/delete_firewall.rb +2 -0
  38. data/lib/fog/compute/google/requests/delete_forwarding_rule.rb +2 -0
  39. data/lib/fog/compute/google/requests/delete_global_address.rb +2 -0
  40. data/lib/fog/compute/google/requests/delete_global_forwarding_rule.rb +2 -0
  41. data/lib/fog/compute/google/requests/delete_global_operation.rb +2 -0
  42. data/lib/fog/compute/google/requests/delete_http_health_check.rb +2 -0
  43. data/lib/fog/compute/google/requests/delete_image.rb +2 -0
  44. data/lib/fog/compute/google/requests/delete_instance_group.rb +2 -0
  45. data/lib/fog/compute/google/requests/delete_instance_group_manager.rb +2 -0
  46. data/lib/fog/compute/google/requests/delete_instance_template.rb +2 -0
  47. data/lib/fog/compute/google/requests/delete_network.rb +2 -0
  48. data/lib/fog/compute/google/requests/delete_region_operation.rb +2 -0
  49. data/lib/fog/compute/google/requests/delete_route.rb +2 -0
  50. data/lib/fog/compute/google/requests/delete_server.rb +2 -0
  51. data/lib/fog/compute/google/requests/delete_server_access_config.rb +2 -0
  52. data/lib/fog/compute/google/requests/delete_snapshot.rb +2 -0
  53. data/lib/fog/compute/google/requests/delete_ssl_certificate.rb +2 -0
  54. data/lib/fog/compute/google/requests/delete_subnetwork.rb +2 -0
  55. data/lib/fog/compute/google/requests/delete_target_http_proxy.rb +2 -0
  56. data/lib/fog/compute/google/requests/delete_target_https_proxy.rb +2 -0
  57. data/lib/fog/compute/google/requests/delete_target_instance.rb +2 -0
  58. data/lib/fog/compute/google/requests/delete_target_pool.rb +2 -0
  59. data/lib/fog/compute/google/requests/delete_url_map.rb +2 -0
  60. data/lib/fog/compute/google/requests/delete_zone_operation.rb +2 -0
  61. data/lib/fog/compute/google/requests/deprecate_image.rb +2 -0
  62. data/lib/fog/compute/google/requests/detach_disk.rb +2 -0
  63. data/lib/fog/compute/google/requests/expand_subnetwork_ip_cidr_range.rb +2 -0
  64. data/lib/fog/compute/google/requests/get_address.rb +2 -0
  65. data/lib/fog/compute/google/requests/get_backend_service_health.rb +2 -0
  66. data/lib/fog/compute/google/requests/get_disk.rb +2 -0
  67. data/lib/fog/compute/google/requests/get_disk_type.rb +2 -0
  68. data/lib/fog/compute/google/requests/get_firewall.rb +2 -0
  69. data/lib/fog/compute/google/requests/get_forwarding_rule.rb +2 -0
  70. data/lib/fog/compute/google/requests/get_global_address.rb +2 -0
  71. data/lib/fog/compute/google/requests/get_global_forwarding_rule.rb +2 -0
  72. data/lib/fog/compute/google/requests/get_global_operation.rb +2 -0
  73. data/lib/fog/compute/google/requests/get_http_health_check.rb +2 -0
  74. data/lib/fog/compute/google/requests/get_image.rb +2 -0
  75. data/lib/fog/compute/google/requests/get_image_from_family.rb +2 -0
  76. data/lib/fog/compute/google/requests/get_instance_group.rb +2 -0
  77. data/lib/fog/compute/google/requests/get_instance_group_manager.rb +2 -0
  78. data/lib/fog/compute/google/requests/get_instance_template.rb +2 -0
  79. data/lib/fog/compute/google/requests/get_machine_type.rb +2 -0
  80. data/lib/fog/compute/google/requests/get_network.rb +2 -0
  81. data/lib/fog/compute/google/requests/get_project.rb +2 -0
  82. data/lib/fog/compute/google/requests/get_region.rb +2 -0
  83. data/lib/fog/compute/google/requests/get_route.rb +2 -0
  84. data/lib/fog/compute/google/requests/get_server.rb +2 -0
  85. data/lib/fog/compute/google/requests/get_server_serial_port_output.rb +2 -0
  86. data/lib/fog/compute/google/requests/get_snapshot.rb +2 -0
  87. data/lib/fog/compute/google/requests/get_ssl_certificate.rb +2 -0
  88. data/lib/fog/compute/google/requests/get_subnetwork.rb +2 -0
  89. data/lib/fog/compute/google/requests/get_target_http_proxy.rb +2 -0
  90. data/lib/fog/compute/google/requests/get_target_https_proxy.rb +2 -0
  91. data/lib/fog/compute/google/requests/get_target_instance.rb +2 -0
  92. data/lib/fog/compute/google/requests/get_target_pool.rb +2 -0
  93. data/lib/fog/compute/google/requests/get_target_pool_health.rb +2 -0
  94. data/lib/fog/compute/google/requests/get_url_map.rb +2 -0
  95. data/lib/fog/compute/google/requests/get_zone.rb +2 -0
  96. data/lib/fog/compute/google/requests/get_zone_operation.rb +2 -0
  97. data/lib/fog/compute/google/requests/insert_address.rb +2 -0
  98. data/lib/fog/compute/google/requests/insert_backend_service.rb +2 -0
  99. data/lib/fog/compute/google/requests/insert_disk.rb +8 -5
  100. data/lib/fog/compute/google/requests/insert_firewall.rb +2 -0
  101. data/lib/fog/compute/google/requests/insert_forwarding_rule.rb +2 -0
  102. data/lib/fog/compute/google/requests/insert_global_address.rb +2 -0
  103. data/lib/fog/compute/google/requests/insert_global_forwarding_rule.rb +2 -0
  104. data/lib/fog/compute/google/requests/insert_http_health_check.rb +2 -0
  105. data/lib/fog/compute/google/requests/insert_image.rb +2 -0
  106. data/lib/fog/compute/google/requests/insert_instance_group.rb +2 -0
  107. data/lib/fog/compute/google/requests/insert_instance_group_manager.rb +2 -0
  108. data/lib/fog/compute/google/requests/insert_instance_template.rb +2 -0
  109. data/lib/fog/compute/google/requests/insert_network.rb +2 -0
  110. data/lib/fog/compute/google/requests/insert_route.rb +2 -0
  111. data/lib/fog/compute/google/requests/insert_server.rb +2 -0
  112. data/lib/fog/compute/google/requests/insert_ssl_certificate.rb +2 -0
  113. data/lib/fog/compute/google/requests/insert_subnetwork.rb +2 -0
  114. data/lib/fog/compute/google/requests/insert_target_http_proxy.rb +2 -0
  115. data/lib/fog/compute/google/requests/insert_target_https_proxy.rb +2 -0
  116. data/lib/fog/compute/google/requests/insert_target_instance.rb +2 -0
  117. data/lib/fog/compute/google/requests/insert_target_pool.rb +2 -0
  118. data/lib/fog/compute/google/requests/insert_url_map.rb +2 -0
  119. data/lib/fog/compute/google/requests/invalidate_url_map_cache.rb +2 -0
  120. data/lib/fog/compute/google/requests/list_addresses.rb +2 -0
  121. data/lib/fog/compute/google/requests/list_aggregated_addresses.rb +2 -0
  122. data/lib/fog/compute/google/requests/list_aggregated_disk_types.rb +2 -0
  123. data/lib/fog/compute/google/requests/list_aggregated_disks.rb +2 -0
  124. data/lib/fog/compute/google/requests/list_aggregated_forwarding_rules.rb +2 -0
  125. data/lib/fog/compute/google/requests/list_aggregated_instance_group_managers.rb +2 -0
  126. data/lib/fog/compute/google/requests/list_aggregated_instance_groups.rb +2 -0
  127. data/lib/fog/compute/google/requests/list_aggregated_machine_types.rb +2 -0
  128. data/lib/fog/compute/google/requests/list_aggregated_servers.rb +2 -0
  129. data/lib/fog/compute/google/requests/list_aggregated_subnetworks.rb +2 -0
  130. data/lib/fog/compute/google/requests/list_aggregated_target_instances.rb +2 -0
  131. data/lib/fog/compute/google/requests/list_aggregated_target_pools.rb +2 -0
  132. data/lib/fog/compute/google/requests/list_disk_types.rb +2 -0
  133. data/lib/fog/compute/google/requests/list_disks.rb +2 -0
  134. data/lib/fog/compute/google/requests/list_firewalls.rb +2 -0
  135. data/lib/fog/compute/google/requests/list_forwarding_rules.rb +2 -0
  136. data/lib/fog/compute/google/requests/list_global_addresses.rb +2 -0
  137. data/lib/fog/compute/google/requests/list_global_forwarding_rules.rb +2 -0
  138. data/lib/fog/compute/google/requests/list_global_operations.rb +2 -0
  139. data/lib/fog/compute/google/requests/list_http_health_checks.rb +2 -0
  140. data/lib/fog/compute/google/requests/list_images.rb +2 -0
  141. data/lib/fog/compute/google/requests/list_instance_group_instances.rb +2 -0
  142. data/lib/fog/compute/google/requests/list_instance_group_managers.rb +2 -0
  143. data/lib/fog/compute/google/requests/list_instance_groups.rb +2 -0
  144. data/lib/fog/compute/google/requests/list_instance_templates.rb +2 -0
  145. data/lib/fog/compute/google/requests/list_machine_types.rb +2 -0
  146. data/lib/fog/compute/google/requests/list_networks.rb +2 -0
  147. data/lib/fog/compute/google/requests/list_region_operations.rb +2 -0
  148. data/lib/fog/compute/google/requests/list_regions.rb +2 -0
  149. data/lib/fog/compute/google/requests/list_routes.rb +2 -0
  150. data/lib/fog/compute/google/requests/list_servers.rb +2 -0
  151. data/lib/fog/compute/google/requests/list_snapshots.rb +2 -0
  152. data/lib/fog/compute/google/requests/list_ssl_certificates.rb +2 -0
  153. data/lib/fog/compute/google/requests/list_subnetworks.rb +2 -0
  154. data/lib/fog/compute/google/requests/list_target_http_proxies.rb +2 -0
  155. data/lib/fog/compute/google/requests/list_target_https_proxies.rb +2 -0
  156. data/lib/fog/compute/google/requests/list_target_instances.rb +2 -0
  157. data/lib/fog/compute/google/requests/list_target_pools.rb +2 -0
  158. data/lib/fog/compute/google/requests/list_url_maps.rb +2 -0
  159. data/lib/fog/compute/google/requests/list_zone_operations.rb +2 -0
  160. data/lib/fog/compute/google/requests/list_zones.rb +2 -0
  161. data/lib/fog/compute/google/requests/patch_firewall.rb +2 -0
  162. data/lib/fog/compute/google/requests/patch_url_map.rb +2 -0
  163. data/lib/fog/compute/google/requests/recreate_instances.rb +2 -0
  164. data/lib/fog/compute/google/requests/remove_instance_group_instances.rb +2 -0
  165. data/lib/fog/compute/google/requests/remove_target_pool_health_checks.rb +2 -0
  166. data/lib/fog/compute/google/requests/remove_target_pool_instance.rb +2 -0
  167. data/lib/fog/compute/google/requests/remove_target_pool_instances.rb +2 -0
  168. data/lib/fog/compute/google/requests/reset_server.rb +2 -0
  169. data/lib/fog/compute/google/requests/reset_windows_password.rb +154 -0
  170. data/lib/fog/compute/google/requests/set_common_instance_metadata.rb +2 -0
  171. data/lib/fog/compute/google/requests/set_forwarding_rule_target.rb +2 -0
  172. data/lib/fog/compute/google/requests/set_global_forwarding_rule_target.rb +2 -0
  173. data/lib/fog/compute/google/requests/set_instance_template.rb +2 -0
  174. data/lib/fog/compute/google/requests/set_server_disk_auto_delete.rb +2 -0
  175. data/lib/fog/compute/google/requests/set_server_machine_type.rb +23 -0
  176. data/lib/fog/compute/google/requests/set_server_metadata.rb +2 -0
  177. data/lib/fog/compute/google/requests/set_server_scheduling.rb +2 -0
  178. data/lib/fog/compute/google/requests/set_server_tags.rb +2 -0
  179. data/lib/fog/compute/google/requests/set_snapshot_labels.rb +2 -0
  180. data/lib/fog/compute/google/requests/set_subnetwork_private_ip_google_access.rb +2 -0
  181. data/lib/fog/compute/google/requests/set_target_http_proxy_url_map.rb +2 -0
  182. data/lib/fog/compute/google/requests/set_target_https_proxy_ssl_certificates.rb +2 -0
  183. data/lib/fog/compute/google/requests/set_target_https_proxy_url_map.rb +2 -0
  184. data/lib/fog/compute/google/requests/set_target_pool_backup.rb +2 -0
  185. data/lib/fog/compute/google/requests/start_server.rb +2 -0
  186. data/lib/fog/compute/google/requests/stop_server.rb +2 -0
  187. data/lib/fog/compute/google/requests/update_firewall.rb +2 -0
  188. data/lib/fog/compute/google/requests/update_http_health_check.rb +2 -0
  189. data/lib/fog/compute/google/requests/update_url_map.rb +2 -0
  190. data/lib/fog/compute/google/requests/validate_url_map.rb +2 -0
  191. data/lib/fog/dns/google/requests/create_change.rb +2 -0
  192. data/lib/fog/dns/google/requests/create_managed_zone.rb +2 -0
  193. data/lib/fog/dns/google/requests/delete_managed_zone.rb +2 -0
  194. data/lib/fog/dns/google/requests/get_change.rb +2 -0
  195. data/lib/fog/dns/google/requests/get_managed_zone.rb +2 -0
  196. data/lib/fog/dns/google/requests/get_project.rb +2 -0
  197. data/lib/fog/dns/google/requests/list_changes.rb +2 -0
  198. data/lib/fog/dns/google/requests/list_managed_zones.rb +2 -0
  199. data/lib/fog/dns/google/requests/list_resource_record_sets.rb +2 -0
  200. data/lib/fog/google/models/sql/ssl_cert.rb +7 -1
  201. data/lib/fog/google/models/sql/user.rb +2 -0
  202. data/lib/fog/google/requests/monitoring/create_metric_descriptor.rb +2 -0
  203. data/lib/fog/google/requests/monitoring/create_timeseries.rb +3 -1
  204. data/lib/fog/google/requests/monitoring/delete_metric_descriptor.rb +2 -0
  205. data/lib/fog/google/requests/monitoring/get_metric_descriptor.rb +2 -0
  206. data/lib/fog/google/requests/monitoring/list_monitored_resource_descriptors.rb +2 -0
  207. data/lib/fog/google/requests/monitoring/list_timeseries.rb +2 -0
  208. data/lib/fog/google/requests/sql/clone_instance.rb +2 -0
  209. data/lib/fog/google/requests/sql/delete_backup_run.rb +2 -0
  210. data/lib/fog/google/requests/sql/delete_instance.rb +2 -0
  211. data/lib/fog/google/requests/sql/delete_ssl_cert.rb +2 -0
  212. data/lib/fog/google/requests/sql/delete_user.rb +2 -0
  213. data/lib/fog/google/requests/sql/export_instance.rb +2 -0
  214. data/lib/fog/google/requests/sql/get_backup_run.rb +2 -0
  215. data/lib/fog/google/requests/sql/get_instance.rb +2 -0
  216. data/lib/fog/google/requests/sql/get_operation.rb +2 -0
  217. data/lib/fog/google/requests/sql/get_ssl_cert.rb +2 -0
  218. data/lib/fog/google/requests/sql/import_instance.rb +2 -0
  219. data/lib/fog/google/requests/sql/insert_backup_run.rb +2 -0
  220. data/lib/fog/google/requests/sql/insert_instance.rb +2 -0
  221. data/lib/fog/google/requests/sql/insert_ssl_cert.rb +2 -0
  222. data/lib/fog/google/requests/sql/insert_user.rb +2 -0
  223. data/lib/fog/google/requests/sql/list_backup_runs.rb +2 -0
  224. data/lib/fog/google/requests/sql/list_flags.rb +2 -0
  225. data/lib/fog/google/requests/sql/list_instances.rb +2 -0
  226. data/lib/fog/google/requests/sql/list_operations.rb +2 -0
  227. data/lib/fog/google/requests/sql/list_ssl_certs.rb +2 -0
  228. data/lib/fog/google/requests/sql/list_tiers.rb +2 -0
  229. data/lib/fog/google/requests/sql/list_users.rb +2 -0
  230. data/lib/fog/google/requests/sql/reset_instance_ssl_config.rb +2 -0
  231. data/lib/fog/google/requests/sql/restart_instance.rb +2 -0
  232. data/lib/fog/google/requests/sql/restore_instance_backup.rb +2 -0
  233. data/lib/fog/google/requests/sql/update_instance.rb +2 -0
  234. data/lib/fog/google/requests/sql/update_user.rb +2 -0
  235. data/lib/fog/google/version.rb +1 -1
  236. data/lib/fog/storage/google_json/requests/copy_object.rb +2 -0
  237. data/lib/fog/storage/google_json/requests/delete_bucket.rb +2 -0
  238. data/lib/fog/storage/google_json/requests/delete_object.rb +2 -0
  239. data/lib/fog/storage/google_json/requests/get_bucket.rb +2 -0
  240. data/lib/fog/storage/google_json/requests/get_bucket_acl.rb +2 -0
  241. data/lib/fog/storage/google_json/requests/get_object.rb +2 -0
  242. data/lib/fog/storage/google_json/requests/get_object_acl.rb +2 -0
  243. data/lib/fog/storage/google_json/requests/get_object_metadata.rb +2 -0
  244. data/lib/fog/storage/google_json/requests/list_bucket_acl.rb +2 -0
  245. data/lib/fog/storage/google_json/requests/list_buckets.rb +2 -0
  246. data/lib/fog/storage/google_json/requests/list_object_acl.rb +2 -0
  247. data/lib/fog/storage/google_json/requests/list_objects.rb +2 -0
  248. data/lib/fog/storage/google_json/requests/put_bucket.rb +2 -0
  249. data/lib/fog/storage/google_json/requests/put_bucket_acl.rb +2 -0
  250. data/lib/fog/storage/google_json/requests/put_object.rb +2 -0
  251. data/lib/fog/storage/google_json/requests/put_object_acl.rb +2 -0
  252. data/lib/fog/storage/google_xml/requests/put_bucket_acl.rb +2 -0
  253. data/tasks/test.rake +6 -2
  254. data/test/helpers/integration_test_helper.rb +2 -5
  255. data/test/helpers/test_helper.rb +1 -0
  256. data/test/integration/compute/core_compute/test_servers.rb +40 -0
  257. data/test/integration/compute/core_compute/test_zones.rb +1 -1
  258. data/test/integration/compute/core_networking/test_addresses.rb +23 -0
  259. data/test/integration/factories/{sql_v1_certs_factory.rb → sql_certs_factory.rb} +3 -3
  260. data/test/integration/factories/{sql_v1_instances_factory.rb → sql_instances_factory.rb} +3 -3
  261. data/test/integration/factories/{sql_v1_users_factory.rb → sql_users_factory.rb} +6 -3
  262. data/test/integration/monitoring/test_metric_descriptors.rb +2 -0
  263. data/test/integration/monitoring/test_timeseries.rb +3 -1
  264. data/test/integration/sql/{sqlv1/test_v1_certs.rb → test_certs.rb} +4 -3
  265. data/test/integration/sql/{sqlv1/test_common_flags.rb → test_common_flags.rb} +0 -0
  266. data/test/integration/sql/{sqlv1/test_common_tiers.rb → test_common_tiers.rb} +0 -0
  267. data/test/integration/sql/{sqlv1/test_coverage.rb → test_coverage.rb} +1 -1
  268. data/test/integration/sql/{sqlv2/test_v2_instances.rb → test_instances.rb} +22 -2
  269. data/test/integration/sql/{sqlv1/test_v1_users.rb → test_users.rb} +4 -4
  270. metadata +37 -32
  271. data/test/integration/factories/sql_v2_instances_factory.rb +0 -19
  272. data/test/integration/sql/sqlv1/test_v1_instances.rb +0 -31
  273. data/test/integration/sql/sqlv2/test_coverage.rb +0 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db28ee4b97653430aba4dfeb43d30b8ccb00b1ed
4
- data.tar.gz: c8d8d6a87ee9d08f77ef1e33ae5503a6be03ae5d
3
+ metadata.gz: 3563c5d9fb6cd9c28bd38b0b6c1ae1d619c33c81
4
+ data.tar.gz: 41ecb920dbcb66a2f6aa13f6557ef2a044d26d80
5
5
  SHA512:
6
- metadata.gz: 5b9756f3a3dbf943cd37dc309315be2de09855c5cbc3dc934e40ec259ee92f2478a53401762d1d9ccd1e01c375f609a0578f9fd40b7038a26890365651ea3218
7
- data.tar.gz: 96cd05f5c83f731c672e04eb23a720c19a835381ee55bfd3eb6869807a85959a4ff0509c64190d888d6cc55572faa071ffee28a866f1a5031824f39d8bfe01fe
6
+ metadata.gz: f4a9c9650d0824ad4dcd5389e63eb5c7e583d256c6c469481709cee80bd53f5fe168556e9e563a704878721ea733282c0af87fd24680c59513a6203d5026743c
7
+ data.tar.gz: 2cc78e1c0731a87179ffb6179698e5fa5bd90635d141aec05d9c5faa1e7b18fe8e1123c5ded5f925f7065f5b3ae4893f8876f72c23b164ad1172953f5b74f829
@@ -1,13 +1,13 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  sudo: false
4
- dist: trusty
5
4
  matrix:
6
5
  fast_finish: true
7
6
  include:
8
7
  - rvm: 2.3
9
8
  - rvm: 2.4
10
9
  - rvm: 2.5
10
+ - rvm: 2.6
11
11
  - rvm: jruby-9.1
12
12
  - rvm: jruby-head
13
13
  allow_failures:
@@ -6,6 +6,46 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
6
6
 
7
7
  ## Next
8
8
 
9
+
10
+ ## 1.10.0
11
+
12
+ ### User-facing
13
+
14
+ #### Added
15
+
16
+ - \#480 Add label support to `Disk` model [militarpancho]
17
+ - \#485 Add a `Server#set_server_machine_type` request [gscho]
18
+ - \#490 Add RHEL SAP cloud image project [kgaikwad]
19
+ - \#491 Add `exclude_projects` option to exclude any global project [kgaikwad]
20
+ - \#495 Add support to perform Windows passwords reset procedure through Fog [dvanbrug]
21
+
22
+ #### Fixed
23
+ - \#455 Fix metadata format for `Server#add_ssh_key()` [kgaikwad]
24
+ - \#452 Fix `Address.{associate,disassociate}` methods [temikus]
25
+ - \#486 Fix `Monitoring#create_time_series` method [temikus]
26
+ - \#493 Add sync/async support to `Google::SQL::SslCert` model init [temikus]
27
+
28
+ ### Development changes
29
+
30
+ #### Added
31
+
32
+ - \#474 Added a manually-triggered pipeline to build from HEAD [temikus]
33
+ - \#470 Added tests for `Server#add_ssh_key()` [kgaikwad]
34
+ - \#461 Added dependabot integration [temikus]
35
+ - \#458 Add SECURITY.md, outlining the lib security policy [icco]
36
+ - \#457 Added Ruby 2.6 to travis, switch to default distro [icco]
37
+ - \#453 Implemented worker-side caching of dependencies between jobs [temikus]
38
+ - \#452 Increase `Address` model test coverage [temikus]
39
+
40
+ #### Fixed
41
+
42
+ - \#469 Zone/Monitoring test logging/style improvements [icco]
43
+ - \#465 Stopped counting non-implemented mocks in code coverage [temikus]
44
+ - \#463 Fixed SQL tests broken by the API change [temikus]
45
+ - \#476 Re-enabled Stackdriver pagination tests [temikus]
46
+ - \#488 Tiny fix to ssh key tests to remove a race condition [temikus]
47
+ - \#493 Removing SQLv1 API support from tests [temikus]
48
+
9
49
  ## 1.9.1
10
50
 
11
51
  ### User-facing
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Fog::Google
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/fog-google.svg)](http://badge.fury.io/rb/fog-google) [![Build Status](https://travis-ci.org/fog/fog-google.svg?branch=master)](https://travis-ci.org/fog/fog-google) [![codecov](https://codecov.io/gh/fog/fog-google/branch/master/graph/badge.svg)](https://codecov.io/gh/fog/fog-google) [![Doc coverage](https://inch-ci.org/github/fog/fog-google.svg?branch=master)](https://inch-ci.org/github/fog/fog-google)
3
+ [![Gem Version](https://badge.fury.io/rb/fog-google.svg)](http://badge.fury.io/rb/fog-google) [![Build Status](https://travis-ci.org/fog/fog-google.svg?branch=master)](https://travis-ci.org/fog/fog-google) [![codecov](https://codecov.io/gh/fog/fog-google/branch/master/graph/badge.svg)](https://codecov.io/gh/fog/fog-google) [![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=fog/fog-google)](https://dependabot.com) [![Doc coverage](https://inch-ci.org/github/fog/fog-google.svg?branch=master)](https://inch-ci.org/github/fog/fog-google)
4
4
 
5
5
  The main maintainers for the Google sections are @icco, @Temikus and @plribeiro3000. Please send pull requests to them.
6
6
 
@@ -0,0 +1,16 @@
1
+ # Security Policy
2
+
3
+ Our README.md is the end all be all for authoritative information, but the following is our security policy.
4
+
5
+ ## Supported Versions
6
+
7
+ Versions with :white_check_mark: are supported. All other versions need to be upgraded.
8
+
9
+ | Version | Supported |
10
+ | ------- | ------------------ |
11
+ | 1.9.x | :white_check_mark: |
12
+ | 0.1.x | :white_check_mark: until July 1st, 2019 |
13
+
14
+ ## Reporting a Vulnerability
15
+
16
+ Please file an issue here to report a vulnerability. For immediate escalations, please email nat@natwelch.com and temikus@google.com with the subject `[Fog-Google Security Issue] Description`.
@@ -23,10 +23,11 @@ fly -t fog-ci login -c <YOUR CONCOURSE URL>
23
23
  * Update the [credentials.yml](https://github.com/fog/fog-google/blob/master/ci/credentials.yml.tpl)
24
24
  file. See [Credentials Requirements](#credentials-requirements) for specific instructions.
25
25
 
26
- * Set the fog-google pipeline:
26
+ * Set the fog-google pipelines:
27
27
 
28
28
  ```
29
- fly -t fog-ci set-pipeline -p pr-integration -c pipeline.yml -l credentials.yml
29
+ fly -t fog set-pipeline -p build-head -c build-head-pipeline.yml -l credentials.yml
30
+ fly -t fog-ci set-pipeline -p pr-integration -c integration-pipeline.yml -l credentials.yml
30
31
  ```
31
32
 
32
33
  * Unpause the fog-google pipeline:
@@ -0,0 +1,173 @@
1
+ jobs:
2
+ - name: manual-trigger
3
+ plan:
4
+ - get: master
5
+ trigger: false
6
+
7
+ - name: integration-compute-core_compute
8
+ serial: true
9
+ plan:
10
+ - get: fog-google-src
11
+ resource: master
12
+ version: every
13
+ trigger: true
14
+ passed:
15
+ - manual-trigger
16
+
17
+ - task: run-integration-tests
18
+ file: fog-google-src/ci/tasks/run-int.yml
19
+ params:
20
+ rake_task: test:compute-core_compute
21
+ codecov_token: {{codecov_token}}
22
+ google_project: {{google_project}}
23
+ google_json_key_data: {{google_json_key_data}}
24
+
25
+ - name: integration-compute-core_networking
26
+ serial: true
27
+ plan:
28
+ - get: fog-google-src
29
+ resource: master
30
+ version: every
31
+ trigger: true
32
+ passed:
33
+ - manual-trigger
34
+
35
+ - task: run-integration-tests
36
+ file: fog-google-src/ci/tasks/run-int.yml
37
+ params:
38
+ rake_task: test:compute-core_networking
39
+ codecov_token: {{codecov_token}}
40
+ google_project: {{google_project}}
41
+ google_json_key_data: {{google_json_key_data}}
42
+
43
+ - name: integration-compute-instance_groups
44
+ serial: true
45
+ plan:
46
+ - get: fog-google-src
47
+ resource: master
48
+ version: every
49
+ trigger: true
50
+ passed:
51
+ - manual-trigger
52
+
53
+ - task: run-integration-tests
54
+ file: fog-google-src/ci/tasks/run-int.yml
55
+ params:
56
+ rake_task: test:compute-instance_groups
57
+ codecov_token: {{codecov_token}}
58
+ google_project: {{google_project}}
59
+ google_json_key_data: {{google_json_key_data}}
60
+
61
+ - name: integration-compute-loadbalancing
62
+ serial: true
63
+ plan:
64
+ - get: fog-google-src
65
+ resource: master
66
+ version: every
67
+ trigger: true
68
+ passed:
69
+ - manual-trigger
70
+
71
+ - task: run-integration-tests
72
+ file: fog-google-src/ci/tasks/run-int.yml
73
+ params:
74
+ rake_task: test:compute-loadbalancing
75
+ codecov_token: {{codecov_token}}
76
+ google_project: {{google_project}}
77
+ google_json_key_data: {{google_json_key_data}}
78
+
79
+ - name: integration-tests-monitoring
80
+ serial: true
81
+ plan:
82
+ - get: fog-google-src
83
+ resource: master
84
+ version: every
85
+ trigger: true
86
+ passed:
87
+ - manual-trigger
88
+
89
+ - task: run-integration-tests
90
+ file: fog-google-src/ci/tasks/run-int.yml
91
+ params:
92
+ rake_task: test:monitoring
93
+ codecov_token: {{codecov_token}}
94
+ google_project: {{google_project}}
95
+ google_json_key_data: {{google_json_key_data}}
96
+
97
+ - name: integration-tests-pubsub
98
+ serial: true
99
+ plan:
100
+ - get: fog-google-src
101
+ resource: master
102
+ version: every
103
+ trigger: true
104
+ passed:
105
+ - manual-trigger
106
+
107
+ - task: run-integration-tests
108
+ file: fog-google-src/ci/tasks/run-int.yml
109
+ params:
110
+ rake_task: test:pubsub
111
+ codecov_token: {{codecov_token}}
112
+ google_project: {{google_project}}
113
+ google_json_key_data: {{google_json_key_data}}
114
+
115
+ - name: integration-sqlv1
116
+ serial: true
117
+ plan:
118
+ - get: fog-google-src
119
+ resource: master
120
+ version: every
121
+ trigger: true
122
+ passed:
123
+ - manual-trigger
124
+
125
+ - task: run-integration-tests
126
+ file: fog-google-src/ci/tasks/run-int.yml
127
+ params:
128
+ rake_task: test:sql-sqlv1
129
+ codecov_token: {{codecov_token}}
130
+ google_project: {{google_project}}
131
+ google_json_key_data: {{google_json_key_data}}
132
+
133
+ - name: integration-sqlv2
134
+ serial: true
135
+ plan:
136
+ - get: fog-google-src
137
+ resource: master
138
+ version: every
139
+ trigger: true
140
+ passed:
141
+ - manual-trigger
142
+
143
+ - task: run-integration-tests
144
+ file: fog-google-src/ci/tasks/run-int.yml
145
+ params:
146
+ rake_task: test:sql-sqlv2
147
+ codecov_token: {{codecov_token}}
148
+ google_project: {{google_project}}
149
+ google_json_key_data: {{google_json_key_data}}
150
+
151
+ - name: integration-tests-storage
152
+ serial: true
153
+ plan:
154
+ - get: fog-google-src
155
+ resource: master
156
+ version: every
157
+ trigger: true
158
+ passed:
159
+ - manual-trigger
160
+ - task: run-integration-tests
161
+ file: fog-google-src/ci/tasks/run-int.yml
162
+ params:
163
+ rake_task: test:storage
164
+ codecov_token: {{codecov_token}}
165
+ google_project: {{google_project}}
166
+ google_json_key_data: {{google_json_key_data}}
167
+
168
+ resources:
169
+ - name: master
170
+ type: git
171
+ source:
172
+ uri: https://github.com/fog/fog-google.git
173
+ branch: master
@@ -137,29 +137,6 @@ jobs:
137
137
  path: fog-google-src
138
138
  status: failure
139
139
 
140
- - name: integration-sqlv1
141
- serial: true
142
- plan:
143
- - get: fog-google-src
144
- resource: pull-request
145
- version: every
146
- trigger: true
147
- - put: pull-request
148
- params: {path: fog-google-src, status: pending}
149
-
150
- - task: run-integration-tests
151
- file: fog-google-src/ci/tasks/run-int.yml
152
- params:
153
- rake_task: test:sql-sqlv1
154
- codecov_token: {{codecov_token}}
155
- google_project: {{google_project}}
156
- google_json_key_data: {{google_json_key_data}}
157
- on_failure:
158
- put: pull-request
159
- params:
160
- path: fog-google-src
161
- status: failure
162
-
163
140
  - name: integration-sqlv2
164
141
  serial: true
165
142
  plan:
@@ -213,7 +190,6 @@ jobs:
213
190
  passed: [integration-tests-storage,
214
191
  integration-tests-pubsub,
215
192
  integration-tests-monitoring,
216
- integration-sqlv1,
217
193
  integration-sqlv2,
218
194
  integration-compute-core_compute,
219
195
  integration-compute-core_networking,
@@ -0,0 +1,58 @@
1
+ jobs:
2
+ - name: integration-tests-monitoring
3
+ serial: true
4
+ plan:
5
+ - get: fog-google-src
6
+ resource: pull-request
7
+ version: every
8
+ trigger: true
9
+ - put: pull-request
10
+ params: {path: fog-google-src, status: pending}
11
+
12
+ - task: run-integration-tests
13
+ file: fog-google-src/ci/tasks/run-int.yml
14
+ params:
15
+ rake_task: test:monitoring
16
+ codecov_token: {{codecov_token}}
17
+ google_project: {{google_project}}
18
+ google_json_key_data: {{google_json_key_data}}
19
+ on_failure:
20
+ put: pull-request
21
+ params:
22
+ path: fog-google-src
23
+ status: failure
24
+
25
+ - name: github-pr-aggregator
26
+ plan:
27
+ - get: fog-google-src
28
+ resource: pull-request
29
+ passed: [integration-tests-monitoring]
30
+ trigger: true
31
+ on_success:
32
+ put: pull-request
33
+ params:
34
+ path: fog-google-src
35
+ status: success
36
+ on_failure:
37
+ put: pull-request
38
+ params:
39
+ path: fog-google-src
40
+ status: failure
41
+
42
+ resources:
43
+ - name: pull-request
44
+ type: pull-request
45
+ source:
46
+ access_token: {{github_access_token}}
47
+ private_key: {{github_private_key}}
48
+ label: integrate-dev
49
+ repo: fog/fog-google
50
+
51
+ resource_types:
52
+ # This is a third party resource.
53
+ # The referenced docker-image is maintained externally
54
+ # https://github.com/jtarchie/pullrequest-resource
55
+ - name: pull-request
56
+ type: docker-image
57
+ source:
58
+ repository: jtarchie/pr
@@ -27,8 +27,27 @@ EOL
27
27
 
28
28
  pushd ${release_dir} > /dev/null
29
29
 
30
- bundle install --jobs=3 --retry=3
30
+ echo "Ruby version:"
31
+ ruby --version
31
32
 
33
+ echo "Bundler version:"
34
+ bundler --version
35
+
36
+ echo "Exporting bundler options..."
37
+
38
+ # Setting via local config options as BUNDLE_PATH appears to not work
39
+ # see https://github.com/rails/spring/issues/339
40
+ bundle config --local path ../../bundle
41
+ bundle config --local bin ../../bundle/bin
42
+
43
+ echo "Checking dependencies..."
44
+ # Check if dependencies are satisfied, otherwise kick off bundle install
45
+ bundle check || bundle install --jobs=3 --retry=3
46
+
47
+ echo "Dependencies resolved to:"
48
+ bundle list
49
+
50
+ echo "Starting test run..."
32
51
  FOG_MOCK=false COVERAGE=true CODECOV_TOKEN=${codecov_token} rake ${rake_task}
33
52
 
34
53
  popd > /dev/null
@@ -8,6 +8,8 @@ inputs:
8
8
  path: src/fog-google
9
9
  run:
10
10
  path: src/fog-google/ci/tasks/run-int.sh
11
+ caches:
12
+ - path: bundle
11
13
  params:
12
14
  rake_task: replace-me
13
15
  codecov_token: replace-me
@@ -1,7 +1,11 @@
1
- def test
2
- connection = Fog::Google::SQL.new
1
+ # All examples presume that you have a ~/.fog credentials file set up.
2
+ # More info on it can be found here: http://fog.io/about/getting_started.html
3
3
 
4
- puts "Listing all Flags..."
5
- puts "--------------------"
6
- connection.flags
7
- end
4
+ require "bundler"
5
+ Bundler.require(:default, :development)
6
+
7
+ connection = Fog::Google::SQL.new
8
+
9
+ puts "Listing all Flags..."
10
+ puts "--------------------"
11
+ connection.flags
@@ -1,34 +1,38 @@
1
- def test
2
- connection = Fog::Google::SQL.new
3
-
4
- puts "Create a Instance..."
5
- puts "--------------------"
6
- instance = connection.instances.create(:name => Fog::Mock.random_letters(16), :tier => "D1")
7
- instance.wait_for { ready? }
8
-
9
- puts "Get the Instance..."
10
- puts "----------------------"
11
- connection.instances.get(instance.name)
12
-
13
- puts "List all Instances..."
14
- puts "---------------------"
15
- connection.instances.all
16
-
17
- puts "Update the Instance..."
18
- puts "----------------------"
19
- instance.settings[:activation_policy] = "ALWAYS"
20
- instance.update
21
- instance.wait_for { ready? }
22
-
23
- puts "Reset the Instance SSL configuration..."
24
- puts "---------------------------------------"
25
- instance.reset_ssl_config
26
-
27
- puts "Restart the Instance..."
28
- puts "-----------------------"
29
- instance.restart
30
-
31
- puts "Delete the Instance..."
32
- puts "----------------------"
33
- instance.destroy
34
- end
1
+ # All examples presume that you have a ~/.fog credentials file set up.
2
+ # More info on it can be found here: http://fog.io/about/getting_started.html
3
+
4
+ require "bundler"
5
+ Bundler.require(:default, :development)
6
+
7
+ connection = Fog::Google::SQL.new
8
+
9
+ puts "Create a Instance..."
10
+ puts "--------------------"
11
+ instance = connection.instances.create(:name => Fog::Mock.random_letters(16), :tier => "db-n1-standard-1")
12
+ instance.wait_for { ready? }
13
+
14
+ puts "Get the Instance..."
15
+ puts "----------------------"
16
+ connection.instances.get(instance.name)
17
+
18
+ puts "List all Instances..."
19
+ puts "---------------------"
20
+ connection.instances.all
21
+
22
+ puts "Update the Instance..."
23
+ puts "----------------------"
24
+ instance.settings[:activation_policy] = "ALWAYS"
25
+ instance.update
26
+ instance.wait_for { ready? }
27
+
28
+ puts "Reset the Instance SSL configuration..."
29
+ puts "---------------------------------------"
30
+ instance.reset_ssl_config
31
+
32
+ puts "Restart the Instance..."
33
+ puts "-----------------------"
34
+ instance.restart
35
+
36
+ puts "Delete the Instance..."
37
+ puts "----------------------"
38
+ instance.destroy