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.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG.md +40 -0
- data/README.md +1 -1
- data/SECURITY.md +16 -0
- data/ci/README.md +3 -2
- data/ci/build-head-pipeline.yml +173 -0
- data/ci/{pipeline.yml → integration-pipeline.yml} +0 -24
- data/ci/pipeline-dev.yml +58 -0
- data/ci/tasks/run-int.sh +20 -1
- data/ci/tasks/run-int.yml +2 -0
- data/examples/sql/flags.rb +10 -6
- data/examples/sql/instances.rb +38 -34
- data/examples/sql/operations.rb +20 -16
- data/examples/sql/ssl_certs.rb +32 -28
- data/examples/sql/tiers.rb +10 -6
- data/fog-google.gemspec +1 -1
- data/lib/fog/compute/google.rb +4 -0
- data/lib/fog/compute/google/mock.rb +2 -1
- data/lib/fog/compute/google/models/address.rb +15 -2
- data/lib/fog/compute/google/models/disk.rb +6 -2
- data/lib/fog/compute/google/models/images.rb +6 -1
- data/lib/fog/compute/google/models/instance_groups.rb +2 -2
- data/lib/fog/compute/google/models/server.rb +30 -6
- data/lib/fog/compute/google/real.rb +2 -1
- data/lib/fog/compute/google/requests/abandon_instances.rb +2 -0
- data/lib/fog/compute/google/requests/add_backend_service_backends.rb +2 -0
- data/lib/fog/compute/google/requests/add_instance_group_instances.rb +2 -0
- data/lib/fog/compute/google/requests/add_server_access_config.rb +2 -0
- data/lib/fog/compute/google/requests/add_target_pool_health_checks.rb +2 -0
- data/lib/fog/compute/google/requests/add_target_pool_instances.rb +2 -0
- data/lib/fog/compute/google/requests/attach_disk.rb +2 -0
- data/lib/fog/compute/google/requests/create_disk_snapshot.rb +2 -0
- data/lib/fog/compute/google/requests/delete_address.rb +2 -0
- data/lib/fog/compute/google/requests/delete_backend_service.rb +2 -0
- data/lib/fog/compute/google/requests/delete_disk.rb +2 -0
- data/lib/fog/compute/google/requests/delete_firewall.rb +2 -0
- data/lib/fog/compute/google/requests/delete_forwarding_rule.rb +2 -0
- data/lib/fog/compute/google/requests/delete_global_address.rb +2 -0
- data/lib/fog/compute/google/requests/delete_global_forwarding_rule.rb +2 -0
- data/lib/fog/compute/google/requests/delete_global_operation.rb +2 -0
- data/lib/fog/compute/google/requests/delete_http_health_check.rb +2 -0
- data/lib/fog/compute/google/requests/delete_image.rb +2 -0
- data/lib/fog/compute/google/requests/delete_instance_group.rb +2 -0
- data/lib/fog/compute/google/requests/delete_instance_group_manager.rb +2 -0
- data/lib/fog/compute/google/requests/delete_instance_template.rb +2 -0
- data/lib/fog/compute/google/requests/delete_network.rb +2 -0
- data/lib/fog/compute/google/requests/delete_region_operation.rb +2 -0
- data/lib/fog/compute/google/requests/delete_route.rb +2 -0
- data/lib/fog/compute/google/requests/delete_server.rb +2 -0
- data/lib/fog/compute/google/requests/delete_server_access_config.rb +2 -0
- data/lib/fog/compute/google/requests/delete_snapshot.rb +2 -0
- data/lib/fog/compute/google/requests/delete_ssl_certificate.rb +2 -0
- data/lib/fog/compute/google/requests/delete_subnetwork.rb +2 -0
- data/lib/fog/compute/google/requests/delete_target_http_proxy.rb +2 -0
- data/lib/fog/compute/google/requests/delete_target_https_proxy.rb +2 -0
- data/lib/fog/compute/google/requests/delete_target_instance.rb +2 -0
- data/lib/fog/compute/google/requests/delete_target_pool.rb +2 -0
- data/lib/fog/compute/google/requests/delete_url_map.rb +2 -0
- data/lib/fog/compute/google/requests/delete_zone_operation.rb +2 -0
- data/lib/fog/compute/google/requests/deprecate_image.rb +2 -0
- data/lib/fog/compute/google/requests/detach_disk.rb +2 -0
- data/lib/fog/compute/google/requests/expand_subnetwork_ip_cidr_range.rb +2 -0
- data/lib/fog/compute/google/requests/get_address.rb +2 -0
- data/lib/fog/compute/google/requests/get_backend_service_health.rb +2 -0
- data/lib/fog/compute/google/requests/get_disk.rb +2 -0
- data/lib/fog/compute/google/requests/get_disk_type.rb +2 -0
- data/lib/fog/compute/google/requests/get_firewall.rb +2 -0
- data/lib/fog/compute/google/requests/get_forwarding_rule.rb +2 -0
- data/lib/fog/compute/google/requests/get_global_address.rb +2 -0
- data/lib/fog/compute/google/requests/get_global_forwarding_rule.rb +2 -0
- data/lib/fog/compute/google/requests/get_global_operation.rb +2 -0
- data/lib/fog/compute/google/requests/get_http_health_check.rb +2 -0
- data/lib/fog/compute/google/requests/get_image.rb +2 -0
- data/lib/fog/compute/google/requests/get_image_from_family.rb +2 -0
- data/lib/fog/compute/google/requests/get_instance_group.rb +2 -0
- data/lib/fog/compute/google/requests/get_instance_group_manager.rb +2 -0
- data/lib/fog/compute/google/requests/get_instance_template.rb +2 -0
- data/lib/fog/compute/google/requests/get_machine_type.rb +2 -0
- data/lib/fog/compute/google/requests/get_network.rb +2 -0
- data/lib/fog/compute/google/requests/get_project.rb +2 -0
- data/lib/fog/compute/google/requests/get_region.rb +2 -0
- data/lib/fog/compute/google/requests/get_route.rb +2 -0
- data/lib/fog/compute/google/requests/get_server.rb +2 -0
- data/lib/fog/compute/google/requests/get_server_serial_port_output.rb +2 -0
- data/lib/fog/compute/google/requests/get_snapshot.rb +2 -0
- data/lib/fog/compute/google/requests/get_ssl_certificate.rb +2 -0
- data/lib/fog/compute/google/requests/get_subnetwork.rb +2 -0
- data/lib/fog/compute/google/requests/get_target_http_proxy.rb +2 -0
- data/lib/fog/compute/google/requests/get_target_https_proxy.rb +2 -0
- data/lib/fog/compute/google/requests/get_target_instance.rb +2 -0
- data/lib/fog/compute/google/requests/get_target_pool.rb +2 -0
- data/lib/fog/compute/google/requests/get_target_pool_health.rb +2 -0
- data/lib/fog/compute/google/requests/get_url_map.rb +2 -0
- data/lib/fog/compute/google/requests/get_zone.rb +2 -0
- data/lib/fog/compute/google/requests/get_zone_operation.rb +2 -0
- data/lib/fog/compute/google/requests/insert_address.rb +2 -0
- data/lib/fog/compute/google/requests/insert_backend_service.rb +2 -0
- data/lib/fog/compute/google/requests/insert_disk.rb +8 -5
- data/lib/fog/compute/google/requests/insert_firewall.rb +2 -0
- data/lib/fog/compute/google/requests/insert_forwarding_rule.rb +2 -0
- data/lib/fog/compute/google/requests/insert_global_address.rb +2 -0
- data/lib/fog/compute/google/requests/insert_global_forwarding_rule.rb +2 -0
- data/lib/fog/compute/google/requests/insert_http_health_check.rb +2 -0
- data/lib/fog/compute/google/requests/insert_image.rb +2 -0
- data/lib/fog/compute/google/requests/insert_instance_group.rb +2 -0
- data/lib/fog/compute/google/requests/insert_instance_group_manager.rb +2 -0
- data/lib/fog/compute/google/requests/insert_instance_template.rb +2 -0
- data/lib/fog/compute/google/requests/insert_network.rb +2 -0
- data/lib/fog/compute/google/requests/insert_route.rb +2 -0
- data/lib/fog/compute/google/requests/insert_server.rb +2 -0
- data/lib/fog/compute/google/requests/insert_ssl_certificate.rb +2 -0
- data/lib/fog/compute/google/requests/insert_subnetwork.rb +2 -0
- data/lib/fog/compute/google/requests/insert_target_http_proxy.rb +2 -0
- data/lib/fog/compute/google/requests/insert_target_https_proxy.rb +2 -0
- data/lib/fog/compute/google/requests/insert_target_instance.rb +2 -0
- data/lib/fog/compute/google/requests/insert_target_pool.rb +2 -0
- data/lib/fog/compute/google/requests/insert_url_map.rb +2 -0
- data/lib/fog/compute/google/requests/invalidate_url_map_cache.rb +2 -0
- data/lib/fog/compute/google/requests/list_addresses.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_addresses.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_disk_types.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_disks.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_forwarding_rules.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_instance_group_managers.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_instance_groups.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_machine_types.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_servers.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_subnetworks.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_target_instances.rb +2 -0
- data/lib/fog/compute/google/requests/list_aggregated_target_pools.rb +2 -0
- data/lib/fog/compute/google/requests/list_disk_types.rb +2 -0
- data/lib/fog/compute/google/requests/list_disks.rb +2 -0
- data/lib/fog/compute/google/requests/list_firewalls.rb +2 -0
- data/lib/fog/compute/google/requests/list_forwarding_rules.rb +2 -0
- data/lib/fog/compute/google/requests/list_global_addresses.rb +2 -0
- data/lib/fog/compute/google/requests/list_global_forwarding_rules.rb +2 -0
- data/lib/fog/compute/google/requests/list_global_operations.rb +2 -0
- data/lib/fog/compute/google/requests/list_http_health_checks.rb +2 -0
- data/lib/fog/compute/google/requests/list_images.rb +2 -0
- data/lib/fog/compute/google/requests/list_instance_group_instances.rb +2 -0
- data/lib/fog/compute/google/requests/list_instance_group_managers.rb +2 -0
- data/lib/fog/compute/google/requests/list_instance_groups.rb +2 -0
- data/lib/fog/compute/google/requests/list_instance_templates.rb +2 -0
- data/lib/fog/compute/google/requests/list_machine_types.rb +2 -0
- data/lib/fog/compute/google/requests/list_networks.rb +2 -0
- data/lib/fog/compute/google/requests/list_region_operations.rb +2 -0
- data/lib/fog/compute/google/requests/list_regions.rb +2 -0
- data/lib/fog/compute/google/requests/list_routes.rb +2 -0
- data/lib/fog/compute/google/requests/list_servers.rb +2 -0
- data/lib/fog/compute/google/requests/list_snapshots.rb +2 -0
- data/lib/fog/compute/google/requests/list_ssl_certificates.rb +2 -0
- data/lib/fog/compute/google/requests/list_subnetworks.rb +2 -0
- data/lib/fog/compute/google/requests/list_target_http_proxies.rb +2 -0
- data/lib/fog/compute/google/requests/list_target_https_proxies.rb +2 -0
- data/lib/fog/compute/google/requests/list_target_instances.rb +2 -0
- data/lib/fog/compute/google/requests/list_target_pools.rb +2 -0
- data/lib/fog/compute/google/requests/list_url_maps.rb +2 -0
- data/lib/fog/compute/google/requests/list_zone_operations.rb +2 -0
- data/lib/fog/compute/google/requests/list_zones.rb +2 -0
- data/lib/fog/compute/google/requests/patch_firewall.rb +2 -0
- data/lib/fog/compute/google/requests/patch_url_map.rb +2 -0
- data/lib/fog/compute/google/requests/recreate_instances.rb +2 -0
- data/lib/fog/compute/google/requests/remove_instance_group_instances.rb +2 -0
- data/lib/fog/compute/google/requests/remove_target_pool_health_checks.rb +2 -0
- data/lib/fog/compute/google/requests/remove_target_pool_instance.rb +2 -0
- data/lib/fog/compute/google/requests/remove_target_pool_instances.rb +2 -0
- data/lib/fog/compute/google/requests/reset_server.rb +2 -0
- data/lib/fog/compute/google/requests/reset_windows_password.rb +154 -0
- data/lib/fog/compute/google/requests/set_common_instance_metadata.rb +2 -0
- data/lib/fog/compute/google/requests/set_forwarding_rule_target.rb +2 -0
- data/lib/fog/compute/google/requests/set_global_forwarding_rule_target.rb +2 -0
- data/lib/fog/compute/google/requests/set_instance_template.rb +2 -0
- data/lib/fog/compute/google/requests/set_server_disk_auto_delete.rb +2 -0
- data/lib/fog/compute/google/requests/set_server_machine_type.rb +23 -0
- data/lib/fog/compute/google/requests/set_server_metadata.rb +2 -0
- data/lib/fog/compute/google/requests/set_server_scheduling.rb +2 -0
- data/lib/fog/compute/google/requests/set_server_tags.rb +2 -0
- data/lib/fog/compute/google/requests/set_snapshot_labels.rb +2 -0
- data/lib/fog/compute/google/requests/set_subnetwork_private_ip_google_access.rb +2 -0
- data/lib/fog/compute/google/requests/set_target_http_proxy_url_map.rb +2 -0
- data/lib/fog/compute/google/requests/set_target_https_proxy_ssl_certificates.rb +2 -0
- data/lib/fog/compute/google/requests/set_target_https_proxy_url_map.rb +2 -0
- data/lib/fog/compute/google/requests/set_target_pool_backup.rb +2 -0
- data/lib/fog/compute/google/requests/start_server.rb +2 -0
- data/lib/fog/compute/google/requests/stop_server.rb +2 -0
- data/lib/fog/compute/google/requests/update_firewall.rb +2 -0
- data/lib/fog/compute/google/requests/update_http_health_check.rb +2 -0
- data/lib/fog/compute/google/requests/update_url_map.rb +2 -0
- data/lib/fog/compute/google/requests/validate_url_map.rb +2 -0
- data/lib/fog/dns/google/requests/create_change.rb +2 -0
- data/lib/fog/dns/google/requests/create_managed_zone.rb +2 -0
- data/lib/fog/dns/google/requests/delete_managed_zone.rb +2 -0
- data/lib/fog/dns/google/requests/get_change.rb +2 -0
- data/lib/fog/dns/google/requests/get_managed_zone.rb +2 -0
- data/lib/fog/dns/google/requests/get_project.rb +2 -0
- data/lib/fog/dns/google/requests/list_changes.rb +2 -0
- data/lib/fog/dns/google/requests/list_managed_zones.rb +2 -0
- data/lib/fog/dns/google/requests/list_resource_record_sets.rb +2 -0
- data/lib/fog/google/models/sql/ssl_cert.rb +7 -1
- data/lib/fog/google/models/sql/user.rb +2 -0
- data/lib/fog/google/requests/monitoring/create_metric_descriptor.rb +2 -0
- data/lib/fog/google/requests/monitoring/create_timeseries.rb +3 -1
- data/lib/fog/google/requests/monitoring/delete_metric_descriptor.rb +2 -0
- data/lib/fog/google/requests/monitoring/get_metric_descriptor.rb +2 -0
- data/lib/fog/google/requests/monitoring/list_monitored_resource_descriptors.rb +2 -0
- data/lib/fog/google/requests/monitoring/list_timeseries.rb +2 -0
- data/lib/fog/google/requests/sql/clone_instance.rb +2 -0
- data/lib/fog/google/requests/sql/delete_backup_run.rb +2 -0
- data/lib/fog/google/requests/sql/delete_instance.rb +2 -0
- data/lib/fog/google/requests/sql/delete_ssl_cert.rb +2 -0
- data/lib/fog/google/requests/sql/delete_user.rb +2 -0
- data/lib/fog/google/requests/sql/export_instance.rb +2 -0
- data/lib/fog/google/requests/sql/get_backup_run.rb +2 -0
- data/lib/fog/google/requests/sql/get_instance.rb +2 -0
- data/lib/fog/google/requests/sql/get_operation.rb +2 -0
- data/lib/fog/google/requests/sql/get_ssl_cert.rb +2 -0
- data/lib/fog/google/requests/sql/import_instance.rb +2 -0
- data/lib/fog/google/requests/sql/insert_backup_run.rb +2 -0
- data/lib/fog/google/requests/sql/insert_instance.rb +2 -0
- data/lib/fog/google/requests/sql/insert_ssl_cert.rb +2 -0
- data/lib/fog/google/requests/sql/insert_user.rb +2 -0
- data/lib/fog/google/requests/sql/list_backup_runs.rb +2 -0
- data/lib/fog/google/requests/sql/list_flags.rb +2 -0
- data/lib/fog/google/requests/sql/list_instances.rb +2 -0
- data/lib/fog/google/requests/sql/list_operations.rb +2 -0
- data/lib/fog/google/requests/sql/list_ssl_certs.rb +2 -0
- data/lib/fog/google/requests/sql/list_tiers.rb +2 -0
- data/lib/fog/google/requests/sql/list_users.rb +2 -0
- data/lib/fog/google/requests/sql/reset_instance_ssl_config.rb +2 -0
- data/lib/fog/google/requests/sql/restart_instance.rb +2 -0
- data/lib/fog/google/requests/sql/restore_instance_backup.rb +2 -0
- data/lib/fog/google/requests/sql/update_instance.rb +2 -0
- data/lib/fog/google/requests/sql/update_user.rb +2 -0
- data/lib/fog/google/version.rb +1 -1
- data/lib/fog/storage/google_json/requests/copy_object.rb +2 -0
- data/lib/fog/storage/google_json/requests/delete_bucket.rb +2 -0
- data/lib/fog/storage/google_json/requests/delete_object.rb +2 -0
- data/lib/fog/storage/google_json/requests/get_bucket.rb +2 -0
- data/lib/fog/storage/google_json/requests/get_bucket_acl.rb +2 -0
- data/lib/fog/storage/google_json/requests/get_object.rb +2 -0
- data/lib/fog/storage/google_json/requests/get_object_acl.rb +2 -0
- data/lib/fog/storage/google_json/requests/get_object_metadata.rb +2 -0
- data/lib/fog/storage/google_json/requests/list_bucket_acl.rb +2 -0
- data/lib/fog/storage/google_json/requests/list_buckets.rb +2 -0
- data/lib/fog/storage/google_json/requests/list_object_acl.rb +2 -0
- data/lib/fog/storage/google_json/requests/list_objects.rb +2 -0
- data/lib/fog/storage/google_json/requests/put_bucket.rb +2 -0
- data/lib/fog/storage/google_json/requests/put_bucket_acl.rb +2 -0
- data/lib/fog/storage/google_json/requests/put_object.rb +2 -0
- data/lib/fog/storage/google_json/requests/put_object_acl.rb +2 -0
- data/lib/fog/storage/google_xml/requests/put_bucket_acl.rb +2 -0
- data/tasks/test.rake +6 -2
- data/test/helpers/integration_test_helper.rb +2 -5
- data/test/helpers/test_helper.rb +1 -0
- data/test/integration/compute/core_compute/test_servers.rb +40 -0
- data/test/integration/compute/core_compute/test_zones.rb +1 -1
- data/test/integration/compute/core_networking/test_addresses.rb +23 -0
- data/test/integration/factories/{sql_v1_certs_factory.rb → sql_certs_factory.rb} +3 -3
- data/test/integration/factories/{sql_v1_instances_factory.rb → sql_instances_factory.rb} +3 -3
- data/test/integration/factories/{sql_v1_users_factory.rb → sql_users_factory.rb} +6 -3
- data/test/integration/monitoring/test_metric_descriptors.rb +2 -0
- data/test/integration/monitoring/test_timeseries.rb +3 -1
- data/test/integration/sql/{sqlv1/test_v1_certs.rb → test_certs.rb} +4 -3
- data/test/integration/sql/{sqlv1/test_common_flags.rb → test_common_flags.rb} +0 -0
- data/test/integration/sql/{sqlv1/test_common_tiers.rb → test_common_tiers.rb} +0 -0
- data/test/integration/sql/{sqlv1/test_coverage.rb → test_coverage.rb} +1 -1
- data/test/integration/sql/{sqlv2/test_v2_instances.rb → test_instances.rb} +22 -2
- data/test/integration/sql/{sqlv1/test_v1_users.rb → test_users.rb} +4 -4
- metadata +37 -32
- data/test/integration/factories/sql_v2_instances_factory.rb +0 -19
- data/test/integration/sql/sqlv1/test_v1_instances.rb +0 -31
- 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3563c5d9fb6cd9c28bd38b0b6c1ae1d619c33c81
|
4
|
+
data.tar.gz: 41ecb920dbcb66a2f6aa13f6557ef2a044d26d80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4a9c9650d0824ad4dcd5389e63eb5c7e583d256c6c469481709cee80bd53f5fe168556e9e563a704878721ea733282c0af87fd24680c59513a6203d5026743c
|
7
|
+
data.tar.gz: 2cc78e1c0731a87179ffb6179698e5fa5bd90635d141aec05d9c5faa1e7b18fe8e1123c5ded5f925f7065f5b3ae4893f8876f72c23b164ad1172953f5b74f829
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/SECURITY.md
ADDED
@@ -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`.
|
data/ci/README.md
CHANGED
@@ -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
|
26
|
+
* Set the fog-google pipelines:
|
27
27
|
|
28
28
|
```
|
29
|
-
fly -t fog
|
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,
|
data/ci/pipeline-dev.yml
ADDED
@@ -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
|
data/ci/tasks/run-int.sh
CHANGED
@@ -27,8 +27,27 @@ EOL
|
|
27
27
|
|
28
28
|
pushd ${release_dir} > /dev/null
|
29
29
|
|
30
|
-
|
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
|
data/ci/tasks/run-int.yml
CHANGED
data/examples/sql/flags.rb
CHANGED
@@ -1,7 +1,11 @@
|
|
1
|
-
|
2
|
-
|
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
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
data/examples/sql/instances.rb
CHANGED
@@ -1,34 +1,38 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|