fog 1.11.1 → 1.12.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -2
- data/Rakefile +5 -0
- data/changelog.txt +192 -0
- data/fog.gemspec +4 -4
- data/lib/fog.rb +3 -0
- data/lib/fog/account.rb +25 -0
- data/lib/fog/aws/cloud_formation.rb +5 -3
- data/lib/fog/aws/compute.rb +1 -0
- data/lib/fog/aws/iam.rb +2 -0
- data/lib/fog/aws/models/compute/server.rb +38 -32
- data/lib/fog/aws/models/dns/record.rb +1 -1
- data/lib/fog/aws/models/iam/role.rb +36 -0
- data/lib/fog/aws/models/iam/roles.rb +40 -0
- data/lib/fog/aws/models/rds/snapshots.rb +19 -3
- data/lib/fog/aws/models/storage/file.rb +1 -1
- data/lib/fog/aws/models/storage/files.rb +1 -1
- data/lib/fog/aws/parsers/cloud_formation/list_stack_resources.rb +32 -0
- data/lib/fog/aws/parsers/cloud_formation/list_stacks.rb +34 -0
- data/lib/fog/aws/parsers/compute/copy_image.rb +22 -0
- data/lib/fog/aws/parsers/compute/describe_instances.rb +11 -4
- data/lib/fog/aws/parsers/compute/run_instances.rb +5 -4
- data/lib/fog/aws/parsers/dns/get_hosted_zone.rb +2 -0
- data/lib/fog/aws/rds.rb +1 -1
- data/lib/fog/aws/requests/cloud_formation/list_stack_resources.rb +36 -0
- data/lib/fog/aws/requests/cloud_formation/list_stacks.rb +37 -0
- data/lib/fog/aws/requests/compute/copy_image.rb +63 -0
- data/lib/fog/aws/requests/compute/describe_instances.rb +1 -1
- data/lib/fog/aws/requests/compute/run_instances.rb +3 -1
- data/lib/fog/aws/requests/storage/post_object_restore.rb +54 -0
- data/lib/fog/aws/storage.rb +5 -5
- data/lib/fog/billing.rb +23 -0
- data/lib/fog/bin.rb +2 -0
- data/lib/fog/bin/cloudsigma.rb +29 -0
- data/lib/fog/bin/openvz.rb +31 -0
- data/lib/fog/bluebox/models/dns/zone.rb +1 -1
- data/lib/fog/brightbox/compute.rb +15 -9
- data/lib/fog/brightbox/oauth2.rb +5 -3
- data/lib/fog/brightbox/requests/compute/activate_console_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/add_servers_server_group.rb +11 -3
- data/lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_api_client.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_application.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_cloud_ip.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_firewall_policy.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_firewall_rule.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_image.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_server.rb +2 -1
- data/lib/fog/brightbox/requests/compute/create_server_group.rb +2 -1
- data/lib/fog/brightbox/requests/compute/{destroy_api_client.rb → delete_api_client.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_application.rb → delete_application.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_cloud_ip.rb → delete_cloud_ip.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_firewall_policy.rb → delete_firewall_policy.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_firewall_rule.rb → delete_firewall_rule.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_image.rb → delete_image.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_load_balancer.rb → delete_load_balancer.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_server.rb → delete_server.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/{destroy_server_group.rb → delete_server_group.rb} +10 -3
- data/lib/fog/brightbox/requests/compute/get_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_api_client.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_firewall_rule.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_image.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_interface.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_server_type.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_user.rb +1 -1
- data/lib/fog/brightbox/requests/compute/get_zone.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_accounts.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_api_clients.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_applications.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_cloud_ips.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_firewall_policies.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_images.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_load_balancers.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_server_groups.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_server_types.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_servers.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_users.rb +1 -1
- data/lib/fog/brightbox/requests/compute/list_zones.rb +1 -1
- data/lib/fog/brightbox/requests/compute/map_cloud_ip.rb +2 -1
- data/lib/fog/brightbox/requests/compute/move_servers_server_group.rb +12 -3
- data/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb +2 -1
- data/lib/fog/brightbox/requests/compute/remove_listeners_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/remove_nodes_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/remove_servers_server_group.rb +11 -3
- data/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb +2 -2
- data/lib/fog/brightbox/requests/compute/reset_secret_api_client.rb +1 -2
- data/lib/fog/brightbox/requests/compute/reset_secret_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/shutdown_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/snapshot_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/start_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/stop_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/unmap_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_account.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_api_client.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_application.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_cloud_ip.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_firewall_policy.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_firewall_rule.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_image.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_load_balancer.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_scoped_account.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_server.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_server_group.rb +2 -1
- data/lib/fog/brightbox/requests/compute/update_user.rb +2 -1
- data/lib/fog/cloudsigma.rb +9 -0
- data/lib/fog/cloudsigma/compute.rb +221 -0
- data/lib/fog/cloudsigma/connection.rb +197 -0
- data/lib/fog/cloudsigma/error.rb +45 -0
- data/lib/fog/cloudsigma/mock_data.rb +46 -0
- data/lib/fog/cloudsigma/models/balance.rb +12 -0
- data/lib/fog/cloudsigma/models/current_usage.rb +19 -0
- data/lib/fog/cloudsigma/models/ip.rb +22 -0
- data/lib/fog/cloudsigma/models/ipconf.rb +12 -0
- data/lib/fog/cloudsigma/models/ips.rb +27 -0
- data/lib/fog/cloudsigma/models/lib_volume.rb +50 -0
- data/lib/fog/cloudsigma/models/lib_volumes.rb +27 -0
- data/lib/fog/cloudsigma/models/mountpoint.rb +25 -0
- data/lib/fog/cloudsigma/models/nic.rb +22 -0
- data/lib/fog/cloudsigma/models/obj_ref.rb +12 -0
- data/lib/fog/cloudsigma/models/price_calculation.rb +13 -0
- data/lib/fog/cloudsigma/models/price_record.rb +38 -0
- data/lib/fog/cloudsigma/models/pricing.rb +20 -0
- data/lib/fog/cloudsigma/models/profile.rb +50 -0
- data/lib/fog/cloudsigma/models/server.rb +208 -0
- data/lib/fog/cloudsigma/models/servers.rb +27 -0
- data/lib/fog/cloudsigma/models/subscription.rb +53 -0
- data/lib/fog/cloudsigma/models/subscriptions.rb +41 -0
- data/lib/fog/cloudsigma/models/usage_record.rb +13 -0
- data/lib/fog/cloudsigma/models/vlan.rb +29 -0
- data/lib/fog/cloudsigma/models/vlans.rb +27 -0
- data/lib/fog/cloudsigma/models/volume.rb +71 -0
- data/lib/fog/cloudsigma/models/volumes.rb +27 -0
- data/lib/fog/cloudsigma/nested_model.rb +60 -0
- data/lib/fog/cloudsigma/requests/calculate_subscription_price.rb +18 -0
- data/lib/fog/cloudsigma/requests/clone_libvolume.rb +32 -0
- data/lib/fog/cloudsigma/requests/clone_server.rb +32 -0
- data/lib/fog/cloudsigma/requests/clone_volume.rb +32 -0
- data/lib/fog/cloudsigma/requests/close_vnc.rb +30 -0
- data/lib/fog/cloudsigma/requests/create_server.rb +33 -0
- data/lib/fog/cloudsigma/requests/create_subscription.rb +40 -0
- data/lib/fog/cloudsigma/requests/create_volume.rb +30 -0
- data/lib/fog/cloudsigma/requests/delete_server.rb +18 -0
- data/lib/fog/cloudsigma/requests/delete_volume.rb +18 -0
- data/lib/fog/cloudsigma/requests/extend_subscription.rb +22 -0
- data/lib/fog/cloudsigma/requests/get_balance.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_current_usage.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_ip.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_lib_volume.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_pricing.rb +28 -0
- data/lib/fog/cloudsigma/requests/get_profile.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_server.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_subscription.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_vlan.rb +18 -0
- data/lib/fog/cloudsigma/requests/get_volume.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_ips.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_lib_volumes.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_servers.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_subscriptions.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_vlans.rb +18 -0
- data/lib/fog/cloudsigma/requests/list_volumes.rb +18 -0
- data/lib/fog/cloudsigma/requests/open_vnc.rb +34 -0
- data/lib/fog/cloudsigma/requests/start_server.rb +32 -0
- data/lib/fog/cloudsigma/requests/stop_server.rb +33 -0
- data/lib/fog/cloudsigma/requests/update_profile.rb +18 -0
- data/lib/fog/cloudsigma/requests/update_server.rb +40 -0
- data/lib/fog/cloudsigma/requests/update_vlan.rb +20 -0
- data/lib/fog/cloudsigma/requests/update_volume.rb +18 -0
- data/lib/fog/cloudstack/models/compute/servers.rb +3 -2
- data/lib/fog/core/json.rb +6 -48
- data/lib/fog/dns.rb +10 -6
- data/lib/fog/dnsimple/models/dns/record.rb +0 -1
- data/lib/fog/dnsmadeeasy/models/dns/record.rb +1 -1
- data/lib/fog/dreamhost/dns.rb +3 -1
- data/lib/fog/dynect/models/dns/zone.rb +1 -1
- data/lib/fog/hp.rb +1 -1
- data/lib/fog/internet_archive/models/storage/file.rb +1 -1
- data/lib/fog/internet_archive/models/storage/files.rb +1 -1
- data/lib/fog/joyent/compute.rb +59 -42
- data/lib/fog/joyent/errors.rb +2 -2
- data/lib/fog/joyent/models/compute/network.rb +13 -0
- data/lib/fog/joyent/models/compute/networks.rb +15 -0
- data/lib/fog/joyent/models/compute/server.rb +2 -1
- data/lib/fog/joyent/models/compute/servers.rb +3 -1
- data/lib/fog/joyent/requests/compute/delete_machine.rb +1 -1
- data/lib/fog/joyent/requests/compute/get_machine.rb +1 -1
- data/lib/fog/joyent/requests/compute/list_machines.rb +2 -1
- data/lib/fog/joyent/requests/compute/list_networks.rb +26 -0
- data/lib/fog/joyent/requests/compute/resize_machine.rb +2 -1
- data/lib/fog/libvirt/models/compute/nic.rb +1 -0
- data/lib/fog/linode/models/dns/record.rb +0 -1
- data/lib/fog/linode/models/dns/zone.rb +0 -1
- data/lib/fog/local/models/storage/files.rb +13 -13
- data/lib/fog/monitoring.rb +24 -0
- data/lib/fog/network.rb +4 -1
- data/lib/fog/openstack/compute.rb +5 -0
- data/lib/fog/openstack/identity.rb +2 -1
- data/lib/fog/openstack/image.rb +4 -1
- data/lib/fog/openstack/models/image/images.rb +1 -0
- data/lib/fog/openstack/models/network/lb_health_monitor.rb +68 -0
- data/lib/fog/openstack/models/network/lb_health_monitors.rb +34 -0
- data/lib/fog/openstack/models/network/lb_member.rb +53 -0
- data/lib/fog/openstack/models/network/lb_members.rb +34 -0
- data/lib/fog/openstack/models/network/lb_pool.rb +78 -0
- data/lib/fog/openstack/models/network/lb_pools.rb +34 -0
- data/lib/fog/openstack/models/network/lb_vip.rb +59 -0
- data/lib/fog/openstack/models/network/lb_vips.rb +34 -0
- data/lib/fog/openstack/network.rb +52 -4
- data/lib/fog/openstack/requests/compute/add_flavor_access.rb +31 -0
- data/lib/fog/openstack/requests/compute/allocate_address.rb +1 -1
- data/lib/fog/openstack/requests/compute/attach_volume.rb +1 -1
- data/lib/fog/openstack/requests/compute/boot_from_snapshot.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_flavor.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_key_pair.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_security_group.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_security_group_rule.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_server.rb +4 -6
- data/lib/fog/openstack/requests/compute/create_volume.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_volume_snapshot.rb +1 -1
- data/lib/fog/openstack/requests/compute/list_address_pools.rb +10 -0
- data/lib/fog/openstack/requests/compute/list_tenants.rb +1 -1
- data/lib/fog/openstack/requests/compute/list_tenants_with_flavor_access.rb +26 -0
- data/lib/fog/openstack/requests/compute/remove_flavor_access.rb +31 -0
- data/lib/fog/openstack/requests/compute/update_quota.rb +1 -1
- data/lib/fog/openstack/requests/identity/create_ec2_credential.rb +1 -1
- data/lib/fog/openstack/requests/identity/create_role.rb +1 -1
- data/lib/fog/openstack/requests/identity/create_user.rb +1 -1
- data/lib/fog/openstack/requests/identity/update_user.rb +1 -1
- data/lib/fog/openstack/requests/image/update_image_members.rb +1 -1
- data/lib/fog/openstack/requests/network/associate_lb_health_monitor.rb +39 -0
- data/lib/fog/openstack/requests/network/create_lb_health_monitor.rb +56 -0
- data/lib/fog/openstack/requests/network/create_lb_member.rb +53 -0
- data/lib/fog/openstack/requests/network/create_lb_pool.rb +60 -0
- data/lib/fog/openstack/requests/network/create_lb_vip.rb +60 -0
- data/lib/fog/openstack/requests/network/delete_lb_health_monitor.rb +30 -0
- data/lib/fog/openstack/requests/network/delete_lb_member.rb +30 -0
- data/lib/fog/openstack/requests/network/delete_lb_pool.rb +30 -0
- data/lib/fog/openstack/requests/network/delete_lb_vip.rb +30 -0
- data/lib/fog/openstack/requests/network/disassociate_lb_health_monitor.rb +31 -0
- data/lib/fog/openstack/requests/network/get_lb_health_monitor.rb +30 -0
- data/lib/fog/openstack/requests/network/get_lb_member.rb +30 -0
- data/lib/fog/openstack/requests/network/get_lb_pool.rb +30 -0
- data/lib/fog/openstack/requests/network/get_lb_pool_stats.rb +35 -0
- data/lib/fog/openstack/requests/network/get_lb_vip.rb +30 -0
- data/lib/fog/openstack/requests/network/list_lb_health_monitors.rb +27 -0
- data/lib/fog/openstack/requests/network/list_lb_members.rb +27 -0
- data/lib/fog/openstack/requests/network/list_lb_pools.rb +27 -0
- data/lib/fog/openstack/requests/network/list_lb_vips.rb +27 -0
- data/lib/fog/openstack/requests/network/update_lb_health_monitor.rb +45 -0
- data/lib/fog/openstack/requests/network/update_lb_member.rb +41 -0
- data/lib/fog/openstack/requests/network/update_lb_pool.rb +42 -0
- data/lib/fog/openstack/requests/network/update_lb_vip.rb +44 -0
- data/lib/fog/openstack/requests/storage/put_object_manifest.rb +19 -6
- data/lib/fog/openstack/requests/volume/create_volume.rb +1 -1
- data/lib/fog/openstack/requests/volume/create_volume_snapshot.rb +1 -1
- data/lib/fog/openstack/volume.rb +4 -1
- data/lib/fog/openvz.rb +9 -0
- data/lib/fog/openvz/README.md +188 -0
- data/lib/fog/openvz/compute.rb +176 -0
- data/lib/fog/openvz/models/compute/server.rb +194 -0
- data/lib/fog/openvz/models/compute/servers.rb +27 -0
- data/lib/fog/openvz/requests/compute/compact_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/convert_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/create_server.rb +23 -0
- data/lib/fog/openvz/requests/compute/destroy_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/exec2_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/exec_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/get_server_details.rb +21 -0
- data/lib/fog/openvz/requests/compute/list_servers.rb +21 -0
- data/lib/fog/openvz/requests/compute/mount_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/quotainit_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/quotaoff_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/quotaon_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/restart_server.rb +24 -0
- data/lib/fog/openvz/requests/compute/resume_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/runscript_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/set_server.rb +27 -0
- data/lib/fog/openvz/requests/compute/snapshot_delete_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/snapshot_list_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/snapshot_mount_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/snapshot_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/snapshot_switch_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/snapshot_umount_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/start_server.rb +24 -0
- data/lib/fog/openvz/requests/compute/status_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/stop_server.rb +24 -0
- data/lib/fog/openvz/requests/compute/suspend_server.rb +21 -0
- data/lib/fog/openvz/requests/compute/umount_server.rb +21 -0
- data/lib/fog/rackspace.rb +1 -1
- data/lib/fog/rackspace/block_storage.rb +2 -1
- data/lib/fog/rackspace/compute.rb +2 -1
- data/lib/fog/rackspace/compute_v2.rb +8 -7
- data/lib/fog/rackspace/databases.rb +2 -1
- data/lib/fog/rackspace/dns.rb +2 -1
- data/lib/fog/rackspace/docs/storage.md +35 -1
- data/lib/fog/rackspace/examples/storage/upload_large_files.rb +103 -0
- data/lib/fog/rackspace/load_balancers.rb +2 -1
- data/lib/fog/rackspace/models/compute_v2/server.rb +0 -1
- data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +7 -7
- data/lib/fog/rackspace/models/storage/file.rb +18 -0
- data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +1 -1
- data/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb +2 -1
- data/lib/fog/rackspace/requests/storage/put_object.rb +7 -4
- data/lib/fog/rackspace/requests/storage/put_object_manifest.rb +24 -9
- data/lib/fog/rackspace/service.rb +2 -1
- data/lib/fog/rackspace/storage.rb +2 -1
- data/lib/fog/riakcs.rb +2 -2
- data/lib/fog/riakcs/provisioning.rb +3 -1
- data/lib/fog/riakcs/requests/provisioning/create_user.rb +2 -2
- data/lib/fog/riakcs/requests/provisioning/get_user.rb +1 -1
- data/lib/fog/riakcs/requests/provisioning/list_users.rb +1 -1
- data/lib/fog/riakcs/requests/usage/get_usage.rb +1 -1
- data/lib/fog/riakcs/usage.rb +1 -0
- data/lib/fog/serverlove/compute.rb +26 -23
- data/lib/fog/serverlove/models/compute/server.rb +1 -1
- data/lib/fog/storage.rb +3 -0
- data/lib/fog/storm_on_demand.rb +9 -1
- data/lib/fog/storm_on_demand/README.md +49 -0
- data/lib/fog/storm_on_demand/account.rb +58 -0
- data/lib/fog/storm_on_demand/billing.rb +61 -0
- data/lib/fog/storm_on_demand/compute.rb +33 -58
- data/lib/fog/storm_on_demand/dns.rb +85 -0
- data/lib/fog/storm_on_demand/models/account/token.rb +23 -0
- data/lib/fog/storm_on_demand/models/account/tokens.rb +20 -0
- data/lib/fog/storm_on_demand/models/billing/invoice.rb +28 -0
- data/lib/fog/storm_on_demand/models/billing/invoices.rb +30 -0
- data/lib/fog/storm_on_demand/models/billing/payment.rb +17 -0
- data/lib/fog/storm_on_demand/models/billing/payments.rb +19 -0
- data/lib/fog/storm_on_demand/models/compute/config.rb +18 -4
- data/lib/fog/storm_on_demand/models/compute/configs.rb +6 -2
- data/lib/fog/storm_on_demand/models/compute/image.rb +22 -1
- data/lib/fog/storm_on_demand/models/compute/images.rb +12 -2
- data/lib/fog/storm_on_demand/models/compute/notification.rb +34 -0
- data/lib/fog/storm_on_demand/models/compute/notifications.rb +30 -0
- data/lib/fog/storm_on_demand/models/compute/product.rb +40 -0
- data/lib/fog/storm_on_demand/models/compute/products.rb +28 -0
- data/lib/fog/storm_on_demand/models/compute/server.rb +33 -9
- data/lib/fog/storm_on_demand/models/compute/servers.rb +7 -2
- data/lib/fog/storm_on_demand/models/compute/template.rb +7 -1
- data/lib/fog/storm_on_demand/models/compute/templates.rb +7 -2
- data/lib/fog/storm_on_demand/models/dns/domain.rb +34 -0
- data/lib/fog/storm_on_demand/models/dns/domains.rb +20 -0
- data/lib/fog/storm_on_demand/models/dns/record.rb +64 -0
- data/lib/fog/storm_on_demand/models/dns/records.rb +30 -0
- data/lib/fog/storm_on_demand/models/dns/reverse.rb +15 -0
- data/lib/fog/storm_on_demand/models/dns/reverses.rb +23 -0
- data/lib/fog/storm_on_demand/models/dns/zone.rb +40 -0
- data/lib/fog/storm_on_demand/models/dns/zones.rb +30 -0
- data/lib/fog/storm_on_demand/models/monitoring/bandwidth.rb +23 -0
- data/lib/fog/storm_on_demand/models/monitoring/bandwidths.rb +23 -0
- data/lib/fog/storm_on_demand/models/{compute/stat.rb → monitoring/load.rb} +6 -6
- data/lib/fog/storm_on_demand/models/monitoring/loads.rb +24 -0
- data/lib/fog/storm_on_demand/models/monitoring/monitor_service.rb +22 -0
- data/lib/fog/storm_on_demand/models/monitoring/monitor_services.rb +32 -0
- data/lib/fog/storm_on_demand/models/{compute → network}/balancer.rb +27 -5
- data/lib/fog/storm_on_demand/models/network/balancers.rb +44 -0
- data/lib/fog/storm_on_demand/models/network/firewall.rb +20 -0
- data/lib/fog/storm_on_demand/models/network/firewalls.rb +32 -0
- data/lib/fog/storm_on_demand/models/network/network_ip.rb +23 -0
- data/lib/fog/storm_on_demand/models/network/network_ips.rb +48 -0
- data/lib/fog/storm_on_demand/models/network/pool.rb +32 -0
- data/lib/fog/storm_on_demand/models/network/pools.rb +28 -0
- data/lib/fog/storm_on_demand/models/{compute → network}/private_ip.rb +2 -3
- data/lib/fog/storm_on_demand/models/network/private_ips.rb +40 -0
- data/lib/fog/storm_on_demand/models/network/ruleset.rb +27 -0
- data/lib/fog/storm_on_demand/models/network/rulesets.rb +28 -0
- data/lib/fog/storm_on_demand/models/network/zone.rb +27 -0
- data/lib/fog/storm_on_demand/models/network/zones.rb +24 -0
- data/lib/fog/storm_on_demand/models/storage/cluster.rb +20 -0
- data/lib/fog/storm_on_demand/models/storage/clusters.rb +20 -0
- data/lib/fog/storm_on_demand/models/storage/volume.rb +54 -0
- data/lib/fog/storm_on_demand/models/storage/volumes.rb +30 -0
- data/lib/fog/storm_on_demand/models/support/alert.rb +19 -0
- data/lib/fog/storm_on_demand/models/support/alerts.rb +20 -0
- data/lib/fog/storm_on_demand/models/support/ticket.rb +74 -0
- data/lib/fog/storm_on_demand/models/support/tickets.rb +33 -0
- data/lib/fog/storm_on_demand/models/vpn/vpn.rb +30 -0
- data/lib/fog/storm_on_demand/models/vpn/vpns.rb +27 -0
- data/lib/fog/storm_on_demand/monitoring.rb +68 -0
- data/lib/fog/storm_on_demand/network.rb +113 -0
- data/lib/fog/storm_on_demand/requests/account/create_token.rb +16 -0
- data/lib/fog/storm_on_demand/requests/account/expire_token.rb +16 -0
- data/lib/fog/storm_on_demand/requests/billing/get_invoice.rb +16 -0
- data/lib/fog/storm_on_demand/requests/billing/list_invoices.rb +16 -0
- data/lib/fog/storm_on_demand/requests/billing/make_payment.rb +16 -0
- data/lib/fog/storm_on_demand/requests/billing/next_invoice.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/clone_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/create_image.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/create_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/current_notifications.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/delete_image.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/delete_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/get_config_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_image_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_notification.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_product.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_product_code.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_product_price.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_product_starting_price.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/get_template_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_configs.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/list_images.rb +2 -2
- data/lib/fog/storm_on_demand/requests/compute/list_notifications.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_products.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_servers.rb +2 -2
- data/lib/fog/storm_on_demand/requests/compute/list_templates.rb +2 -2
- data/lib/fog/storm_on_demand/requests/compute/reboot_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/resize_server.rb +1 -1
- data/lib/fog/storm_on_demand/requests/compute/resolve_notification.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/restore_image.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/restore_template.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/server_history.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/server_status.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/shutdown_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/start_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/update_image.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/update_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/check_zone_delegation.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/create_record.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/create_record_region.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/create_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/delete_record.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/delete_record_region.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/delete_reverse.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/delete_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/get_record.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/get_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/list_domains.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/list_records.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/list_zones.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/renew_domain.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/update_record.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/update_record_region.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/update_reverse.rb +16 -0
- data/lib/fog/storm_on_demand/requests/dns/update_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_graph.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_stats.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_load_graph.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_load_stats.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_service.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/get_service_status.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/monitoring_ips.rb +16 -0
- data/lib/fog/storm_on_demand/requests/monitoring/update_service.rb +16 -0
- data/lib/fog/storm_on_demand/requests/{compute → network}/add_balancer_node.rb +2 -2
- data/lib/fog/storm_on_demand/requests/network/add_balancer_service.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/add_ip_to_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/attach_server_to_private_ip.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/check_balancer_available.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/check_server_attached.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/create_balancer.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/create_pool.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/create_ruleset.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/delete_balancer.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/delete_pool.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/detach_server_from_private_ip.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_assignments.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_balancer_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_balancer_possible_nodes.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_balancer_strategies.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_firewall.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_firewall_basic_options.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_firewall_rules.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_ip_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_pool.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_private_ip.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_ruleset.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/get_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/{compute → network}/list_balancers.rb +3 -3
- data/lib/fog/storm_on_demand/requests/network/list_ip_public_accounts.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/list_network_ips.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/list_network_public_ips.rb +16 -0
- data/lib/fog/storm_on_demand/requests/{compute → network}/list_private_ips.rb +3 -3
- data/lib/fog/storm_on_demand/requests/network/list_rulesets.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/list_zones.rb +16 -0
- data/lib/fog/storm_on_demand/requests/{compute → network}/remove_balancer_node.rb +2 -2
- data/lib/fog/storm_on_demand/requests/network/remove_balancer_service.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/remove_ip_from_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/request_new_ips.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/set_default_zone.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/update_balancer.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/update_firewall.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/update_pool.rb +16 -0
- data/lib/fog/storm_on_demand/requests/network/update_ruleset.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/attach_volume_to_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/create_volume.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/delete_volume.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/detach_volume_from_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/get_volume.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/list_clusters.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/list_volumes.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/resize_volume.rb +16 -0
- data/lib/fog/storm_on_demand/requests/storage/update_volume.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/add_feedback.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/add_transaction_feedback.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/authenticate.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/close_ticket.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/create_ticket.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/get_active_alert.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/get_ticket_details.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/list_ticket_types.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/list_tickets.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/reopen_ticket.rb +16 -0
- data/lib/fog/storm_on_demand/requests/support/reply_ticket.rb +16 -0
- data/lib/fog/storm_on_demand/requests/vpn/create_vpn.rb +16 -0
- data/lib/fog/storm_on_demand/requests/vpn/get_vpn.rb +16 -0
- data/lib/fog/storm_on_demand/requests/vpn/list_vpn_users.rb +16 -0
- data/lib/fog/storm_on_demand/requests/vpn/update_vpn.rb +16 -0
- data/lib/fog/storm_on_demand/shared.rb +55 -0
- data/lib/fog/storm_on_demand/storage.rb +69 -0
- data/lib/fog/storm_on_demand/support.rb +68 -0
- data/lib/fog/storm_on_demand/vpn.rb +58 -0
- data/lib/fog/support.rb +26 -0
- data/lib/fog/vcloud/compute.rb +6 -0
- data/lib/fog/vcloud/models/compute/server.rb +20 -0
- data/lib/fog/vcloud/models/compute/tag.rb +18 -0
- data/lib/fog/vcloud/models/compute/tags.rb +32 -0
- data/lib/fog/vcloud/requests/compute/configure_metadata.rb +36 -0
- data/lib/fog/vcloud/requests/compute/configure_vm_customization_script.rb +33 -0
- data/lib/fog/vcloud/requests/compute/delete_metadata.rb +10 -0
- data/lib/fog/vcloud/requests/compute/get_metadata.rb +10 -0
- data/lib/fog/version.rb +1 -1
- data/lib/fog/vpn.rb +25 -0
- data/lib/fog/vsphere/requests/compute/get_folder.rb +1 -1
- data/lib/fog/zerigo/models/dns/record.rb +0 -1
- data/lib/fog/zerigo/models/dns/zone.rb +1 -1
- data/lib/fog/zerigo/models/dns/zones.rb +2 -2
- data/lib/fog/zerigo/requests/dns/list_zones.rb +7 -1
- data/lib/tasks/changelog_task.rb +1 -0
- data/tests/aws/models/iam/roles_tests.rb +63 -0
- data/tests/aws/requests/cloud_formation/stack_tests.rb +10 -0
- data/tests/aws/requests/compute/image_tests.rb +20 -0
- data/tests/aws/requests/compute/instance_tests.rb +50 -54
- data/tests/aws/requests/storage/object_tests.rb +7 -0
- data/tests/brightbox/oauth2_tests.rb +8 -1
- data/tests/cloudsigma/models/server_tests.rb +72 -0
- data/tests/cloudsigma/models/servers_tests.rb +7 -0
- data/tests/cloudsigma/models/volume_tests.rb +21 -0
- data/tests/cloudsigma/models/volumes_tests.rb +9 -0
- data/tests/cloudsigma/requests/server_tests.rb +81 -0
- data/tests/cloudsigma/requests/volumes_tests.rb +55 -0
- data/tests/dynect/requests/dns/dns_tests.rb +4 -4
- data/tests/helper.rb +3 -1
- data/tests/helpers/mock_helper.rb +3 -1
- data/tests/joyent/requests/compute/networks_tests.rb +39 -0
- data/tests/openstack/models/image/images_tests.rb +5 -0
- data/tests/openstack/models/network/lb_health_monitor_tests.rb +52 -0
- data/tests/openstack/models/network/lb_health_monitors_tests.rb +21 -0
- data/tests/openstack/models/network/lb_member_tests.rb +28 -0
- data/tests/openstack/models/network/lb_members_tests.rb +21 -0
- data/tests/openstack/models/network/lb_pool_tests.rb +53 -0
- data/tests/openstack/models/network/lb_pools_tests.rb +20 -0
- data/tests/openstack/models/network/lb_vip_tests.rb +39 -0
- data/tests/openstack/models/network/lb_vips_tests.rb +21 -0
- data/tests/openstack/requests/compute/address_tests.rb +8 -0
- data/tests/openstack/requests/compute/flavor_tests.rb +12 -0
- data/tests/openstack/requests/network/lb_health_monitor_tests.rb +93 -0
- data/tests/openstack/requests/network/lb_member_tests.rb +60 -0
- data/tests/openstack/requests/network/lb_pool_tests.rb +80 -0
- data/tests/openstack/requests/network/lb_vip_tests.rb +71 -0
- data/tests/openstack/requests/storage/large_object_tests.rb +75 -11
- data/tests/openvz/helper.rb +41 -0
- data/tests/openvz/models/compute/server_tests.rb +56 -0
- data/tests/openvz/models/compute/servers_tests.rb +35 -0
- data/tests/rackspace/block_storage_tests.rb +6 -3
- data/tests/rackspace/cdn_tests.rb +5 -2
- data/tests/rackspace/compute_tests.rb +4 -2
- data/tests/rackspace/compute_v2_tests.rb +4 -2
- data/tests/rackspace/databases_tests.rb +5 -2
- data/tests/rackspace/dns_tests.rb +5 -2
- data/tests/rackspace/load_balancer_tests.rb +4 -2
- data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +2 -0
- data/tests/rackspace/models/storage/file_tests.rb +30 -0
- data/tests/rackspace/requests/identity/token_tests.rb +9 -0
- data/tests/rackspace/requests/load_balancers/helper.rb +2 -0
- data/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +2 -1
- data/tests/rackspace/requests/storage/large_object_tests.rb +75 -11
- data/tests/rackspace/requests/storage/object_tests.rb +32 -2
- data/tests/rackspace/storage_tests.rb +5 -2
- data/tests/vcloud/requests/compute/disk_configure_tests.rb +7 -2
- data/tests/zerigo/requests/dns/dns_tests.rb +59 -13
- metadata +394 -30
- data/lib/fog/storm_on_demand/models/compute/balancers.rb +0 -21
- data/lib/fog/storm_on_demand/models/compute/private_ips.rb +0 -31
- data/lib/fog/storm_on_demand/models/compute/stats.rb +0 -22
- data/lib/fog/storm_on_demand/requests/compute/get_stats.rb +0 -16
- data/tests/core/json_tests.rb +0 -62
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -57,6 +57,11 @@ namespace :test do
|
|
57
57
|
sh("export FOG_MOCK=#{mock} && bundle exec shindont tests/vsphere")
|
58
58
|
end
|
59
59
|
end
|
60
|
+
task :openvz do
|
61
|
+
[true].each do |mock|
|
62
|
+
sh("export FOG_MOCK=#{mock} && bundle exec shindont tests/openvz")
|
63
|
+
end
|
64
|
+
end
|
60
65
|
end
|
61
66
|
|
62
67
|
task :nuke do
|
data/changelog.txt
CHANGED
@@ -1,3 +1,195 @@
|
|
1
|
+
1.12.0 06/11/2013 2dd2a8b003fd7ee89141820e0d3c7ff161e74f60
|
2
|
+
==========================================================
|
3
|
+
|
4
|
+
Stats! { 'collaborators' => 49, 'downloads' => 2416827, 'forks' => 817, 'open_issues' => 153, 'watchers' => 2563 }
|
5
|
+
|
6
|
+
[AWS]
|
7
|
+
adds 'hypervisor', 'lifecycle', 'requester_id', 'source_dest_check', 'spot_instance_request_id', 'virtualization_type' attributes to instances, also fixes instance tests to work in non-mocking mode. thanks Eric Stonfer
|
8
|
+
|
9
|
+
[AWS | Compute]
|
10
|
+
Added copy_image request with parser, mocks and tests. thanks Rad Gruchalski
|
11
|
+
|
12
|
+
[AWS|IAM]
|
13
|
+
Added AWS IAM iam.roles support. thanks Rad Gruchalski
|
14
|
+
|
15
|
+
[AWS|RDS]
|
16
|
+
Properly rescue NotFound exceptions. thanks Aaron Suggs
|
17
|
+
|
18
|
+
[Brightbox]
|
19
|
+
Expose expires_in value for the access token. thanks Amitava
|
20
|
+
Rename old destroy requests to delete. thanks Paul Thornthwaite
|
21
|
+
Documentation fixes. thanks Paul Thornthwaite
|
22
|
+
|
23
|
+
[Rackspace|Storage]
|
24
|
+
updating large file upload based on @burns suggestions. thanks Kyle Rames
|
25
|
+
|
26
|
+
[Zerigo|DNS]
|
27
|
+
Remove default 3600 TTL. thanks Eric Hankins
|
28
|
+
|
29
|
+
[cloudsigma]
|
30
|
+
Add CloudSigma compute provider. thanks Kaloyan Kanev
|
31
|
+
Fix create request not expecting status 201. thanks Kaloyan Kanev
|
32
|
+
Make api location as an option (:cloudsigma_host). thanks Kaloyan Kanev
|
33
|
+
Fix excon HTTPStatusError#response not having []= and failing on assignment of json decoded body. thanks Kaloyan Kanev
|
34
|
+
|
35
|
+
[cloudstack]
|
36
|
+
fix broken mock test. thanks geemus
|
37
|
+
|
38
|
+
[dynect]
|
39
|
+
remove should usage in tests. thanks geemus
|
40
|
+
|
41
|
+
[misc]
|
42
|
+
Add joyent API version and network support GH-1853. thanks Blake Irvin and Eric Saxby
|
43
|
+
Add post_object_restore support. thanks Bradley Schaefer
|
44
|
+
Fix excon expects syntax for post object restore. thanks Bradley Schaefer
|
45
|
+
Add 409 (Conflict) as an expected restore response. thanks Bradley Schaefer
|
46
|
+
Very basic mock for post_object_restore. thanks Bradley Schaefer
|
47
|
+
debug excon errors in tests. thanks Brian D. Burns
|
48
|
+
Include the ResourceRecordSetCount. thanks Edward Muller
|
49
|
+
Support pagination on Zerigo DNS zones. thanks Eric Hankins
|
50
|
+
Simplify Zerigo DNS list_zones request. thanks Eric Hankins
|
51
|
+
Update docs for Zerigo DNS list_zones request. thanks Eric Hankins
|
52
|
+
Add TTL on save rather than initialize. thanks Eric Hankins
|
53
|
+
Add Config attributes, and the "get" method for Configs to get detail of a specific config object. thanks Eric Wong
|
54
|
+
Revert "Updated gem spec to require json rather than multi_json". thanks Erik Michaels-Ober
|
55
|
+
proper user creation in OS create_server mock. thanks Evan Petrie
|
56
|
+
Remove spurious warning... thanks Frederic Jean
|
57
|
+
Fixed typo. thanks Geoff Pado
|
58
|
+
Add :id attribute to libvirt nic model. thanks Greg Sutcliffe
|
59
|
+
Include all snapshots in FOG::AWS::RDS::Snapshots#all. thanks Harry Wilkinson
|
60
|
+
Add Snaphost#each method with lazy pagination. thanks Harry Wilkinson
|
61
|
+
Added support for OpenStack region for network service. thanks Hongbin Lu
|
62
|
+
Adding support for AWS CloudFormation list_stacks and list_stack_resources API calls. thanks Joe Kinsella
|
63
|
+
Using AWS::Compute::Error for CloudFormation errors produces erroneous error messages. thanks Joe Kinsella
|
64
|
+
Support both RSpec 1.x and 2.x. thanks Josef Stribny
|
65
|
+
Chdir in a block to dry up all method. thanks Karl Freeman
|
66
|
+
Fixes #39 joyent server resize command requires expected response code. thanks Kevin Chan
|
67
|
+
Fixes #1822 Joyent list_machines is slower than it needs to be. thanks Kevin Chan
|
68
|
+
Support for request signing via ssh-agent. thanks Kevin Chan
|
69
|
+
Fixes for tags for pre7 api, more ssh-agent improvements Refs: kevinykchan/knife-joyent#37. thanks Kevin Chan
|
70
|
+
GH-1853 "public" attribute for network. thanks Kevin Chan
|
71
|
+
Fix "cache_controle" typo in docs. thanks Mark Rushakoff
|
72
|
+
Avoids Fog::Compute::Joyent::Real#decode_time_attrs raising an exception when an empty string is returned as created or updated property. thanks Pablo Baños López
|
73
|
+
server.tags implemented. thanks Rodrigo Estebanez
|
74
|
+
Tag#destroy implemented. thanks Rodrigo Estebanez
|
75
|
+
Tags#create implemented. thanks Rodrigo Estebanez
|
76
|
+
shows customizationScript of a VM. thanks Rodrigo Estebanez
|
77
|
+
VM@customization_script=. thanks Rodrigo Estebanez
|
78
|
+
escapeHTML. thanks Rodrigo Estebanez
|
79
|
+
server.tags implemented. thanks Rodrigo Estebanez
|
80
|
+
Tag#destroy implemented. thanks Rodrigo Estebanez
|
81
|
+
Tags#create implemented. thanks Rodrigo Estebanez
|
82
|
+
shows customizationScript of a VM. thanks Rodrigo Estebanez
|
83
|
+
VM@customization_script=. thanks Rodrigo Estebanez
|
84
|
+
escapeHTML. thanks Rodrigo Estebanez
|
85
|
+
Whitespace. thanks Sean Handley
|
86
|
+
Options get formed into the body. thanks Sean Handley
|
87
|
+
Don't delete the options if they were never there!. thanks Sean Handley
|
88
|
+
Allow creation with objects. thanks Sean Handley
|
89
|
+
This withstands naming/renaming issues. thanks Sean Handley
|
90
|
+
quote data in regex. thanks Simon Josi
|
91
|
+
Add API calls to manage flavor access across tenants. thanks Thomas Kadauke
|
92
|
+
fail when cloudstack default view empty. thanks Tor-Ake Fransson
|
93
|
+
fix broken test related to redacted excon error bodies. thanks geemus
|
94
|
+
Don't CGI encode header query values in the signature string. thanks ronen barzel
|
95
|
+
Consolidation suggested by Wesley Beary. thanks torake.fransson
|
96
|
+
servers can still be nil under some circumstances (server id specified does no longer exist). thanks torake.fransson
|
97
|
+
|
98
|
+
[openstack|compute]
|
99
|
+
Add mock method to list_address_pools. thanks Ferran Rodenas
|
100
|
+
|
101
|
+
[openstack|image]
|
102
|
+
Define get method for images. thanks Ferran Rodenas
|
103
|
+
|
104
|
+
[openstack|network]
|
105
|
+
Add support for OpenStack Networking LBaaS extension. thanks Ferran Rodenas
|
106
|
+
|
107
|
+
[openstack|storage]
|
108
|
+
allow headers to be specified for object manifest. thanks Brian D. Burns
|
109
|
+
|
110
|
+
[openvz|compute]
|
111
|
+
Initial commit. thanks Patrick Debois
|
112
|
+
|
113
|
+
[rackspace]
|
114
|
+
pass connection_options onto identity service so we can auth behind a proxy. thanks Kyle Rames
|
115
|
+
|
116
|
+
[rackspace|compute]
|
117
|
+
removing erronious note on setup method. thanks Kyle Rames
|
118
|
+
|
119
|
+
[rackspace|lb]
|
120
|
+
Add support for timeout attribute. thanks Decklin Foster
|
121
|
+
Use a non-default timeout so we are actually testing if the attribute was set. thanks Decklin Foster
|
122
|
+
Pass through timeout option on LB creation (also, we know algorithm works). thanks Decklin Foster
|
123
|
+
|
124
|
+
[rackspace|storage]
|
125
|
+
add large object container and prefix options. thanks Brian D. Burns
|
126
|
+
allow headers to be specified for object manifest. thanks Brian D. Burns
|
127
|
+
created a last_modified= method in the File class which works around a timezone bug in the swift service. thanks Kyle Rames
|
128
|
+
updated put_object to allow blocks to upload large files; added large file upload example and documentation. thanks Kyle Rames
|
129
|
+
made large object delete tests pending if mocking is turned on. thanks Kyle Rames
|
130
|
+
fixing large upload example and documentation. thanks Kyle Rames
|
131
|
+
tweaking upload large file example to use X-Object-Manifest header in anticipation of PR #1855. thanks Kyle Rames
|
132
|
+
fixing typo in large file upload documentation; updated large file upload to work with ruby 1.8.7. thanks Kyle Rames
|
133
|
+
|
134
|
+
[stormnondemand|compute]
|
135
|
+
Add Notification APIs. thanks Eric Wong
|
136
|
+
|
137
|
+
[stormondemand]
|
138
|
+
fix service exception handling. thanks Eric Wong
|
139
|
+
fix typo bugs and move shared code into shared.rb module. thanks Eric Wong
|
140
|
+
fix some minor problems. Add a README.md file to describe how to use the storm on demand APIs. thanks Eric Wong
|
141
|
+
|
142
|
+
[stormondemand|account]
|
143
|
+
Add Account service and token APIs. thanks Eric Wong
|
144
|
+
Add Account service to the service lsit. thanks Eric Wong
|
145
|
+
|
146
|
+
[stormondemand|billing]
|
147
|
+
Add Billing service and related APIs. thanks Eric Wong
|
148
|
+
|
149
|
+
[stormondemand|compute]
|
150
|
+
Add API version in requrest path and add new attributes in Config. thanks Eric Wong
|
151
|
+
Fix request path. thanks Eric Wong
|
152
|
+
Add additional attributes to Image and CRUD methods to Images. thanks Eric Wong
|
153
|
+
Move destroy/update/restore methods to image.rb. thanks Eric Wong
|
154
|
+
Fix the get parameters. thanks Eric Wong
|
155
|
+
Add all LoadBalancer related APIs. thanks Eric Wong
|
156
|
+
Add all server APIs. thanks Eric Wong
|
157
|
+
Add all template APIs. thanks Eric Wong
|
158
|
+
Add stats graph API. thanks Eric Wong
|
159
|
+
Add all Private IP APIs. thanks Eric Wong
|
160
|
+
Add Network IP APIs. thanks Eric Wong
|
161
|
+
Add Firewall APIs. thanks Eric Wong
|
162
|
+
Add Firewall Ruleset APIs. thanks Eric Wong
|
163
|
+
Add Pool APIs. thanks Eric Wong
|
164
|
+
Add Network Zone APIs. thanks Eric Wong
|
165
|
+
change all keys for response data into strings. thanks Eric Wong
|
166
|
+
Add Product APIs. thanks Eric Wong
|
167
|
+
|
168
|
+
[stormondemand|dns]
|
169
|
+
Add DNS service and domain APIs. thanks Eric Wong
|
170
|
+
Add DNS record APIs. thanks Eric Wong
|
171
|
+
add record region APIs. thanks Eric Wong
|
172
|
+
Add Reverse APIs. thanks Eric Wong
|
173
|
+
Add DNS Zone APIs. thanks Eric Wong
|
174
|
+
Add DNS Service to StormOnDemand. thanks Eric Wong
|
175
|
+
|
176
|
+
[stormondemand|monitoring]
|
177
|
+
Add a new Monitoring service and add/move load/bandwidth/service APIs. thanks Eric Wong
|
178
|
+
|
179
|
+
[stormondemand|network]
|
180
|
+
Add a new Network service and move all network code in Compute into Network. thanks Eric Wong
|
181
|
+
|
182
|
+
[stormondemand|storage]
|
183
|
+
Add Storage service and cluster API. thanks Eric Wong
|
184
|
+
Add Volume APIs. thanks Eric Wong
|
185
|
+
|
186
|
+
[stormondemand|support]
|
187
|
+
Add Support service and APIs for alert and support tickets. thanks Eric Wong
|
188
|
+
|
189
|
+
[stormondemand|vpn]
|
190
|
+
Add new VPN service and APIs. thanks Eric Wong
|
191
|
+
|
192
|
+
|
1
193
|
1.11.1 05/05/2013 2cfeaf236e4ebcf883d0e17f586293d6cd66f379
|
2
194
|
==========================================================
|
3
195
|
|
data/fog.gemspec
CHANGED
@@ -6,8 +6,8 @@ Gem::Specification.new do |s|
|
|
6
6
|
## If your rubyforge_project name is different, then edit it and comment out
|
7
7
|
## the sub! line in the Rakefile
|
8
8
|
s.name = 'fog'
|
9
|
-
s.version = '1.
|
10
|
-
s.date = '2013-
|
9
|
+
s.version = '1.12.0'
|
10
|
+
s.date = '2013-06-10'
|
11
11
|
s.rubyforge_project = 'fog'
|
12
12
|
|
13
13
|
## Make sure your summary is short. The description may be as long
|
@@ -41,9 +41,9 @@ Gem::Specification.new do |s|
|
|
41
41
|
## List your runtime dependencies here. Runtime dependencies are those
|
42
42
|
## that are needed for an end user to actually USE your code.
|
43
43
|
s.add_dependency('builder')
|
44
|
-
s.add_dependency('excon', '~>0.
|
44
|
+
s.add_dependency('excon', '~>0.22.1')
|
45
45
|
s.add_dependency('formatador', '~>0.2.0')
|
46
|
-
s.add_dependency('
|
46
|
+
s.add_dependency('multi_json', '~>1.0')
|
47
47
|
s.add_dependency('mime-types')
|
48
48
|
s.add_dependency('net-scp', '~>1.1')
|
49
49
|
s.add_dependency('net-ssh', '>=2.1.3')
|
data/lib/fog.rb
CHANGED
data/lib/fog/account.rb
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
module Fog
|
2
|
+
module Account
|
3
|
+
|
4
|
+
def self.[](provider)
|
5
|
+
self.new(:provider => provider)
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.new(attributes)
|
9
|
+
attributes = attributes.dup
|
10
|
+
provider = attributes.delete(:provider).to_s.downcase.to_sym
|
11
|
+
|
12
|
+
if provider == :stormondemand
|
13
|
+
require 'fog/storm_on_demand/account'
|
14
|
+
Fog::Account::StormOnDemand.new(attributes)
|
15
|
+
else
|
16
|
+
raise ArgumentError.new("#{provider} has no account service")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.providers
|
21
|
+
Fog.services[:account]
|
22
|
+
end
|
23
|
+
|
24
|
+
end
|
25
|
+
end
|
@@ -17,6 +17,8 @@ module Fog
|
|
17
17
|
request :describe_stacks
|
18
18
|
request :get_template
|
19
19
|
request :validate_template
|
20
|
+
request :list_stacks
|
21
|
+
request :list_stack_resources
|
20
22
|
|
21
23
|
class Mock
|
22
24
|
|
@@ -108,10 +110,10 @@ module Fog
|
|
108
110
|
rescue Excon::Errors::HTTPStatusError => error
|
109
111
|
if match = error.message.match(/(?:.*<Code>(.*)<\/Code>)(?:.*<Message>(.*)<\/Message>)/m)
|
110
112
|
raise case match[1].split('.').last
|
111
|
-
when 'NotFound'
|
112
|
-
Fog::AWS::
|
113
|
+
when 'NotFound', 'ValidationError'
|
114
|
+
Fog::AWS::CloudFormation::NotFound.slurp(error, match[2])
|
113
115
|
else
|
114
|
-
Fog::AWS::
|
116
|
+
Fog::AWS::CloudFormation::Error.slurp(error, "#{match[1]} => #{match[2]}")
|
115
117
|
end
|
116
118
|
else
|
117
119
|
raise error
|
data/lib/fog/aws/compute.rb
CHANGED
data/lib/fog/aws/iam.rb
CHANGED
@@ -8,46 +8,52 @@ module Fog
|
|
8
8
|
extend Fog::Deprecation
|
9
9
|
deprecate :ip_address, :public_ip_address
|
10
10
|
|
11
|
-
identity :id,
|
11
|
+
identity :id, :aliases => 'instanceId'
|
12
12
|
|
13
13
|
attr_accessor :architecture
|
14
|
-
attribute :ami_launch_index,
|
15
|
-
attribute :availability_zone,
|
16
|
-
attribute :block_device_mapping,
|
17
|
-
attribute :network_interfaces,
|
18
|
-
attribute :client_token,
|
19
|
-
attribute :dns_name,
|
20
|
-
attribute :ebs_optimized,
|
14
|
+
attribute :ami_launch_index, :aliases => 'amiLaunchIndex'
|
15
|
+
attribute :availability_zone, :aliases => 'availabilityZone'
|
16
|
+
attribute :block_device_mapping, :aliases => 'blockDeviceMapping'
|
17
|
+
attribute :network_interfaces, :aliases => 'networkInterfaces'
|
18
|
+
attribute :client_token, :aliases => 'clientToken'
|
19
|
+
attribute :dns_name, :aliases => 'dnsName'
|
20
|
+
attribute :ebs_optimized, :aliases => 'ebsOptimized'
|
21
21
|
attribute :groups
|
22
|
-
attribute :flavor_id,
|
23
|
-
attribute :
|
24
|
-
attribute :
|
22
|
+
attribute :flavor_id, :aliases => 'instanceType'
|
23
|
+
attribute :hypervisor
|
24
|
+
attribute :iam_instance_profile, :aliases => 'iamInstanceProfile'
|
25
|
+
attribute :image_id, :aliases => 'imageId'
|
25
26
|
attr_accessor :instance_initiated_shutdown_behavior
|
26
|
-
attribute :kernel_id,
|
27
|
-
attribute :key_name,
|
28
|
-
attribute :created_at,
|
29
|
-
attribute :
|
30
|
-
attribute :
|
31
|
-
attribute :
|
32
|
-
attribute :
|
33
|
-
attribute :
|
34
|
-
attribute :
|
35
|
-
attribute :
|
36
|
-
attribute :
|
27
|
+
attribute :kernel_id, :aliases => 'kernelId'
|
28
|
+
attribute :key_name, :aliases => 'keyName'
|
29
|
+
attribute :created_at, :aliases => 'launchTime'
|
30
|
+
attribute :lifecycle, :aliases => 'instanceLifecycle'
|
31
|
+
attribute :monitoring, :squash => 'state'
|
32
|
+
attribute :placement_group, :aliases => 'groupName'
|
33
|
+
attribute :platform, :aliases => 'platform'
|
34
|
+
attribute :product_codes, :aliases => 'productCodes'
|
35
|
+
attribute :private_dns_name, :aliases => 'privateDnsName'
|
36
|
+
attribute :private_ip_address, :aliases => 'privateIpAddress'
|
37
|
+
attribute :public_ip_address, :aliases => 'ipAddress'
|
38
|
+
attribute :ramdisk_id, :aliases => 'ramdiskId'
|
37
39
|
attribute :reason
|
38
|
-
attribute :
|
39
|
-
attribute :
|
40
|
-
attribute :
|
41
|
-
attribute :
|
42
|
-
attribute :
|
43
|
-
attribute :
|
40
|
+
attribute :requester_id, :aliases => 'requesterId'
|
41
|
+
attribute :root_device_name, :aliases => 'rootDeviceName'
|
42
|
+
attribute :root_device_type, :aliases => 'rootDeviceType'
|
43
|
+
attribute :security_group_ids, :aliases => 'securityGroupIds'
|
44
|
+
attribute :source_dest_check, :aliases => 'sourceDestCheck'
|
45
|
+
attribute :spot_instance_request_id, :aliases => 'spotInstanceRequestId'
|
46
|
+
attribute :state, :aliases => 'instanceState', :squash => 'name'
|
47
|
+
attribute :state_reason, :aliases => 'stateReason'
|
48
|
+
attribute :subnet_id, :aliases => 'subnetId'
|
44
49
|
attribute :tenancy
|
45
|
-
attribute :tags,
|
50
|
+
attribute :tags, :aliases => 'tagSet'
|
46
51
|
attribute :user_data
|
47
|
-
attribute :
|
52
|
+
attribute :virtualization_type, :aliases => 'virtualizationType'
|
53
|
+
attribute :vpc_id, :aliases => 'vpcId'
|
48
54
|
|
49
|
-
attr_accessor
|
50
|
-
attr_writer
|
55
|
+
attr_accessor :password
|
56
|
+
attr_writer :iam_instance_profile_name, :iam_instance_profile_arn
|
51
57
|
|
52
58
|
|
53
59
|
def initialize(attributes={})
|
@@ -23,7 +23,6 @@ module Fog
|
|
23
23
|
attribute :set_identifier,:aliases => ['SetIdentifier']
|
24
24
|
|
25
25
|
def initialize(attributes={})
|
26
|
-
self.ttl ||= 3600
|
27
26
|
super
|
28
27
|
end
|
29
28
|
|
@@ -38,6 +37,7 @@ module Fog
|
|
38
37
|
end
|
39
38
|
|
40
39
|
def save
|
40
|
+
self.ttl ||= 3600
|
41
41
|
options = attributes_to_options('CREATE')
|
42
42
|
data = service.change_resource_record_sets(zone.id, [options]).body
|
43
43
|
merge_attributes(data)
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'fog/core/model'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module AWS
|
5
|
+
class IAM
|
6
|
+
|
7
|
+
class Role < Fog::Model
|
8
|
+
|
9
|
+
identity :id, :aliases => 'RoleId'
|
10
|
+
attribute :rolename, :aliases => 'RoleName'
|
11
|
+
attribute :create_date, :aliases => 'CreateDate', :type => :time
|
12
|
+
attribute :assume_role_policy_document, :aliases => 'AssumeRolePolicyDocument'
|
13
|
+
attribute :arn, :aliases => 'Arn'
|
14
|
+
attribute :path, :aliases => 'Path'
|
15
|
+
|
16
|
+
def save
|
17
|
+
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted?
|
18
|
+
requires :rolename
|
19
|
+
requires :assume_role_policy_document
|
20
|
+
|
21
|
+
data = service.create_role(rolename, assume_role_policy_document).body["Role"]
|
22
|
+
merge_attributes(data)
|
23
|
+
true
|
24
|
+
end
|
25
|
+
|
26
|
+
def destroy
|
27
|
+
requires :rolename
|
28
|
+
|
29
|
+
service.delete_role(rolename)
|
30
|
+
true
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|