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
@@ -2,14 +2,14 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/dns/models/dnsimple/record'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module DNS
|
6
|
+
class DNSimple
|
7
7
|
|
8
8
|
class Records < Fog::Collection
|
9
9
|
|
10
10
|
attribute :zone
|
11
11
|
|
12
|
-
model Fog::DNSimple::
|
12
|
+
model Fog::DNS::DNSimple::Record
|
13
13
|
|
14
14
|
def all
|
15
15
|
requires :zone
|
@@ -2,8 +2,8 @@ require 'fog/core/model'
|
|
2
2
|
require 'fog/dns/models/dnsimple/records'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module DNS
|
6
|
+
class DNSimple
|
7
7
|
|
8
8
|
class Zone < Fog::Model
|
9
9
|
|
@@ -20,11 +20,11 @@ module Fog
|
|
20
20
|
|
21
21
|
def records
|
22
22
|
@records ||= begin
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
23
|
+
Fog::DNS::DNSimple::Records.new(
|
24
|
+
:zone => self,
|
25
|
+
:connection => connection
|
26
|
+
)
|
27
|
+
end
|
28
28
|
end
|
29
29
|
|
30
30
|
def nameservers
|
@@ -2,12 +2,12 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/dns/models/dnsimple/zone'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module DNS
|
6
|
+
class DNSimple
|
7
7
|
|
8
8
|
class Zones < Fog::Collection
|
9
9
|
|
10
|
-
model Fog::DNSimple::
|
10
|
+
model Fog::DNS::DNSimple::Zone
|
11
11
|
|
12
12
|
def all
|
13
13
|
clear
|
@@ -0,0 +1,79 @@
|
|
1
|
+
require 'fog/core/model'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module DNS
|
5
|
+
class DNSMadeEasy
|
6
|
+
|
7
|
+
class Record < Fog::Model
|
8
|
+
extend Fog::Deprecation
|
9
|
+
deprecate :ip, :value
|
10
|
+
deprecate :ip=, :value=
|
11
|
+
|
12
|
+
identity :id
|
13
|
+
|
14
|
+
attribute :name
|
15
|
+
attribute :type
|
16
|
+
attribute :ttl
|
17
|
+
attribute :gtd_location, :aliases => "gtdLocation"
|
18
|
+
attribute :password
|
19
|
+
attribute :description
|
20
|
+
attribute :keywords
|
21
|
+
attribute :title
|
22
|
+
attribute :redirect_type, :aliases => "redirectType"
|
23
|
+
attribute :hard_link, :aliases => "hardLink"
|
24
|
+
|
25
|
+
attribute :value, :aliases => "data"
|
26
|
+
|
27
|
+
def initialize(attributes={})
|
28
|
+
self.ttl ||= 1800
|
29
|
+
super
|
30
|
+
end
|
31
|
+
|
32
|
+
def destroy
|
33
|
+
connection.delete_record(zone.domain, identity)
|
34
|
+
true
|
35
|
+
end
|
36
|
+
|
37
|
+
def zone
|
38
|
+
@zone
|
39
|
+
end
|
40
|
+
|
41
|
+
def save
|
42
|
+
requires :name, :type, :value, :ttl
|
43
|
+
options = {}
|
44
|
+
options[:ttl] = ttl if ttl
|
45
|
+
options[:gtdLocation] = gtd_location if gtd_location
|
46
|
+
|
47
|
+
if type.upcase == 'A'
|
48
|
+
options[:password] = password if password
|
49
|
+
end
|
50
|
+
|
51
|
+
if type.upcase == 'HTTPRED'
|
52
|
+
options[:description] = description if description
|
53
|
+
options[:keywords] = keywords if keywords
|
54
|
+
options[:title] = title if title
|
55
|
+
options[:redirectType] = redirect_type if redirect_type
|
56
|
+
options[:hardLink] = hard_link if hard_link
|
57
|
+
end
|
58
|
+
|
59
|
+
if id.nil?
|
60
|
+
data = connection.create_record(zone.domain, name, type, value, options).body
|
61
|
+
else
|
62
|
+
data = connection.update_record(zone.domain, id, options).body
|
63
|
+
end
|
64
|
+
|
65
|
+
merge_attributes(data)
|
66
|
+
true
|
67
|
+
end
|
68
|
+
|
69
|
+
private
|
70
|
+
|
71
|
+
def zone=(new_zone)
|
72
|
+
@zone = new_zone
|
73
|
+
end
|
74
|
+
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'fog/core/collection'
|
2
|
+
require 'fog/dns/models/dnsmadeeasy/record'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module DNS
|
6
|
+
class DNSMadeEasy
|
7
|
+
|
8
|
+
class Records < Fog::Collection
|
9
|
+
|
10
|
+
attribute :zone
|
11
|
+
|
12
|
+
model Fog::DNS::DNSMadeEasy::Record
|
13
|
+
|
14
|
+
def all
|
15
|
+
requires :zone
|
16
|
+
data = connection.list_records(zone.identity).body
|
17
|
+
load(data)
|
18
|
+
end
|
19
|
+
|
20
|
+
def get(record_id)
|
21
|
+
data = connection.get_record(zone.identity, record_id).body
|
22
|
+
new(data)
|
23
|
+
rescue Fog::Service::NotFound
|
24
|
+
nil
|
25
|
+
end
|
26
|
+
|
27
|
+
def new(attributes = {})
|
28
|
+
requires :zone
|
29
|
+
super({ :zone => zone }.merge!(attributes))
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
require 'fog/core/model'
|
2
|
+
require 'fog/dns/models/dnsmadeeasy/records'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module DNS
|
6
|
+
class DNSMadeEasy
|
7
|
+
|
8
|
+
class Zone < Fog::Model
|
9
|
+
|
10
|
+
identity :id
|
11
|
+
attribute :domain, :aliases => 'name'
|
12
|
+
attribute :gtd_enabled, :aliases => 'gtdEnabled'
|
13
|
+
attribute :nameservers, :aliases => 'nameServer'
|
14
|
+
|
15
|
+
def destroy
|
16
|
+
requires :identity
|
17
|
+
connection.delete_domain(identity)
|
18
|
+
true
|
19
|
+
end
|
20
|
+
|
21
|
+
def records
|
22
|
+
@records ||= begin
|
23
|
+
Fog::DNS::DNSMadeEasy::Records.new(
|
24
|
+
:zone => self,
|
25
|
+
:connection => connection
|
26
|
+
)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def save
|
31
|
+
requires :domain
|
32
|
+
data = connection.create_domain(domain).body
|
33
|
+
self.identity = data['name']
|
34
|
+
merge_attributes(data)
|
35
|
+
true
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'fog/core/collection'
|
2
|
+
require 'fog/dns/models/dnsmadeeasy/zone'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module DNS
|
6
|
+
class DNSMadeEasy
|
7
|
+
|
8
|
+
class Zones < Fog::Collection
|
9
|
+
|
10
|
+
model Fog::DNS::DNSMadeEasy::Zone
|
11
|
+
|
12
|
+
def all
|
13
|
+
clear
|
14
|
+
data = connection.list_domains.body['list'].collect{|domain| {:id => domain}}
|
15
|
+
load(data)
|
16
|
+
end
|
17
|
+
|
18
|
+
def get(zone_id)
|
19
|
+
data = connection.get_domain(zone_id).body
|
20
|
+
data.merge!(:id => data['name'])
|
21
|
+
new(data)
|
22
|
+
rescue Fog::Service::NotFound
|
23
|
+
nil
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -1,14 +1,17 @@
|
|
1
1
|
require 'fog/core/model'
|
2
2
|
|
3
3
|
module Fog
|
4
|
-
module
|
5
|
-
class
|
4
|
+
module DNS
|
5
|
+
class Linode
|
6
6
|
|
7
7
|
class Record < Fog::Model
|
8
|
+
extend Fog::Deprecation
|
9
|
+
deprecate :ip, :value
|
10
|
+
deprecate :ip=, :value=
|
8
11
|
|
9
12
|
identity :id, :aliases => ['ResourceID', 'RESOURCEID']
|
10
13
|
|
11
|
-
attribute :
|
14
|
+
attribute :value, :aliases => 'TARGET'
|
12
15
|
attribute :name, :aliases => 'NAME'
|
13
16
|
attribute :priority, :aliases => 'PRIORITY'
|
14
17
|
attribute :ttl, :aliases => 'TTL_SEC'
|
@@ -44,7 +47,7 @@ module Fog
|
|
44
47
|
# types. default: udp
|
45
48
|
options[:name] = name if name
|
46
49
|
options[:priority] = priority if priority
|
47
|
-
options[:target] =
|
50
|
+
options[:target] = value if value
|
48
51
|
options[:ttl_sec] = ttl if ttl
|
49
52
|
response = unless identity
|
50
53
|
connection.domain_resource_create(zone.identity, type, options)
|
@@ -2,14 +2,14 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/dns/models/linode/record'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module DNS
|
6
|
+
class Linode
|
7
7
|
|
8
8
|
class Records < Fog::Collection
|
9
9
|
|
10
10
|
attribute :zone
|
11
11
|
|
12
|
-
model Fog::Linode::
|
12
|
+
model Fog::DNS::Linode::Record
|
13
13
|
|
14
14
|
def all
|
15
15
|
requires :zone
|
@@ -2,8 +2,8 @@ require 'fog/core/model'
|
|
2
2
|
require 'fog/dns/models/linode/records'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module DNS
|
6
|
+
class Linode
|
7
7
|
|
8
8
|
class Zone < Fog::Model
|
9
9
|
|
@@ -36,7 +36,7 @@ module Fog
|
|
36
36
|
|
37
37
|
def records
|
38
38
|
@records ||= begin
|
39
|
-
Fog::Linode::
|
39
|
+
Fog::DNS::Linode::Records.new(
|
40
40
|
:zone => self,
|
41
41
|
:connection => connection
|
42
42
|
)
|
@@ -2,12 +2,12 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/dns/models/linode/zone'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module DNS
|
6
|
+
class Linode
|
7
7
|
|
8
8
|
class Zones < Fog::Collection
|
9
9
|
|
10
|
-
model Fog::Linode::
|
10
|
+
model Fog::DNS::Linode::Zone
|
11
11
|
|
12
12
|
def all
|
13
13
|
data = connection.domain_list.body['DATA']
|
@@ -1,15 +1,18 @@
|
|
1
1
|
require 'fog/core/model'
|
2
2
|
|
3
3
|
module Fog
|
4
|
-
module
|
5
|
-
class
|
4
|
+
module DNS
|
5
|
+
class Slicehost
|
6
6
|
|
7
7
|
class Record < Fog::Model
|
8
|
+
extend Fog::Deprecation
|
9
|
+
deprecate :ip, :value
|
10
|
+
deprecate :ip=, :value=
|
8
11
|
|
9
12
|
identity :id
|
10
13
|
|
11
14
|
attribute :active
|
12
|
-
attribute :
|
15
|
+
attribute :value, :aliases => 'ip'
|
13
16
|
attribute :name
|
14
17
|
attribute :description, :aliases => 'aux'
|
15
18
|
attribute :ttl
|
@@ -43,12 +46,12 @@ module Fog
|
|
43
46
|
|
44
47
|
def save
|
45
48
|
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if identity
|
46
|
-
requires :
|
49
|
+
requires :name, :type, :value, :zone
|
47
50
|
options = {}
|
48
51
|
options[:active] = active ? 'Y' : 'N'
|
49
52
|
options[:aux] = description if description
|
50
53
|
options[:ttl] = ttl if ttl
|
51
|
-
data = connection.create_record(type, zone.id, name,
|
54
|
+
data = connection.create_record(type, zone.id, name, value, options)
|
52
55
|
merge_attributes(data.body)
|
53
56
|
true
|
54
57
|
end
|
@@ -2,14 +2,14 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/dns/models/slicehost/record'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module DNS
|
6
|
+
class Slicehost
|
7
7
|
|
8
8
|
class Records < Fog::Collection
|
9
9
|
|
10
10
|
attribute :zone
|
11
11
|
|
12
|
-
model Fog::Slicehost::
|
12
|
+
model Fog::DNS::Slicehost::Record
|
13
13
|
|
14
14
|
def all
|
15
15
|
requires :zone
|
@@ -2,8 +2,8 @@ require 'fog/core/model'
|
|
2
2
|
require 'fog/dns/models/slicehost/records'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module DNS
|
6
|
+
class Slicehost
|
7
7
|
|
8
8
|
class Zone < Fog::Model
|
9
9
|
|
@@ -36,7 +36,7 @@ module Fog
|
|
36
36
|
|
37
37
|
def records
|
38
38
|
@records ||= begin
|
39
|
-
Fog::Slicehost::
|
39
|
+
Fog::DNS::Slicehost::Records.new(
|
40
40
|
:zone => self,
|
41
41
|
:connection => connection
|
42
42
|
)
|
@@ -2,12 +2,12 @@ require 'fog/core/collection'
|
|
2
2
|
require 'fog/dns/models/slicehost/zone'
|
3
3
|
|
4
4
|
module Fog
|
5
|
-
module
|
6
|
-
class
|
5
|
+
module DNS
|
6
|
+
class Slicehost
|
7
7
|
|
8
8
|
class Zones < Fog::Collection
|
9
9
|
|
10
|
-
model Fog::Slicehost::
|
10
|
+
model Fog::DNS::Slicehost::Zone
|
11
11
|
|
12
12
|
def all
|
13
13
|
data = connection.get_zones.body['zones']
|
@@ -1,15 +1,18 @@
|
|
1
1
|
require 'fog/core/model'
|
2
2
|
|
3
3
|
module Fog
|
4
|
-
module
|
5
|
-
class
|
4
|
+
module DNS
|
5
|
+
class Zerigo
|
6
6
|
|
7
7
|
class Record < Fog::Model
|
8
|
+
extend Fog::Deprecation
|
9
|
+
deprecate :ip, :value
|
10
|
+
deprecate :ip=, :value=
|
8
11
|
|
9
12
|
identity :id
|
10
13
|
|
11
14
|
attribute :created_at, :aliases => 'created-at'
|
12
|
-
attribute :
|
15
|
+
attribute :value, :aliases => 'data'
|
13
16
|
attribute :domain, :aliases => 'fqdn'
|
14
17
|
attribute :name, :aliases => 'hostname'
|
15
18
|
attribute :description, :aliases => 'notes'
|
@@ -35,14 +38,14 @@ module Fog
|
|
35
38
|
end
|
36
39
|
|
37
40
|
def save
|
38
|
-
requires :zone, :type, :
|
41
|
+
requires :zone, :type, :value
|
39
42
|
options = {}
|
40
43
|
options[:hostname] = name if name
|
41
44
|
options[:notes] = description if description
|
42
45
|
options[:priority] = priority if priority
|
43
46
|
options[:ttl] = ttl if ttl
|
44
47
|
data = unless identity
|
45
|
-
connection.create_host(@zone.id, type,
|
48
|
+
connection.create_host(@zone.id, type, value, options)
|
46
49
|
else
|
47
50
|
options[:host_type] = type
|
48
51
|
options[:data] = data
|