fog 1.8.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +3 -1
- data/RELEASE.md +39 -0
- data/Rakefile +39 -14
- data/bin/fog +4 -0
- data/changelog.txt +430 -0
- data/docs/storage/aws.markdown +21 -0
- data/fog.gemspec +2 -2
- data/lib/fog/atmos/models/storage/directories.rb +2 -2
- data/lib/fog/atmos/models/storage/directory.rb +11 -11
- data/lib/fog/atmos/models/storage/file.rb +8 -8
- data/lib/fog/atmos/models/storage/files.rb +3 -3
- data/lib/fog/aws.rb +1 -0
- data/lib/fog/aws/compute.rb +2 -1
- data/lib/fog/aws/dynamodb.rb +1 -1
- data/lib/fog/aws/elasticache.rb +3 -1
- data/lib/fog/aws/models/auto_scaling/activities.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/activity.rb +1 -1
- data/lib/fog/aws/models/auto_scaling/configuration.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/configurations.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/group.rb +12 -12
- data/lib/fog/aws/models/auto_scaling/groups.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/instance.rb +5 -5
- data/lib/fog/aws/models/auto_scaling/instances.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/policies.rb +2 -2
- data/lib/fog/aws/models/auto_scaling/policy.rb +2 -2
- data/lib/fog/aws/models/beanstalk/application.rb +7 -7
- data/lib/fog/aws/models/beanstalk/applications.rb +2 -2
- data/lib/fog/aws/models/beanstalk/environment.rb +10 -10
- data/lib/fog/aws/models/beanstalk/environments.rb +2 -2
- data/lib/fog/aws/models/beanstalk/events.rb +1 -1
- data/lib/fog/aws/models/beanstalk/template.rb +5 -5
- data/lib/fog/aws/models/beanstalk/templates.rb +3 -3
- data/lib/fog/aws/models/beanstalk/version.rb +6 -6
- data/lib/fog/aws/models/beanstalk/versions.rb +2 -2
- data/lib/fog/aws/models/cdn/distribution.rb +4 -4
- data/lib/fog/aws/models/cdn/distributions.rb +2 -2
- data/lib/fog/aws/models/cdn/invalidation.rb +2 -2
- data/lib/fog/aws/models/cdn/invalidations.rb +2 -2
- data/lib/fog/aws/models/cdn/streaming_distribution.rb +3 -3
- data/lib/fog/aws/models/cdn/streaming_distributions.rb +2 -2
- data/lib/fog/aws/models/cloud_watch/alarm.rb +2 -2
- data/lib/fog/aws/models/cloud_watch/alarm_data.rb +9 -9
- data/lib/fog/aws/models/cloud_watch/alarm_datum.rb +3 -3
- data/lib/fog/aws/models/cloud_watch/alarm_histories.rb +1 -1
- data/lib/fog/aws/models/cloud_watch/alarms.rb +7 -7
- data/lib/fog/aws/models/cloud_watch/metric_statistic.rb +2 -2
- data/lib/fog/aws/models/cloud_watch/metric_statistics.rb +3 -3
- data/lib/fog/aws/models/cloud_watch/metrics.rb +27 -7
- data/lib/fog/aws/models/compute/address.rb +9 -9
- data/lib/fog/aws/models/compute/addresses.rb +2 -2
- data/lib/fog/aws/models/compute/dhcp_option.rb +3 -3
- data/lib/fog/aws/models/compute/dhcp_options.rb +2 -2
- data/lib/fog/aws/models/compute/flavors.rb +1 -1
- data/lib/fog/aws/models/compute/image.rb +2 -2
- data/lib/fog/aws/models/compute/images.rb +5 -5
- data/lib/fog/aws/models/compute/internet_gateway.rb +4 -4
- data/lib/fog/aws/models/compute/internet_gateways.rb +2 -2
- data/lib/fog/aws/models/compute/key_pair.rb +4 -4
- data/lib/fog/aws/models/compute/key_pairs.rb +2 -2
- data/lib/fog/aws/models/compute/network_interface.rb +3 -3
- data/lib/fog/aws/models/compute/network_interfaces.rb +2 -2
- data/lib/fog/aws/models/compute/security_group.rb +7 -7
- data/lib/fog/aws/models/compute/security_groups.rb +3 -3
- data/lib/fog/aws/models/compute/server.rb +20 -16
- data/lib/fog/aws/models/compute/servers.rb +6 -6
- data/lib/fog/aws/models/compute/snapshot.rb +4 -4
- data/lib/fog/aws/models/compute/snapshots.rb +3 -3
- data/lib/fog/aws/models/compute/spot_request.rb +18 -8
- data/lib/fog/aws/models/compute/spot_requests.rb +11 -11
- data/lib/fog/aws/models/compute/subnet.rb +3 -3
- data/lib/fog/aws/models/compute/subnets.rb +2 -2
- data/lib/fog/aws/models/compute/tag.rb +2 -2
- data/lib/fog/aws/models/compute/tags.rb +3 -3
- data/lib/fog/aws/models/compute/volume.rb +12 -12
- data/lib/fog/aws/models/compute/volumes.rb +2 -2
- data/lib/fog/aws/models/compute/vpc.rb +2 -2
- data/lib/fog/aws/models/compute/vpcs.rb +2 -2
- data/lib/fog/aws/models/dns/record.rb +4 -4
- data/lib/fog/aws/models/dns/records.rb +3 -3
- data/lib/fog/aws/models/dns/zone.rb +3 -3
- data/lib/fog/aws/models/dns/zones.rb +2 -2
- data/lib/fog/aws/models/elasticache/cluster.rb +2 -2
- data/lib/fog/aws/models/elasticache/clusters.rb +2 -2
- data/lib/fog/aws/models/elasticache/parameter_group.rb +2 -2
- data/lib/fog/aws/models/elasticache/parameter_groups.rb +2 -2
- data/lib/fog/aws/models/elasticache/security_group.rb +4 -4
- data/lib/fog/aws/models/elasticache/security_groups.rb +2 -2
- data/lib/fog/aws/models/elb/listener.rb +2 -2
- data/lib/fog/aws/models/elb/load_balancer.rb +19 -19
- data/lib/fog/aws/models/elb/load_balancers.rb +2 -2
- data/lib/fog/aws/models/elb/policy.rb +3 -3
- data/lib/fog/aws/models/glacier/archive.rb +7 -7
- data/lib/fog/aws/models/glacier/job.rb +2 -2
- data/lib/fog/aws/models/glacier/jobs.rb +3 -3
- data/lib/fog/aws/models/glacier/vault.rb +7 -7
- data/lib/fog/aws/models/glacier/vaults.rb +2 -2
- data/lib/fog/aws/models/iam/access_key.rb +8 -8
- data/lib/fog/aws/models/iam/access_keys.rb +7 -7
- data/lib/fog/aws/models/iam/policies.rb +10 -10
- data/lib/fog/aws/models/iam/policy.rb +8 -8
- data/lib/fog/aws/models/iam/user.rb +10 -10
- data/lib/fog/aws/models/iam/users.rb +2 -2
- data/lib/fog/aws/models/rds/parameter.rb +2 -2
- data/lib/fog/aws/models/rds/parameter_group.rb +10 -10
- data/lib/fog/aws/models/rds/parameter_groups.rb +3 -3
- data/lib/fog/aws/models/rds/parameters.rb +2 -2
- data/lib/fog/aws/models/rds/security_group.rb +4 -4
- data/lib/fog/aws/models/rds/security_groups.rb +2 -2
- data/lib/fog/aws/models/rds/server.rb +10 -10
- data/lib/fog/aws/models/rds/servers.rb +3 -3
- data/lib/fog/aws/models/rds/snapshot.rb +3 -3
- data/lib/fog/aws/models/rds/snapshots.rb +3 -3
- data/lib/fog/aws/models/rds/subnet_groups.rb +2 -2
- data/lib/fog/aws/models/storage/directories.rb +2 -2
- data/lib/fog/aws/models/storage/directory.rb +13 -13
- data/lib/fog/aws/models/storage/file.rb +106 -14
- data/lib/fog/aws/models/storage/files.rb +10 -10
- data/lib/fog/aws/models/storage/version.rb +2 -2
- data/lib/fog/aws/models/storage/versions.rb +3 -3
- data/lib/fog/aws/parsers/compute/copy_snapshot.rb +22 -0
- data/lib/fog/aws/parsers/compute/describe_instances.rb +8 -1
- data/lib/fog/aws/parsers/compute/spot_instance_requests.rb +5 -3
- data/lib/fog/aws/parsers/elasticache/describe_reserved_cache_nodes.rb +37 -0
- data/lib/fog/aws/parsers/storage/cors_configuration.rb +41 -0
- data/lib/fog/aws/parsers/storage/get_bucket_lifecycle.rb +45 -11
- data/lib/fog/aws/requests/auto_scaling/resume_processes.rb +10 -1
- data/lib/fog/aws/requests/auto_scaling/suspend_processes.rb +7 -2
- data/lib/fog/aws/requests/cloud_formation/create_stack.rb +17 -0
- data/lib/fog/aws/requests/cloud_watch/list_metrics.rb +27 -0
- data/lib/fog/aws/requests/compute/copy_snapshot.rb +58 -0
- data/lib/fog/aws/requests/elasticache/describe_reserved_cache_nodes.rb +42 -0
- data/lib/fog/aws/requests/storage/abort_multipart_upload.rb +5 -7
- data/lib/fog/aws/requests/storage/complete_multipart_upload.rb +12 -16
- data/lib/fog/aws/requests/storage/copy_object.rb +19 -20
- data/lib/fog/aws/requests/storage/cors_utils.rb +41 -0
- data/lib/fog/aws/requests/storage/delete_bucket.rb +4 -7
- data/lib/fog/aws/requests/storage/delete_bucket_cors.rb +29 -0
- data/lib/fog/aws/requests/storage/delete_bucket_lifecycle.rb +4 -7
- data/lib/fog/aws/requests/storage/delete_bucket_policy.rb +5 -8
- data/lib/fog/aws/requests/storage/delete_bucket_website.rb +4 -7
- data/lib/fog/aws/requests/storage/delete_multiple_objects.rb +24 -29
- data/lib/fog/aws/requests/storage/delete_object.rb +5 -8
- data/lib/fog/aws/requests/storage/get_bucket.rb +25 -28
- data/lib/fog/aws/requests/storage/get_bucket_acl.rb +15 -18
- data/lib/fog/aws/requests/storage/get_bucket_cors.rb +65 -0
- data/lib/fog/aws/requests/storage/get_bucket_lifecycle.rb +9 -12
- data/lib/fog/aws/requests/storage/get_bucket_location.rb +5 -8
- data/lib/fog/aws/requests/storage/get_bucket_logging.rb +15 -18
- data/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +37 -43
- data/lib/fog/aws/requests/storage/get_bucket_policy.rb +4 -7
- data/lib/fog/aws/requests/storage/get_bucket_versioning.rb +6 -9
- data/lib/fog/aws/requests/storage/get_bucket_website.rb +9 -11
- data/lib/fog/aws/requests/storage/get_object.rb +17 -20
- data/lib/fog/aws/requests/storage/get_object_acl.rb +18 -21
- data/lib/fog/aws/requests/storage/get_object_http_url.rb +6 -9
- data/lib/fog/aws/requests/storage/get_object_https_url.rb +6 -9
- data/lib/fog/aws/requests/storage/get_object_torrent.rb +15 -18
- data/lib/fog/aws/requests/storage/get_object_url.rb +7 -10
- data/lib/fog/aws/requests/storage/get_request_payment.rb +5 -8
- data/lib/fog/aws/requests/storage/get_service.rb +9 -11
- data/lib/fog/aws/requests/storage/head_object.rb +19 -22
- data/lib/fog/aws/requests/storage/initiate_multipart_upload.rb +17 -20
- data/lib/fog/aws/requests/storage/list_multipart_uploads.rb +27 -32
- data/lib/fog/aws/requests/storage/list_parts.rb +25 -29
- data/lib/fog/aws/requests/storage/post_object_hidden_fields.rb +15 -17
- data/lib/fog/aws/requests/storage/put_bucket.rb +8 -11
- data/lib/fog/aws/requests/storage/put_bucket_acl.rb +15 -17
- data/lib/fog/aws/requests/storage/put_bucket_cors.rb +49 -0
- data/lib/fog/aws/requests/storage/put_bucket_lifecycle.rb +44 -15
- data/lib/fog/aws/requests/storage/put_bucket_logging.rb +13 -15
- data/lib/fog/aws/requests/storage/put_bucket_policy.rb +3 -5
- data/lib/fog/aws/requests/storage/put_bucket_versioning.rb +3 -5
- data/lib/fog/aws/requests/storage/put_bucket_website.rb +5 -7
- data/lib/fog/aws/requests/storage/put_object.rb +19 -22
- data/lib/fog/aws/requests/storage/put_object_acl.rb +17 -19
- data/lib/fog/aws/requests/storage/put_object_url.rb +6 -9
- data/lib/fog/aws/requests/storage/put_request_payment.rb +3 -5
- data/lib/fog/aws/requests/storage/upload_part.rb +12 -15
- data/lib/fog/aws/storage.rb +8 -1
- data/lib/fog/bin/rackspace.rb +7 -0
- data/lib/fog/bluebox/models/compute/flavors.rb +2 -2
- data/lib/fog/bluebox/models/compute/image.rb +8 -8
- data/lib/fog/bluebox/models/compute/images.rb +2 -2
- data/lib/fog/bluebox/models/compute/locations.rb +2 -2
- data/lib/fog/bluebox/models/compute/server.rb +10 -10
- data/lib/fog/bluebox/models/compute/servers.rb +2 -2
- data/lib/fog/bluebox/models/dns/record.rb +3 -3
- data/lib/fog/bluebox/models/dns/records.rb +2 -2
- data/lib/fog/bluebox/models/dns/zone.rb +3 -3
- data/lib/fog/bluebox/models/dns/zones.rb +2 -2
- data/lib/fog/bluebox/requests/compute/create_block.rb +2 -2
- data/lib/fog/brightbox/compute.rb +56 -9
- data/lib/fog/brightbox/models/compute/account.rb +1 -1
- data/lib/fog/brightbox/models/compute/accounts.rb +3 -3
- data/lib/fog/brightbox/models/compute/api_client.rb +4 -4
- data/lib/fog/brightbox/models/compute/api_clients.rb +2 -2
- data/lib/fog/brightbox/models/compute/application.rb +2 -2
- data/lib/fog/brightbox/models/compute/applications.rb +3 -3
- data/lib/fog/brightbox/models/compute/cloud_ip.rb +4 -3
- data/lib/fog/brightbox/models/compute/cloud_ips.rb +4 -4
- data/lib/fog/brightbox/models/compute/firewall_policies.rb +3 -3
- data/lib/fog/brightbox/models/compute/firewall_policy.rb +5 -5
- data/lib/fog/brightbox/models/compute/firewall_rule.rb +3 -3
- data/lib/fog/brightbox/models/compute/firewall_rules.rb +2 -2
- data/lib/fog/brightbox/models/compute/flavors.rb +3 -3
- data/lib/fog/brightbox/models/compute/image.rb +3 -3
- data/lib/fog/brightbox/models/compute/images.rb +2 -2
- data/lib/fog/brightbox/models/compute/load_balancer.rb +3 -3
- data/lib/fog/brightbox/models/compute/load_balancers.rb +2 -2
- data/lib/fog/brightbox/models/compute/server.rb +23 -17
- data/lib/fog/brightbox/models/compute/server_group.rb +6 -6
- data/lib/fog/brightbox/models/compute/server_groups.rb +3 -3
- data/lib/fog/brightbox/models/compute/servers.rb +3 -3
- data/lib/fog/brightbox/models/compute/user.rb +1 -1
- data/lib/fog/brightbox/models/compute/users.rb +3 -3
- data/lib/fog/brightbox/models/compute/zones.rb +3 -3
- data/lib/fog/brightbox/requests/compute/activate_console_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/add_servers_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_api_client.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_firewall_rule.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_image.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/create_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_api_client.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_firewall_rule.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_image.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/destroy_server_group.rb +1 -1
- 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_authenticated_user.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_scoped_account.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 +1 -1
- data/lib/fog/brightbox/requests/compute/move_servers_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb +1 -1
- data/lib/fog/brightbox/requests/compute/remove_listeners_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/remove_nodes_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/remove_servers_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/reset_ftp_password_scoped_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/reset_secret_api_client.rb +1 -1
- 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 +1 -1
- data/lib/fog/brightbox/requests/compute/update_api_client.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_application.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_cloud_ip.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_firewall_rule.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_image.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_load_balancer.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_scoped_account.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_server.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_server_group.rb +1 -1
- data/lib/fog/brightbox/requests/compute/update_user.rb +1 -1
- data/lib/fog/clodo/models/compute/images.rb +2 -2
- data/lib/fog/clodo/models/compute/server.rb +7 -7
- data/lib/fog/clodo/models/compute/servers.rb +2 -2
- data/lib/fog/cloudstack/models/compute/flavors.rb +2 -2
- data/lib/fog/cloudstack/models/compute/image.rb +2 -2
- data/lib/fog/cloudstack/models/compute/images.rb +2 -2
- data/lib/fog/cloudstack/models/compute/job.rb +2 -2
- data/lib/fog/cloudstack/models/compute/jobs.rb +2 -2
- data/lib/fog/cloudstack/models/compute/security_group.rb +3 -3
- data/lib/fog/cloudstack/models/compute/security_group_rule.rb +5 -5
- data/lib/fog/cloudstack/models/compute/security_group_rules.rb +1 -1
- data/lib/fog/cloudstack/models/compute/security_groups.rb +2 -2
- data/lib/fog/cloudstack/models/compute/server.rb +11 -11
- data/lib/fog/cloudstack/models/compute/servers.rb +2 -2
- data/lib/fog/cloudstack/models/compute/volume.rb +8 -8
- data/lib/fog/cloudstack/models/compute/volumes.rb +2 -2
- data/lib/fog/cloudstack/models/compute/zone.rb +1 -1
- data/lib/fog/cloudstack/models/compute/zones.rb +2 -2
- data/lib/fog/compute.rb +2 -1
- data/lib/fog/core/attributes.rb +20 -3
- data/lib/fog/core/collection.rb +17 -6
- data/lib/fog/core/deprecated_connection_accessors.rb +41 -0
- data/lib/fog/core/errors.rb +2 -0
- data/lib/fog/core/json.rb +4 -16
- data/lib/fog/core/logger.rb +2 -0
- data/lib/fog/core/model.rb +11 -1
- data/lib/fog/core/parser.rb +13 -0
- data/lib/fog/core/service.rb +1 -1
- data/lib/fog/core/wait_for.rb +1 -1
- data/lib/fog/dnsimple/models/dns/record.rb +4 -4
- data/lib/fog/dnsimple/models/dns/records.rb +2 -2
- data/lib/fog/dnsimple/models/dns/zone.rb +3 -3
- data/lib/fog/dnsimple/models/dns/zones.rb +2 -2
- data/lib/fog/dnsmadeeasy/models/dns/record.rb +5 -5
- data/lib/fog/dnsmadeeasy/models/dns/records.rb +2 -2
- data/lib/fog/dnsmadeeasy/models/dns/zone.rb +3 -3
- data/lib/fog/dnsmadeeasy/models/dns/zones.rb +2 -2
- data/lib/fog/dynect/models/dns/record.rb +3 -3
- data/lib/fog/dynect/models/dns/records.rb +2 -2
- data/lib/fog/dynect/models/dns/zone.rb +4 -4
- data/lib/fog/dynect/models/dns/zones.rb +2 -2
- data/lib/fog/ecloud.rb +19 -5
- data/lib/fog/ecloud/compute.rb +663 -351
- data/lib/fog/ecloud/generate_collection.rb +3 -3
- data/lib/fog/ecloud/models/compute/admin_organization.rb +14 -10
- data/lib/fog/ecloud/models/compute/admin_organizations.rb +1 -6
- data/lib/fog/ecloud/models/compute/api_keys.rb +2 -2
- data/lib/fog/ecloud/models/compute/association.rb +3 -3
- data/lib/fog/ecloud/models/compute/associations.rb +2 -2
- data/lib/fog/ecloud/models/compute/authentication_levels.rb +2 -2
- data/lib/fog/ecloud/models/compute/backup_internet_service.rb +7 -7
- data/lib/fog/ecloud/models/compute/backup_internet_services.rb +3 -3
- data/lib/fog/ecloud/models/compute/catalog.rb +2 -2
- data/lib/fog/ecloud/models/compute/catalog_configurations.rb +2 -2
- data/lib/fog/ecloud/models/compute/catalog_item.rb +1 -1
- data/lib/fog/ecloud/models/compute/compute_pool.rb +27 -15
- data/lib/fog/ecloud/models/compute/compute_pools.rb +2 -2
- data/lib/fog/ecloud/models/compute/cpu_usage_detail_summary.rb +2 -2
- data/lib/fog/ecloud/models/compute/detached_disk.rb +27 -0
- data/lib/fog/ecloud/models/compute/detached_disks.rb +31 -0
- data/lib/fog/ecloud/models/compute/environment.rb +27 -20
- data/lib/fog/ecloud/models/compute/environments.rb +2 -2
- data/lib/fog/ecloud/models/compute/firewall_acl.rb +1 -1
- data/lib/fog/ecloud/models/compute/firewall_acls.rb +2 -2
- data/lib/fog/ecloud/models/compute/group.rb +8 -6
- data/lib/fog/ecloud/models/compute/groups.rb +17 -6
- data/lib/fog/ecloud/models/compute/guest_processes.rb +2 -2
- data/lib/fog/ecloud/models/compute/hardware_configuration.rb +4 -4
- data/lib/fog/ecloud/models/compute/hardware_configurations.rb +2 -2
- data/lib/fog/ecloud/models/compute/internet_service.rb +35 -29
- data/lib/fog/ecloud/models/compute/internet_services.rb +11 -8
- data/lib/fog/ecloud/models/compute/ip_address.rb +17 -3
- data/lib/fog/ecloud/models/compute/ip_addresses.rb +7 -2
- data/lib/fog/ecloud/models/compute/layout.rb +1 -1
- data/lib/fog/ecloud/models/compute/layouts.rb +2 -2
- data/lib/fog/ecloud/models/compute/location.rb +1 -1
- data/lib/fog/ecloud/models/compute/locations.rb +2 -2
- data/lib/fog/ecloud/models/compute/login_banners.rb +2 -2
- data/lib/fog/ecloud/models/compute/memory_usage_detail_summary.rb +2 -2
- data/lib/fog/ecloud/models/compute/monitor.rb +4 -4
- data/lib/fog/ecloud/models/compute/monitors.rb +2 -2
- data/lib/fog/ecloud/models/compute/network.rb +22 -12
- data/lib/fog/ecloud/models/compute/networks.rb +9 -5
- data/lib/fog/ecloud/models/compute/node.rb +12 -6
- data/lib/fog/ecloud/models/compute/nodes.rb +7 -4
- data/lib/fog/ecloud/models/compute/operating_system_families.rb +2 -2
- data/lib/fog/ecloud/models/compute/operating_system_family.rb +1 -1
- data/lib/fog/ecloud/models/compute/operating_systems.rb +1 -1
- data/lib/fog/ecloud/models/compute/organization.rb +17 -17
- data/lib/fog/ecloud/models/compute/organizations.rb +3 -3
- data/lib/fog/ecloud/models/compute/password_complexity_rules.rb +2 -2
- data/lib/fog/ecloud/models/compute/physical_devices.rb +2 -2
- data/lib/fog/ecloud/models/compute/public_ip.rb +2 -2
- data/lib/fog/ecloud/models/compute/public_ips.rb +8 -5
- data/lib/fog/ecloud/models/compute/rnat.rb +2 -2
- data/lib/fog/ecloud/models/compute/rnats.rb +2 -2
- data/lib/fog/ecloud/models/compute/roles.rb +2 -2
- data/lib/fog/ecloud/models/compute/row.rb +10 -7
- data/lib/fog/ecloud/models/compute/rows.rb +9 -6
- data/lib/fog/ecloud/models/compute/server.rb +139 -93
- data/lib/fog/ecloud/models/compute/server_configuration_options.rb +2 -2
- data/lib/fog/ecloud/models/compute/servers.rb +18 -15
- data/lib/fog/ecloud/models/compute/ssh_key.rb +1 -1
- data/lib/fog/ecloud/models/compute/ssh_keys.rb +2 -2
- data/lib/fog/ecloud/models/compute/storage_usage_detail_summary.rb +2 -2
- data/lib/fog/ecloud/models/compute/support_tickets.rb +2 -2
- data/lib/fog/ecloud/models/compute/tags.rb +2 -2
- data/lib/fog/ecloud/models/compute/task.rb +3 -0
- data/lib/fog/ecloud/models/compute/tasks.rb +3 -3
- data/lib/fog/ecloud/models/compute/template.rb +8 -9
- data/lib/fog/ecloud/models/compute/templates.rb +2 -2
- data/lib/fog/ecloud/models/compute/trusted_network_group.rb +5 -5
- data/lib/fog/ecloud/models/compute/trusted_network_groups.rb +2 -2
- data/lib/fog/ecloud/models/compute/user.rb +2 -2
- data/lib/fog/ecloud/models/compute/users.rb +2 -2
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ip.rb +32 -0
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ips.rb +27 -0
- data/lib/fog/ecloud/requests/compute/admin_edit_authentication_levels.rb +1 -2
- data/lib/fog/ecloud/requests/compute/get_admin_organization.rb +14 -0
- data/lib/fog/ecloud/requests/compute/get_compute_pool.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_compute_pools.rb +21 -0
- data/lib/fog/ecloud/requests/compute/get_detached_disk.rb +21 -0
- data/lib/fog/ecloud/requests/compute/get_detached_disks.rb +33 -0
- data/lib/fog/ecloud/requests/compute/get_environment.rb +21 -0
- data/lib/fog/ecloud/requests/compute/get_group.rb +8 -1
- data/lib/fog/ecloud/requests/compute/get_groups.rb +8 -1
- data/lib/fog/ecloud/requests/compute/get_hardware_configuration.rb +19 -0
- data/lib/fog/ecloud/requests/compute/get_hardware_configurations.rb +4 -0
- data/lib/fog/ecloud/requests/compute/get_internet_service.rb +12 -0
- data/lib/fog/ecloud/requests/compute/get_internet_services.rb +8 -0
- data/lib/fog/ecloud/requests/compute/get_ip_address.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_layout.rb +8 -1
- data/lib/fog/ecloud/requests/compute/get_layouts.rb +8 -1
- data/lib/fog/ecloud/requests/compute/get_network.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_networks.rb +20 -0
- data/lib/fog/ecloud/requests/compute/get_node.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_nodes.rb +9 -0
- data/lib/fog/ecloud/requests/compute/get_operating_system.rb +14 -0
- data/lib/fog/ecloud/requests/compute/get_operating_system_families.rb +20 -0
- data/lib/fog/ecloud/requests/compute/get_organization.rb +14 -0
- data/lib/fog/ecloud/requests/compute/get_organizations.rb +14 -2
- data/lib/fog/ecloud/requests/compute/get_public_ip.rb +11 -1
- data/lib/fog/ecloud/requests/compute/get_public_ips.rb +22 -0
- data/lib/fog/ecloud/requests/compute/get_row.rb +8 -1
- data/lib/fog/ecloud/requests/compute/get_rows.rb +2 -1
- data/lib/fog/ecloud/requests/compute/get_server.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_servers.rb +32 -1
- data/lib/fog/ecloud/requests/compute/get_ssh_key.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_ssh_keys.rb +20 -0
- data/lib/fog/ecloud/requests/compute/get_task.rb +4 -2
- data/lib/fog/ecloud/requests/compute/get_template.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_templates.rb +38 -0
- data/lib/fog/ecloud/requests/compute/get_virtual_machine_assigned_ips.rb +44 -0
- data/lib/fog/ecloud/requests/compute/groups_delete.rb +16 -1
- data/lib/fog/ecloud/requests/compute/internet_service_create.rb +36 -1
- data/lib/fog/ecloud/requests/compute/internet_service_delete.rb +23 -0
- data/lib/fog/ecloud/requests/compute/node_service_create.rb +49 -1
- data/lib/fog/ecloud/requests/compute/node_service_delete.rb +24 -0
- data/lib/fog/ecloud/requests/compute/rows_delete.rb +11 -1
- data/lib/fog/ecloud/requests/compute/virtual_machine_attach_disk.rb +62 -0
- data/lib/fog/ecloud/requests/compute/virtual_machine_create_from_template.rb +136 -16
- data/lib/fog/ecloud/requests/compute/virtual_machine_delete.rb +36 -1
- data/lib/fog/ecloud/requests/compute/virtual_machine_detach_disk.rb +71 -0
- data/lib/fog/ecloud/requests/compute/virtual_machine_edit_assigned_ips.rb +82 -0
- data/lib/fog/ecloud/requests/compute/virtual_machine_edit_hardware_configuration.rb +27 -3
- data/lib/fog/ecloud/requests/compute/virtual_machine_import.rb +120 -6
- data/lib/fog/glesys/models/compute/ip.rb +7 -7
- data/lib/fog/glesys/models/compute/ips.rb +7 -7
- data/lib/fog/glesys/models/compute/server.rb +6 -6
- data/lib/fog/glesys/models/compute/servers.rb +4 -4
- data/lib/fog/glesys/models/compute/template.rb +1 -1
- data/lib/fog/glesys/models/compute/templates.rb +2 -2
- data/lib/fog/go_grid/models/compute/image.rb +3 -3
- data/lib/fog/go_grid/models/compute/images.rb +2 -2
- data/lib/fog/go_grid/models/compute/password.rb +5 -5
- data/lib/fog/go_grid/models/compute/passwords.rb +3 -3
- data/lib/fog/go_grid/models/compute/server.rb +4 -4
- data/lib/fog/go_grid/models/compute/servers.rb +2 -2
- data/lib/fog/google/models/storage/directories.rb +2 -2
- data/lib/fog/google/models/storage/directory.rb +4 -4
- data/lib/fog/google/models/storage/file.rb +5 -5
- data/lib/fog/google/models/storage/files.rb +4 -4
- data/lib/fog/hp.rb +6 -3
- data/lib/fog/hp/models/compute/address.rb +8 -8
- data/lib/fog/hp/models/compute/addresses.rb +2 -2
- data/lib/fog/hp/models/compute/flavors.rb +2 -2
- data/lib/fog/hp/models/compute/image.rb +2 -2
- data/lib/fog/hp/models/compute/images.rb +2 -2
- data/lib/fog/hp/models/compute/key_pair.rb +3 -3
- data/lib/fog/hp/models/compute/key_pairs.rb +2 -2
- data/lib/fog/hp/models/compute/security_group.rb +4 -4
- data/lib/fog/hp/models/compute/security_groups.rb +3 -3
- data/lib/fog/hp/models/compute/server.rb +15 -15
- data/lib/fog/hp/models/compute/servers.rb +2 -2
- data/lib/fog/hp/models/storage/directories.rb +3 -3
- data/lib/fog/hp/models/storage/directory.rb +18 -18
- data/lib/fog/hp/models/storage/file.rb +4 -4
- data/lib/fog/hp/models/storage/files.rb +2 -2
- data/lib/fog/ibm/models/compute/address.rb +2 -2
- data/lib/fog/ibm/models/compute/addresses.rb +2 -2
- data/lib/fog/ibm/models/compute/image.rb +3 -3
- data/lib/fog/ibm/models/compute/images.rb +2 -2
- data/lib/fog/ibm/models/compute/key.rb +2 -2
- data/lib/fog/ibm/models/compute/keys.rb +3 -3
- data/lib/fog/ibm/models/compute/locations.rb +2 -2
- data/lib/fog/ibm/models/compute/server.rb +12 -12
- data/lib/fog/ibm/models/compute/servers.rb +2 -2
- data/lib/fog/ibm/models/compute/vlans.rb +2 -2
- data/lib/fog/ibm/models/storage/offerings.rb +1 -1
- data/lib/fog/ibm/models/storage/volume.rb +5 -5
- data/lib/fog/ibm/models/storage/volumes.rb +2 -2
- data/lib/fog/identity.rb +3 -0
- data/lib/fog/joyent/models/compute/flavors.rb +2 -2
- data/lib/fog/joyent/models/compute/images.rb +2 -2
- data/lib/fog/joyent/models/compute/key.rb +1 -1
- data/lib/fog/joyent/models/compute/keys.rb +3 -3
- data/lib/fog/joyent/models/compute/server.rb +13 -13
- data/lib/fog/joyent/models/compute/servers.rb +3 -3
- data/lib/fog/joyent/models/compute/snapshot.rb +4 -4
- data/lib/fog/joyent/models/compute/snapshots.rb +3 -3
- data/lib/fog/libvirt/compute.rb +6 -1
- data/lib/fog/libvirt/models/compute/interface.rb +1 -1
- data/lib/fog/libvirt/models/compute/interfaces.rb +1 -1
- data/lib/fog/libvirt/models/compute/network.rb +1 -1
- data/lib/fog/libvirt/models/compute/networks.rb +1 -1
- data/lib/fog/libvirt/models/compute/nic.rb +2 -2
- data/lib/fog/libvirt/models/compute/nodes.rb +1 -1
- data/lib/fog/libvirt/models/compute/pool.rb +7 -7
- data/lib/fog/libvirt/models/compute/pools.rb +1 -1
- data/lib/fog/libvirt/models/compute/server.rb +28 -28
- data/lib/fog/libvirt/models/compute/servers.rb +2 -2
- data/lib/fog/libvirt/models/compute/volume.rb +5 -5
- data/lib/fog/libvirt/models/compute/volumes.rb +1 -1
- data/lib/fog/linode/models/compute/data_centers.rb +2 -2
- data/lib/fog/linode/models/compute/disk.rb +7 -7
- data/lib/fog/linode/models/compute/disks.rb +2 -2
- data/lib/fog/linode/models/compute/flavors.rb +2 -2
- data/lib/fog/linode/models/compute/images.rb +2 -2
- data/lib/fog/linode/models/compute/ip.rb +3 -3
- data/lib/fog/linode/models/compute/ips.rb +2 -2
- data/lib/fog/linode/models/compute/kernels.rb +2 -2
- data/lib/fog/linode/models/compute/server.rb +13 -13
- data/lib/fog/linode/models/compute/servers.rb +2 -2
- data/lib/fog/linode/models/compute/stack_scripts.rb +3 -3
- data/lib/fog/linode/models/dns/record.rb +6 -6
- data/lib/fog/linode/models/dns/records.rb +2 -2
- data/lib/fog/linode/models/dns/zone.rb +6 -6
- data/lib/fog/linode/models/dns/zones.rb +2 -2
- data/lib/fog/local/models/storage/directories.rb +3 -3
- data/lib/fog/local/models/storage/directory.rb +2 -2
- data/lib/fog/local/models/storage/file.rb +6 -6
- data/lib/fog/local/models/storage/files.rb +2 -2
- data/lib/fog/ninefold/models/compute/address.rb +5 -5
- data/lib/fog/ninefold/models/compute/addresses.rb +2 -2
- data/lib/fog/ninefold/models/compute/flavors.rb +2 -2
- data/lib/fog/ninefold/models/compute/images.rb +2 -2
- data/lib/fog/ninefold/models/compute/ip_forwarding_rule.rb +3 -3
- data/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb +2 -2
- data/lib/fog/ninefold/models/compute/server.rb +9 -9
- data/lib/fog/ninefold/models/compute/servers.rb +2 -2
- data/lib/fog/openstack.rb +40 -14
- data/lib/fog/openstack/README.identity.md +69 -0
- data/lib/fog/openstack/compute.rb +49 -18
- data/lib/fog/openstack/identity.rb +33 -20
- data/lib/fog/openstack/image.rb +10 -4
- data/lib/fog/openstack/models/compute/address.rb +8 -8
- data/lib/fog/openstack/models/compute/addresses.rb +3 -3
- data/lib/fog/openstack/models/compute/flavor.rb +4 -3
- data/lib/fog/openstack/models/compute/flavors.rb +2 -2
- data/lib/fog/openstack/models/compute/host.rb +3 -2
- data/lib/fog/openstack/models/compute/hosts.rb +2 -2
- data/lib/fog/openstack/models/compute/image.rb +4 -3
- data/lib/fog/openstack/models/compute/images.rb +2 -2
- data/lib/fog/openstack/models/compute/key_pair.rb +3 -3
- data/lib/fog/openstack/models/compute/key_pairs.rb +1 -1
- data/lib/fog/openstack/models/compute/metadata.rb +4 -4
- data/lib/fog/openstack/models/compute/metadatum.rb +2 -2
- data/lib/fog/openstack/models/compute/security_group.rb +4 -4
- data/lib/fog/openstack/models/compute/security_groups.rb +2 -2
- data/lib/fog/openstack/models/compute/server.rb +33 -20
- data/lib/fog/openstack/models/compute/servers.rb +2 -2
- data/lib/fog/openstack/models/compute/snapshot.rb +4 -3
- data/lib/fog/openstack/models/compute/snapshots.rb +2 -2
- data/lib/fog/openstack/models/compute/tenant.rb +1 -1
- data/lib/fog/openstack/models/compute/tenants.rb +7 -3
- data/lib/fog/openstack/models/compute/volume.rb +6 -5
- data/lib/fog/openstack/models/compute/volumes.rb +2 -2
- data/lib/fog/openstack/models/identity/ec2_credential.rb +44 -0
- data/lib/fog/openstack/models/identity/ec2_credentials.rb +53 -0
- data/lib/fog/openstack/models/identity/role.rb +4 -4
- data/lib/fog/openstack/models/identity/roles.rb +2 -2
- data/lib/fog/openstack/models/identity/tenant.rb +7 -7
- data/lib/fog/openstack/models/identity/tenants.rb +3 -3
- data/lib/fog/openstack/models/identity/user.rb +12 -6
- data/lib/fog/openstack/models/identity/users.rb +3 -3
- data/lib/fog/openstack/models/image/image.rb +10 -9
- data/lib/fog/openstack/models/image/images.rb +6 -6
- data/lib/fog/openstack/models/network/floating_ip.rb +52 -0
- data/lib/fog/openstack/models/network/floating_ips.rb +34 -0
- data/lib/fog/openstack/models/network/network.rb +6 -5
- data/lib/fog/openstack/models/network/networks.rb +3 -3
- data/lib/fog/openstack/models/network/port.rb +6 -5
- data/lib/fog/openstack/models/network/ports.rb +3 -3
- data/lib/fog/openstack/models/network/subnet.rb +6 -5
- data/lib/fog/openstack/models/network/subnets.rb +3 -3
- data/lib/fog/openstack/models/volume/volume.rb +4 -3
- data/lib/fog/openstack/models/volume/volumes.rb +2 -2
- data/lib/fog/openstack/network.rb +16 -3
- data/lib/fog/openstack/requests/compute/create_security_group.rb +2 -1
- data/lib/fog/openstack/requests/compute/create_security_group_rule.rb +1 -0
- data/lib/fog/openstack/requests/compute/create_server.rb +54 -7
- data/lib/fog/openstack/requests/compute/delete_security_group.rb +2 -0
- data/lib/fog/openstack/requests/compute/list_security_groups.rb +17 -41
- data/lib/fog/openstack/requests/identity/add_user_to_tenant.rb +7 -2
- data/lib/fog/openstack/requests/identity/create_ec2_credential.rb +58 -0
- data/lib/fog/openstack/requests/identity/create_role.rb +1 -1
- data/lib/fog/openstack/requests/identity/create_tenant.rb +1 -3
- data/lib/fog/openstack/requests/identity/delete_ec2_credential.rb +44 -0
- data/lib/fog/openstack/requests/identity/get_ec2_credential.rb +49 -0
- data/lib/fog/openstack/requests/identity/get_user_by_name.rb +8 -0
- data/lib/fog/openstack/requests/identity/list_ec2_credentials.rb +44 -0
- data/lib/fog/openstack/requests/identity/list_roles_for_user_on_tenant.rb +7 -1
- data/lib/fog/openstack/requests/identity/list_users.rb +10 -1
- data/lib/fog/openstack/requests/identity/update_tenant.rb +1 -3
- data/lib/fog/openstack/requests/image/create_image.rb +3 -1
- data/lib/fog/openstack/requests/network/associate_floating_ip.rb +49 -0
- data/lib/fog/openstack/requests/network/create_floating_ip.rb +50 -0
- data/lib/fog/openstack/requests/network/delete_floating_ip.rb +30 -0
- data/lib/fog/openstack/requests/network/disassociate_floating_ip.rb +49 -0
- data/lib/fog/openstack/requests/network/get_floating_ip.rb +42 -0
- data/lib/fog/openstack/requests/network/list_floating_ips.rb +27 -0
- data/lib/fog/openstack/volume.rb +4 -2
- data/lib/fog/ovirt/models/compute/cluster.rb +1 -1
- data/lib/fog/ovirt/models/compute/clusters.rb +2 -2
- data/lib/fog/ovirt/models/compute/interfaces.rb +3 -3
- data/lib/fog/ovirt/models/compute/server.rb +15 -15
- data/lib/fog/ovirt/models/compute/servers.rb +2 -2
- data/lib/fog/ovirt/models/compute/template.rb +5 -5
- data/lib/fog/ovirt/models/compute/templates.rb +2 -2
- data/lib/fog/ovirt/models/compute/volumes.rb +3 -3
- data/lib/fog/rackspace.rb +22 -11
- data/lib/fog/rackspace/block_storage.rb +19 -0
- data/lib/fog/rackspace/compute_v2.rb +29 -0
- data/lib/fog/rackspace/docs/cloud_servers.md +65 -0
- data/lib/fog/rackspace/docs/getting_started.md +76 -0
- data/lib/fog/rackspace/load_balancers.rb +2 -0
- data/lib/fog/rackspace/mock_data.rb +144 -0
- data/lib/fog/rackspace/models/block_storage/snapshot.rb +3 -2
- data/lib/fog/rackspace/models/block_storage/snapshots.rb +2 -2
- data/lib/fog/rackspace/models/block_storage/volume.rb +9 -3
- data/lib/fog/rackspace/models/block_storage/volume_types.rb +3 -3
- data/lib/fog/rackspace/models/block_storage/volumes.rb +2 -2
- data/lib/fog/rackspace/models/compute/flavors.rb +2 -2
- data/lib/fog/rackspace/models/compute/image.rb +3 -3
- data/lib/fog/rackspace/models/compute/images.rb +2 -2
- data/lib/fog/rackspace/models/compute/server.rb +7 -7
- data/lib/fog/rackspace/models/compute/servers.rb +2 -2
- data/lib/fog/rackspace/models/compute_v2/attachment.rb +13 -9
- data/lib/fog/rackspace/models/compute_v2/attachments.rb +2 -2
- data/lib/fog/rackspace/models/compute_v2/flavors.rb +2 -2
- data/lib/fog/rackspace/models/compute_v2/image.rb +36 -1
- data/lib/fog/rackspace/models/compute_v2/images.rb +2 -2
- data/lib/fog/rackspace/models/compute_v2/meta_parent.rb +33 -0
- data/lib/fog/rackspace/models/compute_v2/metadata.rb +77 -0
- data/lib/fog/rackspace/models/compute_v2/metadatum.rb +29 -0
- data/lib/fog/rackspace/models/compute_v2/server.rb +75 -21
- data/lib/fog/rackspace/models/compute_v2/servers.rb +2 -2
- data/lib/fog/rackspace/models/databases/database.rb +2 -2
- data/lib/fog/rackspace/models/databases/databases.rb +1 -1
- data/lib/fog/rackspace/models/databases/flavors.rb +2 -2
- data/lib/fog/rackspace/models/databases/instance.rb +10 -10
- data/lib/fog/rackspace/models/databases/instances.rb +2 -2
- data/lib/fog/rackspace/models/databases/user.rb +2 -2
- data/lib/fog/rackspace/models/databases/users.rb +1 -1
- data/lib/fog/rackspace/models/dns/callback.rb +1 -1
- data/lib/fog/rackspace/models/dns/record.rb +13 -8
- data/lib/fog/rackspace/models/dns/records.rb +2 -2
- data/lib/fog/rackspace/models/dns/zone.rb +5 -5
- data/lib/fog/rackspace/models/dns/zones.rb +2 -2
- data/lib/fog/rackspace/models/identity/credentials.rb +1 -1
- data/lib/fog/rackspace/models/identity/roles.rb +1 -1
- data/lib/fog/rackspace/models/identity/tenants.rb +1 -1
- data/lib/fog/rackspace/models/identity/user.rb +6 -6
- data/lib/fog/rackspace/models/identity/users.rb +3 -3
- data/lib/fog/rackspace/models/load_balancers/access_rule.rb +4 -4
- data/lib/fog/rackspace/models/load_balancers/access_rules.rb +1 -1
- data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +45 -27
- data/lib/fog/rackspace/models/load_balancers/load_balancers.rb +2 -2
- data/lib/fog/rackspace/models/load_balancers/node.rb +4 -4
- data/lib/fog/rackspace/models/load_balancers/nodes.rb +2 -2
- data/lib/fog/rackspace/models/load_balancers/virtual_ip.rb +3 -3
- data/lib/fog/rackspace/models/load_balancers/virtual_ips.rb +1 -1
- data/lib/fog/rackspace/models/storage/directories.rb +2 -2
- data/lib/fog/rackspace/models/storage/directory.rb +12 -12
- data/lib/fog/rackspace/models/storage/file.rb +6 -6
- data/lib/fog/rackspace/models/storage/files.rb +2 -2
- data/lib/fog/rackspace/requests/block_storage/create_snapshot.rb +28 -0
- data/lib/fog/rackspace/requests/block_storage/create_volume.rb +37 -0
- data/lib/fog/rackspace/requests/block_storage/delete_snapshot.rb +7 -0
- data/lib/fog/rackspace/requests/block_storage/delete_volume.rb +17 -0
- data/lib/fog/rackspace/requests/block_storage/get_snapshot.rb +11 -0
- data/lib/fog/rackspace/requests/block_storage/get_volume.rb +17 -0
- data/lib/fog/rackspace/requests/block_storage/get_volume_type.rb +13 -0
- data/lib/fog/rackspace/requests/block_storage/list_snapshots.rb +8 -0
- data/lib/fog/rackspace/requests/block_storage/list_volume_types.rb +7 -0
- data/lib/fog/rackspace/requests/block_storage/list_volumes.rb +7 -0
- data/lib/fog/rackspace/requests/compute_v2/attach_volume.rb +41 -2
- data/lib/fog/rackspace/requests/compute_v2/change_server_password.rb +6 -0
- data/lib/fog/rackspace/requests/compute_v2/confirm_resize_server.rb +8 -0
- data/lib/fog/rackspace/requests/compute_v2/create_image.rb +89 -0
- data/lib/fog/rackspace/requests/compute_v2/create_server.rb +102 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_attachment.rb +15 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_image.rb +31 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_metadata_item.rb +26 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_server.rb +12 -0
- data/lib/fog/rackspace/requests/compute_v2/get_attachment.rb +8 -0
- data/lib/fog/rackspace/requests/compute_v2/get_flavor.rb +11 -0
- data/lib/fog/rackspace/requests/compute_v2/get_image.rb +11 -0
- data/lib/fog/rackspace/requests/compute_v2/get_metadata_item.rb +26 -0
- data/lib/fog/rackspace/requests/compute_v2/get_server.rb +13 -0
- data/lib/fog/rackspace/requests/compute_v2/list_addresses.rb +34 -0
- data/lib/fog/rackspace/requests/compute_v2/list_addresses_by_network.rb +36 -0
- data/lib/fog/rackspace/requests/compute_v2/list_attachments.rb +7 -0
- data/lib/fog/rackspace/requests/compute_v2/list_flavors.rb +7 -0
- data/lib/fog/rackspace/requests/compute_v2/list_images.rb +7 -0
- data/lib/fog/rackspace/requests/compute_v2/list_metadata.rb +26 -0
- data/lib/fog/rackspace/requests/compute_v2/list_servers.rb +7 -0
- data/lib/fog/rackspace/requests/compute_v2/reboot_server.rb +14 -0
- data/lib/fog/rackspace/requests/compute_v2/rebuild_server.rb +13 -4
- data/lib/fog/rackspace/requests/compute_v2/resize_server.rb +8 -0
- data/lib/fog/rackspace/requests/compute_v2/revert_resize_server.rb +8 -0
- data/lib/fog/rackspace/requests/compute_v2/set_metadata.rb +28 -0
- data/lib/fog/rackspace/requests/compute_v2/set_metadata_item.rb +27 -0
- data/lib/fog/rackspace/requests/compute_v2/update_metadata.rb +27 -0
- data/lib/fog/rackspace/requests/compute_v2/update_server.rb +17 -7
- data/lib/fog/rackspace/requests/dns/add_records.rb +5 -1
- data/lib/fog/rackspace/requests/load_balancers/get_content_caching.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/set_content_caching.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/set_ssl_termination.rb +3 -3
- data/lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb +1 -1
- data/lib/fog/serverlove/models/compute/image.rb +11 -11
- data/lib/fog/serverlove/models/compute/images.rb +2 -2
- data/lib/fog/serverlove/models/compute/server.rb +10 -10
- data/lib/fog/serverlove/models/compute/servers.rb +2 -2
- data/lib/fog/storm_on_demand/models/compute/balancer.rb +7 -7
- data/lib/fog/storm_on_demand/models/compute/balancers.rb +1 -1
- data/lib/fog/storm_on_demand/models/compute/configs.rb +1 -1
- data/lib/fog/storm_on_demand/models/compute/images.rb +1 -1
- data/lib/fog/storm_on_demand/models/compute/private_ips.rb +2 -2
- data/lib/fog/storm_on_demand/models/compute/server.rb +5 -5
- data/lib/fog/storm_on_demand/models/compute/servers.rb +2 -2
- data/lib/fog/storm_on_demand/models/compute/stats.rb +1 -1
- data/lib/fog/storm_on_demand/models/compute/templates.rb +1 -1
- data/lib/fog/terremark/models/shared/address.rb +1 -1
- data/lib/fog/terremark/models/shared/addresses.rb +5 -5
- data/lib/fog/terremark/models/shared/images.rb +5 -5
- data/lib/fog/terremark/models/shared/internetservice.rb +6 -6
- data/lib/fog/terremark/models/shared/internetservices.rb +5 -5
- data/lib/fog/terremark/models/shared/network.rb +1 -1
- data/lib/fog/terremark/models/shared/networks.rb +6 -6
- data/lib/fog/terremark/models/shared/nodeservice.rb +3 -3
- data/lib/fog/terremark/models/shared/nodeservices.rb +4 -4
- data/lib/fog/terremark/models/shared/server.rb +17 -17
- data/lib/fog/terremark/models/shared/servers.rb +6 -6
- data/lib/fog/terremark/models/shared/task.rb +4 -4
- data/lib/fog/terremark/models/shared/tasks.rb +5 -5
- data/lib/fog/terremark/models/shared/vdc.rb +4 -4
- data/lib/fog/terremark/models/shared/vdcs.rb +5 -5
- data/lib/fog/terremark/parser.rb +1 -1
- data/lib/fog/terremark/shared.rb +1 -1
- data/lib/fog/vcloud/compute.rb +4 -4
- data/lib/fog/vcloud/models/compute/catalog.rb +1 -1
- data/lib/fog/vcloud/models/compute/catalog_item.rb +1 -1
- data/lib/fog/vcloud/models/compute/catalog_items.rb +4 -4
- data/lib/fog/vcloud/models/compute/catalogs.rb +3 -3
- data/lib/fog/vcloud/models/compute/ip.rb +1 -1
- data/lib/fog/vcloud/models/compute/ips.rb +3 -3
- data/lib/fog/vcloud/models/compute/network.rb +1 -1
- data/lib/fog/vcloud/models/compute/networks.rb +6 -6
- data/lib/fog/vcloud/models/compute/organization.rb +4 -4
- data/lib/fog/vcloud/models/compute/organizations.rb +4 -4
- data/lib/fog/vcloud/models/compute/server.rb +13 -13
- data/lib/fog/vcloud/models/compute/servers.rb +4 -4
- data/lib/fog/vcloud/models/compute/tasks.rb +3 -3
- data/lib/fog/vcloud/models/compute/vapp.rb +2 -2
- data/lib/fog/vcloud/models/compute/vapps.rb +2 -2
- data/lib/fog/vcloud/models/compute/vdc.rb +2 -2
- data/lib/fog/vcloud/models/compute/vdcs.rb +3 -3
- data/lib/fog/version.rb +1 -3
- data/lib/fog/virtual_box/compute.rb +11 -5
- data/lib/fog/virtual_box/models/compute/medium.rb +2 -2
- data/lib/fog/virtual_box/models/compute/mediums.rb +4 -4
- data/lib/fog/virtual_box/models/compute/nat_engine.rb +2 -2
- data/lib/fog/virtual_box/models/compute/network_adapter.rb +1 -1
- data/lib/fog/virtual_box/models/compute/network_adapters.rb +1 -1
- data/lib/fog/virtual_box/models/compute/server.rb +5 -5
- data/lib/fog/virtual_box/models/compute/servers.rb +2 -2
- data/lib/fog/vmfusion/compute.rb +6 -1
- data/lib/fog/vmfusion/models/compute/server.rb +1 -1
- data/lib/fog/voxel/models/compute/images.rb +2 -2
- data/lib/fog/voxel/models/compute/server.rb +6 -6
- data/lib/fog/voxel/models/compute/servers.rb +2 -2
- data/lib/fog/vsphere/compute.rb +4 -1
- data/lib/fog/vsphere/models/compute/cluster.rb +2 -2
- data/lib/fog/vsphere/models/compute/clusters.rb +2 -2
- data/lib/fog/vsphere/models/compute/datacenter.rb +8 -4
- data/lib/fog/vsphere/models/compute/datacenters.rb +3 -3
- data/lib/fog/vsphere/models/compute/datastores.rb +2 -2
- data/lib/fog/vsphere/models/compute/folder.rb +1 -1
- data/lib/fog/vsphere/models/compute/folders.rb +2 -2
- data/lib/fog/vsphere/models/compute/interfaces.rb +3 -3
- data/lib/fog/vsphere/models/compute/networks.rb +2 -2
- data/lib/fog/vsphere/models/compute/resource_pools.rb +3 -3
- data/lib/fog/vsphere/models/compute/server.rb +37 -26
- data/lib/fog/vsphere/models/compute/servers.rb +2 -2
- data/lib/fog/vsphere/models/compute/templates.rb +2 -2
- data/lib/fog/vsphere/models/compute/volumes.rb +3 -3
- data/lib/fog/vsphere/requests/compute/create_folder.rb +22 -0
- data/lib/fog/vsphere/requests/compute/create_vm.rb +2 -2
- data/lib/fog/vsphere/requests/compute/get_folder.rb +1 -1
- data/lib/fog/vsphere/requests/compute/get_network.rb +6 -1
- data/lib/fog/vsphere/requests/compute/get_virtual_machine.rb +1 -1
- data/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +9 -3
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +148 -64
- data/lib/fog/xenserver.rb +26 -2
- data/lib/fog/xenserver/CHANGELOG.md +71 -0
- data/lib/fog/xenserver/compute.rb +9 -0
- data/lib/fog/xenserver/examples/README.md +11 -0
- data/lib/fog/xenserver/examples/chage_default_storage_repository.md +99 -0
- data/lib/fog/xenserver/examples/creating_servers.md +168 -0
- data/lib/fog/xenserver/examples/getting_started.md +163 -0
- data/lib/fog/xenserver/examples/storage_repositories.md +94 -0
- data/lib/fog/xenserver/models/compute/host.rb +87 -7
- data/lib/fog/xenserver/models/compute/host_cpu.rb +37 -0
- data/lib/fog/xenserver/models/compute/host_metrics.rb +29 -0
- data/lib/fog/xenserver/models/compute/hosts.rb +8 -8
- data/lib/fog/xenserver/models/compute/network.rb +11 -11
- data/lib/fog/xenserver/models/compute/networks.rb +3 -3
- data/lib/fog/xenserver/models/compute/pbd.rb +11 -6
- data/lib/fog/xenserver/models/compute/pbds.rb +3 -3
- data/lib/fog/xenserver/models/compute/pif.rb +9 -9
- data/lib/fog/xenserver/models/compute/pifs.rb +3 -3
- data/lib/fog/xenserver/models/compute/pool.rb +30 -8
- data/lib/fog/xenserver/models/compute/pools.rb +3 -3
- data/lib/fog/xenserver/models/compute/server.rb +29 -29
- data/lib/fog/xenserver/models/compute/servers.rb +8 -8
- data/lib/fog/xenserver/models/compute/storage_repositories.rb +2 -2
- data/lib/fog/xenserver/models/compute/storage_repository.rb +52 -9
- data/lib/fog/xenserver/models/compute/vbd.rb +16 -16
- data/lib/fog/xenserver/models/compute/vbds.rb +3 -3
- data/lib/fog/xenserver/models/compute/vdi.rb +17 -17
- data/lib/fog/xenserver/models/compute/vdis.rb +3 -3
- data/lib/fog/xenserver/models/compute/vif.rb +10 -10
- data/lib/fog/xenserver/models/compute/vifs.rb +3 -3
- data/lib/fog/xenserver/requests/compute/create_sr.rb +72 -0
- data/lib/fog/xenserver/requests/compute/destroy_sr.rb +30 -0
- data/lib/fog/xenserver/requests/compute/disable_host.rb +29 -0
- data/lib/fog/xenserver/requests/compute/enable_host.rb +28 -0
- data/lib/fog/xenserver/requests/compute/reboot_host.rb +23 -0
- data/lib/fog/xenserver/requests/compute/shutdown_host.rb +23 -0
- data/lib/fog/xenserver/requests/compute/unplug_pbd.rb +25 -0
- data/lib/fog/zerigo/models/dns/record.rb +4 -4
- data/lib/fog/zerigo/models/dns/records.rb +2 -2
- data/lib/fog/zerigo/models/dns/zone.rb +6 -6
- data/lib/fog/zerigo/models/dns/zones.rb +2 -2
- data/lib/tasks/changelog_task.rb +1 -0
- data/lib/tasks/test_task.rb +1 -1
- data/tests/aws/models/cloud_watch/metrics_tests.rb +16 -1
- data/tests/aws/requests/auto_scaling/model_tests.rb +1 -3
- data/tests/aws/requests/compute/snapshot_tests.rb +19 -0
- data/tests/aws/requests/compute/spot_instance_tests.rb +4 -2
- data/tests/aws/requests/elasticache/describe_reserved_cache_nodes.rb +17 -0
- data/tests/aws/requests/elasticache/helper.rb +17 -0
- data/tests/aws/requests/glacier/vault_tests.rb +1 -1
- data/tests/aws/requests/storage/bucket_tests.rb +37 -3
- data/tests/aws/requests/storage/cors_utils_tests.rb +108 -0
- data/tests/brightbox/models/compute/account_tests.rb +2 -0
- data/tests/brightbox/models/compute/server_tests.rb +21 -0
- data/tests/brightbox/requests/compute/firewall_policy_tests.rb +33 -0
- data/tests/brightbox/requests/compute/firewall_rule_tests.rb +43 -0
- data/tests/brightbox/requests/compute/helper.rb +33 -30
- data/tests/compute/helper.rb +28 -6
- data/tests/compute/models/flavors_tests.rb +4 -2
- data/tests/compute/models/server_tests.rb +5 -1
- data/tests/compute/models/servers_tests.rb +5 -2
- data/tests/core/parser_tests.rb +32 -6
- data/tests/core/wait_for_tests.rb +13 -0
- data/tests/ecloud/compute/models/admin_organization_tests.rb +16 -0
- data/tests/ecloud/compute/models/compute_pool_tests.rb +17 -0
- data/tests/ecloud/compute/models/detached_disk_tests.rb +26 -0
- data/tests/ecloud/compute/models/environment_tests.rb +23 -0
- data/tests/ecloud/compute/models/internet_service_tests.rb +28 -0
- data/tests/ecloud/compute/models/ip_address_tests.rb +19 -0
- data/tests/ecloud/compute/models/network_tests.rb +17 -0
- data/tests/ecloud/compute/models/operating_system_families_tests.rb +13 -0
- data/tests/ecloud/compute/models/operating_system_tests.rb +22 -0
- data/tests/ecloud/compute/models/organization_tests.rb +21 -0
- data/tests/ecloud/compute/models/public_ip_tests.rb +19 -0
- data/tests/ecloud/compute/models/server_tests.rb +151 -0
- data/tests/ecloud/compute/models/ssh_key_tests.rb +19 -0
- data/tests/ecloud/compute/models/template_tests.rb +20 -0
- data/tests/openstack/authenticate_tests.rb +142 -0
- data/tests/openstack/models/compute/server_tests.rb +45 -0
- data/tests/openstack/models/identity/ec2_credential_tests.rb +41 -0
- data/tests/openstack/models/identity/ec2_credentials_tests.rb +58 -0
- data/tests/openstack/models/identity/tenant_tests.rb +6 -0
- data/tests/openstack/models/network/floating_ip_tests.rb +30 -0
- data/tests/openstack/models/network/floating_ips_tests.rb +27 -0
- data/tests/openstack/requests/compute/address_tests.rb +1 -3
- data/tests/openstack/requests/compute/helper.rb +20 -0
- data/tests/openstack/requests/compute/quota_tests.rb +2 -0
- data/tests/openstack/requests/compute/security_group_tests.rb +10 -2
- data/tests/openstack/requests/compute/server_tests.rb +29 -14
- data/tests/openstack/requests/identity/ec2_credentials_tests.rb +41 -0
- data/tests/openstack/requests/identity/role_tests.rb +0 -1
- data/tests/openstack/requests/identity/user_tests.rb +8 -0
- data/tests/rackspace/helper.rb +17 -1
- data/tests/rackspace/models/block_storage/snapshot_tests.rb +18 -13
- data/tests/rackspace/models/block_storage/snapshots_tests.rb +1 -3
- data/tests/rackspace/models/block_storage/volume_tests.rb +14 -10
- data/tests/rackspace/models/block_storage/volume_types_tests.rb +1 -3
- data/tests/rackspace/models/block_storage/volumes_tests.rb +1 -3
- data/tests/rackspace/models/compute_v2/flavors_tests.rb +1 -4
- data/tests/rackspace/models/compute_v2/image_tests.rb +26 -0
- data/tests/rackspace/models/compute_v2/images_tests.rb +1 -3
- data/tests/rackspace/models/compute_v2/metadata_tests.rb +42 -0
- data/tests/rackspace/models/compute_v2/server_tests.rb +89 -15
- data/tests/rackspace/models/compute_v2/servers_tests.rb +12 -8
- data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +17 -0
- data/tests/rackspace/models/storage/file_tests.rb +6 -0
- data/tests/rackspace/requests/block_storage/snapshot_tests.rb +15 -15
- data/tests/rackspace/requests/block_storage/volume_tests.rb +9 -11
- data/tests/rackspace/requests/block_storage/volume_type_tests.rb +8 -11
- data/tests/rackspace/requests/compute/address_tests.rb +11 -9
- data/tests/rackspace/requests/compute/flavor_tests.rb +6 -5
- data/tests/rackspace/requests/compute/image_tests.rb +12 -10
- data/tests/rackspace/requests/compute/resize_tests.rb +8 -6
- data/tests/rackspace/requests/compute/server_tests.rb +19 -17
- data/tests/rackspace/requests/compute_v2/address_tests.rb +43 -0
- data/tests/rackspace/requests/compute_v2/attachment_tests.rb +17 -17
- data/tests/rackspace/requests/compute_v2/flavor_tests.rb +7 -9
- data/tests/rackspace/requests/compute_v2/image_tests.rb +42 -16
- data/tests/rackspace/requests/compute_v2/metadata_tests.rb +104 -0
- data/tests/rackspace/requests/compute_v2/server_tests.rb +44 -60
- data/tests/rackspace/requests/dns/records_tests.rb +2 -2
- data/tests/rackspace/requests/load_balancers/content_caching_tests.rb +25 -0
- data/tests/rackspace/requests/load_balancers/helper.rb +5 -1
- data/tests/vsphere/requests/compute/vm_clone_tests.rb +6 -4
- data/tests/xenserver/models/compute/host_cpu_tests.rb +58 -0
- data/tests/xenserver/models/compute/host_metrics_tests.rb +48 -0
- data/tests/xenserver/models/compute/host_tests.rb +33 -2
- data/tests/xenserver/models/compute/pbd_tests.rb +33 -1
- data/tests/xenserver/models/compute/pool_tests.rb +7 -1
- data/tests/xenserver/models/compute/storage_repository_tests.rb +52 -1
- data/tests/xenserver/requests/compute/create_sr_tests.rb +54 -0
- data/tests/xenserver/requests/compute/destroy_sr_tests.rb +46 -0
- data/tests/xenserver/requests/compute/disable_host_tests.rb +16 -0
- data/tests/xenserver/requests/compute/enable_host_tests.rb +16 -0
- data/tests/xenserver/requests/compute/unplug_pbd_tests.rb +48 -0
- metadata +153 -42
- data/docs/_config.yml +0 -39
- data/docs/_layouts/default.html +0 -111
- data/docs/about/contributing.markdown +0 -229
- data/docs/about/getting_started.markdown +0 -108
- data/docs/about/press.markdown +0 -52
- data/docs/about/structure.markdown +0 -78
- data/docs/about/users.markdown +0 -34
- data/docs/cdn/index.markdown +0 -148
- data/docs/compute/index.markdown +0 -122
- data/docs/dns/index.markdown +0 -79
- data/docs/index.markdown +0 -93
- data/docs/public/crossdomain.xml +0 -25
- data/docs/public/css/fog.css +0 -142
- data/docs/public/css/handheld.css +0 -8
- data/docs/public/css/style.css +0 -129
- data/docs/public/images/.gitignore +0 -3
- data/docs/public/js/libs/dd_belatedpng.js +0 -289
- data/docs/public/js/libs/dd_belatedpng.min.js +0 -13
- data/docs/public/js/libs/jquery-1.4.2.js +0 -6240
- data/docs/public/js/libs/jquery-1.4.2.min.js +0 -154
- data/docs/public/js/libs/modernizr-1.6.js +0 -892
- data/docs/public/js/libs/modernizr-1.6.min.js +0 -30
- data/docs/public/js/mylibs/.gitignore +0 -3
- data/docs/public/js/plugins.js +0 -34
- data/docs/public/js/profiling/config.js +0 -59
- data/docs/public/js/profiling/yahoo-profiling.css +0 -7
- data/docs/public/js/profiling/yahoo-profiling.js +0 -1028
- data/docs/public/js/profiling/yahoo-profiling.min.js +0 -39
- data/docs/public/js/script.js +0 -26
- data/docs/public/robots.txt +0 -5
- data/docs/storage/index.markdown +0 -204
- data/lib/fog/ecloud/requests/compute/get_admin_organizations.rb +0 -11
- data/lib/fog/ecloud/requests/compute/get_ip_addresses.rb +0 -11
- data/lib/fog/ecloud/requests/compute/get_operating_system_family.rb +0 -11
- data/lib/fog/ecloud/requests/compute/virtual_machine_add_ip.rb +0 -40
- data/lib/tasks/documentation_task.rb +0 -155
@@ -26,7 +26,8 @@ module Fog
|
|
26
26
|
|
27
27
|
def save(force = false)
|
28
28
|
requires :volume_id
|
29
|
-
|
29
|
+
raise IdentifierTaken.new('Resaving may cause a duplicate snapshot to be created') if persisted?
|
30
|
+
data = service.create_snapshot(volume_id, {
|
30
31
|
:display_name => display_name,
|
31
32
|
:display_description => display_description,
|
32
33
|
:force => force
|
@@ -37,7 +38,7 @@ module Fog
|
|
37
38
|
|
38
39
|
def destroy
|
39
40
|
requires :identity
|
40
|
-
|
41
|
+
service.delete_snapshot(identity)
|
41
42
|
true
|
42
43
|
end
|
43
44
|
end
|
@@ -9,12 +9,12 @@ module Fog
|
|
9
9
|
model Fog::Rackspace::BlockStorage::Snapshot
|
10
10
|
|
11
11
|
def all
|
12
|
-
data =
|
12
|
+
data = service.list_snapshots.body['snapshots']
|
13
13
|
load(data)
|
14
14
|
end
|
15
15
|
|
16
16
|
def get(snapshot_id)
|
17
|
-
data =
|
17
|
+
data = service.get_snapshot(snapshot_id).body['snapshot']
|
18
18
|
new(data)
|
19
19
|
rescue Fog::Rackspace::BlockStorage::NotFound
|
20
20
|
nil
|
@@ -32,12 +32,18 @@ module Fog
|
|
32
32
|
end
|
33
33
|
|
34
34
|
def snapshots
|
35
|
-
|
35
|
+
service.snapshots.select { |s| s.volume_id == identity }
|
36
|
+
end
|
37
|
+
|
38
|
+
def create_snapshot(options={})
|
39
|
+
requires :identity
|
40
|
+
service.snapshots.create(options.merge(:volume_id => identity))
|
36
41
|
end
|
37
42
|
|
38
43
|
def save
|
39
44
|
requires :size
|
40
|
-
|
45
|
+
raise IdentifierTaken.new('Resaving may cause a duplicate volume to be created') if persisted?
|
46
|
+
data = service.create_volume(size, {
|
41
47
|
:display_name => display_name,
|
42
48
|
:display_description => display_description,
|
43
49
|
:volume_type => volume_type,
|
@@ -49,7 +55,7 @@ module Fog
|
|
49
55
|
|
50
56
|
def destroy
|
51
57
|
requires :identity
|
52
|
-
|
58
|
+
service.delete_volume(identity)
|
53
59
|
true
|
54
60
|
end
|
55
61
|
end
|
@@ -9,16 +9,16 @@ module Fog
|
|
9
9
|
model Fog::Rackspace::BlockStorage::VolumeType
|
10
10
|
|
11
11
|
def all
|
12
|
-
data =
|
12
|
+
data = service.list_volume_types.body['volume_types']
|
13
13
|
load(data)
|
14
14
|
end
|
15
15
|
|
16
16
|
def get(volume_type_id)
|
17
|
-
data =
|
17
|
+
data = service.get_volume_type(volume_type_id).body['volume_type']
|
18
18
|
new(data)
|
19
19
|
rescue Fog::Rackspace::BlockStorage::NotFound
|
20
20
|
nil
|
21
|
-
end
|
21
|
+
end
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
@@ -9,12 +9,12 @@ module Fog
|
|
9
9
|
model Fog::Rackspace::BlockStorage::Volume
|
10
10
|
|
11
11
|
def all
|
12
|
-
data =
|
12
|
+
data = service.list_volumes.body['volumes']
|
13
13
|
load(data)
|
14
14
|
end
|
15
15
|
|
16
16
|
def get(volume_id)
|
17
|
-
data =
|
17
|
+
data = service.get_volume(volume_id).body['volume']
|
18
18
|
new(data)
|
19
19
|
rescue Fog::Rackspace::BlockStorage::NotFound
|
20
20
|
nil
|
@@ -10,12 +10,12 @@ module Fog
|
|
10
10
|
model Fog::Compute::Rackspace::Flavor
|
11
11
|
|
12
12
|
def all
|
13
|
-
data =
|
13
|
+
data = service.list_flavors_detail.body['flavors']
|
14
14
|
load(data)
|
15
15
|
end
|
16
16
|
|
17
17
|
def get(flavor_id)
|
18
|
-
data =
|
18
|
+
data = service.get_flavor_details(flavor_id).body['flavor']
|
19
19
|
new(data)
|
20
20
|
rescue Fog::Compute::Rackspace::NotFound
|
21
21
|
nil
|
@@ -24,7 +24,7 @@ module Fog
|
|
24
24
|
def destroy
|
25
25
|
requires :id
|
26
26
|
|
27
|
-
|
27
|
+
service.delete_image(id)
|
28
28
|
true
|
29
29
|
end
|
30
30
|
|
@@ -33,10 +33,10 @@ module Fog
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def save
|
36
|
-
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if
|
36
|
+
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted?
|
37
37
|
requires :server_id
|
38
38
|
|
39
|
-
data =
|
39
|
+
data = service.create_image(server_id, 'name' => name)
|
40
40
|
merge_attributes(data.body['image'])
|
41
41
|
true
|
42
42
|
end
|
@@ -12,7 +12,7 @@ module Fog
|
|
12
12
|
attribute :server
|
13
13
|
|
14
14
|
def all
|
15
|
-
data =
|
15
|
+
data = service.list_images_detail.body['images']
|
16
16
|
models = load(data)
|
17
17
|
if server
|
18
18
|
self.replace(self.select {|image| image.server_id == server.id})
|
@@ -22,7 +22,7 @@ module Fog
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def get(image_id)
|
25
|
-
data =
|
25
|
+
data = service.get_image_details(image_id).body['image']
|
26
26
|
new(data)
|
27
27
|
rescue Fog::Compute::Rackspace::NotFound
|
28
28
|
nil
|
@@ -28,23 +28,23 @@ module Fog
|
|
28
28
|
|
29
29
|
def destroy
|
30
30
|
requires :id
|
31
|
-
|
31
|
+
service.delete_server(id)
|
32
32
|
true
|
33
33
|
end
|
34
34
|
|
35
35
|
def flavor
|
36
36
|
requires :flavor_id
|
37
|
-
|
37
|
+
service.flavors.get(flavor_id)
|
38
38
|
end
|
39
39
|
|
40
40
|
def image
|
41
41
|
requires :image_id
|
42
|
-
|
42
|
+
service.images.get(image_id)
|
43
43
|
end
|
44
44
|
|
45
45
|
def images
|
46
46
|
requires :id
|
47
|
-
|
47
|
+
service.images(:server => self)
|
48
48
|
end
|
49
49
|
|
50
50
|
def private_ip_address
|
@@ -61,12 +61,12 @@ module Fog
|
|
61
61
|
|
62
62
|
def reboot(type = 'SOFT')
|
63
63
|
requires :id
|
64
|
-
|
64
|
+
service.reboot_server(id, type)
|
65
65
|
true
|
66
66
|
end
|
67
67
|
|
68
68
|
def save
|
69
|
-
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if
|
69
|
+
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted?
|
70
70
|
requires :flavor_id, :image_id
|
71
71
|
options = {
|
72
72
|
'metadata' => metadata,
|
@@ -74,7 +74,7 @@ module Fog
|
|
74
74
|
'personality' => personality
|
75
75
|
}
|
76
76
|
options = options.reject {|key, value| value.nil?}
|
77
|
-
data =
|
77
|
+
data = service.create_server(flavor_id, image_id, options)
|
78
78
|
merge_attributes(data.body['server'])
|
79
79
|
true
|
80
80
|
end
|
@@ -10,7 +10,7 @@ module Fog
|
|
10
10
|
model Fog::Compute::Rackspace::Server
|
11
11
|
|
12
12
|
def all
|
13
|
-
data =
|
13
|
+
data = service.list_servers_detail.body['servers']
|
14
14
|
load(data)
|
15
15
|
end
|
16
16
|
|
@@ -22,7 +22,7 @@ module Fog
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def get(server_id)
|
25
|
-
if server =
|
25
|
+
if server = service.get_server_details(server_id).body['server']
|
26
26
|
new(server)
|
27
27
|
end
|
28
28
|
rescue Fog::Compute::Rackspace::NotFound
|
@@ -4,27 +4,31 @@ module Fog
|
|
4
4
|
module Compute
|
5
5
|
class RackspaceV2
|
6
6
|
class Attachment < Fog::Model
|
7
|
-
identity :id
|
8
|
-
|
9
7
|
attribute :server_id, :aliases => 'serverId'
|
10
8
|
attribute :volume_id, :aliases => 'volumeId'
|
11
9
|
attribute :device
|
12
10
|
|
11
|
+
def initialize(new_attributes = {})
|
12
|
+
super(new_attributes)
|
13
|
+
server_id = server.id if server #server id should come from collection
|
14
|
+
self
|
15
|
+
end
|
16
|
+
|
13
17
|
def save
|
14
|
-
requires :
|
15
|
-
data =
|
18
|
+
requires :server_id, :volume_id, :device
|
19
|
+
data = service.attach_volume(server_id, volume_id, device)
|
16
20
|
merge_attributes(data.body['volumeAttachment'])
|
17
21
|
true
|
18
22
|
end
|
19
23
|
|
20
24
|
def destroy
|
21
|
-
requires :
|
22
|
-
|
25
|
+
requires :server_id, :volume_id
|
26
|
+
service.delete_attachment(server_id, volume_id)
|
23
27
|
true
|
24
28
|
end
|
25
|
-
|
26
|
-
|
27
|
-
|
29
|
+
alias :detach :destroy
|
30
|
+
|
31
|
+
private
|
28
32
|
def server
|
29
33
|
collection.server
|
30
34
|
end
|
@@ -11,12 +11,12 @@ module Fog
|
|
11
11
|
attr_accessor :server
|
12
12
|
|
13
13
|
def all
|
14
|
-
data =
|
14
|
+
data = service.list_attachments(server.id).body['volumeAttachments']
|
15
15
|
load(data)
|
16
16
|
end
|
17
17
|
|
18
18
|
def get(volume_id)
|
19
|
-
data =
|
19
|
+
data = service.get_attachment(server.id, volume_id).body['volumeAttachment']
|
20
20
|
data && new(data)
|
21
21
|
end
|
22
22
|
end
|
@@ -9,12 +9,12 @@ module Fog
|
|
9
9
|
model Fog::Compute::RackspaceV2::Flavor
|
10
10
|
|
11
11
|
def all
|
12
|
-
data =
|
12
|
+
data = service.list_flavors.body['flavors']
|
13
13
|
load(data)
|
14
14
|
end
|
15
15
|
|
16
16
|
def get(flavor_id)
|
17
|
-
data =
|
17
|
+
data = service.get_flavor(flavor_id).body['flavor']
|
18
18
|
new(data)
|
19
19
|
rescue Fog::Compute::RackspaceV2::NotFound
|
20
20
|
nil
|
@@ -21,9 +21,44 @@ module Fog
|
|
21
21
|
attribute :progress
|
22
22
|
attribute :minDisk
|
23
23
|
attribute :minRam
|
24
|
-
attribute :metadata
|
25
24
|
attribute :disk_config, :aliases => 'OS-DCF:diskConfig'
|
26
25
|
attribute :links
|
26
|
+
|
27
|
+
ignore_attributes :metadata
|
28
|
+
|
29
|
+
def initialize(attributes={})
|
30
|
+
@connection = attributes[:connection]
|
31
|
+
super
|
32
|
+
end
|
33
|
+
|
34
|
+
def metadata
|
35
|
+
raise "Please save image before accessing metadata" unless identity
|
36
|
+
@metadata ||= begin
|
37
|
+
Fog::Compute::RackspaceV2::Metadata.new({
|
38
|
+
:connection => connection,
|
39
|
+
:parent => self
|
40
|
+
})
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def metadata=(hash={})
|
45
|
+
raise "Please save image before accessing metadata" unless identity
|
46
|
+
metadata.from_hash(hash)
|
47
|
+
end
|
48
|
+
|
49
|
+
def ready?(ready_state = ACTIVE, error_states=[ERROR])
|
50
|
+
if error_states
|
51
|
+
error_states = Array(error_states)
|
52
|
+
raise "Image should have transitioned to '#{ready_state}' not '#{state}'" if error_states.include?(state)
|
53
|
+
end
|
54
|
+
state == ready_state
|
55
|
+
end
|
56
|
+
|
57
|
+
|
58
|
+
def destroy
|
59
|
+
requires :identity
|
60
|
+
service.delete_image(identity)
|
61
|
+
end
|
27
62
|
end
|
28
63
|
end
|
29
64
|
end
|
@@ -9,12 +9,12 @@ module Fog
|
|
9
9
|
model Fog::Compute::RackspaceV2::Image
|
10
10
|
|
11
11
|
def all
|
12
|
-
data =
|
12
|
+
data = service.list_images.body['images']
|
13
13
|
load(data)
|
14
14
|
end
|
15
15
|
|
16
16
|
def get(image_id)
|
17
|
-
data =
|
17
|
+
data = service.get_image(image_id).body['image']
|
18
18
|
new(data)
|
19
19
|
rescue Fog::Compute::RackspaceV2::NotFound
|
20
20
|
nil
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class RackspaceV2
|
4
|
+
module MetaParent
|
5
|
+
|
6
|
+
def parent
|
7
|
+
@parent
|
8
|
+
end
|
9
|
+
|
10
|
+
def parent=(new_parent)
|
11
|
+
@parent = new_parent
|
12
|
+
end
|
13
|
+
|
14
|
+
def collection_name
|
15
|
+
if parent.class == Fog::Compute::RackspaceV2::Image
|
16
|
+
return "images"
|
17
|
+
elsif parent.class == Fog::Compute::RackspaceV2::Server
|
18
|
+
return "servers"
|
19
|
+
else
|
20
|
+
raise "Metadata is not supported for this model type."
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def metas_to_hash(metas)
|
25
|
+
hash = {}
|
26
|
+
metas.each { |meta| hash[meta.key] = meta.value }
|
27
|
+
hash
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'fog/core/collection'
|
2
|
+
require 'fog/rackspace/models/compute_v2/meta_parent'
|
3
|
+
require 'fog/rackspace/models/compute_v2/metadatum'
|
4
|
+
require 'fog/rackspace/models/compute_v2/image'
|
5
|
+
require 'fog/rackspace/models/compute_v2/server'
|
6
|
+
|
7
|
+
module Fog
|
8
|
+
module Compute
|
9
|
+
class RackspaceV2
|
10
|
+
|
11
|
+
class Metadata < Fog::Collection
|
12
|
+
|
13
|
+
model Fog::Compute::RackspaceV2::Metadatum
|
14
|
+
|
15
|
+
include Fog::Compute::RackspaceV2::MetaParent
|
16
|
+
|
17
|
+
def all
|
18
|
+
requires :parent
|
19
|
+
data = connection.list_metadata(collection_name, parent.id).body['metadata']
|
20
|
+
from_hash(data)
|
21
|
+
end
|
22
|
+
|
23
|
+
def get(key)
|
24
|
+
requires :parent
|
25
|
+
data = connection.get_metadata_item(collection_name, parent.id, key).body["meta"]
|
26
|
+
datum = data.first
|
27
|
+
new(:key => datum[0], :value => datum[1])
|
28
|
+
rescue Fog::Compute::RackspaceV2::NotFound
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
def [](key)
|
33
|
+
return super(key) if key.is_a?(Integer)
|
34
|
+
return nil unless key
|
35
|
+
datum = self.find {|datum| datum.key == key || datum.key == key.to_sym }
|
36
|
+
datum ? datum.value : nil
|
37
|
+
end
|
38
|
+
|
39
|
+
def []=(key, value)
|
40
|
+
return super(key,value) if key.is_a?(Integer)
|
41
|
+
return nil unless key
|
42
|
+
datum = self.find {|datum| datum.key == key || datum.key == key.to_sym }
|
43
|
+
if datum
|
44
|
+
data.value = value
|
45
|
+
else
|
46
|
+
self << Fog::Compute::RackspaceV2::Metadatum.new(:key => key, :value => value, :connection => connection, :parent => parent)
|
47
|
+
end
|
48
|
+
value
|
49
|
+
end
|
50
|
+
|
51
|
+
def save
|
52
|
+
requires :parent
|
53
|
+
connection.set_metadata(collection_name, parent.id, to_hash)
|
54
|
+
end
|
55
|
+
|
56
|
+
def new(attributes = {})
|
57
|
+
requires :parent
|
58
|
+
super({ :parent => parent }.merge!(attributes))
|
59
|
+
end
|
60
|
+
|
61
|
+
def from_hash(hash)
|
62
|
+
return unless hash
|
63
|
+
metas = []
|
64
|
+
hash.each_pair {|k,v| metas << {:key => k, :value => v} }
|
65
|
+
load(metas)
|
66
|
+
end
|
67
|
+
|
68
|
+
def to_hash
|
69
|
+
h = {}
|
70
|
+
self.each { |datum| h[datum.key] = datum.value }
|
71
|
+
h
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|