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
@@ -1,8 +1,8 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
4
|
-
autoload :Mock,
|
5
|
-
autoload :Real,
|
2
|
+
module Google
|
3
|
+
class Compute < Fog::Service
|
4
|
+
autoload :Mock, 'fog/google/compute/mock'
|
5
|
+
autoload :Real, 'fog/google/compute/real'
|
6
6
|
|
7
7
|
requires :google_project
|
8
8
|
recognizes(
|
@@ -28,7 +28,7 @@ module Fog
|
|
28
28
|
https://www.googleapis.com/auth/cloud-platform).freeze
|
29
29
|
GOOGLE_COMPUTE_DEFAULT_NETWORK = "default".freeze
|
30
30
|
|
31
|
-
request_path "fog/compute/
|
31
|
+
request_path "fog/google/compute/requests"
|
32
32
|
request :add_backend_service_backends
|
33
33
|
request :add_instance_group_instances
|
34
34
|
request :add_server_access_config
|
@@ -212,7 +212,7 @@ module Fog
|
|
212
212
|
|
213
213
|
request :reset_windows_password
|
214
214
|
|
215
|
-
model_path "fog/compute/
|
215
|
+
model_path "fog/google/compute/models"
|
216
216
|
model :server
|
217
217
|
collection :servers
|
218
218
|
|
@@ -1,15 +1,15 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class DNS
|
4
4
|
class Changes < Fog::Collection
|
5
|
-
model Fog::DNS::
|
5
|
+
model Fog::Google::DNS::Change
|
6
6
|
|
7
7
|
attribute :zone
|
8
8
|
|
9
9
|
##
|
10
10
|
# Enumerates the list of Changes
|
11
11
|
#
|
12
|
-
# @return [Array<Fog::DNS::
|
12
|
+
# @return [Array<Fog::Google::DNS::Change>] List of Changes resources
|
13
13
|
def all
|
14
14
|
requires :zone
|
15
15
|
|
@@ -17,6 +17,7 @@ module Fog
|
|
17
17
|
load(data)
|
18
18
|
rescue ::Google::Apis::ClientError => e
|
19
19
|
raise e unless e.status_code == 404
|
20
|
+
|
20
21
|
[]
|
21
22
|
end
|
22
23
|
|
@@ -24,7 +25,7 @@ module Fog
|
|
24
25
|
# Fetches the representation of an existing Change
|
25
26
|
#
|
26
27
|
# @param [String] identity Change identity
|
27
|
-
# @return [Fog::DNS::
|
28
|
+
# @return [Fog::Google::DNS::Change] Change resource
|
28
29
|
def get(identity)
|
29
30
|
requires :zone
|
30
31
|
if change = service.get_change(zone.identity, identity).to_h
|
@@ -32,13 +33,14 @@ module Fog
|
|
32
33
|
end
|
33
34
|
rescue ::Google::Apis::ClientError => e
|
34
35
|
raise e unless e.status_code == 404
|
36
|
+
|
35
37
|
nil
|
36
38
|
end
|
37
39
|
|
38
40
|
##
|
39
41
|
# Creates a new instance of a Change
|
40
42
|
#
|
41
|
-
# @return [Fog::DNS::
|
43
|
+
# @return [Fog::Google::DNS::Change] Change resource
|
42
44
|
def new(attributes = {})
|
43
45
|
requires :zone
|
44
46
|
|
@@ -1,14 +1,14 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class DNS
|
4
4
|
class Projects < Fog::Collection
|
5
|
-
model Fog::DNS::
|
5
|
+
model Fog::Google::DNS::Project
|
6
6
|
|
7
7
|
##
|
8
8
|
# Fetches the representation of an existing Project
|
9
9
|
#
|
10
10
|
# @param [String] identity Project identity
|
11
|
-
# @return [Fog::DNS::
|
11
|
+
# @return [Fog::Google::DNS::Project] Project resource
|
12
12
|
def get(identity)
|
13
13
|
if project = service.get_project(identity).to_h
|
14
14
|
new(project)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class DNS
|
4
4
|
##
|
5
5
|
# Resource Record Sets resource
|
6
6
|
#
|
@@ -22,7 +22,7 @@ module Fog
|
|
22
22
|
requires :name, :type, :ttl, :rrdatas
|
23
23
|
|
24
24
|
data = service.create_change(zone.id, [], [resource_record_set_format])
|
25
|
-
change = Fog::DNS::
|
25
|
+
change = Fog::Google::DNS::Changes
|
26
26
|
.new(:service => service, :zone => zone)
|
27
27
|
.get(data.id)
|
28
28
|
change.wait_for { ready? } unless async
|
@@ -33,7 +33,7 @@ module Fog
|
|
33
33
|
# Modifies a previously created Resource Record Sets resource
|
34
34
|
#
|
35
35
|
# @param [Hash] new_attributes Resource Record Set new attributes
|
36
|
-
# @return [Fog::DNS::
|
36
|
+
# @return [Fog::Google::DNS::Record] Resource Record Sets resource
|
37
37
|
def modify(new_attributes)
|
38
38
|
requires :name, :type, :ttl, :rrdatas
|
39
39
|
|
@@ -41,7 +41,7 @@ module Fog
|
|
41
41
|
merge_attributes(new_attributes)
|
42
42
|
|
43
43
|
data = service.create_change(zone.id, [resource_record_set_format], [deletions])
|
44
|
-
change = Fog::DNS::
|
44
|
+
change = Fog::Google::DNS::Changes
|
45
45
|
.new(:service => service, :zone => zone)
|
46
46
|
.get(data.id)
|
47
47
|
new_attributes.key?(:async) ? async = new_attributes[:async] : async = true
|
@@ -52,7 +52,7 @@ module Fog
|
|
52
52
|
##
|
53
53
|
# Reloads a Resource Record Sets resource
|
54
54
|
#
|
55
|
-
# @return [Fog::DNS::
|
55
|
+
# @return [Fog::Google::DNS::Record] Resource Record Sets resource
|
56
56
|
def reload
|
57
57
|
requires :name, :type
|
58
58
|
|
@@ -64,12 +64,12 @@ module Fog
|
|
64
64
|
##
|
65
65
|
# Creates a new Resource Record Sets resource
|
66
66
|
#
|
67
|
-
# @return [Fog::DNS::
|
67
|
+
# @return [Fog::Google::DNS::Record] Resource Record Sets resource
|
68
68
|
def save
|
69
69
|
requires :name, :type, :ttl, :rrdatas
|
70
70
|
|
71
71
|
data = service.create_change(zone.id, [resource_record_set_format], [])
|
72
|
-
change = Fog::DNS::
|
72
|
+
change = Fog::Google::DNS::Changes
|
73
73
|
.new(:service => service, :zone => zone)
|
74
74
|
.get(data.id)
|
75
75
|
change.wait_for { ready? }
|
@@ -79,7 +79,7 @@ module Fog
|
|
79
79
|
##
|
80
80
|
# Returns the Managed Zone of the Resource Record Sets resource
|
81
81
|
#
|
82
|
-
# @return [Fog::DNS::
|
82
|
+
# @return [Fog::Google::DNS::Zone] Managed Zone of the Resource Record Sets resource
|
83
83
|
attr_reader :zone
|
84
84
|
|
85
85
|
private
|
@@ -87,7 +87,7 @@ module Fog
|
|
87
87
|
##
|
88
88
|
# Assigns the Managed Zone of the Resource Record Sets resource
|
89
89
|
#
|
90
|
-
# @param [Fog::DNS::
|
90
|
+
# @param [Fog::Google::DNS::Zone] new_zone Managed Zone of the Resource Record Sets resource
|
91
91
|
attr_writer :zone
|
92
92
|
|
93
93
|
##
|
@@ -98,7 +98,7 @@ module Fog
|
|
98
98
|
:kind => "dns#resourceRecordSet",
|
99
99
|
:name => name,
|
100
100
|
:type => type,
|
101
|
-
:ttl
|
101
|
+
:ttl => ttl,
|
102
102
|
:rrdatas => rrdatas
|
103
103
|
}
|
104
104
|
end
|
@@ -1,15 +1,15 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class DNS
|
4
4
|
class Records < Fog::Collection
|
5
|
-
model Fog::DNS::
|
5
|
+
model Fog::Google::DNS::Record
|
6
6
|
|
7
7
|
attribute :zone
|
8
8
|
|
9
9
|
##
|
10
10
|
# Enumerates Resource Record Sets that have been created but not yet deleted
|
11
11
|
#
|
12
|
-
# @return [Array<Fog::DNS::
|
12
|
+
# @return [Array<Fog::Google::DNS::Record>] List of Resource Record Sets resources
|
13
13
|
def all
|
14
14
|
requires :zone
|
15
15
|
|
@@ -18,6 +18,7 @@ module Fog
|
|
18
18
|
load(data)
|
19
19
|
rescue ::Google::Apis::ClientError => e
|
20
20
|
raise e unless e.status_code == 404
|
21
|
+
|
21
22
|
[]
|
22
23
|
end
|
23
24
|
|
@@ -26,7 +27,7 @@ module Fog
|
|
26
27
|
#
|
27
28
|
# @param [String] name Resource Record Set name
|
28
29
|
# @param [String] type Resource Record Set type
|
29
|
-
# @return [Fog::DNS::
|
30
|
+
# @return [Fog::Google::DNS::Record] Resource Record Set resource
|
30
31
|
def get(name, type)
|
31
32
|
requires :zone
|
32
33
|
|
@@ -35,13 +36,14 @@ module Fog
|
|
35
36
|
records.any? ? new(records.first) : nil
|
36
37
|
rescue ::Google::Apis::ClientError => e
|
37
38
|
raise e unless e.status_code == 404
|
39
|
+
|
38
40
|
nil
|
39
41
|
end
|
40
42
|
|
41
43
|
##
|
42
44
|
# Creates a new instance of a Resource Record Set
|
43
45
|
#
|
44
|
-
# @return [Fog::DNS::
|
46
|
+
# @return [Fog::Google::DNS::Record] Resource Record Set resource
|
45
47
|
def new(attributes = {})
|
46
48
|
requires :zone
|
47
49
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class DNS
|
4
4
|
##
|
5
5
|
# Managed Zone resource
|
6
6
|
#
|
@@ -18,10 +18,10 @@ module Fog
|
|
18
18
|
##
|
19
19
|
# Enumerates the list of Changes for the Managed Zone
|
20
20
|
#
|
21
|
-
# @return Array<Fog::DNS::
|
21
|
+
# @return Array<Fog::Google::DNS::Change>] List of Changes for the Managed Zone
|
22
22
|
def changes
|
23
23
|
@changes = begin
|
24
|
-
Fog::DNS::
|
24
|
+
Fog::Google::DNS::Changes.new(
|
25
25
|
:service => service,
|
26
26
|
:zone => self
|
27
27
|
)
|
@@ -42,10 +42,10 @@ module Fog
|
|
42
42
|
##
|
43
43
|
# Enumerates the list of Resource Record Sets for the Managed Zone
|
44
44
|
#
|
45
|
-
# @return Array<Fog::DNS::
|
45
|
+
# @return Array<Fog::Google::DNS::Record>] List of Resource Record Sets for the Managed Zone
|
46
46
|
def records
|
47
47
|
@records = begin
|
48
|
-
Fog::DNS::
|
48
|
+
Fog::Google::DNS::Records.new(
|
49
49
|
:service => service,
|
50
50
|
:zone => self
|
51
51
|
)
|
@@ -55,7 +55,7 @@ module Fog
|
|
55
55
|
##
|
56
56
|
# Creates a new Managed Zone
|
57
57
|
#
|
58
|
-
# @return [Fog::DNS::
|
58
|
+
# @return [Fog::Google::DNS::Zone] Managed Zone
|
59
59
|
# @raise [Fog::Errors::Error] If Managed Zone already exists
|
60
60
|
def save
|
61
61
|
requires :name, :domain, :description
|
@@ -1,13 +1,13 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Google
|
3
|
+
class DNS
|
4
4
|
class Zones < Fog::Collection
|
5
|
-
model Fog::DNS::
|
5
|
+
model Fog::Google::DNS::Zone
|
6
6
|
|
7
7
|
##
|
8
8
|
# Enumerates Managed Zones that have been created but not yet deleted
|
9
9
|
#
|
10
|
-
# @return [Array<Fog::DNS::
|
10
|
+
# @return [Array<Fog::Google::DNS::Zone>] List of Managed Zone resources
|
11
11
|
def all
|
12
12
|
data = service.list_managed_zones.managed_zones.to_h || []
|
13
13
|
load(data)
|
@@ -17,13 +17,14 @@ module Fog
|
|
17
17
|
# Fetches the representation of an existing Managed Zone
|
18
18
|
#
|
19
19
|
# @param [String] name_or_id Managed Zone name or identity
|
20
|
-
# @return [Fog::DNS::
|
20
|
+
# @return [Fog::Google::DNS::Zone] Managed Zone resource
|
21
21
|
def get(name_or_id)
|
22
22
|
if zone = service.get_managed_zone(name_or_id).to_h
|
23
23
|
new(zone)
|
24
24
|
end
|
25
25
|
rescue ::Google::Apis::ClientError => e
|
26
26
|
raise e unless e.status_code == 404
|
27
|
+
|
27
28
|
nil
|
28
29
|
end
|
29
30
|
end
|