fog 0.8.2 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -6
- data/Rakefile +58 -21
- data/bin/fog +6 -0
- data/changelog.txt +107 -0
- data/docs/about/getting_started.markdown +4 -4
- data/docs/about/press.markdown +7 -0
- data/docs/about/structure.markdown +3 -3
- data/docs/compute/index.markdown +5 -5
- data/docs/dns/index.markdown +3 -3
- data/docs/index.markdown +3 -3
- data/docs/storage/index.markdown +10 -10
- data/examples/compute_tests.rb +71 -0
- data/examples/dns_tests.rb +4 -4
- data/examples/storage_tests.rb +1 -1
- data/fog.gemspec +4 -3
- data/lib/fog.rb +1 -1
- data/lib/fog/aws/cloud_formation.rb +1 -1
- data/lib/fog/aws/elb.rb +3 -3
- data/lib/fog/aws/iam.rb +1 -1
- data/lib/fog/aws/models/elb/load_balancer.rb +3 -2
- data/lib/fog/aws/models/rds/security_group.rb +0 -2
- data/lib/fog/aws/models/rds/server.rb +2 -2
- data/lib/fog/aws/parsers/elb/describe_load_balancers.rb +5 -2
- data/lib/fog/aws/rds.rb +1 -1
- data/lib/fog/aws/requests/cloud_formation/create_stack.rb +1 -1
- data/lib/fog/aws/requests/elb/create_load_balancer.rb +5 -5
- data/lib/fog/aws/requests/elb/create_load_balancer_listeners.rb +4 -4
- data/lib/fog/aws/requests/elb/delete_load_balancer_listeners.rb +1 -1
- data/lib/fog/aws/requests/elb/deregister_instances_from_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/describe_instance_health.rb +1 -1
- data/lib/fog/aws/requests/elb/describe_load_balancers.rb +16 -11
- data/lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/register_instances_with_load_balancer.rb +1 -1
- data/lib/fog/aws/requests/elb/set_load_balancer_policies_of_listener.rb +1 -1
- data/lib/fog/aws/requests/rds/create_db_instance.rb +1 -1
- data/lib/fog/aws/requests/rds/modify_db_instance.rb +1 -1
- data/lib/fog/aws/requests/rds/modify_db_parameter_group.rb +3 -3
- data/lib/fog/aws/requests/ses/send_email.rb +2 -2
- data/lib/fog/aws/requests/ses/send_raw_email.rb +1 -1
- data/lib/fog/aws/requests/simpledb/delete_attributes.rb +14 -4
- data/lib/fog/aws/simpledb.rb +3 -3
- data/lib/fog/bin.rb +2 -0
- data/lib/fog/bin/aws.rb +8 -4
- data/lib/fog/bin/bluebox.rb +4 -2
- data/lib/fog/bin/brightbox.rb +2 -1
- data/lib/fog/bin/dnsimple.rb +7 -6
- data/lib/fog/bin/dnsmadeeasy.rb +31 -0
- data/lib/fog/bin/ecloud.rb +2 -1
- data/lib/fog/bin/go_grid.rb +2 -1
- data/lib/fog/bin/google.rb +2 -1
- data/lib/fog/bin/linode.rb +4 -2
- data/lib/fog/bin/local.rb +2 -1
- data/lib/fog/bin/new_servers.rb +2 -1
- data/lib/fog/bin/ninefold.rb +31 -0
- data/lib/fog/bin/rackspace.rb +6 -3
- data/lib/fog/bin/slicehost.rb +4 -2
- data/lib/fog/bin/stormondemand.rb +2 -1
- data/lib/fog/bin/virtual_box.rb +2 -1
- data/lib/fog/bin/voxel.rb +2 -1
- data/lib/fog/bin/zerigo.rb +2 -1
- data/lib/fog/cdn.rb +10 -6
- data/lib/fog/cdn/aws.rb +2 -17
- data/lib/fog/cdn/parsers/aws/distribution.rb +2 -2
- data/lib/fog/cdn/parsers/aws/get_distribution_list.rb +2 -2
- data/lib/fog/cdn/parsers/aws/post_invalidation.rb +2 -2
- data/lib/fog/cdn/rackspace.rb +2 -17
- data/lib/fog/cdn/requests/aws/delete_distribution.rb +2 -2
- data/lib/fog/cdn/requests/aws/get_distribution.rb +3 -3
- data/lib/fog/cdn/requests/aws/get_distribution_list.rb +3 -3
- data/lib/fog/cdn/requests/aws/post_distribution.rb +3 -3
- data/lib/fog/cdn/requests/aws/post_invalidation.rb +3 -3
- data/lib/fog/cdn/requests/aws/put_distribution_config.rb +3 -3
- data/lib/fog/cdn/requests/rackspace/get_containers.rb +2 -2
- data/lib/fog/cdn/requests/rackspace/head_container.rb +2 -2
- data/lib/fog/cdn/requests/rackspace/post_container.rb +2 -2
- data/lib/fog/cdn/requests/rackspace/put_container.rb +2 -2
- data/lib/fog/compute.rb +44 -26
- data/lib/fog/compute/aws.rb +5 -20
- data/lib/fog/compute/bluebox.rb +3 -18
- data/lib/fog/compute/brightbox.rb +3 -18
- data/lib/fog/compute/ecloud.rb +4 -5
- data/lib/fog/compute/go_grid.rb +3 -18
- data/lib/fog/compute/linode.rb +4 -19
- data/lib/fog/compute/models/aws/address.rb +2 -2
- data/lib/fog/compute/models/aws/addresses.rb +3 -3
- data/lib/fog/compute/models/aws/flavor.rb +2 -2
- data/lib/fog/compute/models/aws/flavors.rb +4 -4
- data/lib/fog/compute/models/aws/image.rb +2 -2
- data/lib/fog/compute/models/aws/images.rb +3 -3
- data/lib/fog/compute/models/aws/key_pair.rb +2 -3
- data/lib/fog/compute/models/aws/key_pairs.rb +3 -3
- data/lib/fog/compute/models/aws/security_group.rb +2 -2
- data/lib/fog/compute/models/aws/security_groups.rb +3 -3
- data/lib/fog/compute/models/aws/server.rb +18 -15
- data/lib/fog/compute/models/aws/servers.rb +3 -3
- data/lib/fog/compute/models/aws/snapshot.rb +2 -2
- data/lib/fog/compute/models/aws/snapshots.rb +3 -3
- data/lib/fog/compute/models/aws/tag.rb +2 -4
- data/lib/fog/compute/models/aws/tags.rb +3 -3
- data/lib/fog/compute/models/aws/volume.rb +2 -2
- data/lib/fog/compute/models/aws/volumes.rb +3 -3
- data/lib/fog/compute/models/bluebox/flavor.rb +2 -2
- data/lib/fog/compute/models/bluebox/flavors.rb +4 -4
- data/lib/fog/compute/models/bluebox/image.rb +2 -2
- data/lib/fog/compute/models/bluebox/images.rb +4 -4
- data/lib/fog/compute/models/bluebox/server.rb +6 -6
- data/lib/fog/compute/models/bluebox/servers.rb +4 -4
- data/lib/fog/compute/models/brightbox/account.rb +2 -2
- data/lib/fog/compute/models/brightbox/cloud_ip.rb +2 -2
- data/lib/fog/compute/models/brightbox/cloud_ips.rb +3 -3
- data/lib/fog/compute/models/brightbox/flavor.rb +2 -2
- data/lib/fog/compute/models/brightbox/flavors.rb +3 -3
- data/lib/fog/compute/models/brightbox/image.rb +3 -2
- data/lib/fog/compute/models/brightbox/images.rb +3 -3
- data/lib/fog/compute/models/brightbox/load_balancer.rb +2 -2
- data/lib/fog/compute/models/brightbox/load_balancers.rb +3 -3
- data/lib/fog/compute/models/brightbox/server.rb +2 -2
- data/lib/fog/compute/models/brightbox/servers.rb +3 -3
- data/lib/fog/compute/models/brightbox/user.rb +2 -2
- data/lib/fog/compute/models/brightbox/users.rb +3 -3
- data/lib/fog/compute/models/brightbox/zone.rb +2 -2
- data/lib/fog/compute/models/brightbox/zones.rb +3 -3
- data/lib/fog/compute/models/ecloud/backup_internet_service.rb +3 -3
- data/lib/fog/compute/models/ecloud/backup_internet_services.rb +3 -3
- data/lib/fog/compute/models/ecloud/catalog.rb +3 -3
- data/lib/fog/compute/models/ecloud/catalog_item.rb +2 -2
- data/lib/fog/compute/models/ecloud/firewall_acl.rb +2 -2
- data/lib/fog/compute/models/ecloud/firewall_acls.rb +3 -3
- data/lib/fog/compute/models/ecloud/internet_service.rb +3 -3
- data/lib/fog/compute/models/ecloud/internet_services.rb +3 -3
- data/lib/fog/compute/models/ecloud/ip.rb +2 -2
- data/lib/fog/compute/models/ecloud/ips.rb +3 -3
- data/lib/fog/compute/models/ecloud/network.rb +7 -4
- data/lib/fog/compute/models/ecloud/networks.rb +3 -3
- data/lib/fog/compute/models/ecloud/node.rb +2 -2
- data/lib/fog/compute/models/ecloud/nodes.rb +3 -3
- data/lib/fog/compute/models/ecloud/public_ip.rb +3 -3
- data/lib/fog/compute/models/ecloud/public_ips.rb +3 -3
- data/lib/fog/compute/models/ecloud/server.rb +2 -2
- data/lib/fog/compute/models/ecloud/servers.rb +3 -3
- data/lib/fog/compute/models/ecloud/task.rb +2 -2
- data/lib/fog/compute/models/ecloud/tasks.rb +3 -3
- data/lib/fog/compute/models/ecloud/vdc.rb +9 -9
- data/lib/fog/compute/models/ecloud/vdcs.rb +3 -3
- data/lib/fog/compute/models/go_grid/image.rb +2 -2
- data/lib/fog/compute/models/go_grid/images.rb +4 -4
- data/lib/fog/compute/models/go_grid/password.rb +2 -2
- data/lib/fog/compute/models/go_grid/passwords.rb +4 -4
- data/lib/fog/compute/models/go_grid/server.rb +14 -14
- data/lib/fog/compute/models/go_grid/servers.rb +5 -4
- data/lib/fog/compute/models/linode/data_center.rb +2 -2
- data/lib/fog/compute/models/linode/data_centers.rb +3 -3
- data/lib/fog/compute/models/linode/disk.rb +2 -2
- data/lib/fog/compute/models/linode/disks.rb +3 -3
- data/lib/fog/compute/models/linode/flavor.rb +2 -2
- data/lib/fog/compute/models/linode/flavors.rb +3 -3
- data/lib/fog/compute/models/linode/image.rb +2 -2
- data/lib/fog/compute/models/linode/images.rb +4 -4
- data/lib/fog/compute/models/linode/ip.rb +2 -2
- data/lib/fog/compute/models/linode/ips.rb +4 -4
- data/lib/fog/compute/models/linode/kernel.rb +2 -2
- data/lib/fog/compute/models/linode/kernels.rb +4 -4
- data/lib/fog/compute/models/linode/server.rb +4 -4
- data/lib/fog/compute/models/linode/servers.rb +4 -4
- data/lib/fog/compute/models/linode/stack_script.rb +2 -2
- data/lib/fog/compute/models/linode/stack_scripts.rb +4 -4
- data/lib/fog/compute/models/ninefold/address.rb +103 -0
- data/lib/fog/compute/models/ninefold/addresses.rb +31 -0
- data/lib/fog/compute/models/ninefold/flavor.rb +29 -0
- data/lib/fog/compute/models/ninefold/flavors.rb +30 -0
- data/lib/fog/compute/models/ninefold/image.rb +42 -0
- data/lib/fog/compute/models/ninefold/images.rb +30 -0
- data/lib/fog/compute/models/ninefold/ip_forwarding_rule.rb +79 -0
- data/lib/fog/compute/models/ninefold/ip_forwarding_rules.rb +31 -0
- data/lib/fog/compute/models/ninefold/server.rb +180 -0
- data/lib/fog/compute/models/ninefold/servers.rb +31 -0
- data/lib/fog/compute/models/rackspace/flavor.rb +2 -2
- data/lib/fog/compute/models/rackspace/flavors.rb +4 -4
- data/lib/fog/compute/models/rackspace/image.rb +2 -2
- data/lib/fog/compute/models/rackspace/images.rb +4 -4
- data/lib/fog/compute/models/rackspace/server.rb +6 -6
- data/lib/fog/compute/models/rackspace/servers.rb +4 -4
- data/lib/fog/compute/models/slicehost/flavor.rb +2 -2
- data/lib/fog/compute/models/slicehost/flavors.rb +3 -3
- data/lib/fog/compute/models/slicehost/image.rb +2 -2
- data/lib/fog/compute/models/slicehost/images.rb +3 -3
- data/lib/fog/compute/models/slicehost/server.rb +6 -6
- data/lib/fog/compute/models/slicehost/servers.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/balancer.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/balancers.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/config.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/configs.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/image.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/images.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/private_ip.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/private_ips.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/server.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/servers.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/stat.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/stats.rb +3 -3
- data/lib/fog/compute/models/storm_on_demand/template.rb +2 -2
- data/lib/fog/compute/models/storm_on_demand/templates.rb +3 -3
- data/lib/fog/compute/models/virtual_box/medium.rb +3 -3
- data/lib/fog/compute/models/virtual_box/medium_format.rb +2 -2
- data/lib/fog/compute/models/virtual_box/mediums.rb +3 -3
- data/lib/fog/compute/models/virtual_box/nat_engine.rb +3 -3
- data/lib/fog/compute/models/virtual_box/nat_redirect.rb +2 -2
- data/lib/fog/compute/models/virtual_box/nat_redirects.rb +3 -3
- data/lib/fog/compute/models/virtual_box/network_adapter.rb +3 -3
- data/lib/fog/compute/models/virtual_box/network_adapters.rb +3 -3
- data/lib/fog/compute/models/virtual_box/server.rb +8 -8
- data/lib/fog/compute/models/virtual_box/servers.rb +3 -3
- data/lib/fog/compute/models/virtual_box/storage_controller.rb +2 -2
- data/lib/fog/compute/models/virtual_box/storage_controllers.rb +3 -3
- data/lib/fog/compute/models/voxel/image.rb +2 -2
- data/lib/fog/compute/models/voxel/images.rb +3 -3
- data/lib/fog/compute/models/voxel/server.rb +2 -2
- data/lib/fog/compute/models/voxel/servers.rb +3 -3
- data/lib/fog/compute/new_servers.rb +3 -18
- data/lib/fog/compute/ninefold.rb +139 -0
- data/lib/fog/compute/parsers/aws/allocate_address.rb +2 -2
- data/lib/fog/compute/parsers/aws/attach_volume.rb +2 -2
- data/lib/fog/compute/parsers/aws/basic.rb +2 -2
- data/lib/fog/compute/parsers/aws/create_image.rb +2 -2
- data/lib/fog/compute/parsers/aws/create_key_pair.rb +2 -2
- data/lib/fog/compute/parsers/aws/create_snapshot.rb +2 -2
- data/lib/fog/compute/parsers/aws/create_volume.rb +2 -2
- data/lib/fog/compute/parsers/aws/deregister_image.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_addresses.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_availability_zones.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_images.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_instances.rb +20 -54
- data/lib/fog/compute/parsers/aws/describe_key_pairs.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_regions.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_reserved_instances.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_reserved_instances_offerings.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_security_groups.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_snapshots.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_tags.rb +2 -2
- data/lib/fog/compute/parsers/aws/describe_volumes.rb +2 -2
- data/lib/fog/compute/parsers/aws/detach_volume.rb +2 -2
- data/lib/fog/compute/parsers/aws/get_console_output.rb +2 -2
- data/lib/fog/compute/parsers/aws/get_password_data.rb +2 -2
- data/lib/fog/compute/parsers/aws/import_key_pair.rb +2 -2
- data/lib/fog/compute/parsers/aws/monitor_unmonitor_instances.rb +2 -2
- data/lib/fog/compute/parsers/aws/register_image.rb +2 -2
- data/lib/fog/compute/parsers/aws/run_instances.rb +2 -2
- data/lib/fog/compute/parsers/aws/start_stop_instances.rb +2 -2
- data/lib/fog/compute/parsers/aws/terminate_instances.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/create_slice.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_backups.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_flavor.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_flavors.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_image.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_images.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_slice.rb +2 -2
- data/lib/fog/compute/parsers/slicehost/get_slices.rb +2 -2
- data/lib/fog/compute/parsers/voxel/basic.rb +2 -2
- data/lib/fog/compute/parsers/voxel/devices_list.rb +2 -2
- data/lib/fog/compute/parsers/voxel/images_list.rb +2 -2
- data/lib/fog/compute/parsers/voxel/voxcloud_create.rb +2 -2
- data/lib/fog/compute/parsers/voxel/voxcloud_delete.rb +2 -2
- data/lib/fog/compute/parsers/voxel/voxcloud_status.rb +2 -2
- data/lib/fog/compute/rackspace.rb +21 -26
- data/lib/fog/compute/requests/aws/allocate_address.rb +3 -3
- data/lib/fog/compute/requests/aws/associate_address.rb +9 -5
- data/lib/fog/compute/requests/aws/attach_volume.rb +7 -7
- data/lib/fog/compute/requests/aws/authorize_security_group_ingress.rb +4 -4
- data/lib/fog/compute/requests/aws/create_image.rb +3 -3
- data/lib/fog/compute/requests/aws/create_key_pair.rb +4 -4
- data/lib/fog/compute/requests/aws/create_security_group.rb +4 -4
- data/lib/fog/compute/requests/aws/create_snapshot.rb +3 -3
- data/lib/fog/compute/requests/aws/create_tags.rb +6 -6
- data/lib/fog/compute/requests/aws/create_volume.rb +13 -6
- data/lib/fog/compute/requests/aws/delete_key_pair.rb +3 -3
- data/lib/fog/compute/requests/aws/delete_security_group.rb +4 -4
- data/lib/fog/compute/requests/aws/delete_snapshot.rb +4 -4
- data/lib/fog/compute/requests/aws/delete_tags.rb +4 -4
- data/lib/fog/compute/requests/aws/delete_volume.rb +5 -5
- data/lib/fog/compute/requests/aws/deregister_image.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_addresses.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_availability_zones.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_images.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_instances.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_key_pairs.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_regions.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_reserved_instances.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_reserved_instances_offerings.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_security_groups.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_snapshots.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_tags.rb +4 -4
- data/lib/fog/compute/requests/aws/describe_volumes.rb +4 -4
- data/lib/fog/compute/requests/aws/detach_volume.rb +4 -4
- data/lib/fog/compute/requests/aws/disassociate_address.rb +4 -4
- data/lib/fog/compute/requests/aws/get_console_output.rb +5 -5
- data/lib/fog/compute/requests/aws/get_password_data.rb +4 -4
- data/lib/fog/compute/requests/aws/import_key_pair.rb +4 -4
- data/lib/fog/compute/requests/aws/modify_image_attributes.rb +6 -6
- data/lib/fog/compute/requests/aws/modify_snapshot_attribute.rb +5 -5
- data/lib/fog/compute/requests/aws/monitor_instances.rb +5 -5
- data/lib/fog/compute/requests/aws/reboot_instances.rb +5 -5
- data/lib/fog/compute/requests/aws/register_image.rb +4 -4
- data/lib/fog/compute/requests/aws/release_address.rb +4 -4
- data/lib/fog/compute/requests/aws/revoke_security_group_ingress.rb +4 -4
- data/lib/fog/compute/requests/aws/run_instances.rb +5 -5
- data/lib/fog/compute/requests/aws/start_instances.rb +4 -4
- data/lib/fog/compute/requests/aws/stop_instances.rb +4 -4
- data/lib/fog/compute/requests/aws/terminate_instances.rb +5 -5
- data/lib/fog/compute/requests/aws/unmonitor_instances.rb +5 -5
- data/lib/fog/compute/requests/bluebox/create_block.rb +2 -2
- data/lib/fog/compute/requests/bluebox/destroy_block.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_block.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_blocks.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_product.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_products.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_template.rb +2 -2
- data/lib/fog/compute/requests/bluebox/get_templates.rb +2 -2
- data/lib/fog/compute/requests/bluebox/reboot_block.rb +2 -2
- data/lib/fog/compute/requests/brightbox/activate_console_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/add_listeners_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/add_nodes_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/create_api_client.rb +2 -2
- data/lib/fog/compute/requests/brightbox/create_cloud_ip.rb +2 -2
- data/lib/fog/compute/requests/brightbox/create_image.rb +2 -2
- data/lib/fog/compute/requests/brightbox/create_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/create_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/destroy_api_client.rb +2 -2
- data/lib/fog/compute/requests/brightbox/destroy_cloud_ip.rb +2 -2
- data/lib/fog/compute/requests/brightbox/destroy_image.rb +2 -2
- data/lib/fog/compute/requests/brightbox/destroy_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/destroy_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_account.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_api_client.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_cloud_ip.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_image.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_interface.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_server_type.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_user.rb +2 -2
- data/lib/fog/compute/requests/brightbox/get_zone.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_api_clients.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_cloud_ips.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_images.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_load_balancers.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_server_types.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_servers.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_users.rb +2 -2
- data/lib/fog/compute/requests/brightbox/list_zones.rb +2 -2
- data/lib/fog/compute/requests/brightbox/map_cloud_ip.rb +2 -2
- data/lib/fog/compute/requests/brightbox/remove_listeners_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/remove_nodes_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/reset_ftp_password_account.rb +2 -2
- data/lib/fog/compute/requests/brightbox/resize_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/shutdown_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/snapshot_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/start_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/stop_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/unmap_cloud_ip.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_account.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_api_client.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_image.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_load_balancer.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_server.rb +2 -2
- data/lib/fog/compute/requests/brightbox/update_user.rb +2 -2
- data/lib/fog/compute/requests/ecloud/add_backup_internet_service.rb +2 -2
- data/lib/fog/compute/requests/ecloud/add_internet_service.rb +2 -2
- data/lib/fog/compute/requests/ecloud/add_node.rb +2 -2
- data/lib/fog/compute/requests/ecloud/clone_vapp.rb +2 -2
- data/lib/fog/compute/requests/ecloud/configure_internet_service.rb +2 -2
- data/lib/fog/compute/requests/ecloud/configure_network.rb +2 -2
- data/lib/fog/compute/requests/ecloud/configure_network_ip.rb +2 -2
- data/lib/fog/compute/requests/ecloud/configure_node.rb +2 -2
- data/lib/fog/compute/requests/ecloud/configure_vapp.rb +2 -2
- data/lib/fog/compute/requests/ecloud/delete_internet_service.rb +2 -2
- data/lib/fog/compute/requests/ecloud/delete_node.rb +2 -2
- data/lib/fog/compute/requests/ecloud/delete_vapp.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_catalog.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_catalog_item.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_customization_options.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_firewall_acl.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_firewall_acls.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_internet_services.rb +5 -5
- data/lib/fog/compute/requests/ecloud/get_network.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_network_extensions.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_network_ip.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_network_ips.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_node.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_nodes.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_organization.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_public_ip.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_public_ips.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_task.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_task_list.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_vapp.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_vapp_template.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_vdc.rb +2 -2
- data/lib/fog/compute/requests/ecloud/get_versions.rb +2 -2
- data/lib/fog/compute/requests/ecloud/instantiate_vapp_template.rb +2 -2
- data/lib/fog/compute/requests/ecloud/login.rb +2 -2
- data/lib/fog/compute/requests/ecloud/power_off.rb +2 -2
- data/lib/fog/compute/requests/ecloud/power_on.rb +2 -2
- data/lib/fog/compute/requests/ecloud/power_reset.rb +2 -2
- data/lib/fog/compute/requests/ecloud/power_shutdown.rb +2 -2
- data/lib/fog/compute/requests/go_grid/common_lookup_list.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_image_get.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_image_list.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_ip_list.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_loadbalancer_list.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_server_add.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_server_delete.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_server_get.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_server_list.rb +2 -2
- data/lib/fog/compute/requests/go_grid/grid_server_power.rb +2 -2
- data/lib/fog/compute/requests/go_grid/support_password_get.rb +2 -2
- data/lib/fog/compute/requests/go_grid/support_password_list.rb +2 -2
- data/lib/fog/compute/requests/linode/avail_datacenters.rb +4 -3
- data/lib/fog/compute/requests/linode/avail_distributions.rb +3 -2
- data/lib/fog/compute/requests/linode/avail_kernels.rb +3 -2
- data/lib/fog/compute/requests/linode/avail_linodeplans.rb +3 -2
- data/lib/fog/compute/requests/linode/avail_stackscripts.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_boot.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_config_create.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_config_list.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_create.rb +3 -2
- data/lib/fog/compute/requests/linode/linode_delete.rb +3 -2
- data/lib/fog/compute/requests/linode/linode_disk_create.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_disk_createfromdistribution.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_disk_createfromstackscript.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_disk_delete.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_disk_list.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_ip_addprivate.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_ip_list.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_list.rb +3 -2
- data/lib/fog/compute/requests/linode/linode_reboot.rb +3 -2
- data/lib/fog/compute/requests/linode/linode_shutdown.rb +4 -2
- data/lib/fog/compute/requests/linode/linode_update.rb +4 -2
- data/lib/fog/compute/requests/linode/stackscript_list.rb +3 -2
- data/lib/fog/compute/requests/new_servers/add_server.rb +2 -2
- data/lib/fog/compute/requests/new_servers/cancel_server.rb +2 -2
- data/lib/fog/compute/requests/new_servers/get_server.rb +2 -2
- data/lib/fog/compute/requests/new_servers/list_images.rb +2 -2
- data/lib/fog/compute/requests/new_servers/list_plans.rb +2 -2
- data/lib/fog/compute/requests/new_servers/list_servers.rb +2 -2
- data/lib/fog/compute/requests/new_servers/reboot_server.rb +2 -2
- data/lib/fog/compute/requests/ninefold/associate_ip_address.rb +14 -0
- data/lib/fog/compute/requests/ninefold/change_service_for_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/create_ip_forwarding_rule.rb +14 -0
- data/lib/fog/compute/requests/ninefold/delete_ip_forwarding_rule.rb +14 -0
- data/lib/fog/compute/requests/ninefold/deploy_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/destroy_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/disable_static_nat.rb +14 -0
- data/lib/fog/compute/requests/ninefold/disassociate_ip_address.rb +14 -0
- data/lib/fog/compute/requests/ninefold/enable_static_nat.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_accounts.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_async_jobs.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_capabilities.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_disk_offerings.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_events.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_hypervisors.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_ip_forwarding_rules.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_network_offerings.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_networks.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_public_ip_addresses.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_resource_limits.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_service_offerings.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_templates.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_virtual_machines.rb +14 -0
- data/lib/fog/compute/requests/ninefold/list_zones.rb +14 -0
- data/lib/fog/compute/requests/ninefold/query_async_job_result.rb +14 -0
- data/lib/fog/compute/requests/ninefold/reboot_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/reset_password_for_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/start_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/stop_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/ninefold/update_virtual_machine.rb +14 -0
- data/lib/fog/compute/requests/rackspace/confirm_resized_server.rb +2 -2
- data/lib/fog/compute/requests/rackspace/create_image.rb +2 -2
- data/lib/fog/compute/requests/rackspace/create_server.rb +3 -3
- data/lib/fog/compute/requests/rackspace/delete_image.rb +2 -2
- data/lib/fog/compute/requests/rackspace/delete_server.rb +3 -3
- data/lib/fog/compute/requests/rackspace/get_flavor_details.rb +3 -3
- data/lib/fog/compute/requests/rackspace/get_image_details.rb +2 -2
- data/lib/fog/compute/requests/rackspace/get_server_details.rb +3 -3
- data/lib/fog/compute/requests/rackspace/list_addresses.rb +3 -3
- data/lib/fog/compute/requests/rackspace/list_flavors.rb +2 -2
- data/lib/fog/compute/requests/rackspace/list_flavors_detail.rb +2 -2
- data/lib/fog/compute/requests/rackspace/list_images.rb +2 -2
- data/lib/fog/compute/requests/rackspace/list_images_detail.rb +2 -2
- data/lib/fog/compute/requests/rackspace/list_private_addresses.rb +3 -3
- data/lib/fog/compute/requests/rackspace/list_public_addresses.rb +3 -3
- data/lib/fog/compute/requests/rackspace/list_servers.rb +2 -2
- data/lib/fog/compute/requests/rackspace/list_servers_detail.rb +2 -2
- data/lib/fog/compute/requests/rackspace/reboot_server.rb +2 -2
- data/lib/fog/compute/requests/rackspace/resize_server.rb +2 -2
- data/lib/fog/compute/requests/rackspace/revert_resized_server.rb +2 -2
- data/lib/fog/compute/requests/rackspace/server_action.rb +2 -2
- data/lib/fog/compute/requests/rackspace/update_server.rb +3 -3
- data/lib/fog/compute/requests/slicehost/create_slice.rb +3 -3
- data/lib/fog/compute/requests/slicehost/delete_slice.rb +2 -2
- data/lib/fog/compute/requests/slicehost/get_backups.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_flavor.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_flavors.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_image.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_images.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_slice.rb +3 -3
- data/lib/fog/compute/requests/slicehost/get_slices.rb +3 -3
- data/lib/fog/compute/requests/slicehost/reboot_slice.rb +3 -3
- data/lib/fog/compute/requests/storm_on_demand/add_balancer_node.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/clone_server.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/create_server.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/delete_server.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/get_server.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/get_stats.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_balancers.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_configs.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_images.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_private_ips.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_servers.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/list_templates.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/reboot_server.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/remove_balancer_node.rb +2 -2
- data/lib/fog/compute/requests/storm_on_demand/resize_server.rb +2 -2
- data/lib/fog/compute/requests/voxel/devices_list.rb +3 -3
- data/lib/fog/compute/requests/voxel/devices_power.rb +3 -3
- data/lib/fog/compute/requests/voxel/images_list.rb +4 -4
- data/lib/fog/compute/requests/voxel/voxcloud_create.rb +3 -3
- data/lib/fog/compute/requests/voxel/voxcloud_delete.rb +3 -3
- data/lib/fog/compute/requests/voxel/voxcloud_status.rb +5 -10
- data/lib/fog/compute/slicehost.rb +3 -18
- data/lib/fog/compute/storm_on_demand.rb +5 -6
- data/lib/fog/compute/virtual_box.rb +2 -4
- data/lib/fog/compute/voxel.rb +5 -5
- data/lib/fog/core/collection.rb +3 -0
- data/lib/fog/core/errors.rb +2 -0
- data/lib/fog/core/mock.rb +16 -9
- data/lib/fog/core/scp.rb +3 -3
- data/lib/fog/core/service.rb +3 -0
- data/lib/fog/dns.rb +32 -14
- data/lib/fog/dns/aws.rb +2 -17
- data/lib/fog/dns/bluebox.rb +4 -18
- data/lib/fog/dns/dnsimple.rb +2 -17
- data/lib/fog/dns/dnsmadeeasy.rb +134 -0
- data/lib/fog/dns/linode.rb +4 -19
- data/lib/fog/dns/models/aws/record.rb +10 -7
- data/lib/fog/dns/models/aws/records.rb +3 -3
- data/lib/fog/dns/models/aws/zone.rb +3 -3
- data/lib/fog/dns/models/aws/zones.rb +3 -3
- data/lib/fog/dns/models/bluebox/record.rb +9 -6
- data/lib/fog/dns/models/bluebox/records.rb +3 -3
- data/lib/fog/dns/models/bluebox/zone.rb +3 -3
- data/lib/fog/dns/models/bluebox/zones.rb +3 -3
- data/lib/fog/dns/models/dnsimple/record.rb +9 -6
- data/lib/fog/dns/models/dnsimple/records.rb +3 -3
- data/lib/fog/dns/models/dnsimple/zone.rb +7 -7
- data/lib/fog/dns/models/dnsimple/zones.rb +3 -3
- data/lib/fog/dns/models/dnsmadeeasy/record.rb +79 -0
- data/lib/fog/dns/models/dnsmadeeasy/records.rb +36 -0
- data/lib/fog/dns/models/dnsmadeeasy/zone.rb +42 -0
- data/lib/fog/dns/models/dnsmadeeasy/zones.rb +30 -0
- data/lib/fog/dns/models/linode/record.rb +7 -4
- data/lib/fog/dns/models/linode/records.rb +3 -3
- data/lib/fog/dns/models/linode/zone.rb +3 -3
- data/lib/fog/dns/models/linode/zones.rb +3 -3
- data/lib/fog/dns/models/slicehost/record.rb +8 -5
- data/lib/fog/dns/models/slicehost/records.rb +3 -3
- data/lib/fog/dns/models/slicehost/zone.rb +3 -3
- data/lib/fog/dns/models/slicehost/zones.rb +3 -3
- data/lib/fog/dns/models/zerigo/record.rb +8 -5
- data/lib/fog/dns/models/zerigo/records.rb +3 -3
- data/lib/fog/dns/models/zerigo/zone.rb +3 -3
- data/lib/fog/dns/models/zerigo/zones.rb +3 -3
- data/lib/fog/dns/parsers/aws/change_resource_record_sets.rb +2 -2
- data/lib/fog/dns/parsers/aws/create_hosted_zone.rb +2 -2
- data/lib/fog/dns/parsers/aws/delete_hosted_zone.rb +2 -2
- data/lib/fog/dns/parsers/aws/get_change.rb +2 -2
- data/lib/fog/dns/parsers/aws/get_hosted_zone.rb +2 -2
- data/lib/fog/dns/parsers/aws/list_hosted_zones.rb +2 -2
- data/lib/fog/dns/parsers/aws/list_resource_record_sets.rb +2 -2
- data/lib/fog/dns/parsers/bluebox/create_record.rb +2 -2
- data/lib/fog/dns/parsers/bluebox/create_zone.rb +2 -2
- data/lib/fog/dns/parsers/bluebox/get_record.rb +2 -2
- data/lib/fog/dns/parsers/bluebox/get_records.rb +3 -2
- data/lib/fog/dns/parsers/bluebox/get_zone.rb +5 -2
- data/lib/fog/dns/parsers/bluebox/get_zones.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/create_record.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/create_zone.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/get_record.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/get_records.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/get_zone.rb +2 -2
- data/lib/fog/dns/parsers/slicehost/get_zones.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/count_hosts.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/count_zones.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/create_host.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/create_zone.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/find_hosts.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/get_host.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/get_zone.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/get_zone_stats.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/list_hosts.rb +2 -2
- data/lib/fog/dns/parsers/zerigo/list_zones.rb +2 -2
- data/lib/fog/dns/requests/aws/change_resource_record_sets.rb +3 -3
- data/lib/fog/dns/requests/aws/create_hosted_zone.rb +3 -3
- data/lib/fog/dns/requests/aws/delete_hosted_zone.rb +3 -3
- data/lib/fog/dns/requests/aws/get_change.rb +3 -3
- data/lib/fog/dns/requests/aws/get_hosted_zone.rb +3 -3
- data/lib/fog/dns/requests/aws/list_hosted_zones.rb +3 -3
- data/lib/fog/dns/requests/aws/list_resource_record_sets.rb +3 -3
- data/lib/fog/dns/requests/bluebox/create_record.rb +3 -3
- data/lib/fog/dns/requests/bluebox/create_zone.rb +3 -3
- data/lib/fog/dns/requests/bluebox/delete_record.rb +2 -2
- data/lib/fog/dns/requests/bluebox/delete_zone.rb +2 -2
- data/lib/fog/dns/requests/bluebox/get_record.rb +3 -3
- data/lib/fog/dns/requests/bluebox/get_records.rb +3 -3
- data/lib/fog/dns/requests/bluebox/get_zone.rb +3 -3
- data/lib/fog/dns/requests/bluebox/get_zones.rb +3 -3
- data/lib/fog/dns/requests/bluebox/update_zone.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/create_domain.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/create_record.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/delete_domain.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/delete_record.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/get_domain.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/get_record.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/list_domains.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/list_records.rb +2 -2
- data/lib/fog/dns/requests/dnsimple/update_record.rb +2 -2
- data/lib/fog/dns/requests/dnsmadeeasy/create_domain.rb +29 -0
- data/lib/fog/dns/requests/dnsmadeeasy/create_record.rb +62 -0
- data/lib/fog/dns/requests/dnsmadeeasy/create_secondary.rb +36 -0
- data/lib/fog/dns/requests/dnsmadeeasy/delete_all_domains.rb +23 -0
- data/lib/fog/dns/requests/dnsmadeeasy/delete_all_secondary.rb +22 -0
- data/lib/fog/dns/requests/dnsmadeeasy/delete_domain.rb +25 -0
- data/lib/fog/dns/requests/dnsmadeeasy/delete_record.rb +26 -0
- data/lib/fog/dns/requests/dnsmadeeasy/delete_secondary.rb +25 -0
- data/lib/fog/dns/requests/dnsmadeeasy/get_domain.rb +29 -0
- data/lib/fog/dns/requests/dnsmadeeasy/get_record.rb +38 -0
- data/lib/fog/dns/requests/dnsmadeeasy/get_secondary.rb +29 -0
- data/lib/fog/dns/requests/dnsmadeeasy/list_domains.rb +24 -0
- data/lib/fog/dns/requests/dnsmadeeasy/list_records.rb +42 -0
- data/lib/fog/dns/requests/dnsmadeeasy/list_secondary.rb +24 -0
- data/lib/fog/dns/requests/dnsmadeeasy/update_record.rb +56 -0
- data/lib/fog/dns/requests/dnsmadeeasy/update_secondary.rb +36 -0
- data/lib/fog/dns/requests/linode/domain_create.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_delete.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_list.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_resource_create.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_resource_delete.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_resource_list.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_resource_update.rb +2 -2
- data/lib/fog/dns/requests/linode/domain_update.rb +2 -2
- data/lib/fog/dns/requests/slicehost/create_record.rb +3 -3
- data/lib/fog/dns/requests/slicehost/create_zone.rb +3 -3
- data/lib/fog/dns/requests/slicehost/delete_record.rb +2 -2
- data/lib/fog/dns/requests/slicehost/delete_zone.rb +2 -2
- data/lib/fog/dns/requests/slicehost/get_record.rb +3 -3
- data/lib/fog/dns/requests/slicehost/get_records.rb +3 -3
- data/lib/fog/dns/requests/slicehost/get_zone.rb +3 -3
- data/lib/fog/dns/requests/slicehost/get_zones.rb +3 -3
- data/lib/fog/dns/requests/zerigo/count_hosts.rb +3 -3
- data/lib/fog/dns/requests/zerigo/count_zones.rb +3 -3
- data/lib/fog/dns/requests/zerigo/create_host.rb +3 -3
- data/lib/fog/dns/requests/zerigo/create_zone.rb +3 -3
- data/lib/fog/dns/requests/zerigo/delete_host.rb +2 -2
- data/lib/fog/dns/requests/zerigo/delete_zone.rb +2 -2
- data/lib/fog/dns/requests/zerigo/find_hosts.rb +4 -4
- data/lib/fog/dns/requests/zerigo/get_host.rb +3 -3
- data/lib/fog/dns/requests/zerigo/get_zone.rb +3 -3
- data/lib/fog/dns/requests/zerigo/get_zone_stats.rb +3 -3
- data/lib/fog/dns/requests/zerigo/list_hosts.rb +3 -3
- data/lib/fog/dns/requests/zerigo/list_zones.rb +3 -3
- data/lib/fog/dns/requests/zerigo/update_host.rb +2 -2
- data/lib/fog/dns/requests/zerigo/update_zone.rb +2 -2
- data/lib/fog/dns/slicehost.rb +3 -18
- data/lib/fog/dns/zerigo.rb +3 -18
- data/lib/fog/providers.rb +2 -0
- data/lib/fog/providers/aws.rb +7 -2
- data/lib/fog/providers/dnsmadeeasy.rb +11 -0
- data/lib/fog/providers/ninefold.rb +11 -0
- data/lib/fog/providers/rackspace.rb +3 -1
- data/lib/fog/storage.rb +25 -10
- data/lib/fog/storage/aws.rb +38 -23
- data/lib/fog/storage/google.rb +2 -17
- data/lib/fog/storage/local.rb +2 -17
- data/lib/fog/storage/models/aws/directories.rb +3 -3
- data/lib/fog/storage/models/aws/directory.rb +3 -3
- data/lib/fog/storage/models/aws/file.rb +2 -2
- data/lib/fog/storage/models/aws/files.rb +12 -5
- data/lib/fog/storage/models/google/directories.rb +3 -3
- data/lib/fog/storage/models/google/directory.rb +3 -3
- data/lib/fog/storage/models/google/file.rb +2 -2
- data/lib/fog/storage/models/google/files.rb +3 -3
- data/lib/fog/storage/models/local/directories.rb +3 -3
- data/lib/fog/storage/models/local/directory.rb +3 -3
- data/lib/fog/storage/models/local/file.rb +2 -2
- data/lib/fog/storage/models/local/files.rb +3 -3
- data/lib/fog/storage/models/rackspace/directories.rb +9 -5
- data/lib/fog/storage/models/rackspace/directory.rb +5 -4
- data/lib/fog/storage/models/rackspace/file.rb +4 -6
- data/lib/fog/storage/models/rackspace/files.rb +9 -7
- data/lib/fog/storage/parsers/aws/access_control_list.rb +2 -2
- data/lib/fog/storage/parsers/aws/complete_multipart_upload.rb +2 -2
- data/lib/fog/storage/parsers/aws/copy_object.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket_location.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket_logging.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket_object_versions.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket_versioning.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_bucket_website.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_request_payment.rb +2 -2
- data/lib/fog/storage/parsers/aws/get_service.rb +2 -2
- data/lib/fog/storage/parsers/aws/initiate_multipart_upload.rb +2 -2
- data/lib/fog/storage/parsers/aws/list_multipart_uploads.rb +2 -2
- data/lib/fog/storage/parsers/aws/list_parts.rb +2 -2
- data/lib/fog/storage/parsers/google/access_control_list.rb +2 -2
- data/lib/fog/storage/parsers/google/copy_object.rb +2 -2
- data/lib/fog/storage/parsers/google/get_bucket.rb +2 -2
- data/lib/fog/storage/parsers/google/get_bucket_logging.rb +2 -2
- data/lib/fog/storage/parsers/google/get_bucket_object_versions.rb +2 -2
- data/lib/fog/storage/parsers/google/get_bucket_versioning.rb +2 -2
- data/lib/fog/storage/parsers/google/get_request_payment.rb +2 -2
- data/lib/fog/storage/parsers/google/get_service.rb +2 -2
- data/lib/fog/storage/rackspace.rb +4 -19
- data/lib/fog/storage/requests/aws/abort_multipart_upload.rb +2 -2
- data/lib/fog/storage/requests/aws/complete_multipart_upload.rb +3 -3
- data/lib/fog/storage/requests/aws/copy_object.rb +3 -3
- data/lib/fog/storage/requests/aws/delete_bucket.rb +2 -2
- data/lib/fog/storage/requests/aws/delete_bucket_policy.rb +32 -0
- data/lib/fog/storage/requests/aws/delete_bucket_website.rb +2 -2
- data/lib/fog/storage/requests/aws/delete_object.rb +6 -5
- data/lib/fog/storage/requests/aws/get_bucket.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_acl.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_location.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_logging.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_object_versions.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_policy.rb +37 -0
- data/lib/fog/storage/requests/aws/get_bucket_versioning.rb +3 -3
- data/lib/fog/storage/requests/aws/get_bucket_website.rb +3 -3
- data/lib/fog/storage/requests/aws/get_object.rb +34 -27
- data/lib/fog/storage/requests/aws/get_object_acl.rb +3 -3
- data/lib/fog/storage/requests/aws/get_object_torrent.rb +2 -2
- data/lib/fog/storage/requests/aws/get_object_url.rb +2 -2
- data/lib/fog/storage/requests/aws/get_request_payment.rb +3 -3
- data/lib/fog/storage/requests/aws/get_service.rb +3 -3
- data/lib/fog/storage/requests/aws/head_object.rb +2 -2
- data/lib/fog/storage/requests/aws/initiate_multipart_upload.rb +3 -3
- data/lib/fog/storage/requests/aws/list_multipart_uploads.rb +3 -3
- data/lib/fog/storage/requests/aws/list_parts.rb +3 -3
- data/lib/fog/storage/requests/aws/post_object_hidden_fields.rb +2 -2
- data/lib/fog/storage/requests/aws/put_bucket.rb +2 -2
- data/lib/fog/storage/requests/aws/put_bucket_acl.rb +2 -2
- data/lib/fog/storage/requests/aws/put_bucket_logging.rb +2 -2
- data/lib/fog/storage/requests/aws/put_bucket_policy.rb +30 -0
- data/lib/fog/storage/requests/aws/put_bucket_versioning.rb +2 -2
- data/lib/fog/storage/requests/aws/put_bucket_website.rb +2 -2
- data/lib/fog/storage/requests/aws/put_object.rb +2 -2
- data/lib/fog/storage/requests/aws/put_object_acl.rb +2 -2
- data/lib/fog/storage/requests/aws/put_object_url.rb +2 -2
- data/lib/fog/storage/requests/aws/put_request_payment.rb +2 -2
- data/lib/fog/storage/requests/aws/sync_clock.rb +2 -2
- data/lib/fog/storage/requests/aws/upload_part.rb +2 -2
- data/lib/fog/storage/requests/google/copy_object.rb +3 -3
- data/lib/fog/storage/requests/google/delete_bucket.rb +2 -2
- data/lib/fog/storage/requests/google/delete_object.rb +2 -2
- data/lib/fog/storage/requests/google/get_bucket.rb +3 -3
- data/lib/fog/storage/requests/google/get_bucket_acl.rb +1 -1
- data/lib/fog/storage/requests/google/get_object.rb +2 -2
- data/lib/fog/storage/requests/google/get_object_acl.rb +3 -3
- data/lib/fog/storage/requests/google/get_object_torrent.rb +2 -2
- data/lib/fog/storage/requests/google/get_object_url.rb +2 -2
- data/lib/fog/storage/requests/google/get_service.rb +3 -3
- data/lib/fog/storage/requests/google/head_object.rb +2 -2
- data/lib/fog/storage/requests/google/put_bucket.rb +2 -2
- data/lib/fog/storage/requests/google/put_bucket_acl.rb +2 -2
- data/lib/fog/storage/requests/google/put_object.rb +2 -2
- data/lib/fog/storage/requests/google/put_object_url.rb +2 -2
- data/lib/fog/storage/requests/rackspace/delete_container.rb +3 -4
- data/lib/fog/storage/requests/rackspace/delete_object.rb +3 -4
- data/lib/fog/storage/requests/rackspace/get_container.rb +3 -4
- data/lib/fog/storage/requests/rackspace/get_containers.rb +3 -4
- data/lib/fog/storage/requests/rackspace/get_object.rb +3 -4
- data/lib/fog/storage/requests/rackspace/head_container.rb +3 -4
- data/lib/fog/storage/requests/rackspace/head_containers.rb +3 -4
- data/lib/fog/storage/requests/rackspace/head_object.rb +3 -4
- data/lib/fog/storage/requests/rackspace/put_container.rb +3 -4
- data/lib/fog/storage/requests/rackspace/put_object.rb +3 -4
- data/spec/ecloud/bin_spec.rb +1 -1
- data/spec/ecloud/models/backup_internet_service_spec.rb +4 -4
- data/spec/ecloud/models/backup_internet_services_spec.rb +3 -3
- data/spec/ecloud/models/internet_service_spec.rb +4 -4
- data/spec/ecloud/models/internet_services_spec.rb +3 -3
- data/spec/ecloud/models/ip_spec.rb +4 -4
- data/spec/ecloud/models/ips_spec.rb +3 -3
- data/spec/ecloud/models/network_spec.rb +4 -4
- data/spec/ecloud/models/networks_spec.rb +3 -3
- data/spec/ecloud/models/node_spec.rb +4 -4
- data/spec/ecloud/models/nodes_spec.rb +3 -3
- data/spec/ecloud/models/public_ip_spec.rb +4 -4
- data/spec/ecloud/models/public_ips_spec.rb +3 -3
- data/spec/ecloud/models/server_spec.rb +3 -3
- data/spec/ecloud/models/vdc_spec.rb +4 -4
- data/spec/ecloud/models/vdcs_spec.rb +3 -3
- data/spec/ecloud/spec_helper.rb +10 -10
- data/spec/ecloud/vcloud_spec.rb +1 -1
- data/tests/aws/models/rds/helper.rb +5 -0
- data/tests/aws/models/rds/parameter_group_tests.rb +24 -0
- data/tests/aws/models/rds/parameter_groups_tests.rb +8 -0
- data/tests/aws/models/rds/security_group_tests.rb +50 -0
- data/tests/aws/models/rds/security_groups_tests.rb +6 -0
- data/tests/aws/models/rds/server_tests.rb +104 -0
- data/tests/aws/models/rds/servers_tests.rb +8 -0
- data/tests/aws/models/rds/snapshot_tests.rb +15 -0
- data/tests/aws/models/rds/snapshots_tests.rb +15 -0
- data/tests/aws/requests/cloud_formation/stack_tests.rb +1 -1
- data/tests/aws/requests/elb/helper.rb +8 -5
- data/tests/aws/requests/elb/model_tests.rb +2 -2
- data/tests/aws/requests/simpledb/attributes_tests.rb +16 -0
- data/tests/compute/helper.rb +9 -6
- data/tests/compute/models/aws/address_tests.rb +3 -3
- data/tests/compute/models/aws/addresses_tests.rb +2 -2
- data/tests/compute/models/aws/key_pair_tests.rb +5 -5
- data/tests/compute/models/aws/key_pairs_tests.rb +2 -2
- data/tests/compute/models/aws/security_group_tests.rb +3 -3
- data/tests/compute/models/aws/security_groups.rb +2 -2
- data/tests/compute/models/aws/server_tests.rb +2 -2
- data/tests/compute/models/aws/snapshot_tests.rb +3 -3
- data/tests/compute/models/aws/snapshots_tests.rb +4 -4
- data/tests/compute/models/aws/volume_tests.rb +3 -3
- data/tests/compute/models/aws/volumes_tests.rb +2 -2
- data/tests/compute/models/flavors_tests.rb +3 -3
- data/tests/compute/models/server_tests.rb +2 -2
- data/tests/compute/models/servers_tests.rb +2 -2
- data/tests/compute/parsers/aws/monitor_unmonitor_instances_tests.rb +2 -2
- data/tests/compute/requests/aws/address_tests.rb +22 -22
- data/tests/compute/requests/aws/availability_zone_tests.rb +3 -3
- data/tests/compute/requests/aws/image_tests.rb +3 -3
- data/tests/compute/requests/aws/instance_tests.rb +22 -22
- data/tests/compute/requests/aws/key_pair_tests.rb +11 -11
- data/tests/compute/requests/aws/region_tests.rb +3 -3
- data/tests/compute/requests/aws/security_group_tests.rb +23 -23
- data/tests/compute/requests/aws/snapshot_tests.rb +11 -11
- data/tests/compute/requests/aws/tag_tests.rb +7 -7
- data/tests/compute/requests/aws/volume_tests.rb +37 -21
- data/tests/compute/requests/bluebox/block_tests.rb +15 -15
- data/tests/compute/requests/bluebox/helper.rb +1 -1
- data/tests/compute/requests/bluebox/product_tests.rb +5 -5
- data/tests/compute/requests/bluebox/template_tests.rb +6 -6
- data/tests/compute/requests/brightbox/account_tests.rb +7 -7
- data/tests/compute/requests/brightbox/api_client_tests.rb +8 -8
- data/tests/compute/requests/brightbox/cloud_ip_tests.rb +11 -11
- data/tests/compute/requests/brightbox/helper.rb +17 -8
- data/tests/compute/requests/brightbox/image_tests.rb +9 -9
- data/tests/compute/requests/brightbox/interface_tests.rb +1 -1
- data/tests/compute/requests/brightbox/load_balancer_tests.rb +10 -10
- data/tests/compute/requests/brightbox/server_tests.rb +13 -13
- data/tests/compute/requests/brightbox/server_type_tests.rb +5 -5
- data/tests/compute/requests/brightbox/user_tests.rb +6 -6
- data/tests/compute/requests/brightbox/zone_tests.rb +5 -5
- data/tests/compute/requests/linode/datacenter_tests.rb +2 -2
- data/tests/compute/requests/linode/distribution_tests.rb +3 -3
- data/tests/compute/requests/linode/kernel_tests.rb +3 -3
- data/tests/compute/requests/linode/linode_tests.rb +18 -18
- data/tests/compute/requests/linode/linodeplans_tests.rb +3 -3
- data/tests/compute/requests/linode/stackscripts_tests.rb +4 -3
- data/tests/compute/requests/ninefold/address_tests.rb +42 -0
- data/tests/compute/requests/ninefold/async_job_tests.rb +33 -0
- data/tests/compute/requests/ninefold/helper.rb +320 -0
- data/tests/compute/requests/ninefold/list_tests.rb +56 -0
- data/tests/compute/requests/ninefold/nat_tests.rb +92 -0
- data/tests/compute/requests/ninefold/network_tests.rb +21 -0
- data/tests/compute/requests/ninefold/template_tests.rb +21 -0
- data/tests/compute/requests/ninefold/virtual_machine_tests.rb +69 -0
- data/tests/compute/requests/rackspace/address_tests.rb +11 -11
- data/tests/compute/requests/rackspace/flavor_tests.rb +6 -6
- data/tests/compute/requests/rackspace/image_tests.rb +12 -12
- data/tests/compute/requests/rackspace/resize_tests.rb +7 -7
- data/tests/compute/requests/rackspace/server_tests.rb +22 -22
- data/tests/compute/requests/slicehost/backup_tests.rb +2 -2
- data/tests/compute/requests/slicehost/flavor_tests.rb +4 -4
- data/tests/compute/requests/slicehost/image_tests.rb +4 -4
- data/tests/compute/requests/slicehost/slice_tests.rb +12 -12
- data/tests/compute/requests/storm_on_demand/server_tests.rb +7 -7
- data/tests/compute/requests/voxel/image_tests.rb +5 -5
- data/tests/compute/requests/voxel/server_tests.rb +12 -12
- data/tests/dns/helper.rb +11 -8
- data/tests/dns/models/record_tests.rb +8 -5
- data/tests/dns/models/records_tests.rb +8 -5
- data/tests/dns/models/zone_tests.rb +5 -2
- data/tests/dns/models/zones_tests.rb +5 -2
- data/tests/dns/requests/aws/dns_tests.rb +15 -15
- data/tests/dns/requests/bluebox/dns_tests.rb +16 -16
- data/tests/dns/requests/dnsimple/dns_tests.rb +10 -10
- data/tests/dns/requests/dnsmadeeasy/dns_tests.rb +150 -0
- data/tests/dns/requests/linode/dns_tests.rb +16 -16
- data/tests/dns/requests/slicehost/dns_tests.rb +16 -16
- data/tests/dns/requests/zerigo/dns_tests.rb +31 -32
- data/tests/helper.rb +1 -1
- data/tests/helpers/collection_helper.rb +1 -1
- data/tests/helpers/mock_helper.rb +4 -0
- data/tests/helpers/model_helper.rb +12 -0
- data/tests/storage/helper.rb +4 -4
- data/tests/storage/models/directories_tests.rb +2 -2
- data/tests/storage/models/directory_test.rb +2 -2
- data/tests/storage/models/file_tests.rb +2 -2
- data/tests/storage/models/files_tests.rb +2 -2
- data/tests/storage/requests/aws/bucket_tests.rb +18 -18
- data/tests/storage/requests/aws/multipart_upload_tests.rb +11 -11
- data/tests/storage/requests/aws/object_tests.rb +16 -16
- data/tests/storage/requests/google/bucket_tests.rb +10 -10
- data/tests/storage/requests/google/object_tests.rb +17 -17
- data/tests/storage/requests/rackspace/container_tests.rb +13 -13
- data/tests/storage/requests/rackspace/object_tests.rb +19 -19
- metadata +184 -64
- data/tests/aws/requests/rds/model_tests.rb +0 -98
@@ -1,10 +1,9 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class Rackspace < Fog::Service
|
4
4
|
|
5
5
|
requires :rackspace_api_key, :rackspace_username
|
6
6
|
recognizes :rackspace_auth_url, :rackspace_servicenet, :rackspace_cdn_ssl, :persistent
|
7
|
-
recognizes :provider # remove post deprecation
|
8
7
|
|
9
8
|
model_path 'fog/storage/models/rackspace'
|
10
9
|
model :directory
|
@@ -50,13 +49,6 @@ module Fog
|
|
50
49
|
end
|
51
50
|
|
52
51
|
def initialize(options={})
|
53
|
-
unless options.delete(:provider)
|
54
|
-
location = caller.first
|
55
|
-
warning = "[yellow][WARN] Fog::Rackspace::Storage.new is deprecated, use Fog::Storage.new(:provider => 'Rackspace') instead[/]"
|
56
|
-
warning << " [light_black](" << location << ")[/] "
|
57
|
-
Formatador.display_line(warning)
|
58
|
-
end
|
59
|
-
|
60
52
|
require 'mime/types'
|
61
53
|
@rackspace_api_key = options[:rackspace_api_key]
|
62
54
|
@rackspace_username = options[:rackspace_username]
|
@@ -77,13 +69,6 @@ module Fog
|
|
77
69
|
attr_reader :rackspace_cdn_ssl
|
78
70
|
|
79
71
|
def initialize(options={})
|
80
|
-
unless options.delete(:provider)
|
81
|
-
location = caller.first
|
82
|
-
warning = "[yellow][WARN] Fog::Rackspace::Storage.new is deprecated, use Fog::Storage.new(:provider => 'Rackspace') instead[/]"
|
83
|
-
warning << " [light_black](" << location << ")[/] "
|
84
|
-
Formatador.display_line(warning)
|
85
|
-
end
|
86
|
-
|
87
72
|
require 'mime/types'
|
88
73
|
require 'json'
|
89
74
|
@rackspace_api_key = options[:rackspace_api_key]
|
@@ -102,7 +87,7 @@ module Fog
|
|
102
87
|
end
|
103
88
|
|
104
89
|
def reload
|
105
|
-
@
|
90
|
+
@connection.reset
|
106
91
|
end
|
107
92
|
|
108
93
|
def request(params, parse_json = true, &block)
|
@@ -118,7 +103,7 @@ module Fog
|
|
118
103
|
rescue Excon::Errors::HTTPStatusError => error
|
119
104
|
raise case error
|
120
105
|
when Excon::Errors::NotFound
|
121
|
-
Fog::Rackspace::
|
106
|
+
Fog::Storage::Rackspace::NotFound.slurp(error)
|
122
107
|
else
|
123
108
|
error
|
124
109
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
require 'fog/storage/parsers/aws/complete_multipart_upload'
|
@@ -40,7 +40,7 @@ module Fog
|
|
40
40
|
:headers => { 'Content-Length' => data.length },
|
41
41
|
:host => "#{bucket_name}.#{@host}",
|
42
42
|
:method => 'POST',
|
43
|
-
:parser => Fog::Parsers::AWS::
|
43
|
+
:parser => Fog::Parsers::Storage::AWS::CompleteMultipartUpload.new,
|
44
44
|
:path => CGI.escape(object_name),
|
45
45
|
:query => {'uploadId' => upload_id}
|
46
46
|
})
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
require 'fog/storage/parsers/aws/copy_object'
|
@@ -36,7 +36,7 @@ module Fog
|
|
36
36
|
:headers => headers,
|
37
37
|
:host => "#{target_bucket_name}.#{@host}",
|
38
38
|
:method => 'PUT',
|
39
|
-
:parser => Fog::Parsers::AWS::
|
39
|
+
:parser => Fog::Parsers::Storage::AWS::CopyObject.new,
|
40
40
|
:path => CGI.escape(target_object_name)
|
41
41
|
})
|
42
42
|
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module Fog
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
|
+
class Real
|
5
|
+
|
6
|
+
# Delete policy for a bucket
|
7
|
+
#
|
8
|
+
# ==== Parameters
|
9
|
+
# * bucket_name<~String> - name of bucket to delete policy from
|
10
|
+
#
|
11
|
+
# ==== Returns
|
12
|
+
# * response<~Excon::Response>:
|
13
|
+
# * status<~Integer> - 204
|
14
|
+
#
|
15
|
+
# ==== See Also
|
16
|
+
# http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEpolicy.html
|
17
|
+
|
18
|
+
def delete_bucket_policy(bucket_name)
|
19
|
+
request({
|
20
|
+
:expects => 204,
|
21
|
+
:headers => {},
|
22
|
+
:host => "#{bucket_name}.#{@host}",
|
23
|
+
:method => 'DELETE',
|
24
|
+
:query => {'policy' => nil}
|
25
|
+
})
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
# Delete an object from S3
|
@@ -16,10 +16,11 @@ module Fog
|
|
16
16
|
# ==== See Also
|
17
17
|
# http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectDELETE.html
|
18
18
|
|
19
|
-
def delete_object(bucket_name, object_name)
|
19
|
+
def delete_object(bucket_name, object_name, options = {})
|
20
|
+
headers = options
|
20
21
|
request({
|
21
22
|
:expects => 204,
|
22
|
-
:headers =>
|
23
|
+
:headers => headers,
|
23
24
|
:host => "#{bucket_name}.#{@host}",
|
24
25
|
:idempotent => true,
|
25
26
|
:method => 'DELETE',
|
@@ -31,7 +32,7 @@ module Fog
|
|
31
32
|
|
32
33
|
class Mock # :nodoc:all
|
33
34
|
|
34
|
-
def delete_object(bucket_name, object_name)
|
35
|
+
def delete_object(bucket_name, object_name, options = {})
|
35
36
|
response = Excon::Response.new
|
36
37
|
if bucket = self.data[:buckets][bucket_name]
|
37
38
|
response.status = 204
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
require 'fog/storage/parsers/aws/get_bucket'
|
@@ -50,7 +50,7 @@ module Fog
|
|
50
50
|
:host => "#{bucket_name}.#{@host}",
|
51
51
|
:idempotent => true,
|
52
52
|
:method => 'GET',
|
53
|
-
:parser => Fog::Parsers::AWS::
|
53
|
+
:parser => Fog::Parsers::Storage::AWS::GetBucket.new,
|
54
54
|
:query => options
|
55
55
|
})
|
56
56
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
require 'fog/storage/parsers/aws/access_control_list'
|
@@ -39,7 +39,7 @@ module Fog
|
|
39
39
|
:host => "#{bucket_name}.#{@host}",
|
40
40
|
:idempotent => true,
|
41
41
|
:method => 'GET',
|
42
|
-
:parser => Fog::Parsers::AWS::
|
42
|
+
:parser => Fog::Parsers::Storage::AWS::AccessControlList.new,
|
43
43
|
:query => {'acl' => nil}
|
44
44
|
})
|
45
45
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
require 'fog/storage/parsers/aws/get_bucket_location'
|
@@ -25,7 +25,7 @@ module Fog
|
|
25
25
|
:host => "#{bucket_name}.#{@host}",
|
26
26
|
:idempotent => true,
|
27
27
|
:method => 'GET',
|
28
|
-
:parser => Fog::Parsers::AWS::
|
28
|
+
:parser => Fog::Parsers::Storage::AWS::GetBucketLocation.new,
|
29
29
|
:query => {'location' => nil}
|
30
30
|
})
|
31
31
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
require 'fog/storage/parsers/aws/get_bucket_logging'
|
@@ -39,7 +39,7 @@ module Fog
|
|
39
39
|
:host => "#{bucket_name}.#{@host}",
|
40
40
|
:idempotent => true,
|
41
41
|
:method => 'GET',
|
42
|
-
:parser => Fog::Parsers::AWS::
|
42
|
+
:parser => Fog::Parsers::Storage::AWS::GetBucketLogging.new,
|
43
43
|
:query => {'logging' => nil}
|
44
44
|
})
|
45
45
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
require 'fog/storage/parsers/aws/get_bucket_object_versions'
|
@@ -64,7 +64,7 @@ module Fog
|
|
64
64
|
:host => "#{bucket_name}.#{@host}",
|
65
65
|
:idempotent => true,
|
66
66
|
:method => 'GET',
|
67
|
-
:parser => Fog::Parsers::AWS::
|
67
|
+
:parser => Fog::Parsers::Storage::AWS::GetBucketObjectVersions.new,
|
68
68
|
:query => {'versions' => nil}.merge!(options)
|
69
69
|
})
|
70
70
|
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
module Fog
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
|
+
class Real
|
5
|
+
|
6
|
+
# Get bucket policy for an S3 bucket
|
7
|
+
#
|
8
|
+
# ==== Parameters
|
9
|
+
# * bucket_name<~String> - name of bucket to get policy for
|
10
|
+
#
|
11
|
+
# ==== Returns
|
12
|
+
# * response<~Excon::Response>:
|
13
|
+
# * body<~Hash> - policy document
|
14
|
+
#
|
15
|
+
# ==== See Also
|
16
|
+
# http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketGETpolicy.html
|
17
|
+
|
18
|
+
def get_bucket_policy(bucket_name)
|
19
|
+
unless bucket_name
|
20
|
+
raise ArgumentError.new('bucket_name is required')
|
21
|
+
end
|
22
|
+
response = request({
|
23
|
+
:expects => 200,
|
24
|
+
:headers => {},
|
25
|
+
:host => "#{bucket_name}.#{@host}",
|
26
|
+
:idempotent => true,
|
27
|
+
:method => 'GET',
|
28
|
+
:query => {'policy' => nil}
|
29
|
+
})
|
30
|
+
response.body = JSON.parse(response.body) unless response.body.nil?
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
require 'fog/storage/parsers/aws/get_bucket_versioning'
|
@@ -29,7 +29,7 @@ module Fog
|
|
29
29
|
:host => "#{bucket_name}.#{@host}",
|
30
30
|
:idempotent => true,
|
31
31
|
:method => 'GET',
|
32
|
-
:parser => Fog::Parsers::AWS::
|
32
|
+
:parser => Fog::Parsers::Storage::AWS::GetBucketVersioning.new,
|
33
33
|
:query => {'versioning' => nil}
|
34
34
|
})
|
35
35
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
require 'fog/storage/parsers/aws/get_bucket_website'
|
@@ -31,7 +31,7 @@ module Fog
|
|
31
31
|
:host => "#{bucket_name}.#{@host}",
|
32
32
|
:idempotent => true,
|
33
33
|
:method => 'GET',
|
34
|
-
:parser => Fog::Parsers::AWS::
|
34
|
+
:parser => Fog::Parsers::Storage::AWS::GetBucketWebsite.new,
|
35
35
|
:query => {'website' => nil}
|
36
36
|
})
|
37
37
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fog
|
2
|
-
module
|
3
|
-
class
|
2
|
+
module Storage
|
3
|
+
class AWS
|
4
4
|
class Real
|
5
5
|
|
6
6
|
# Get an object from S3
|
@@ -65,37 +65,44 @@ module Fog
|
|
65
65
|
raise ArgumentError.new('object_name is required')
|
66
66
|
end
|
67
67
|
response = Excon::Response.new
|
68
|
-
if (bucket = self.data[:buckets][bucket_name])
|
69
|
-
if
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
response.status = 200
|
79
|
-
for key, value in object
|
80
|
-
case key
|
81
|
-
when 'Cache-Control', 'Content-Disposition', 'Content-Encoding', 'Content-Length', 'Content-MD5', 'Content-Type', 'ETag', 'Expires', 'Last-Modified', /^x-amz-meta-/
|
82
|
-
response.headers[key] = value
|
83
|
-
end
|
84
|
-
end
|
85
|
-
unless block_given?
|
86
|
-
response.body = object[:body]
|
68
|
+
if (bucket = self.data[:buckets][bucket_name])
|
69
|
+
if (object = bucket[:objects][object_name])
|
70
|
+
if options['If-Match'] && options['If-Match'] != object['ETag']
|
71
|
+
response.status = 412
|
72
|
+
elsif options['If-Modified-Since'] && options['If-Modified-Since'] > Time.parse(object['Last-Modified'])
|
73
|
+
response.status = 304
|
74
|
+
elsif options['If-None-Match'] && options['If-None-Match'] == object['ETag']
|
75
|
+
response.status = 304
|
76
|
+
elsif options['If-Unmodified-Since'] && options['If-Unmodified-Since'] < Time.parse(object['Last-Modified'])
|
77
|
+
response.status = 412
|
87
78
|
else
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
79
|
+
response.status = 200
|
80
|
+
for key, value in object
|
81
|
+
case key
|
82
|
+
when 'Cache-Control', 'Content-Disposition', 'Content-Encoding', 'Content-Length', 'Content-MD5', 'Content-Type', 'ETag', 'Expires', 'Last-Modified', /^x-amz-meta-/
|
83
|
+
response.headers[key] = value
|
84
|
+
end
|
85
|
+
end
|
86
|
+
unless block_given?
|
87
|
+
response.body = object[:body]
|
88
|
+
else
|
89
|
+
data = StringIO.new(object[:body])
|
90
|
+
remaining = data.length
|
91
|
+
while remaining > 0
|
92
|
+
chunk = data.read([remaining, Excon::CHUNK_SIZE].min)
|
93
|
+
block.call(chunk)
|
94
|
+
remaining -= Excon::CHUNK_SIZE
|
95
|
+
end
|
94
96
|
end
|
95
97
|
end
|
98
|
+
else
|
99
|
+
response.status = 404
|
100
|
+
response.body = "...<Code>NoSuchKey<\/Code>..."
|
101
|
+
raise(Excon::Errors.status_error({:expects => 200}, response))
|
96
102
|
end
|
97
103
|
else
|
98
104
|
response.status = 404
|
105
|
+
response.body = "...<Code>NoSuchBucket</Code>..."
|
99
106
|
raise(Excon::Errors.status_error({:expects => 200}, response))
|
100
107
|
end
|
101
108
|
response
|