fog-google 1.24.1 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/integration-compute-core.yml +2 -2
- data/.github/workflows/integration-compute-instance_groups.yml +2 -2
- data/.github/workflows/integration-compute-loadbalancing.yml +2 -2
- data/.github/workflows/integration-compute-networking.yml +2 -2
- data/.github/workflows/integration-monitoring.yml +2 -2
- data/.github/workflows/integration-pubsub.yml +2 -2
- data/.github/workflows/integration-sql.yml +2 -2
- data/.github/workflows/integration-storage.yml +2 -2
- data/.github/workflows/unit.yml +2 -2
- data/CHANGELOG.md +58 -27
- data/CONTRIBUTING.md +11 -11
- data/README.md +7 -7
- data/SECURITY.md +3 -14
- data/examples/create_instance_and_attach_disk_later.rb +6 -7
- data/examples/dns/project.rb +1 -1
- data/examples/dns/zones.rb +1 -1
- data/examples/storage.rb +1 -1
- data/examples/storage_json.rb +1 -1
- data/fog-google.gemspec +3 -4
- data/lib/fog/bin/google.rb +23 -25
- data/lib/fog/{compute/google → google/compute}/mock.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/address.rb +8 -8
- data/lib/fog/{compute/google → google/compute}/models/addresses.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/backend_service.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/backend_services.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/disk.rb +5 -5
- data/lib/fog/{compute/google → google/compute}/models/disk_type.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/disk_types.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/disks.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/firewall.rb +6 -6
- data/lib/fog/{compute/google → google/compute}/models/firewalls.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/forwarding_rule.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/forwarding_rules.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/global_address.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/global_addresses.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/global_forwarding_rule.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/global_forwarding_rules.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/http_health_check.rb +5 -5
- data/lib/fog/{compute/google → google/compute}/models/http_health_checks.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/image.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/images.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/instance_group.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/instance_group_manager.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/instance_group_managers.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/instance_groups.rb +5 -5
- data/lib/fog/{compute/google → google/compute}/models/instance_template.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/instance_templates.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/machine_type.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/machine_types.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/network.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/networks.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/operations.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/project.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/projects.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/region.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/regions.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/route.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/routes.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/server.rb +19 -19
- data/lib/fog/{compute/google → google/compute}/models/servers.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/snapshot.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/snapshots.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/ssl_certificate.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/ssl_certificates.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/subnetwork.rb +6 -6
- data/lib/fog/{compute/google → google/compute}/models/subnetworks.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/target_http_proxies.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/target_http_proxy.rb +5 -5
- data/lib/fog/{compute/google → google/compute}/models/target_https_proxies.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/target_https_proxy.rb +7 -7
- data/lib/fog/{compute/google → google/compute}/models/target_instance.rb +4 -4
- data/lib/fog/{compute/google → google/compute}/models/target_instances.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/target_pool.rb +8 -8
- data/lib/fog/{compute/google → google/compute}/models/target_pools.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/url_map.rb +7 -7
- data/lib/fog/{compute/google → google/compute}/models/url_maps.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/models/zone.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/models/zones.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/real.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/abandon_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/add_backend_service_backends.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/add_instance_group_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/add_server_access_config.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/add_target_pool_health_checks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/add_target_pool_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/attach_disk.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/create_disk_snapshot.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_backend_service.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_disk.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_firewall.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_global_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_global_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_global_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_http_health_check.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_image.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_instance_group.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_instance_group_manager.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_instance_template.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_network.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_region_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_route.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_server.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_server_access_config.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_snapshot.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_ssl_certificate.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_subnetwork.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_target_http_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_target_https_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_target_instance.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_target_pool.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/delete_zone_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/deprecate_image.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/detach_disk.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/expand_subnetwork_ip_cidr_range.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_backend_service.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_backend_service_health.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_disk.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_disk_type.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_firewall.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_global_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_global_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_global_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_http_health_check.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_image.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_image_from_family.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_instance_group.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_instance_group_manager.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_instance_template.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_machine_type.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_network.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_project.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_region.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_region_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_route.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_server.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_server_serial_port_output.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_snapshot.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_ssl_certificate.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_subnetwork.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_target_http_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_target_https_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_target_instance.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_target_pool.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_target_pool_health.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_zone.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/get_zone_operation.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_backend_service.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_disk.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_firewall.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_global_address.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_global_forwarding_rule.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_http_health_check.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_image.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_instance_group.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_instance_group_manager.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_instance_template.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_network.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_route.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_server.rb +3 -3
- data/lib/fog/{compute/google → google/compute}/requests/insert_ssl_certificate.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_subnetwork.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_target_http_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_target_https_proxy.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_target_instance.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_target_pool.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/insert_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/invalidate_url_map_cache.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_addresses.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_addresses.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_disk_types.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_disks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_forwarding_rules.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_instance_group_managers.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_instance_groups.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_machine_types.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_servers.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_subnetworks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_target_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_aggregated_target_pools.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_backend_services.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_disk_types.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_disks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_firewalls.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_forwarding_rules.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_global_addresses.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_global_forwarding_rules.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_global_operations.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_http_health_checks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_images.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_instance_group_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_instance_group_managers.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_instance_groups.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_instance_templates.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_machine_types.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_networks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_region_operations.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_regions.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_routes.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_servers.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_snapshots.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_ssl_certificates.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_subnetworks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_target_http_proxies.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_target_https_proxies.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_target_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_target_pools.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_url_maps.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_zone_operations.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/list_zones.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/patch_firewall.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/patch_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/recreate_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/remove_instance_group_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/remove_target_pool_health_checks.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/remove_target_pool_instance.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/remove_target_pool_instances.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/reset_server.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/reset_windows_password.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_common_instance_metadata.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_forwarding_rule_target.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_global_forwarding_rule_target.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_instance_template.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_server_disk_auto_delete.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_server_machine_type.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_server_metadata.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_server_scheduling.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_server_tags.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_snapshot_labels.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_subnetwork_private_ip_google_access.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_target_http_proxy_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_target_https_proxy_ssl_certificates.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_target_https_proxy_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/set_target_pool_backup.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/start_server.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/stop_server.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/update_firewall.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/update_http_health_check.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/update_url_map.rb +2 -2
- data/lib/fog/{compute/google → google/compute}/requests/validate_url_map.rb +2 -2
- data/lib/fog/{compute/google.rb → google/compute.rb} +6 -6
- data/lib/fog/{dns/google → google/dns}/mock.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/models/change.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/models/changes.rb +8 -6
- data/lib/fog/{dns/google → google/dns}/models/project.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/models/projects.rb +4 -4
- data/lib/fog/{dns/google → google/dns}/models/record.rb +11 -11
- data/lib/fog/{dns/google → google/dns}/models/records.rb +8 -6
- data/lib/fog/{dns/google → google/dns}/models/zone.rb +7 -7
- data/lib/fog/{dns/google → google/dns}/models/zones.rb +6 -5
- data/lib/fog/{dns/google → google/dns}/real.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/create_change.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/create_managed_zone.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/delete_managed_zone.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/get_change.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/get_managed_zone.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/get_project.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/list_changes.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/list_managed_zones.rb +2 -2
- data/lib/fog/{dns/google → google/dns}/requests/list_resource_record_sets.rb +2 -2
- data/lib/fog/{dns/google.rb → google/dns.rb} +6 -6
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/access_control_list.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/copy_object.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_bucket.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_bucket_logging.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_bucket_object_versions.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_bucket_versioning.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_request_payment.rb +3 -3
- data/lib/fog/{parsers/storage/google → google/parsers/storage}/get_service.rb +3 -3
- data/lib/fog/google/parsers/storage.rb +15 -0
- data/lib/fog/google/shared.rb +8 -7
- data/lib/fog/{storage/google_json → google/storage/storage_json}/mock.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/models/directories.rb +4 -3
- data/lib/fog/{storage/google_json → google/storage/storage_json}/models/directory.rb +3 -3
- data/lib/fog/{storage/google_json → google/storage/storage_json}/models/file.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/models/files.rb +8 -7
- data/lib/fog/{storage/google_json → google/storage/storage_json}/real.rb +6 -4
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/copy_object.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/delete_bucket.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/delete_object.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/delete_object_url.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_bucket.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_bucket_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object_http_url.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object_https_url.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object_metadata.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/get_object_url.rb +4 -4
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/list_bucket_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/list_buckets.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/list_object_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/list_objects.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/put_bucket.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/put_bucket_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/put_object.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/put_object_acl.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/requests/put_object_url.rb +2 -2
- data/lib/fog/{storage/google_json → google/storage/storage_json}/utils.rb +8 -6
- data/lib/fog/{storage/google_json.rb → google/storage/storage_json.rb} +8 -8
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/mock.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/models/directories.rb +7 -7
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/models/directory.rb +3 -3
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/models/file.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/models/files.rb +11 -11
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/real.rb +6 -4
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/copy_object.rb +3 -3
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/delete_bucket.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/delete_object.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/delete_object_url.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_bucket.rb +4 -4
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_bucket_acl.rb +3 -3
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_object.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_object_acl.rb +3 -3
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_object_http_url.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_object_https_url.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_object_url.rb +4 -4
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/get_service.rb +3 -3
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/head_object.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/put_bucket.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/put_bucket_acl.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/put_object.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/put_object_acl.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/requests/put_object_url.rb +2 -2
- data/lib/fog/{storage/google_xml → google/storage/storage_xml}/utils.rb +22 -19
- data/lib/fog/{storage/google_xml.rb → google/storage/storage_xml.rb} +7 -7
- data/lib/fog/{storage/google.rb → google/storage.rb} +5 -5
- data/lib/fog/google/version.rb +1 -1
- data/lib/fog/google.rb +30 -16
- metadata +322 -518
- data/.github/workflows/stale.yml +0 -23
- data/lib/fog/parsers/storage/google.rb +0 -15
- data/test/helpers/client_helper.rb +0 -63
- data/test/helpers/integration_test_helper.rb +0 -108
- data/test/helpers/test_collection.rb +0 -60
- data/test/helpers/test_helper.rb +0 -28
- data/test/integration/compute/core_compute/test_client_options.rb +0 -12
- data/test/integration/compute/core_compute/test_coverage.rb +0 -6
- data/test/integration/compute/core_compute/test_disk_types.rb +0 -43
- data/test/integration/compute/core_compute/test_disks.rb +0 -53
- data/test/integration/compute/core_compute/test_images.rb +0 -32
- data/test/integration/compute/core_compute/test_machine_types.rb +0 -55
- data/test/integration/compute/core_compute/test_operations.rb +0 -45
- data/test/integration/compute/core_compute/test_projects.rb +0 -19
- data/test/integration/compute/core_compute/test_regions.rb +0 -33
- data/test/integration/compute/core_compute/test_servers.rb +0 -235
- data/test/integration/compute/core_compute/test_snapshots.rb +0 -21
- data/test/integration/compute/core_compute/test_zones.rb +0 -35
- data/test/integration/compute/core_networking/test_addresses.rb +0 -107
- data/test/integration/compute/core_networking/test_coverage.rb +0 -6
- data/test/integration/compute/core_networking/test_firewalls.rb +0 -11
- data/test/integration/compute/core_networking/test_networks.rb +0 -30
- data/test/integration/compute/core_networking/test_routes.rb +0 -26
- data/test/integration/compute/core_networking/test_subnetworks.rb +0 -11
- data/test/integration/compute/instance_groups/test_coverage.rb +0 -6
- data/test/integration/compute/instance_groups/test_instance_group_managers.rb +0 -11
- data/test/integration/compute/instance_groups/test_instance_groups.rb +0 -11
- data/test/integration/compute/instance_groups/test_instance_templates.rb +0 -11
- data/test/integration/compute/loadbalancing/test_backend_services.rb +0 -11
- data/test/integration/compute/loadbalancing/test_coverage.rb +0 -6
- data/test/integration/compute/loadbalancing/test_forwarding_rules.rb +0 -11
- data/test/integration/compute/loadbalancing/test_global_addresses.rb +0 -11
- data/test/integration/compute/loadbalancing/test_global_forwarding_rules.rb +0 -11
- data/test/integration/compute/loadbalancing/test_http_health_checks.rb +0 -11
- data/test/integration/compute/loadbalancing/test_ssl_certificates.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_http_proxies.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_https_proxies.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_instances.rb +0 -11
- data/test/integration/compute/loadbalancing/test_target_pools.rb +0 -55
- data/test/integration/compute/loadbalancing/test_url_maps.rb +0 -11
- data/test/integration/factories/addresses_factory.rb +0 -20
- data/test/integration/factories/backend_services_factory.rb +0 -19
- data/test/integration/factories/collection_factory.rb +0 -52
- data/test/integration/factories/disks_factory.rb +0 -22
- data/test/integration/factories/firewalls_factory.rb +0 -13
- data/test/integration/factories/forwarding_rules_factory.rb +0 -25
- data/test/integration/factories/global_addresses_factory.rb +0 -15
- data/test/integration/factories/global_forwarding_rules_factory.rb +0 -20
- data/test/integration/factories/http_health_checks_factory.rb +0 -11
- data/test/integration/factories/images_factory.rb +0 -16
- data/test/integration/factories/instance_group_manager_factory.rb +0 -30
- data/test/integration/factories/instance_groups_factory.rb +0 -20
- data/test/integration/factories/instance_template_factory.rb +0 -24
- data/test/integration/factories/networks_factory.rb +0 -14
- data/test/integration/factories/servers_factory.rb +0 -30
- data/test/integration/factories/sql_certs_factory.rb +0 -20
- data/test/integration/factories/sql_instances_factory.rb +0 -19
- data/test/integration/factories/sql_users_factory.rb +0 -23
- data/test/integration/factories/ssl_certificates_factory.rb +0 -13
- data/test/integration/factories/subnetworks_factory.rb +0 -26
- data/test/integration/factories/target_http_proxies_factory.rb +0 -19
- data/test/integration/factories/target_https_proxies_factory.rb +0 -26
- data/test/integration/factories/target_instances_factory.rb +0 -24
- data/test/integration/factories/target_pools_factory.rb +0 -28
- data/test/integration/factories/url_maps_factory.rb +0 -19
- data/test/integration/monitoring/test_coverage.rb +0 -6
- data/test/integration/monitoring/test_metric_descriptors.rb +0 -131
- data/test/integration/monitoring/test_monitored_resource_descriptors.rb +0 -37
- data/test/integration/monitoring/test_timeseries.rb +0 -253
- data/test/integration/pubsub/pubsub_shared.rb +0 -75
- data/test/integration/pubsub/test_coverage.rb +0 -6
- data/test/integration/pubsub/test_pubsub_models.rb +0 -135
- data/test/integration/pubsub/test_pubsub_requests.rb +0 -105
- data/test/integration/sql/test_certs.rb +0 -50
- data/test/integration/sql/test_common_flags.rb +0 -31
- data/test/integration/sql/test_common_tiers.rb +0 -26
- data/test/integration/sql/test_coverage.rb +0 -6
- data/test/integration/sql/test_instances.rb +0 -101
- data/test/integration/sql/test_users.rb +0 -37
- data/test/integration/storage/storage_shared.rb +0 -101
- data/test/integration/storage/test_buckets.rb +0 -112
- data/test/integration/storage/test_coverage.rb +0 -6
- data/test/integration/storage/test_directories.rb +0 -67
- data/test/integration/storage/test_files.rb +0 -168
- data/test/integration/storage/test_objects.rb +0 -226
- data/test/integration/test_authentication.rb +0 -38
- data/test/unit/compute/test_common_collections.rb +0 -42
- data/test/unit/compute/test_common_models.rb +0 -35
- data/test/unit/compute/test_disk.rb +0 -26
- data/test/unit/compute/test_server.rb +0 -29
- data/test/unit/dns/test_common_collections.rb +0 -43
- data/test/unit/monitoring/test_comon_collections.rb +0 -44
- data/test/unit/pubsub/test_common_collections.rb +0 -35
- data/test/unit/sql/test_common_collections.rb +0 -46
- data/test/unit/storage/test_common_json_collections.rb +0 -38
- data/test/unit/storage/test_common_xml_collections.rb +0 -50
- data/test/unit/storage/test_json_requests.rb +0 -60
- data/test/unit/storage/test_xml_requests.rb +0 -60
data/lib/fog/bin/google.rb
CHANGED
@@ -4,15 +4,15 @@ module Google
|
|
4
4
|
def class_for(key)
|
5
5
|
case key
|
6
6
|
when :compute
|
7
|
-
Fog::Compute
|
7
|
+
Fog::Google::Compute
|
8
8
|
when :dns
|
9
|
-
Fog::DNS
|
9
|
+
Fog::Google::DNS
|
10
10
|
when :monitoring
|
11
11
|
Fog::Google::Monitoring
|
12
12
|
when :storage
|
13
|
-
Fog::Storage
|
13
|
+
Fog::Google::Storage
|
14
14
|
when :storage_json
|
15
|
-
Fog::Storage
|
15
|
+
Fog::Google::Storage
|
16
16
|
when :sql
|
17
17
|
Fog::Google::SQL
|
18
18
|
when :pubsub
|
@@ -24,25 +24,22 @@ module Google
|
|
24
24
|
|
25
25
|
def [](service)
|
26
26
|
@@connections ||= Hash.new do |hash, key|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
else
|
44
|
-
raise ArgumentError, "Unrecognized service: #{key.inspect}"
|
45
|
-
end
|
27
|
+
case key
|
28
|
+
when :compute
|
29
|
+
hash[key] = Fog::Compute.new(:provider => "Google")
|
30
|
+
when :dns
|
31
|
+
hash[key] = Fog::DNS.new(:provider => "Google")
|
32
|
+
when :monitoring
|
33
|
+
hash[key] = Fog::Google::Monitoring.new
|
34
|
+
when :sql
|
35
|
+
hash[key] = Fog::Google::SQL.new
|
36
|
+
when :pubsub
|
37
|
+
hash[key] = Fog::Google::Pubsub.new
|
38
|
+
when :storage
|
39
|
+
hash[key] = Fog::Storage.new(:provider => "Google")
|
40
|
+
else
|
41
|
+
hash[key] = raise ArgumentError, "Unrecognized service: #{key.inspect}"
|
42
|
+
end
|
46
43
|
end
|
47
44
|
@@connections[service]
|
48
45
|
end
|
@@ -74,7 +71,7 @@ module Google
|
|
74
71
|
rescue ArgumentError => e
|
75
72
|
Fog::Logger.warning(e.message)
|
76
73
|
availability = false
|
77
|
-
rescue => e
|
74
|
+
rescue StandardError => e
|
78
75
|
availability = false
|
79
76
|
end
|
80
77
|
end
|
@@ -83,7 +80,8 @@ module Google
|
|
83
80
|
services.each do |service|
|
84
81
|
class_for(service).collections.each do |collection|
|
85
82
|
next if respond_to?(collection)
|
86
|
-
|
83
|
+
|
84
|
+
class_eval <<-EOS, __FILE__, __LINE__ + 1
|
87
85
|
def self.#{collection}
|
88
86
|
self[:#{service}].#{collection}
|
89
87
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
##
|
5
5
|
# Represents an Address resource
|
6
6
|
#
|
@@ -37,7 +37,7 @@ module Fog
|
|
37
37
|
requires :identity, :region
|
38
38
|
|
39
39
|
data = service.insert_address(identity, region, attributes)
|
40
|
-
operation = Fog::Compute::
|
40
|
+
operation = Fog::Google::Compute::Operations
|
41
41
|
.new(service: service)
|
42
42
|
.get(data.name, nil, data.region)
|
43
43
|
operation.wait_for { ready? }
|
@@ -48,7 +48,7 @@ module Fog
|
|
48
48
|
requires :identity, :region
|
49
49
|
|
50
50
|
data = service.delete_address(identity, region.split("/")[-1])
|
51
|
-
operation = Fog::Compute::
|
51
|
+
operation = Fog::Google::Compute::Operations
|
52
52
|
.new(:service => service)
|
53
53
|
.get(data.name, nil, data.region)
|
54
54
|
|
@@ -81,14 +81,14 @@ module Fog
|
|
81
81
|
# standard primary nic - "nic0"
|
82
82
|
# @param [Boolean] async - whether to run the operation asynchronously
|
83
83
|
#
|
84
|
-
# @return [Fog::Compute::
|
84
|
+
# @return [Fog::Google::Compute::Operation]
|
85
85
|
def associate(server, nic_name = "nic0", async = false)
|
86
86
|
requires :address
|
87
87
|
|
88
88
|
data = service.add_server_access_config(
|
89
89
|
server.name, server.zone, nic_name, :nat_ip => address
|
90
90
|
)
|
91
|
-
operation = Fog::Compute::
|
91
|
+
operation = Fog::Google::Compute::Operations
|
92
92
|
.new(:service => service)
|
93
93
|
.get(data.name, data.zone)
|
94
94
|
operation.wait_for { ready? } unless async
|
@@ -98,7 +98,7 @@ module Fog
|
|
98
98
|
#
|
99
99
|
# @param [Boolean] async - whether to run the operation asynchronously
|
100
100
|
#
|
101
|
-
# @return [Fog::Compute::
|
101
|
+
# @return [Fog::Google::Compute::Operation]
|
102
102
|
def disassociate(async = false)
|
103
103
|
requires :address
|
104
104
|
|
@@ -120,7 +120,7 @@ module Fog
|
|
120
120
|
data = service.delete_server_access_config(
|
121
121
|
server.name, server.zone, nic[:name], access_config[:name]
|
122
122
|
)
|
123
|
-
operation = Fog::Compute::
|
123
|
+
operation = Fog::Google::Compute::Operations
|
124
124
|
.new(:service => service)
|
125
125
|
.get(data.name, data.zone)
|
126
126
|
operation.wait_for { ready? } unless async
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class Addresses < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::Address
|
6
6
|
|
7
7
|
def all(region: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil)
|
8
8
|
opts = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class BackendService < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -30,7 +30,7 @@ module Fog
|
|
30
30
|
}
|
31
31
|
|
32
32
|
data = service.insert_backend_service(name, **options)
|
33
|
-
operation = Fog::Compute::
|
33
|
+
operation = Fog::Google::Compute::Operations.new(:service => service).get(data.name)
|
34
34
|
operation.wait_for { ready? }
|
35
35
|
reload
|
36
36
|
end
|
@@ -39,7 +39,7 @@ module Fog
|
|
39
39
|
requires :name
|
40
40
|
|
41
41
|
data = service.delete_backend_service(name)
|
42
|
-
operation = Fog::Compute::
|
42
|
+
operation = Fog::Google::Compute::Operations.new(:service => service).get(data.name)
|
43
43
|
operation.wait_for { ready? } unless async
|
44
44
|
operation
|
45
45
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class BackendServices < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::BackendService
|
6
6
|
|
7
7
|
def all(_filters = {})
|
8
8
|
data = service.list_backend_services.items || []
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class Disk < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -52,7 +52,7 @@ module Fog
|
|
52
52
|
# Request needs backward compatibility so source image is specified in
|
53
53
|
# method arguments
|
54
54
|
data = service.insert_disk(name, zone, options[:source_image], **options)
|
55
|
-
operation = Fog::Compute::
|
55
|
+
operation = Fog::Google::Compute::Operations.new(service: service)
|
56
56
|
.get(data.name, data.zone)
|
57
57
|
operation.wait_for { ready? }
|
58
58
|
reload
|
@@ -62,7 +62,7 @@ module Fog
|
|
62
62
|
requires :name, :zone
|
63
63
|
|
64
64
|
data = service.delete_disk(name, zone_name)
|
65
|
-
operation = Fog::Compute::
|
65
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
66
66
|
.get(data.name, data.zone)
|
67
67
|
operation.wait_for { ready? } unless async
|
68
68
|
operation
|
@@ -142,7 +142,7 @@ module Fog
|
|
142
142
|
raise ArgumentError, "Invalid snapshot name" unless snapshot_name
|
143
143
|
|
144
144
|
data = service.create_disk_snapshot(snapshot_name, name, zone_name, snapshot)
|
145
|
-
operation = Fog::Compute::
|
145
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
146
146
|
.get(data.name, data.zone)
|
147
147
|
operation.wait_for { ready? }
|
148
148
|
service.snapshots.get(snapshot_name)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class DiskTypes < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::DiskType
|
6
6
|
|
7
7
|
def all(zone: nil, filter: nil, max_results: nil,
|
8
8
|
order_by: nil, page_token: nil)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class Disks < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::Disk
|
6
6
|
|
7
7
|
def all(zone: nil, filter: nil, max_results: nil, order_by: nil,
|
8
8
|
page_token: nil)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
##
|
5
5
|
# Represents a Firewall resource
|
6
6
|
#
|
@@ -53,7 +53,7 @@ module Fog
|
|
53
53
|
|
54
54
|
def create
|
55
55
|
data = service.insert_firewall(identity, attributes)
|
56
|
-
operation = Fog::Compute::
|
56
|
+
operation = Fog::Google::Compute::Operations.new(service: service)
|
57
57
|
.get(data.name)
|
58
58
|
operation.wait_for { ready? }
|
59
59
|
reload
|
@@ -63,7 +63,7 @@ module Fog
|
|
63
63
|
requires :identity, :allowed, :network
|
64
64
|
|
65
65
|
data = service.update_firewall(identity, attributes)
|
66
|
-
operation = Fog::Compute::
|
66
|
+
operation = Fog::Google::Compute::Operations.new(service: service)
|
67
67
|
.get(data.name)
|
68
68
|
operation.wait_for { ready? }
|
69
69
|
reload
|
@@ -73,7 +73,7 @@ module Fog
|
|
73
73
|
requires :identity
|
74
74
|
|
75
75
|
data = service.patch_firewall(identity, diff)
|
76
|
-
operation = Fog::Compute::
|
76
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
77
77
|
.get(data.name)
|
78
78
|
operation.wait_for { ready? }
|
79
79
|
reload
|
@@ -83,7 +83,7 @@ module Fog
|
|
83
83
|
requires :identity
|
84
84
|
|
85
85
|
data = service.delete_firewall(identity)
|
86
|
-
operation = Fog::Compute::
|
86
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
87
87
|
.get(data.name)
|
88
88
|
operation.wait_for { ready? } unless async
|
89
89
|
operation
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class ForwardingRule < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -25,7 +25,7 @@ module Fog
|
|
25
25
|
requires :identity, :region
|
26
26
|
|
27
27
|
data = service.insert_forwarding_rule(identity, region, attributes)
|
28
|
-
operation = Fog::Compute::
|
28
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
29
29
|
.get(data.name, nil, data.region)
|
30
30
|
operation.wait_for { ready? }
|
31
31
|
reload
|
@@ -45,7 +45,7 @@ module Fog
|
|
45
45
|
def destroy(async = true)
|
46
46
|
requires :identity, :region
|
47
47
|
data = service.delete_forwarding_rule(identity, region)
|
48
|
-
operation = Fog::Compute::
|
48
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
49
49
|
.get(data.name, nil, data.region)
|
50
50
|
operation.wait_for { ready? } unless async
|
51
51
|
operation
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class ForwardingRules < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::ForwardingRule
|
6
6
|
|
7
7
|
def all(region: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil)
|
8
8
|
opts = {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
##
|
5
5
|
# Represents an Address resource
|
6
6
|
#
|
@@ -25,7 +25,7 @@ module Fog
|
|
25
25
|
requires :identity
|
26
26
|
|
27
27
|
data = service.insert_global_address(identity, attributes)
|
28
|
-
operation = Fog::Compute::
|
28
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
29
29
|
.get(data.name)
|
30
30
|
operation.wait_for { ready? }
|
31
31
|
reload
|
@@ -35,7 +35,7 @@ module Fog
|
|
35
35
|
requires :identity
|
36
36
|
|
37
37
|
data = service.delete_global_address(identity)
|
38
|
-
operation = Fog::Compute::
|
38
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
39
39
|
.get(data.name)
|
40
40
|
operation.wait_for { ready? } unless async
|
41
41
|
operation
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class GlobalForwardingRule < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -25,7 +25,7 @@ module Fog
|
|
25
25
|
requires :identity
|
26
26
|
|
27
27
|
data = service.insert_global_forwarding_rule(identity, attributes)
|
28
|
-
operation = Fog::Compute::
|
28
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
29
29
|
.get(data.name, nil, data.region)
|
30
30
|
operation.wait_for { ready? }
|
31
31
|
reload
|
@@ -34,7 +34,7 @@ module Fog
|
|
34
34
|
def destroy(async = true)
|
35
35
|
requires :identity
|
36
36
|
data = service.delete_global_forwarding_rule(identity)
|
37
|
-
operation = Fog::Compute::
|
37
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
38
38
|
.get(data.name, nil, data.region)
|
39
39
|
operation.wait_for { ready? } unless async
|
40
40
|
operation
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class GlobalForwardingRules < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::GlobalForwardingRule
|
6
6
|
|
7
7
|
def all(opts = {})
|
8
8
|
items = []
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class HttpHealthCheck < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -51,7 +51,7 @@ module Fog
|
|
51
51
|
requires :name
|
52
52
|
|
53
53
|
data = service.insert_http_health_check(name, opts)
|
54
|
-
operation = Fog::Compute::
|
54
|
+
operation = Fog::Google::Compute::Operations.new(service: service)
|
55
55
|
.get(data.name, data.zone)
|
56
56
|
operation.wait_for { ready? }
|
57
57
|
reload
|
@@ -60,7 +60,7 @@ module Fog
|
|
60
60
|
def update(opts)
|
61
61
|
requires :name
|
62
62
|
data = service.update_http_health_check(name, opts)
|
63
|
-
operation = Fog::Compute::
|
63
|
+
operation = Fog::Google::Compute::Operations.new(service: service)
|
64
64
|
.get(data.name, data.zone)
|
65
65
|
operation.wait_for { ready? }
|
66
66
|
reload
|
@@ -69,7 +69,7 @@ module Fog
|
|
69
69
|
def destroy(async = true)
|
70
70
|
requires :name
|
71
71
|
data = service.delete_http_health_check(name)
|
72
|
-
operation = Fog::Compute::
|
72
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
73
73
|
.get(data.name)
|
74
74
|
operation.wait_for { ready? } unless async
|
75
75
|
operation
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class Image < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -49,7 +49,7 @@ module Fog
|
|
49
49
|
|
50
50
|
def destroy(async = true)
|
51
51
|
data = service.delete_image(name)
|
52
|
-
operation = Fog::Compute::
|
52
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
53
53
|
.get(data.name)
|
54
54
|
operation.wait_for { ready? } unless async
|
55
55
|
operation
|
@@ -66,7 +66,7 @@ module Fog
|
|
66
66
|
requires :name
|
67
67
|
|
68
68
|
data = service.insert_image(name, attributes)
|
69
|
-
operation = Fog::Compute::
|
69
|
+
operation = Fog::Google::Compute::Operations.new(:service => service)
|
70
70
|
.get(data.name)
|
71
71
|
operation.wait_for { ready? }
|
72
72
|
reload
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class Images < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::Image
|
6
6
|
|
7
7
|
# NOTE: some of these operating systems are premium and users will be
|
8
8
|
# charged a license fee beyond the base Google Compute Engine VM
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class InstanceGroupManager < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -22,7 +22,7 @@ module Fog
|
|
22
22
|
|
23
23
|
data = service.insert_instance_group_manager(name, zone.split("/")[-1], instance_template, base_instance_name,
|
24
24
|
target_size, target_pools, named_ports, description)
|
25
|
-
operation = Fog::Compute::
|
25
|
+
operation = Fog::Google::Compute::Operations.new(:service => service).get(data.name, zone.split("/")[-1])
|
26
26
|
operation.wait_for { ready? }
|
27
27
|
reload
|
28
28
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class InstanceGroupManagers < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::InstanceGroupManager
|
6
6
|
|
7
7
|
def all(zone: nil, filter: nil, max_results: nil,
|
8
8
|
order_by: nil, page_token: nil)
|
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class InstanceGroups < Fog::Collection
|
5
|
-
model Fog::Compute::
|
5
|
+
model Fog::Google::Compute::InstanceGroup
|
6
6
|
|
7
7
|
def all(zone: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil)
|
8
8
|
opts = {
|
@@ -51,7 +51,7 @@ module Fog
|
|
51
51
|
# TODO(2.0): To be deprecated
|
52
52
|
def add_instance(params)
|
53
53
|
Fog::Logger.deprecation(
|
54
|
-
"#{self.class}.#{__method__} is deprecated, use Fog::Compute::
|
54
|
+
"#{self.class}.#{__method__} is deprecated, use Fog::Google::Compute::InstanceGroup.#{__method__} instead [light_black](#{caller(0..0)})[/]"
|
55
55
|
)
|
56
56
|
params[:instance] = [params[:instance]] unless params[:instance] == Array
|
57
57
|
service.add_instance_group_instances(params[:group], params[:zone], params[:instance])
|
@@ -60,7 +60,7 @@ module Fog
|
|
60
60
|
# TODO(2.0): To be deprecated
|
61
61
|
def remove_instance(params)
|
62
62
|
Fog::Logger.deprecation(
|
63
|
-
"#{self.class}.#{__method__} is deprecated, use Fog::Compute::
|
63
|
+
"#{self.class}.#{__method__} is deprecated, use Fog::Google::Compute::InstanceGroup.#{__method__} instead [light_black](#{caller(0..0)})[/]"
|
64
64
|
)
|
65
65
|
params[:instance] = [params[:instance]] unless params[:instance] == Array
|
66
66
|
service.remove_instance_group_instances(params[:group], params[:zone], params[:instance])
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class Compute
|
4
4
|
class InstanceTemplate < Fog::Model
|
5
5
|
identity :name
|
6
6
|
|
@@ -29,7 +29,7 @@ module Fog
|
|
29
29
|
requires :properties
|
30
30
|
|
31
31
|
data = service.insert_instance_template(name, properties, description)
|
32
|
-
operation = Fog::Compute::
|
32
|
+
operation = Fog::Google::Compute::Operations.new(:service => service).get(data.name)
|
33
33
|
operation.wait_for { ready? }
|
34
34
|
reload
|
35
35
|
end
|
@@ -37,7 +37,7 @@ module Fog
|
|
37
37
|
def destroy(async = true)
|
38
38
|
requires :name
|
39
39
|
data = service.delete_instance_template(name)
|
40
|
-
operation = Fog::Compute::
|
40
|
+
operation = Fog::Google::Compute::Operations.new(:service => service).get(data.name)
|
41
41
|
operation.wait_for { ready? } unless async
|
42
42
|
operation
|
43
43
|
end
|