fog-google 1.24.0 → 1.25.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/CHANGELOG.md +23 -1
- data/CONTRIBUTING.md +11 -11
- data/README.md +7 -7
- 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 +1 -1
- 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 +18 -18
- 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 +17 -15
- 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 +16 -8
- 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 +4 -4
- data/lib/fog/{storage/google_json.rb → google/storage/storage_json.rb} +9 -9
- 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 +2 -2
- 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 +3 -3
- 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 +18 -17
- 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
- data/test/integration/compute/core_compute/test_client_options.rb +1 -1
- data/test/integration/compute/core_compute/test_disks.rb +2 -2
- data/test/integration/compute/core_compute/test_snapshots.rb +1 -1
- data/test/integration/factories/collection_factory.rb +2 -2
- data/test/integration/storage/storage_shared.rb +1 -1
- data/test/integration/test_authentication.rb +6 -6
- data/test/unit/compute/test_common_collections.rb +3 -3
- data/test/unit/compute/test_common_models.rb +9 -9
- data/test/unit/compute/test_disk.rb +8 -8
- data/test/unit/compute/test_server.rb +2 -2
- data/test/unit/dns/test_common_collections.rb +3 -3
- data/test/unit/monitoring/test_comon_collections.rb +1 -1
- data/test/unit/pubsub/test_common_collections.rb +1 -1
- data/test/unit/sql/test_common_collections.rb +1 -1
- data/test/unit/storage/test_common_json_collections.rb +2 -2
- data/test/unit/storage/test_common_xml_collections.rb +4 -4
- metadata +319 -322
- data/lib/fog/parsers/storage/google.rb +0 -15
@@ -11,7 +11,7 @@ class CollectionFactory
|
|
11
11
|
#
|
12
12
|
# @param async [FalseClass or TrueClass] perform resource destruction asynchronously
|
13
13
|
def cleanup(async = false)
|
14
|
-
suit_name = @example.gsub(/\W/, "").tr("_", "-").downcase.split(
|
14
|
+
suit_name = @example.gsub(/\W/, "").tr("_", "-").downcase.split("-")[0]
|
15
15
|
resources = @subject.all.select { |resource| resource.name.match(/#{PREFIX}-[0-9]*-#{suit_name}/) }
|
16
16
|
if DEBUG
|
17
17
|
p "Cleanup invoked in #{self} for example: #{@example}"
|
@@ -22,7 +22,7 @@ class CollectionFactory
|
|
22
22
|
resources.each { |r| Fog.wait_for { !@subject.all.map(&:identity).include? r.identity } }
|
23
23
|
end
|
24
24
|
|
25
|
-
# Creates a collection object instance e.g. Fog::Compute::
|
25
|
+
# Creates a collection object instance e.g. Fog::Google::Compute::Server
|
26
26
|
#
|
27
27
|
# @param custom_params [Hash] override factory creation parameters or provide
|
28
28
|
# additional ones. Useful in tests where you need to create a slightly different
|
@@ -6,7 +6,7 @@ require "tempfile"
|
|
6
6
|
|
7
7
|
class StorageShared < FogIntegrationTest
|
8
8
|
def setup
|
9
|
-
@client = Fog::Storage
|
9
|
+
@client = Fog::Google::Storage.new
|
10
10
|
# Enable retries during the suite. This prevents us from
|
11
11
|
# having to manually rate limit our requests.
|
12
12
|
::Google::Apis::RequestOptions.default.retries = 5
|
@@ -8,28 +8,28 @@ class TestAuthentication < FogIntegrationTest
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def test_authenticates_with_json_key_location
|
11
|
-
c = Fog::Compute
|
11
|
+
c = Fog::Google::Compute.new(:google_key_location => nil,
|
12
12
|
:google_key_string => nil,
|
13
13
|
:google_json_key_location => @google_json_key_location,
|
14
14
|
:google_json_key_string => nil)
|
15
|
-
assert_kind_of(Fog::Compute::
|
15
|
+
assert_kind_of(Fog::Google::Compute::Real, c)
|
16
16
|
end
|
17
17
|
|
18
18
|
def test_authenticates_with_json_key_string
|
19
|
-
c = Fog::Compute
|
19
|
+
c = Fog::Google::Compute.new(:google_key_location => nil,
|
20
20
|
:google_key_string => nil,
|
21
21
|
:google_json_key_location => nil,
|
22
22
|
:google_json_key_string => @google_json_key_string)
|
23
|
-
assert_kind_of(Fog::Compute::
|
23
|
+
assert_kind_of(Fog::Google::Compute::Real, c)
|
24
24
|
end
|
25
25
|
|
26
26
|
def test_raises_argument_error_when_google_project_is_missing
|
27
|
-
assert_raises(ArgumentError) { Fog::Compute
|
27
|
+
assert_raises(ArgumentError) { Fog::Google::Compute.new(:google_project => nil) }
|
28
28
|
end
|
29
29
|
|
30
30
|
def test_raises_argument_error_when_google_keys_are_given
|
31
31
|
assert_raises(ArgumentError) do
|
32
|
-
Fog::Compute
|
32
|
+
Fog::Google::Compute.new(:google_key_location => nil,
|
33
33
|
:google_key_string => nil,
|
34
34
|
:google_json_key_location => nil,
|
35
35
|
:google_json_key_string => nil)
|
@@ -10,18 +10,18 @@ class UnitTestCollections < Minitest::Test
|
|
10
10
|
# Exceptions that do not pass test_common_methods:
|
11
11
|
#
|
12
12
|
# Projects do not have a "list" method in compute API, so 'all' is not implemented
|
13
|
-
@common_method_exceptions = [Fog::Compute::
|
13
|
+
@common_method_exceptions = [Fog::Google::Compute::Projects]
|
14
14
|
# Enumerate all descendants of Fog::Collection
|
15
15
|
descendants = ObjectSpace.each_object(Fog::Collection.singleton_class).to_a
|
16
16
|
|
17
|
-
@collections = descendants.select { |d| d.name.match(/Fog::Compute
|
17
|
+
@collections = descendants.select { |d| d.name.match(/Fog::Google::Compute/) }
|
18
18
|
end
|
19
19
|
|
20
20
|
def teardown
|
21
21
|
Fog.unmock!
|
22
22
|
end
|
23
23
|
|
24
|
-
# This tests whether Fog::Compute
|
24
|
+
# This tests whether Fog::Google::Compute collections have common lifecycle methods
|
25
25
|
def test_common_methods
|
26
26
|
subjects = @collections - @common_method_exceptions
|
27
27
|
subjects.each do |klass|
|
@@ -7,17 +7,17 @@ class UnitTestModels < Minitest::Test
|
|
7
7
|
google_project: "foo")
|
8
8
|
|
9
9
|
# Do not test models that do not have a create method in API
|
10
|
-
exceptions = [Fog::Compute::
|
11
|
-
Fog::Compute::
|
12
|
-
Fog::Compute::
|
13
|
-
Fog::Compute::
|
14
|
-
Fog::Compute::
|
15
|
-
Fog::Compute::
|
16
|
-
Fog::Compute::
|
10
|
+
exceptions = [Fog::Google::Compute::MachineType,
|
11
|
+
Fog::Google::Compute::Region,
|
12
|
+
Fog::Google::Compute::DiskType,
|
13
|
+
Fog::Google::Compute::Operation,
|
14
|
+
Fog::Google::Compute::Zone,
|
15
|
+
Fog::Google::Compute::Snapshot,
|
16
|
+
Fog::Google::Compute::Project]
|
17
17
|
# Enumerate all descendants of Fog::Model
|
18
18
|
descendants = ObjectSpace.each_object(Fog::Model.singleton_class).to_a
|
19
19
|
|
20
|
-
@models = descendants.select { |d| d.name.match(/Fog::Compute
|
20
|
+
@models = descendants.select { |d| d.name.match(/Fog::Google::Compute/) } - exceptions
|
21
21
|
end
|
22
22
|
|
23
23
|
def teardown
|
@@ -25,7 +25,7 @@ class UnitTestModels < Minitest::Test
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def test_common_methods
|
28
|
-
# This tests whether Fog::Compute
|
28
|
+
# This tests whether Fog::Google::Compute models have common lifecycle methods
|
29
29
|
@models.each do |klass|
|
30
30
|
obj = klass.new
|
31
31
|
assert obj.respond_to?(:save), "#{klass} should have a .save method"
|
@@ -12,15 +12,15 @@ class UnitTestDisk < Minitest::Test
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def test_new_disk
|
15
|
-
disk = Fog::Compute::
|
16
|
-
:name
|
17
|
-
:size_gb
|
18
|
-
:zone
|
15
|
+
disk = Fog::Google::Compute::Disk.new(
|
16
|
+
:name => "fog-1",
|
17
|
+
:size_gb => 10,
|
18
|
+
:zone => "us-central1-a",
|
19
19
|
:source_image => "debian-7-wheezy-v20131120"
|
20
20
|
)
|
21
|
-
assert_equal("fog-1", disk.name, "Fog::Compute::
|
22
|
-
assert_equal(10, disk.size_gb, "Fog::Compute::
|
23
|
-
assert_equal("us-central1-a", disk.zone, "Fog::Compute::
|
24
|
-
assert_equal("debian-7-wheezy-v20131120", disk.source_image, "Fog::Compute::
|
21
|
+
assert_equal("fog-1", disk.name, "Fog::Google::Compute::Disk name is incorrect: #{disk.name}")
|
22
|
+
assert_equal(10, disk.size_gb, "Fog::Google::Compute::Disk size_gb is incorrect: #{disk.size_gb}")
|
23
|
+
assert_equal("us-central1-a", disk.zone, "Fog::Google::Compute::Disk zone is incorrect: #{disk.zone}")
|
24
|
+
assert_equal("debian-7-wheezy-v20131120", disk.source_image, "Fog::Google::Compute::Disk source_image is incorrect: #{disk.source_image}")
|
25
25
|
end
|
26
26
|
end
|
@@ -15,7 +15,7 @@ class UnitTestServer < Minitest::Test
|
|
15
15
|
key = "ssh-rsa IAMNOTAREALSSHKEYAMA== user@host.subdomain.example.com"
|
16
16
|
|
17
17
|
File.stub :read, key do
|
18
|
-
server = Fog::Compute::
|
18
|
+
server = Fog::Google::Compute::Server.new(
|
19
19
|
:name => "foo",
|
20
20
|
:machine_type => "bar",
|
21
21
|
:disks => ["baz"],
|
@@ -23,7 +23,7 @@ class UnitTestServer < Minitest::Test
|
|
23
23
|
:public_key_path => key
|
24
24
|
)
|
25
25
|
assert_equal(server.public_key, key,
|
26
|
-
"Fog::Compute::
|
26
|
+
"Fog::Google::Compute::Server loads public_key properly")
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
@@ -9,18 +9,18 @@ class UnitTestDNSCollections < Minitest::Test
|
|
9
9
|
# Exceptions that do not pass test_common_methods:
|
10
10
|
#
|
11
11
|
# DNS Projects API does not support 'list', so 'all' method is not possible
|
12
|
-
@common_methods_exceptions = [Fog::DNS::
|
12
|
+
@common_methods_exceptions = [Fog::Google::DNS::Projects]
|
13
13
|
# Enumerate all descendants of Fog::Collection
|
14
14
|
descendants = ObjectSpace.each_object(Fog::Collection.singleton_class)
|
15
15
|
|
16
|
-
@collections = descendants.select { |d| d.name.match(/Fog::DNS
|
16
|
+
@collections = descendants.select { |d| d.name.match(/Fog::Google::DNS/) }
|
17
17
|
end
|
18
18
|
|
19
19
|
def teardown
|
20
20
|
Fog.unmock!
|
21
21
|
end
|
22
22
|
|
23
|
-
# This tests whether Fog::Compute
|
23
|
+
# This tests whether Fog::Google::Compute collections have common lifecycle methods
|
24
24
|
def test_common_methods
|
25
25
|
subjects = @collections - @common_methods_exceptions
|
26
26
|
subjects.each do |klass|
|
@@ -20,7 +20,7 @@ class UnitTestMonitoringCollections < Minitest::Test
|
|
20
20
|
Fog.unmock!
|
21
21
|
end
|
22
22
|
|
23
|
-
# This tests whether Fog::Compute
|
23
|
+
# This tests whether Fog::Google::Compute collections have common lifecycle methods
|
24
24
|
def test_common_methods
|
25
25
|
subjects = @collections - @common_method_exceptions
|
26
26
|
|
@@ -16,7 +16,7 @@ class UnitTestPubsubCollections < Minitest::Test
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def test_common_methods
|
19
|
-
# This tests whether Fog::Compute
|
19
|
+
# This tests whether Fog::Google::Compute collections have common lifecycle methods
|
20
20
|
@collections.each do |klass|
|
21
21
|
obj = klass.new
|
22
22
|
assert obj.respond_to?(:all), "#{klass} should have an .all method"
|
@@ -23,7 +23,7 @@ class UnitTestSQLCollections < Minitest::Test
|
|
23
23
|
Fog.unmock!
|
24
24
|
end
|
25
25
|
|
26
|
-
# This tests whether Fog::Compute
|
26
|
+
# This tests whether Fog::Google::Compute collections have common lifecycle methods
|
27
27
|
def test_common_methods
|
28
28
|
subjects = @collections - @common_method_exceptions
|
29
29
|
subjects.each do |klass|
|
@@ -10,7 +10,7 @@ class UnitTestStorageJSONCollections < Minitest::Test
|
|
10
10
|
descendants = ObjectSpace.each_object(Fog::Collection.singleton_class)
|
11
11
|
|
12
12
|
@collections = descendants.select do |d|
|
13
|
-
d.name.match(/Fog::
|
13
|
+
d.name.match(/Fog::Google::StorageJSON/)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
@@ -19,7 +19,7 @@ class UnitTestStorageJSONCollections < Minitest::Test
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def test_common_methods
|
22
|
-
# This tests whether Fog::Compute
|
22
|
+
# This tests whether Fog::Google::Compute collections have common lifecycle methods
|
23
23
|
@collections.each do |klass|
|
24
24
|
obj = klass.new
|
25
25
|
assert obj.respond_to?(:all), "#{klass} should have an .all method"
|
@@ -12,7 +12,7 @@ class UnitTestStorageXMLCollections < Minitest::Test
|
|
12
12
|
descendants = ObjectSpace.each_object(Fog::Collection.singleton_class)
|
13
13
|
|
14
14
|
@collections = descendants.select do |d|
|
15
|
-
d.name.match(/Fog::
|
15
|
+
d.name.match(/Fog::Google::StorageXML/)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
|
@@ -21,7 +21,7 @@ class UnitTestStorageXMLCollections < Minitest::Test
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def test_common_methods
|
24
|
-
# This tests whether Fog::Compute
|
24
|
+
# This tests whether Fog::Google::Compute collections have common lifecycle methods
|
25
25
|
@collections.each do |klass|
|
26
26
|
obj = klass.new
|
27
27
|
assert obj.respond_to?(:all), "#{klass} should have an .all method"
|
@@ -39,11 +39,11 @@ class UnitTestStorageXMLCollections < Minitest::Test
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def test_metadata
|
42
|
-
attr = { key:
|
42
|
+
attr = { key: "test-file", body: "hello world\x00" }
|
43
43
|
f = @bucket.files.new(attr)
|
44
44
|
assert_equal({}, f.metadata)
|
45
45
|
|
46
|
-
metadata = {
|
46
|
+
metadata = { "x-goog-meta-my-header" => "hello world" }
|
47
47
|
f = @bucket.files.new(attr.merge(metadata))
|
48
48
|
assert_equal(metadata, f.metadata)
|
49
49
|
end
|