fog-maestrodev 1.8.0.20130114204828 → 1.14.0.20130806165225
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +2 -0
- data/.travis.yml +18 -2
- data/Gemfile +6 -1
- data/Gemfile.1.8.7 +10 -0
- data/README.md +54 -42
- data/Rakefile +21 -2
- data/benchs/load_times.rb +31 -0
- data/bin/fog +22 -0
- data/changelog.txt +2198 -0
- data/fog.gemspec +7 -7
- data/lib/fog.rb +44 -14
- data/lib/fog/account.rb +25 -0
- data/lib/fog/atmos/models/storage/file.rb +2 -2
- data/lib/fog/aws.rb +12 -2
- data/lib/fog/aws/auto_scaling.rb +15 -18
- data/lib/fog/aws/beanstalk.rb +8 -10
- data/lib/fog/aws/cloud_formation.rb +11 -12
- data/lib/fog/aws/compute.rb +9 -10
- data/lib/fog/aws/credential_fetcher.rb +7 -7
- data/lib/fog/aws/data_pipeline.rb +114 -0
- data/lib/fog/aws/dynamodb.rb +3 -3
- data/lib/fog/aws/elasticache.rb +16 -20
- data/lib/fog/aws/elb.rb +32 -31
- data/lib/fog/aws/elb/policy_types.rb +441 -430
- data/lib/fog/aws/iam.rb +13 -13
- data/lib/fog/aws/models/auto_scaling/activities.rb +11 -3
- data/lib/fog/aws/models/auto_scaling/group.rb +6 -3
- data/lib/fog/aws/models/auto_scaling/policies.rb +7 -3
- data/lib/fog/aws/models/beanstalk/environment.rb +6 -2
- data/lib/fog/aws/models/cdn/distributions.rb +2 -1
- data/lib/fog/aws/models/cdn/distributions_helper.rb +2 -1
- data/lib/fog/aws/models/cdn/streaming_distributions.rb +2 -1
- data/lib/fog/aws/models/compute/flavors.rb +1 -1
- data/lib/fog/aws/models/compute/server.rb +39 -33
- data/lib/fog/aws/models/compute/spot_request.rb +3 -11
- data/lib/fog/aws/models/compute/volume.rb +2 -1
- data/lib/fog/aws/models/data_pipeline/pipeline.rb +67 -0
- data/lib/fog/aws/models/data_pipeline/pipelines.rb +36 -0
- data/lib/fog/aws/models/dns/record.rb +1 -1
- data/lib/fog/aws/models/elb/backend_server_description.rb +11 -0
- data/lib/fog/aws/models/elb/backend_server_descriptions.rb +22 -0
- data/lib/fog/aws/models/elb/load_balancer.rb +15 -2
- data/lib/fog/aws/models/elb/policies.rb +28 -13
- data/lib/fog/aws/models/elb/policy.rb +20 -10
- 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/iam/user.rb +1 -0
- data/lib/fog/aws/models/rds/log_file.rb +26 -0
- data/lib/fog/aws/models/rds/log_files.rb +50 -0
- data/lib/fog/aws/models/rds/server.rb +4 -1
- data/lib/fog/aws/models/rds/snapshot.rb +1 -0
- data/lib/fog/aws/models/rds/snapshots.rb +26 -3
- data/lib/fog/aws/models/storage/directories.rb +1 -1
- data/lib/fog/aws/models/storage/directory.rb +20 -17
- data/lib/fog/aws/models/storage/file.rb +6 -7
- data/lib/fog/aws/models/storage/files.rb +6 -6
- data/lib/fog/aws/parsers/auto_scaling/describe_policies.rb +5 -5
- data/lib/fog/aws/parsers/beanstalk/describe_environment_resources.rb +11 -0
- 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/cloud_watch/list_metrics.rb +1 -1
- data/lib/fog/aws/parsers/compute/copy_image.rb +22 -0
- data/lib/fog/aws/parsers/compute/describe_instances.rb +19 -5
- data/lib/fog/aws/parsers/compute/run_instances.rb +5 -4
- data/lib/fog/aws/parsers/compute/spot_instance_requests.rb +2 -0
- data/lib/fog/aws/parsers/dns/get_hosted_zone.rb +2 -0
- data/lib/fog/aws/parsers/elasticache/describe_reserved_cache_nodes.rb +37 -0
- data/lib/fog/aws/parsers/elb/describe_load_balancers.rb +44 -13
- data/lib/fog/aws/parsers/iam/get_user.rb +2 -0
- data/lib/fog/aws/parsers/iam/list_users.rb +2 -0
- data/lib/fog/aws/parsers/rds/db_parser.rb +27 -5
- data/lib/fog/aws/parsers/rds/describe_db_log_files.rb +44 -0
- data/lib/fog/aws/parsers/rds/download_db_logfile_portion.rb +26 -0
- data/lib/fog/aws/parsers/ses/verify_domain_identity.rb +26 -0
- data/lib/fog/aws/parsers/storage/complete_multipart_upload.rb +1 -1
- data/lib/fog/aws/parsers/storage/get_bucket_lifecycle.rb +45 -11
- data/lib/fog/aws/parsers/sts/assume_role.rb +30 -0
- data/lib/fog/aws/rds.rb +27 -14
- data/lib/fog/aws/requests/auto_scaling/create_auto_scaling_group.rb +8 -0
- data/lib/fog/aws/requests/auto_scaling/update_auto_scaling_group.rb +8 -1
- data/lib/fog/aws/requests/cdn/delete_distribution.rb +5 -7
- data/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb +5 -7
- data/lib/fog/aws/requests/cdn/get_distribution.rb +28 -31
- data/lib/fog/aws/requests/cdn/get_distribution_list.rb +29 -33
- data/lib/fog/aws/requests/cdn/get_invalidation.rb +15 -13
- data/lib/fog/aws/requests/cdn/get_invalidation_list.rb +15 -17
- data/lib/fog/aws/requests/cdn/get_streaming_distribution.rb +23 -26
- data/lib/fog/aws/requests/cdn/get_streaming_distribution_list.rb +29 -33
- data/lib/fog/aws/requests/cdn/post_distribution.rb +40 -42
- data/lib/fog/aws/requests/cdn/post_invalidation.rb +14 -18
- data/lib/fog/aws/requests/cdn/post_streaming_distribution.rb +28 -30
- data/lib/fog/aws/requests/cdn/put_distribution_config.rb +42 -44
- data/lib/fog/aws/requests/cdn/put_streaming_distribution_config.rb +31 -33
- data/lib/fog/aws/requests/cloud_formation/create_stack.rb +33 -20
- data/lib/fog/aws/requests/cloud_formation/delete_stack.rb +5 -8
- data/lib/fog/aws/requests/cloud_formation/describe_stack_events.rb +19 -22
- data/lib/fog/aws/requests/cloud_formation/describe_stack_resources.rb +18 -21
- data/lib/fog/aws/requests/cloud_formation/describe_stacks.rb +18 -21
- data/lib/fog/aws/requests/cloud_formation/get_template.rb +7 -10
- 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/cloud_formation/update_stack.rb +11 -15
- data/lib/fog/aws/requests/cloud_formation/validate_template.rb +9 -12
- data/lib/fog/aws/requests/compute/associate_address.rb +13 -7
- data/lib/fog/aws/requests/compute/copy_image.rb +63 -0
- data/lib/fog/aws/requests/compute/create_volume.rb +3 -3
- data/lib/fog/aws/requests/compute/describe_instances.rb +1 -1
- data/lib/fog/aws/requests/compute/describe_reserved_instances_offerings.rb +16 -2
- data/lib/fog/aws/requests/compute/describe_security_groups.rb +2 -2
- data/lib/fog/aws/requests/compute/request_spot_instances.rb +1 -0
- data/lib/fog/aws/requests/compute/run_instances.rb +3 -1
- data/lib/fog/aws/requests/data_pipeline/activate_pipeline.rb +35 -0
- data/lib/fog/aws/requests/data_pipeline/create_pipeline.rb +41 -0
- data/lib/fog/aws/requests/data_pipeline/delete_pipeline.rb +35 -0
- data/lib/fog/aws/requests/data_pipeline/describe_pipelines.rb +36 -0
- data/lib/fog/aws/requests/data_pipeline/list_pipelines.rb +36 -0
- data/lib/fog/aws/requests/data_pipeline/put_pipeline_definition.rb +72 -0
- data/lib/fog/aws/requests/elasticache/describe_reserved_cache_nodes.rb +42 -0
- data/lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb +0 -2
- data/lib/fog/aws/requests/elb/create_lb_cookie_stickiness_policy.rb +0 -2
- data/lib/fog/aws/requests/elb/create_load_balancer.rb +17 -0
- data/lib/fog/aws/requests/elb/create_load_balancer_policy.rb +11 -8
- data/lib/fog/aws/requests/elb/describe_load_balancers.rb +21 -1
- data/lib/fog/aws/requests/elb/set_load_balancer_policies_for_backend_server.rb +67 -0
- data/lib/fog/aws/requests/iam/create_user.rb +5 -4
- data/lib/fog/aws/requests/iam/get_user.rb +5 -4
- data/lib/fog/aws/requests/iam/list_users.rb +5 -4
- data/lib/fog/aws/requests/iam/update_server_certificate.rb +27 -0
- data/lib/fog/aws/requests/rds/create_db_instance.rb +28 -26
- data/lib/fog/aws/requests/rds/describe_db_instances.rb +8 -9
- data/lib/fog/aws/requests/rds/describe_db_log_files.rb +67 -0
- data/lib/fog/aws/requests/rds/download_db_logfile_portion.rb +63 -0
- data/lib/fog/aws/requests/ses/send_raw_email.rb +1 -1
- data/lib/fog/aws/requests/ses/verify_domain_identity.rb +30 -0
- data/lib/fog/aws/requests/storage/abort_multipart_upload.rb +3 -3
- data/lib/fog/aws/requests/storage/complete_multipart_upload.rb +8 -4
- data/lib/fog/aws/requests/storage/copy_object.rb +2 -2
- data/lib/fog/aws/requests/storage/delete_bucket.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_bucket_cors.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_bucket_lifecycle.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_bucket_policy.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_bucket_website.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_multiple_objects.rb +1 -1
- data/lib/fog/aws/requests/storage/delete_object.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_acl.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_cors.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_lifecycle.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_location.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_logging.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_policy.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_versioning.rb +1 -1
- data/lib/fog/aws/requests/storage/get_bucket_website.rb +1 -1
- data/lib/fog/aws/requests/storage/get_object.rb +8 -4
- data/lib/fog/aws/requests/storage/get_object_acl.rb +2 -2
- data/lib/fog/aws/requests/storage/get_object_http_url.rb +1 -19
- data/lib/fog/aws/requests/storage/get_object_torrent.rb +2 -2
- data/lib/fog/aws/requests/storage/get_object_url.rb +5 -14
- data/lib/fog/aws/requests/storage/get_request_payment.rb +1 -1
- data/lib/fog/aws/requests/storage/get_service.rb +1 -2
- data/lib/fog/aws/requests/storage/head_object.rb +2 -5
- data/lib/fog/aws/requests/storage/initiate_multipart_upload.rb +3 -5
- data/lib/fog/aws/requests/storage/list_multipart_uploads.rb +27 -33
- data/lib/fog/aws/requests/storage/list_parts.rb +27 -31
- data/lib/fog/aws/requests/storage/post_object_hidden_fields.rb +15 -17
- data/lib/fog/aws/requests/storage/post_object_restore.rb +54 -0
- data/lib/fog/aws/requests/storage/put_bucket.rb +9 -12
- data/lib/fog/aws/requests/storage/put_bucket_acl.rb +16 -18
- data/lib/fog/aws/requests/storage/put_bucket_cors.rb +11 -13
- data/lib/fog/aws/requests/storage/put_bucket_lifecycle.rb +45 -16
- data/lib/fog/aws/requests/storage/put_bucket_logging.rb +14 -16
- data/lib/fog/aws/requests/storage/put_bucket_policy.rb +4 -6
- data/lib/fog/aws/requests/storage/put_bucket_versioning.rb +4 -6
- data/lib/fog/aws/requests/storage/put_bucket_website.rb +6 -8
- data/lib/fog/aws/requests/storage/put_object.rb +21 -24
- data/lib/fog/aws/requests/storage/put_object_acl.rb +19 -21
- data/lib/fog/aws/requests/storage/put_object_url.rb +11 -16
- data/lib/fog/aws/requests/storage/put_request_payment.rb +4 -6
- data/lib/fog/aws/requests/storage/upload_part.rb +14 -17
- data/lib/fog/aws/requests/sts/assume_role.rb +46 -0
- data/lib/fog/aws/ses.rb +26 -9
- data/lib/fog/aws/storage.rb +204 -97
- data/lib/fog/aws/sts.rb +31 -21
- data/lib/fog/billing.rb +23 -0
- data/lib/fog/bin.rb +6 -2
- data/lib/fog/bin/aws.rb +4 -0
- data/lib/fog/bin/bluebox.rb +2 -0
- data/lib/fog/bin/cloudsigma.rb +29 -0
- data/lib/fog/bin/digitalocean.rb +31 -0
- data/lib/fog/bin/dreamhost.rb +31 -0
- data/lib/fog/bin/google.rb +47 -1
- data/lib/fog/bin/hp.rb +7 -0
- data/lib/fog/bin/internet_archive.rb +34 -0
- data/lib/fog/bin/openstack.rb +22 -2
- data/lib/fog/bin/openvz.rb +31 -0
- data/lib/fog/bin/rackspace.rb +11 -0
- data/lib/fog/bin/riakcs.rb +27 -0
- data/lib/fog/bluebox.rb +1 -0
- data/lib/fog/bluebox/blb.rb +85 -0
- data/lib/fog/bluebox/models/blb/lb_application.rb +32 -0
- data/lib/fog/bluebox/models/blb/lb_applications.rb +26 -0
- data/lib/fog/bluebox/models/blb/lb_backend.rb +22 -0
- data/lib/fog/bluebox/models/blb/lb_backends.rb +30 -0
- data/lib/fog/bluebox/models/blb/lb_service.rb +35 -0
- data/lib/fog/bluebox/models/blb/lb_services.rb +29 -0
- data/lib/fog/bluebox/models/compute/server.rb +3 -1
- data/lib/fog/bluebox/models/dns/zone.rb +1 -1
- data/lib/fog/bluebox/requests/blb/add_machine_to_lb_application.rb +33 -0
- data/lib/fog/bluebox/requests/blb/add_machine_to_lb_backend.rb +31 -0
- data/lib/fog/bluebox/requests/blb/get_lb_application.rb +33 -0
- data/lib/fog/bluebox/requests/blb/get_lb_applications.rb +31 -0
- data/lib/fog/bluebox/requests/blb/get_lb_backend.rb +36 -0
- data/lib/fog/bluebox/requests/blb/get_lb_backends.rb +36 -0
- data/lib/fog/bluebox/requests/blb/get_lb_machine.rb +35 -0
- data/lib/fog/bluebox/requests/blb/get_lb_machines.rb +35 -0
- data/lib/fog/bluebox/requests/blb/get_lb_service.rb +36 -0
- data/lib/fog/bluebox/requests/blb/get_lb_services.rb +36 -0
- data/lib/fog/bluebox/requests/blb/remove_machine_from_lb_backend.rb +28 -0
- data/lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb +29 -0
- data/lib/fog/brightbox/compute.rb +36 -236
- data/lib/fog/brightbox/compute/image_selector.rb +45 -0
- data/lib/fog/brightbox/compute/shared.rb +232 -0
- data/lib/fog/brightbox/models/compute/collaboration.rb +43 -0
- data/lib/fog/brightbox/models/compute/collaborations.rb +23 -0
- data/lib/fog/brightbox/models/compute/user_collaboration.rb +29 -0
- data/lib/fog/brightbox/models/compute/user_collaborations.rb +23 -0
- data/lib/fog/brightbox/oauth2.rb +5 -3
- data/lib/fog/brightbox/requests/compute/accept_user_collaboration.rb +21 -0
- 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_collaboration.rb +23 -0
- data/lib/fog/brightbox/requests/compute/create_firewall_policy.rb +3 -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/delete_collaboration.rb +28 -0
- 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/delete_user_collaboration.rb +28 -0
- data/lib/fog/brightbox/requests/compute/destroy_user_collaboration.rb +21 -0
- 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_collaboration.rb +21 -0
- 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_user_collaboration.rb +21 -0
- 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_collaborations.rb +19 -0
- 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_user_collaborations.rb +19 -0
- 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/reject_user_collaboration.rb +21 -0
- 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/resend_collaboration.rb +21 -0
- 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 +26 -0
- 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 +3 -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/cdn.rb +5 -12
- 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/docs/getting_started.md +59 -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/compute.rb +72 -1
- data/lib/fog/cloudstack/models/compute/disk_offering.rb +46 -0
- data/lib/fog/cloudstack/models/compute/disk_offerings.rb +27 -0
- data/lib/fog/cloudstack/models/compute/image.rb +1 -1
- data/lib/fog/cloudstack/models/compute/servers.rb +6 -4
- data/lib/fog/cloudstack/models/compute/snapshot.rb +46 -0
- data/lib/fog/cloudstack/models/compute/snapshots.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/create_disk_offering.rb +51 -0
- data/lib/fog/cloudstack/requests/compute/create_snapshot.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/delete_disk_offering.rb +31 -0
- data/lib/fog/cloudstack/requests/compute/delete_snapshot.rb +44 -2
- data/lib/fog/cloudstack/requests/compute/list_disk_offerings.rb +9 -0
- data/lib/fog/cloudstack/requests/compute/list_os_types.rb +9 -0
- data/lib/fog/cloudstack/requests/compute/list_snapshots.rb +21 -0
- data/lib/fog/compute.rb +7 -65
- data/lib/fog/compute/models/server.rb +21 -16
- data/lib/fog/core.rb +18 -7
- data/lib/fog/core/attributes.rb +1 -1
- data/lib/fog/core/connection.rb +62 -25
- data/lib/fog/core/deprecated/connection.rb +24 -0
- data/lib/fog/core/errors.rb +10 -1
- data/lib/fog/core/logger.rb +2 -0
- data/lib/fog/core/mock.rb +16 -0
- data/lib/fog/core/model.rb +12 -11
- data/lib/fog/core/parser.rb +14 -1
- data/lib/fog/core/scp.rb +4 -3
- data/lib/fog/core/service.rb +1 -1
- data/lib/fog/core/ssh.rb +1 -0
- data/lib/fog/digitalocean.rb +9 -0
- data/lib/fog/digitalocean/CHANGELOG.md +6 -0
- data/lib/fog/digitalocean/compute.rb +136 -0
- data/lib/fog/digitalocean/examples/getting_started.md +106 -0
- data/lib/fog/digitalocean/models/compute/flavor.rb +14 -0
- data/lib/fog/digitalocean/models/compute/flavors.rb +25 -0
- data/lib/fog/digitalocean/models/compute/image.rb +15 -0
- data/lib/fog/digitalocean/models/compute/images.rb +25 -0
- data/lib/fog/digitalocean/models/compute/region.rb +14 -0
- data/lib/fog/digitalocean/models/compute/regions.rb +25 -0
- data/lib/fog/digitalocean/models/compute/server.rb +179 -0
- data/lib/fog/digitalocean/models/compute/servers.rb +50 -0
- data/lib/fog/digitalocean/models/compute/ssh_key.rb +28 -0
- data/lib/fog/digitalocean/models/compute/ssh_keys.rb +26 -0
- data/lib/fog/digitalocean/requests/compute/create_server.rb +70 -0
- data/lib/fog/digitalocean/requests/compute/create_ssh_key.rb +38 -0
- data/lib/fog/digitalocean/requests/compute/destroy_server.rb +37 -0
- data/lib/fog/digitalocean/requests/compute/destroy_ssh_key.rb +37 -0
- data/lib/fog/digitalocean/requests/compute/get_server_details.rb +35 -0
- data/lib/fog/digitalocean/requests/compute/get_ssh_key.rb +39 -0
- data/lib/fog/digitalocean/requests/compute/list_flavors.rb +38 -0
- data/lib/fog/digitalocean/requests/compute/list_images.rb +49 -0
- data/lib/fog/digitalocean/requests/compute/list_regions.rb +34 -0
- data/lib/fog/digitalocean/requests/compute/list_servers.rb +31 -0
- data/lib/fog/digitalocean/requests/compute/list_ssh_keys.rb +31 -0
- data/lib/fog/digitalocean/requests/compute/power_cycle_server.rb +33 -0
- data/lib/fog/digitalocean/requests/compute/power_off_server.rb +33 -0
- data/lib/fog/digitalocean/requests/compute/power_on_server.rb +33 -0
- data/lib/fog/digitalocean/requests/compute/reboot_server.rb +33 -0
- data/lib/fog/digitalocean/requests/compute/shutdown_server.rb +36 -0
- data/lib/fog/dns.rb +8 -24
- data/lib/fog/dnsimple/dns.rb +4 -1
- data/lib/fog/dnsimple/models/dns/record.rb +3 -4
- data/lib/fog/dnsimple/requests/dns/create_domain.rb +36 -0
- data/lib/fog/dnsimple/requests/dns/create_record.rb +27 -0
- data/lib/fog/dnsimple/requests/dns/delete_domain.rb +12 -0
- data/lib/fog/dnsimple/requests/dns/delete_record.rb +12 -0
- data/lib/fog/dnsimple/requests/dns/get_domain.rb +12 -0
- data/lib/fog/dnsimple/requests/dns/get_record.rb +24 -0
- data/lib/fog/dnsimple/requests/dns/list_domains.rb +12 -0
- data/lib/fog/dnsimple/requests/dns/list_records.rb +12 -0
- data/lib/fog/dnsimple/requests/dns/update_record.rb +20 -0
- data/lib/fog/dnsmadeeasy/models/dns/record.rb +1 -1
- data/lib/fog/dreamhost.rb +11 -0
- data/lib/fog/dreamhost/CHANGELOG.md +8 -0
- data/lib/fog/dreamhost/dns.rb +86 -0
- data/lib/fog/dreamhost/examples/dns/getting_started.md +105 -0
- data/lib/fog/dreamhost/models/dns/record.rb +35 -0
- data/lib/fog/dreamhost/models/dns/records.rb +38 -0
- data/lib/fog/dreamhost/models/dns/zone.rb +59 -0
- data/lib/fog/dreamhost/models/dns/zones.rb +41 -0
- data/lib/fog/dreamhost/requests/dns/create_record.rb +32 -0
- data/lib/fog/dreamhost/requests/dns/delete_record.rb +31 -0
- data/lib/fog/dreamhost/requests/dns/list_records.rb +25 -0
- data/lib/fog/dynect/models/dns/zone.rb +1 -1
- data/lib/fog/ecloud/models/compute/detached_disks.rb +3 -7
- data/lib/fog/ecloud/models/compute/internet_services.rb +1 -5
- data/lib/fog/ecloud/models/compute/ip_address.rb +2 -2
- data/lib/fog/ecloud/models/compute/network.rb +1 -1
- data/lib/fog/ecloud/models/compute/nodes.rb +1 -5
- data/lib/fog/ecloud/models/compute/public_ips.rb +1 -5
- data/lib/fog/ecloud/models/compute/servers.rb +2 -6
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ip.rb +2 -2
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ips.rb +2 -2
- data/lib/fog/ecloud/requests/compute/get_detached_disk.rb +1 -1
- data/lib/fog/ecloud/requests/compute/get_internet_service.rb +1 -1
- data/lib/fog/ecloud/requests/compute/get_node.rb +1 -1
- data/lib/fog/ecloud/requests/compute/get_public_ip.rb +1 -1
- data/lib/fog/ecloud/requests/compute/get_server.rb +1 -1
- data/lib/fog/ecloud/requests/compute/virtual_machine_create_from_template.rb +1 -1
- data/lib/fog/glesys/compute.rb +5 -1
- data/lib/fog/glesys/models/compute/ip.rb +47 -46
- data/lib/fog/glesys/models/compute/ips.rb +95 -12
- data/lib/fog/glesys/models/compute/server.rb +72 -5
- data/lib/fog/glesys/models/compute/servers.rb +7 -1
- data/lib/fog/glesys/models/compute/template.rb +8 -16
- data/lib/fog/glesys/models/compute/templates.rb +23 -5
- data/lib/fog/glesys/requests/compute/ip_details.rb +2 -2
- data/lib/fog/glesys/requests/compute/server_details.rb +2 -2
- data/lib/fog/glesys/requests/compute/template_list.rb +2 -2
- data/lib/fog/google.rb +1 -0
- data/lib/fog/google/README.md +28 -0
- data/lib/fog/google/Rakefile +17 -0
- data/lib/fog/google/compute.rb +162 -0
- data/lib/fog/google/examples/bootstrap.rb +9 -0
- data/lib/fog/google/examples/create.rb +37 -0
- data/lib/fog/google/examples/eric-fail.rb +19 -0
- data/lib/fog/google/examples/launch_micro_instance.rb +21 -0
- data/lib/fog/google/examples/metadata.rb +18 -0
- data/lib/fog/google/models/compute/disk.rb +80 -0
- data/lib/fog/google/models/compute/disks.rb +38 -0
- data/lib/fog/google/models/compute/flavor.rb +24 -0
- data/lib/fog/google/models/compute/flavors.rb +29 -0
- data/lib/fog/google/models/compute/image.rb +55 -0
- data/lib/fog/google/models/compute/images.rb +35 -0
- data/lib/fog/google/models/compute/server.rb +93 -0
- data/lib/fog/google/models/compute/servers.rb +71 -0
- data/lib/fog/google/models/storage/file.rb +7 -1
- data/lib/fog/google/parsers/storage/access_control_list.rb +2 -2
- data/lib/fog/google/requests/compute/delete_disk.rb +31 -0
- data/lib/fog/google/requests/compute/delete_firewall.rb +30 -0
- data/lib/fog/google/requests/compute/delete_image.rb +30 -0
- data/lib/fog/google/requests/compute/delete_network.rb +30 -0
- data/lib/fog/google/requests/compute/delete_operation.rb +30 -0
- data/lib/fog/google/requests/compute/delete_server.rb +43 -0
- data/lib/fog/google/requests/compute/get_disk.rb +34 -0
- data/lib/fog/google/requests/compute/get_firewall.rb +30 -0
- data/lib/fog/google/requests/compute/get_image.rb +30 -0
- data/lib/fog/google/requests/compute/get_machine_type.rb +30 -0
- data/lib/fog/google/requests/compute/get_network.rb +30 -0
- data/lib/fog/google/requests/compute/get_server.rb +37 -0
- data/lib/fog/google/requests/compute/get_zone.rb +30 -0
- data/lib/fog/google/requests/compute/insert_disk.rb +41 -0
- data/lib/fog/google/requests/compute/insert_firewall.rb +37 -0
- data/lib/fog/google/requests/compute/insert_image.rb +38 -0
- data/lib/fog/google/requests/compute/insert_network.rb +34 -0
- data/lib/fog/google/requests/compute/insert_server.rb +78 -0
- data/lib/fog/google/requests/compute/list_disks.rb +30 -0
- data/lib/fog/google/requests/compute/list_firewalls.rb +29 -0
- data/lib/fog/google/requests/compute/list_global_operations.rb +28 -0
- data/lib/fog/google/requests/compute/list_images.rb +30 -0
- data/lib/fog/google/requests/compute/list_machine_types.rb +30 -0
- data/lib/fog/google/requests/compute/list_networks.rb +29 -0
- data/lib/fog/google/requests/compute/list_servers.rb +30 -0
- data/lib/fog/google/requests/compute/list_zone_operations.rb +28 -0
- data/lib/fog/google/requests/compute/list_zones.rb +29 -0
- data/lib/fog/google/requests/compute/set_metadata.rb +36 -0
- data/lib/fog/google/requests/storage/get_object.rb +1 -1
- data/lib/fog/google/storage.rb +1 -1
- data/lib/fog/hp.rb +56 -26
- data/lib/fog/hp/CHANGELOG.hp +123 -0
- data/lib/fog/hp/README_HP.rdoc +7 -6
- data/lib/fog/hp/block_storage.rb +170 -0
- data/lib/fog/hp/cdn.rb +30 -7
- data/lib/fog/hp/compute.rb +89 -17
- data/lib/fog/hp/models/block_storage/bootable_volumes.rb +28 -0
- data/lib/fog/hp/models/block_storage/snapshot.rb +56 -0
- data/lib/fog/hp/models/block_storage/snapshots.rb +29 -0
- data/lib/fog/hp/models/block_storage/volume.rb +102 -0
- data/lib/fog/hp/models/block_storage/volumes.rb +28 -0
- data/lib/fog/hp/models/compute/address.rb +0 -1
- data/lib/fog/hp/models/compute/image.rb +43 -4
- data/lib/fog/hp/models/compute/images.rb +0 -5
- data/lib/fog/hp/models/compute/key_pair.rb +0 -5
- data/lib/fog/hp/models/compute/meta.rb +29 -0
- data/lib/fog/hp/models/compute/metadata.rb +79 -0
- data/lib/fog/hp/models/compute/server.rb +96 -26
- data/lib/fog/hp/models/meta_parent.rb +33 -0
- data/lib/fog/hp/models/storage/directories.rb +35 -10
- data/lib/fog/hp/models/storage/directory.rb +139 -29
- data/lib/fog/hp/models/storage/file.rb +10 -0
- data/lib/fog/hp/models/storage/files.rb +9 -1
- data/lib/fog/hp/models/storage/shared_directories.rb +55 -0
- data/lib/fog/hp/models/storage/shared_directory.rb +39 -0
- data/lib/fog/hp/models/storage/shared_file.rb +67 -0
- data/lib/fog/hp/models/storage/shared_files.rb +64 -0
- data/lib/fog/hp/requests/block_storage/create_snapshot.rb +76 -0
- data/lib/fog/hp/requests/block_storage/create_volume.rb +87 -0
- data/lib/fog/hp/requests/block_storage/delete_snapshot.rb +38 -0
- data/lib/fog/hp/requests/block_storage/delete_volume.rb +38 -0
- data/lib/fog/hp/requests/block_storage/get_bootable_volume_details.rb +59 -0
- data/lib/fog/hp/requests/block_storage/get_snapshot_details.rb +54 -0
- data/lib/fog/hp/requests/block_storage/get_volume_details.rb +58 -0
- data/lib/fog/hp/requests/block_storage/list_bootable_volumes.rb +53 -0
- data/lib/fog/hp/requests/block_storage/list_snapshots.rb +48 -0
- data/lib/fog/hp/requests/block_storage/list_volumes.rb +52 -0
- data/lib/fog/hp/requests/compute/attach_volume.rb +78 -0
- data/lib/fog/hp/requests/compute/create_image.rb +5 -8
- data/lib/fog/hp/requests/compute/create_persistent_server.rb +168 -0
- data/lib/fog/hp/requests/compute/create_server.rb +38 -32
- data/lib/fog/hp/requests/compute/delete_meta.rb +55 -0
- data/lib/fog/hp/requests/compute/delete_security_group_rule.rb +4 -4
- data/lib/fog/hp/requests/compute/detach_volume.rb +47 -0
- data/lib/fog/hp/requests/compute/get_console_output.rb +43 -0
- data/lib/fog/hp/requests/compute/get_meta.rb +57 -0
- data/lib/fog/hp/requests/compute/get_windows_password.rb +43 -0
- data/lib/fog/hp/requests/compute/list_metadata.rb +56 -0
- data/lib/fog/hp/requests/compute/list_server_volumes.rb +49 -0
- data/lib/fog/hp/requests/compute/set_metadata.rb +60 -0
- data/lib/fog/hp/requests/compute/update_meta.rb +61 -0
- data/lib/fog/hp/requests/compute/update_metadata.rb +60 -0
- data/lib/fog/hp/requests/storage/delete_shared_object.rb +38 -0
- data/lib/fog/hp/requests/storage/get_object.rb +13 -11
- data/lib/fog/hp/requests/storage/get_object_temp_url.rb +31 -0
- data/lib/fog/hp/requests/storage/get_shared_container.rb +75 -0
- data/lib/fog/hp/requests/storage/get_shared_object.rb +66 -0
- data/lib/fog/hp/requests/storage/head_container.rb +1 -0
- data/lib/fog/hp/requests/storage/head_object.rb +1 -0
- data/lib/fog/hp/requests/storage/head_shared_container.rb +45 -0
- data/lib/fog/hp/requests/storage/head_shared_object.rb +39 -0
- data/lib/fog/hp/requests/storage/put_container.rb +6 -6
- data/lib/fog/hp/requests/storage/put_object.rb +12 -1
- data/lib/fog/hp/requests/storage/put_shared_object.rb +85 -0
- data/lib/fog/hp/storage.rb +195 -34
- data/lib/fog/ibm/requests/compute/create_instance.rb +20 -15
- data/lib/fog/identity.rb +8 -4
- data/lib/fog/image.rb +5 -6
- data/lib/fog/internet_archive.rb +292 -0
- data/lib/fog/internet_archive/models/storage/directories.rb +43 -0
- data/lib/fog/internet_archive/models/storage/directory.rb +109 -0
- data/lib/fog/internet_archive/models/storage/file.rb +267 -0
- data/lib/fog/internet_archive/models/storage/files.rb +122 -0
- data/lib/fog/internet_archive/models/storage/ia_attributes.rb +39 -0
- data/lib/fog/internet_archive/parsers/storage/access_control_list.rb +46 -0
- data/lib/fog/internet_archive/parsers/storage/complete_multipart_upload.rb +24 -0
- data/lib/fog/internet_archive/parsers/storage/copy_object.rb +22 -0
- data/lib/fog/internet_archive/parsers/storage/cors_configuration.rb +41 -0
- data/lib/fog/internet_archive/parsers/storage/delete_multiple_objects.rb +50 -0
- data/lib/fog/internet_archive/parsers/storage/get_bucket.rb +62 -0
- data/lib/fog/internet_archive/parsers/storage/get_bucket_lifecycle.rb +66 -0
- data/lib/fog/internet_archive/parsers/storage/get_bucket_location.rb +20 -0
- data/lib/fog/internet_archive/parsers/storage/get_bucket_logging.rb +40 -0
- data/lib/fog/internet_archive/parsers/storage/get_bucket_website.rb +26 -0
- data/lib/fog/internet_archive/parsers/storage/get_request_payment.rb +20 -0
- data/lib/fog/internet_archive/parsers/storage/get_service.rb +32 -0
- data/lib/fog/internet_archive/parsers/storage/initiate_multipart_upload.rb +24 -0
- data/lib/fog/internet_archive/parsers/storage/list_multipart_uploads.rb +56 -0
- data/lib/fog/internet_archive/parsers/storage/list_parts.rb +40 -0
- data/lib/fog/internet_archive/requests/storage/abort_multipart_upload.rb +28 -0
- data/lib/fog/internet_archive/requests/storage/acl_utils.rb +62 -0
- data/lib/fog/internet_archive/requests/storage/complete_multipart_upload.rb +48 -0
- data/lib/fog/internet_archive/requests/storage/copy_object.rb +81 -0
- data/lib/fog/internet_archive/requests/storage/cors_utils.rb +41 -0
- data/lib/fog/internet_archive/requests/storage/delete_bucket.rb +47 -0
- data/lib/fog/internet_archive/requests/storage/delete_bucket_cors.rb +29 -0
- data/lib/fog/internet_archive/requests/storage/delete_bucket_lifecycle.rb +27 -0
- data/lib/fog/internet_archive/requests/storage/delete_bucket_policy.rb +29 -0
- data/lib/fog/internet_archive/requests/storage/delete_bucket_website.rb +29 -0
- data/lib/fog/internet_archive/requests/storage/delete_multiple_objects.rb +93 -0
- data/lib/fog/internet_archive/requests/storage/delete_object.rb +50 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket.rb +112 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_acl.rb +69 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_cors.rb +65 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_lifecycle.rb +38 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_location.rb +58 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_logging.rb +47 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_policy.rb +34 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_website.rb +40 -0
- data/lib/fog/internet_archive/requests/storage/get_object.rb +167 -0
- data/lib/fog/internet_archive/requests/storage/get_object_acl.rb +76 -0
- data/lib/fog/internet_archive/requests/storage/get_object_http_url.rb +55 -0
- data/lib/fog/internet_archive/requests/storage/get_object_https_url.rb +37 -0
- data/lib/fog/internet_archive/requests/storage/get_object_torrent.rb +47 -0
- data/lib/fog/internet_archive/requests/storage/get_object_url.rb +55 -0
- data/lib/fog/internet_archive/requests/storage/get_request_payment.rb +49 -0
- data/lib/fog/internet_archive/requests/storage/get_service.rb +54 -0
- data/lib/fog/internet_archive/requests/storage/head_object.rb +61 -0
- data/lib/fog/internet_archive/requests/storage/initiate_multipart_upload.rb +44 -0
- data/lib/fog/internet_archive/requests/storage/list_multipart_uploads.rb +54 -0
- data/lib/fog/internet_archive/requests/storage/list_parts.rb +55 -0
- data/lib/fog/internet_archive/requests/storage/post_object_hidden_fields.rb +38 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket.rb +74 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_acl.rb +71 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_cors.rb +49 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_lifecycle.rb +77 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_logging.rb +81 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_policy.rb +28 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_website.rb +64 -0
- data/lib/fog/internet_archive/requests/storage/put_object.rb +98 -0
- data/lib/fog/internet_archive/requests/storage/put_object_acl.rb +75 -0
- data/lib/fog/internet_archive/requests/storage/put_object_url.rb +48 -0
- data/lib/fog/internet_archive/requests/storage/put_request_payment.rb +49 -0
- data/lib/fog/internet_archive/requests/storage/sync_clock.rb +28 -0
- data/lib/fog/internet_archive/requests/storage/upload_part.rb +41 -0
- data/lib/fog/internet_archive/signaturev4.rb +73 -0
- data/lib/fog/internet_archive/storage.rb +390 -0
- data/lib/fog/joyent.rb +2 -0
- 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 +3 -2
- 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 +4 -1
- data/lib/fog/{core/json.rb → json.rb} +13 -3
- data/lib/fog/libvirt/models/compute/nic.rb +1 -0
- data/lib/fog/libvirt/models/compute/volume.rb +1 -1
- data/lib/fog/libvirt/requests/compute/get_node_info.rb +1 -1
- 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/metering.rb +25 -0
- data/lib/fog/monitoring.rb +24 -0
- data/lib/fog/network.rb +8 -6
- data/lib/fog/openstack.rb +40 -1
- data/lib/fog/openstack/CHANGELOG.md +47 -0
- data/lib/fog/openstack/compute.rb +20 -7
- data/lib/fog/openstack/examples/identity/basics.rb +69 -0
- data/lib/fog/openstack/examples/image/upload-test-image.rb +77 -0
- data/lib/fog/openstack/examples/network/network_subnets_routers.rb +63 -0
- data/lib/fog/openstack/examples/storage/set-account-quota.rb +66 -0
- data/lib/fog/openstack/identity.rb +5 -5
- data/lib/fog/openstack/image.rb +8 -2
- data/lib/fog/openstack/metering.rb +215 -0
- data/lib/fog/openstack/models/compute/flavors.rb +2 -2
- data/lib/fog/openstack/models/compute/images.rb +2 -1
- data/lib/fog/openstack/models/compute/metadata.rb +5 -6
- data/lib/fog/openstack/models/compute/server.rb +69 -25
- data/lib/fog/openstack/models/identity/role.rb +1 -1
- data/lib/fog/openstack/models/image/images.rb +2 -1
- data/lib/fog/openstack/models/metering/meter.rb +0 -0
- data/lib/fog/openstack/models/metering/meters.rb +0 -0
- data/lib/fog/openstack/models/metering/resource.rb +24 -0
- data/lib/fog/openstack/models/metering/resources.rb +25 -0
- 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/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/models/network/network.rb +8 -0
- data/lib/fog/openstack/models/network/router.rb +56 -0
- data/lib/fog/openstack/models/network/routers.rb +34 -0
- data/lib/fog/openstack/models/storage/directories.rb +39 -0
- data/lib/fog/openstack/models/storage/directory.rb +50 -0
- data/lib/fog/openstack/models/storage/file.rb +150 -0
- data/lib/fog/openstack/models/storage/files.rb +94 -0
- data/lib/fog/openstack/models/volume/volume.rb +3 -1
- data/lib/fog/openstack/models/volume/volumes.rb +2 -1
- data/lib/fog/openstack/network.rb +103 -29
- 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 +10 -5
- data/lib/fog/openstack/requests/compute/create_flavor.rb +1 -1
- data/lib/fog/openstack/requests/compute/create_server.rb +34 -7
- data/lib/fog/openstack/requests/compute/create_volume.rb +14 -13
- data/lib/fog/openstack/requests/compute/delete_meta.rb +43 -0
- data/lib/fog/openstack/requests/compute/delete_volume.rb +9 -2
- data/lib/fog/openstack/requests/compute/detach_volume.rb +8 -2
- data/lib/fog/openstack/requests/compute/get_limits.rb +1 -1
- data/lib/fog/openstack/requests/compute/get_server_volumes.rb +10 -0
- data/lib/fog/openstack/requests/compute/get_snapshot_details.rb +1 -1
- data/lib/fog/openstack/requests/compute/get_volume_details.rb +8 -17
- data/lib/fog/openstack/requests/compute/list_address_pools.rb +10 -0
- data/lib/fog/openstack/requests/compute/list_flavors_detail.rb +4 -3
- data/lib/fog/openstack/requests/compute/list_security_groups.rb +1 -1
- data/lib/fog/openstack/requests/compute/list_servers.rb +1 -1
- data/lib/fog/openstack/requests/compute/list_tenants.rb +1 -0
- data/lib/fog/openstack/requests/compute/list_tenants_with_flavor_access.rb +26 -0
- data/lib/fog/openstack/requests/compute/list_volumes.rb +4 -26
- data/lib/fog/openstack/requests/compute/rebuild_server.rb +9 -1
- data/lib/fog/openstack/requests/compute/remove_fixed_ip.rb +1 -1
- data/lib/fog/openstack/requests/compute/remove_flavor_access.rb +31 -0
- data/lib/fog/openstack/requests/compute/revert_resize_server.rb +2 -2
- data/lib/fog/openstack/requests/compute/update_meta.rb +46 -0
- data/lib/fog/openstack/requests/compute/update_server.rb +1 -1
- data/lib/fog/openstack/requests/identity/create_tenant.rb +2 -2
- data/lib/fog/openstack/requests/identity/delete_user_role.rb +2 -2
- data/lib/fog/openstack/requests/identity/get_user_by_name.rb +2 -2
- data/lib/fog/openstack/requests/image/create_image.rb +1 -1
- data/lib/fog/openstack/requests/metering/get_resource.rb +32 -0
- data/lib/fog/openstack/requests/metering/get_samples.rb +55 -0
- data/lib/fog/openstack/requests/metering/get_statistics.rb +56 -0
- data/lib/fog/openstack/requests/metering/list_meters.rb +50 -0
- data/lib/fog/openstack/requests/metering/list_resources.rb +32 -0
- data/lib/fog/openstack/requests/network/add_router_interface.rb +48 -0
- data/lib/fog/openstack/requests/network/associate_floating_ip.rb +49 -0
- data/lib/fog/openstack/requests/network/associate_lb_health_monitor.rb +39 -0
- data/lib/fog/openstack/requests/network/create_floating_ip.rb +50 -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/create_network.rb +57 -2
- data/lib/fog/openstack/requests/network/create_router.rb +57 -0
- data/lib/fog/openstack/requests/network/delete_floating_ip.rb +30 -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/delete_quota.rb +26 -0
- data/lib/fog/openstack/requests/network/delete_router.rb +30 -0
- data/lib/fog/openstack/requests/network/disassociate_floating_ip.rb +49 -0
- data/lib/fog/openstack/requests/network/disassociate_lb_health_monitor.rb +31 -0
- data/lib/fog/openstack/requests/network/get_floating_ip.rb +42 -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/get_quota.rb +31 -0
- data/lib/fog/openstack/requests/network/get_quotas.rb +31 -0
- data/lib/fog/openstack/requests/network/get_router.rb +32 -0
- data/lib/fog/openstack/requests/network/list_floating_ips.rb +27 -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/list_routers.rb +27 -0
- data/lib/fog/openstack/requests/network/remove_router_interface.rb +36 -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/network/update_quota.rb +33 -0
- data/lib/fog/openstack/requests/network/update_router.rb +85 -0
- data/lib/fog/openstack/requests/storage/copy_object.rb +27 -0
- data/lib/fog/openstack/requests/storage/delete_container.rb +22 -0
- data/lib/fog/openstack/requests/storage/delete_object.rb +23 -0
- data/lib/fog/openstack/requests/storage/get_container.rb +44 -0
- data/lib/fog/openstack/requests/storage/get_containers.rb +33 -0
- data/lib/fog/openstack/requests/storage/get_object.rb +29 -0
- data/lib/fog/openstack/requests/storage/get_object_https_url.rb +51 -0
- data/lib/fog/openstack/requests/storage/head_container.rb +28 -0
- data/lib/fog/openstack/requests/storage/head_containers.rb +25 -0
- data/lib/fog/openstack/requests/storage/head_object.rb +23 -0
- data/lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb +37 -0
- data/lib/fog/openstack/requests/storage/put_container.rb +22 -0
- data/lib/fog/openstack/requests/storage/put_object.rb +33 -0
- data/lib/fog/openstack/requests/storage/put_object_manifest.rb +38 -0
- data/lib/fog/openstack/requests/volume/create_volume.rb +4 -2
- data/lib/fog/openstack/requests/volume/get_quota.rb +31 -0
- data/lib/fog/openstack/requests/volume/get_quota_defaults.rb +31 -0
- data/lib/fog/openstack/requests/volume/update_quota.rb +32 -0
- data/lib/fog/openstack/storage.rb +216 -0
- data/lib/fog/openstack/volume.rb +14 -5
- 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/ovirt/compute.rb +5 -0
- data/lib/fog/ovirt/models/compute/quota.rb +21 -0
- data/lib/fog/ovirt/models/compute/quotas.rb +24 -0
- data/lib/fog/ovirt/models/compute/server.rb +4 -3
- data/lib/fog/ovirt/models/compute/volume.rb +2 -0
- data/lib/fog/ovirt/requests/compute/get_api_version.rb +16 -0
- data/lib/fog/ovirt/requests/compute/get_quota.rb +19 -0
- data/lib/fog/ovirt/requests/compute/list_quotas.rb +21 -0
- data/lib/fog/ovirt/requests/compute/mock_files/quotas.xml +7 -0
- data/lib/fog/rackspace.rb +55 -11
- data/lib/fog/rackspace/block_storage.rb +103 -40
- data/lib/fog/rackspace/cdn.rb +120 -38
- data/lib/fog/rackspace/compute.rb +56 -58
- data/lib/fog/rackspace/compute_v2.rb +149 -45
- data/lib/fog/rackspace/databases.rb +86 -43
- data/lib/fog/rackspace/dns.rb +77 -38
- data/lib/fog/rackspace/docs/block_storage.md +417 -0
- data/lib/fog/rackspace/docs/compute_v2.md +722 -0
- data/lib/fog/rackspace/docs/getting_started.md +86 -0
- data/lib/fog/rackspace/docs/storage.md +530 -0
- data/lib/fog/rackspace/errors.rb +34 -0
- data/lib/fog/rackspace/examples/README.md +47 -0
- data/lib/fog/rackspace/examples/block_storage/create_snapshot.rb +118 -0
- data/lib/fog/rackspace/examples/block_storage/create_volume.rb +58 -0
- data/lib/fog/rackspace/examples/block_storage/delete_volume.rb +53 -0
- data/lib/fog/rackspace/examples/compute_v2/create_image.rb +61 -0
- data/lib/fog/rackspace/examples/compute_v2/create_server.rb +89 -0
- data/lib/fog/rackspace/examples/compute_v2/delete_image.rb +61 -0
- data/lib/fog/rackspace/examples/compute_v2/delete_server.rb +56 -0
- data/lib/fog/rackspace/examples/compute_v2/detach_volume.rb +93 -0
- data/lib/fog/rackspace/examples/compute_v2/resize_server.rb +106 -0
- data/lib/fog/rackspace/examples/compute_v2/server_attachments.rb +69 -0
- data/lib/fog/rackspace/examples/compute_v2/server_metadata.rb +85 -0
- data/lib/fog/rackspace/examples/storage/create_cdn_directory.rb +44 -0
- data/lib/fog/rackspace/examples/storage/create_private_directory.rb +46 -0
- data/lib/fog/rackspace/examples/storage/delete_directory.rb +62 -0
- data/lib/fog/rackspace/examples/storage/delete_file.rb +70 -0
- data/lib/fog/rackspace/examples/storage/download_file.rb +75 -0
- data/lib/fog/rackspace/examples/storage/lorem.txt +1 -0
- data/lib/fog/rackspace/examples/storage/storage_metadata.rb +82 -0
- data/lib/fog/rackspace/examples/storage/upload_file.rb +45 -0
- data/lib/fog/rackspace/examples/storage/upload_large_files.rb +103 -0
- data/lib/fog/rackspace/identity.rb +19 -28
- data/lib/fog/rackspace/load_balancers.rb +86 -42
- data/lib/fog/rackspace/mock_data.rb +172 -0
- data/lib/fog/rackspace/models/block_storage/snapshot.rb +42 -0
- data/lib/fog/rackspace/models/block_storage/snapshots.rb +15 -0
- data/lib/fog/rackspace/models/block_storage/volume.rb +65 -0
- data/lib/fog/rackspace/models/block_storage/volume_type.rb +6 -0
- data/lib/fog/rackspace/models/block_storage/volume_types.rb +15 -0
- data/lib/fog/rackspace/models/block_storage/volumes.rb +15 -0
- data/lib/fog/rackspace/models/compute/server.rb +1 -1
- data/lib/fog/rackspace/models/compute_v2/attachment.rb +37 -9
- data/lib/fog/rackspace/models/compute_v2/attachments.rb +14 -0
- data/lib/fog/rackspace/models/compute_v2/flavor.rb +18 -0
- data/lib/fog/rackspace/models/compute_v2/flavors.rb +17 -1
- data/lib/fog/rackspace/models/compute_v2/image.rb +82 -3
- data/lib/fog/rackspace/models/compute_v2/images.rb +17 -0
- data/lib/fog/rackspace/models/compute_v2/key_pair.rb +56 -0
- data/lib/fog/rackspace/models/compute_v2/key_pairs.rb +43 -0
- data/lib/fog/rackspace/models/compute_v2/meta_parent.rb +42 -0
- data/lib/fog/rackspace/models/compute_v2/metadata.rb +112 -0
- data/lib/fog/rackspace/models/compute_v2/metadatum.rb +41 -0
- data/lib/fog/rackspace/models/compute_v2/network.rb +27 -0
- data/lib/fog/rackspace/models/compute_v2/networks.rb +23 -0
- data/lib/fog/rackspace/models/compute_v2/server.rb +380 -19
- data/lib/fog/rackspace/models/compute_v2/servers.rb +35 -2
- data/lib/fog/rackspace/models/dns/records.rb +1 -1
- data/lib/fog/rackspace/models/dns/zones.rb +46 -4
- data/lib/fog/rackspace/models/identity/credentials.rb +3 -2
- data/lib/fog/rackspace/models/identity/service_catalog.rb +83 -0
- data/lib/fog/rackspace/models/identity/users.rb +2 -2
- data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +7 -7
- data/lib/fog/rackspace/models/monitoring/agent_token.rb +40 -0
- data/lib/fog/rackspace/models/monitoring/agent_tokens.rb +28 -0
- data/lib/fog/rackspace/models/monitoring/alarm.rb +51 -0
- data/lib/fog/rackspace/models/monitoring/alarm_example.rb +26 -0
- data/lib/fog/rackspace/models/monitoring/alarm_examples.rb +31 -0
- data/lib/fog/rackspace/models/monitoring/alarms.rb +40 -0
- data/lib/fog/rackspace/models/monitoring/base.rb +36 -0
- data/lib/fog/rackspace/models/monitoring/check.rb +75 -0
- data/lib/fog/rackspace/models/monitoring/check_type.rb +15 -0
- data/lib/fog/rackspace/models/monitoring/check_types.rb +23 -0
- data/lib/fog/rackspace/models/monitoring/checks.rb +40 -0
- data/lib/fog/rackspace/models/monitoring/data_point.rb +18 -0
- data/lib/fog/rackspace/models/monitoring/data_points.rb +49 -0
- data/lib/fog/rackspace/models/monitoring/entities.rb +48 -0
- data/lib/fog/rackspace/models/monitoring/entity.rb +64 -0
- data/lib/fog/rackspace/models/monitoring/metric.rb +25 -0
- data/lib/fog/rackspace/models/monitoring/metrics.rb +27 -0
- data/lib/fog/rackspace/models/storage/account.rb +50 -0
- data/lib/fog/rackspace/models/storage/directories.rb +26 -3
- data/lib/fog/rackspace/models/storage/directory.rb +151 -38
- data/lib/fog/rackspace/models/storage/file.rb +166 -66
- data/lib/fog/rackspace/models/storage/files.rb +89 -4
- data/lib/fog/rackspace/models/storage/metadata.rb +152 -0
- data/lib/fog/rackspace/monitoring.rb +145 -0
- data/lib/fog/rackspace/requests/block_storage/create_snapshot.rb +52 -0
- data/lib/fog/rackspace/requests/block_storage/create_volume.rb +66 -0
- data/lib/fog/rackspace/requests/block_storage/delete_snapshot.rb +17 -0
- data/lib/fog/rackspace/requests/block_storage/delete_volume.rb +28 -0
- data/lib/fog/rackspace/requests/block_storage/get_snapshot.rb +31 -0
- data/lib/fog/rackspace/requests/block_storage/get_volume.rb +41 -0
- data/lib/fog/rackspace/requests/block_storage/get_volume_type.rb +27 -0
- data/lib/fog/rackspace/requests/block_storage/list_snapshots.rb +25 -0
- data/lib/fog/rackspace/requests/block_storage/list_volume_types.rb +20 -0
- data/lib/fog/rackspace/requests/block_storage/list_volumes.rb +28 -0
- data/lib/fog/rackspace/requests/cdn/delete_object.rb +41 -0
- data/lib/fog/rackspace/requests/cdn/get_containers.rb +39 -0
- data/lib/fog/rackspace/requests/cdn/head_container.rb +29 -0
- data/lib/fog/rackspace/requests/cdn/post_container.rb +27 -1
- data/lib/fog/rackspace/requests/cdn/put_container.rb +27 -1
- data/lib/fog/rackspace/requests/compute/delete_image.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/attach_volume.rb +58 -2
- data/lib/fog/rackspace/requests/compute_v2/change_server_password.rb +17 -0
- data/lib/fog/rackspace/requests/compute_v2/confirm_resize_server.rb +22 -0
- data/lib/fog/rackspace/requests/compute_v2/create_image.rb +68 -11
- data/lib/fog/rackspace/requests/compute_v2/create_keypair.rb +53 -0
- data/lib/fog/rackspace/requests/compute_v2/create_network.rb +36 -0
- data/lib/fog/rackspace/requests/compute_v2/create_server.rb +160 -8
- data/lib/fog/rackspace/requests/compute_v2/delete_attachment.rb +25 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_image.rb +8 -4
- data/lib/fog/rackspace/requests/compute_v2/delete_keypair.rb +36 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_metadata_item.rb +37 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_network.rb +21 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_server.rb +21 -0
- data/lib/fog/rackspace/requests/compute_v2/get_attachment.rb +24 -0
- data/lib/fog/rackspace/requests/compute_v2/get_flavor.rb +29 -0
- data/lib/fog/rackspace/requests/compute_v2/get_image.rb +33 -0
- data/lib/fog/rackspace/requests/compute_v2/get_keypair.rb +41 -0
- data/lib/fog/rackspace/requests/compute_v2/get_metadata_item.rb +39 -0
- data/lib/fog/rackspace/requests/compute_v2/get_network.rb +21 -0
- data/lib/fog/rackspace/requests/compute_v2/get_server.rb +49 -0
- data/lib/fog/rackspace/requests/compute_v2/list_addresses.rb +9 -0
- data/lib/fog/rackspace/requests/compute_v2/list_addresses_by_network.rb +16 -0
- data/lib/fog/rackspace/requests/compute_v2/list_attachments.rb +23 -0
- data/lib/fog/rackspace/requests/compute_v2/list_flavors.rb +21 -0
- data/lib/fog/rackspace/requests/compute_v2/list_images.rb +21 -0
- data/lib/fog/rackspace/requests/compute_v2/list_keypairs.rb +37 -0
- data/lib/fog/rackspace/requests/compute_v2/list_metadata.rb +38 -0
- data/lib/fog/rackspace/requests/compute_v2/list_networks.rb +18 -0
- data/lib/fog/rackspace/requests/compute_v2/list_servers.rb +42 -0
- data/lib/fog/rackspace/requests/compute_v2/reboot_server.rb +23 -0
- data/lib/fog/rackspace/requests/compute_v2/rebuild_server.rb +54 -4
- data/lib/fog/rackspace/requests/compute_v2/rescue_server.rb +43 -0
- data/lib/fog/rackspace/requests/compute_v2/resize_server.rb +23 -0
- data/lib/fog/rackspace/requests/compute_v2/revert_resize_server.rb +23 -0
- data/lib/fog/rackspace/requests/compute_v2/set_metadata.rb +41 -0
- data/lib/fog/rackspace/requests/compute_v2/set_metadata_item.rb +41 -0
- data/lib/fog/rackspace/requests/compute_v2/unrescue_server.rb +40 -0
- data/lib/fog/rackspace/requests/compute_v2/update_metadata.rb +40 -0
- data/lib/fog/rackspace/requests/compute_v2/update_server.rb +30 -7
- data/lib/fog/rackspace/requests/dns/list_domains.rb +2 -2
- data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +1 -1
- data/lib/fog/rackspace/requests/load_balancers/set_ssl_termination.rb +3 -3
- data/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb +2 -1
- data/lib/fog/rackspace/requests/monitoring/create_agent_token.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/create_alarm.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/create_check.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/create_entity.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/delete_agent_token.rb +17 -0
- data/lib/fog/rackspace/requests/monitoring/delete_alarm.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/delete_check.rb +17 -0
- data/lib/fog/rackspace/requests/monitoring/delete_entity.rb +17 -0
- data/lib/fog/rackspace/requests/monitoring/evaluate_alarm_example.rb +21 -0
- data/lib/fog/rackspace/requests/monitoring/get_agent_token.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/get_alarm.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/get_alarm_example.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/get_check.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/get_entity.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/list_agent_tokens.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/list_alarm_examples.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/list_alarms.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/list_check_types.rb +17 -0
- data/lib/fog/rackspace/requests/monitoring/list_checks.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/list_data_points.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/list_entities.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/list_metrics.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/list_notification_plans.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/list_overview.rb +19 -0
- data/lib/fog/rackspace/requests/monitoring/update_alarm.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/update_check.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/update_entity.rb +18 -0
- data/lib/fog/rackspace/requests/storage/copy_object.rb +4 -0
- data/lib/fog/rackspace/requests/storage/delete_container.rb +4 -1
- data/lib/fog/rackspace/requests/storage/delete_multiple_objects.rb +75 -0
- data/lib/fog/rackspace/requests/storage/delete_object.rb +4 -1
- data/lib/fog/rackspace/requests/storage/delete_static_large_object.rb +50 -0
- data/lib/fog/rackspace/requests/storage/get_container.rb +4 -0
- data/lib/fog/rackspace/requests/storage/get_containers.rb +4 -0
- data/lib/fog/rackspace/requests/storage/get_object.rb +7 -3
- data/lib/fog/rackspace/requests/storage/get_object_https_url.rb +7 -4
- data/lib/fog/rackspace/requests/storage/head_container.rb +4 -0
- data/lib/fog/rackspace/requests/storage/head_containers.rb +4 -0
- data/lib/fog/rackspace/requests/storage/head_object.rb +4 -1
- data/lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb +4 -1
- data/lib/fog/rackspace/requests/storage/put_container.rb +6 -2
- data/lib/fog/rackspace/requests/storage/put_dynamic_obj_manifest.rb +44 -0
- data/lib/fog/rackspace/requests/storage/put_object.rb +12 -6
- data/lib/fog/rackspace/requests/storage/put_object_manifest.rb +4 -13
- data/lib/fog/rackspace/requests/storage/put_static_obj_manifest.rb +60 -0
- data/lib/fog/rackspace/service.rb +121 -0
- data/lib/fog/rackspace/storage.rb +91 -46
- data/lib/fog/riakcs.rb +122 -0
- data/lib/fog/riakcs/provisioning.rb +101 -0
- data/lib/fog/riakcs/requests/provisioning/create_user.rb +77 -0
- data/lib/fog/riakcs/requests/provisioning/disable_user.rb +23 -0
- data/lib/fog/riakcs/requests/provisioning/enable_user.rb +23 -0
- data/lib/fog/riakcs/requests/provisioning/get_user.rb +41 -0
- data/lib/fog/riakcs/requests/provisioning/list_users.rb +43 -0
- data/lib/fog/riakcs/requests/provisioning/regrant_secret.rb +23 -0
- data/lib/fog/riakcs/requests/provisioning/update_user.rb +23 -0
- data/lib/fog/riakcs/requests/usage/get_usage.rb +68 -0
- data/lib/fog/riakcs/usage.rb +67 -0
- data/lib/fog/schema/data_validator.rb +154 -0
- data/lib/fog/serverlove/compute.rb +26 -23
- data/lib/fog/serverlove/models/compute/server.rb +1 -1
- data/lib/fog/storage.rb +11 -24
- 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/terremark/models/shared/server.rb +5 -3
- data/lib/fog/terremark/parser.rb +14 -13
- data/lib/fog/terremark/parsers/shared/get_catalog.rb +5 -19
- data/lib/fog/terremark/parsers/shared/get_catalog_item.rb +4 -14
- data/lib/fog/terremark/parsers/shared/get_internet_services.rb +1 -1
- data/lib/fog/terremark/parsers/shared/get_keys_list.rb +4 -18
- data/lib/fog/terremark/parsers/shared/get_network_ips.rb +1 -1
- data/lib/fog/terremark/parsers/shared/get_node_services.rb +1 -1
- data/lib/fog/terremark/parsers/shared/get_organization.rb +4 -3
- data/lib/fog/terremark/parsers/shared/get_organizations.rb +3 -2
- data/lib/fog/terremark/parsers/shared/get_public_ips.rb +1 -1
- data/lib/fog/terremark/parsers/shared/get_tasks_list.rb +4 -17
- data/lib/fog/terremark/parsers/shared/get_vapp_template.rb +3 -14
- data/lib/fog/terremark/parsers/shared/get_vdc.rb +6 -38
- data/lib/fog/terremark/parsers/shared/instantiate_vapp_template.rb +3 -14
- data/lib/fog/terremark/parsers/shared/internet_service.rb +2 -5
- data/lib/fog/terremark/parsers/shared/network.rb +3 -11
- data/lib/fog/terremark/parsers/shared/node_service.rb +1 -1
- data/lib/fog/terremark/parsers/shared/public_ip.rb +1 -1
- data/lib/fog/terremark/parsers/shared/task.rb +3 -14
- data/lib/fog/terremark/parsers/shared/vapp.rb +3 -14
- data/lib/fog/vcloud/compute.rb +9 -2
- data/lib/fog/vcloud/models/compute/catalog_item.rb +8 -0
- data/lib/fog/vcloud/models/compute/server.rb +36 -2
- data/lib/fog/vcloud/models/compute/tag.rb +18 -0
- data/lib/fog/vcloud/models/compute/tags.rb +32 -0
- data/lib/fog/vcloud/models/compute/vapp.rb +11 -0
- data/lib/fog/vcloud/requests/compute/configure_metadata.rb +36 -0
- data/lib/fog/vcloud/requests/compute/configure_vm.rb +2 -2
- data/lib/fog/vcloud/requests/compute/configure_vm_cpus.rb +1 -1
- data/lib/fog/vcloud/requests/compute/configure_vm_customization_script.rb +33 -0
- data/lib/fog/vcloud/requests/compute/configure_vm_memory.rb +1 -1
- data/lib/fog/vcloud/requests/compute/configure_vm_network.rb +36 -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/vcloud/requests/compute/instantiate_vapp_template.rb +8 -4
- data/lib/fog/version.rb +1 -1
- data/lib/fog/volume.rb +6 -6
- data/lib/fog/vpn.rb +25 -0
- data/lib/fog/vsphere/compute.rb +160 -15
- data/lib/fog/vsphere/models/compute/customfield.rb +19 -0
- data/lib/fog/vsphere/models/compute/customfields.rb +27 -0
- data/lib/fog/vsphere/models/compute/customvalue.rb +17 -0
- data/lib/fog/vsphere/models/compute/customvalues.rb +37 -0
- data/lib/fog/vsphere/models/compute/datacenter.rb +4 -0
- data/lib/fog/vsphere/models/compute/interface.rb +2 -0
- data/lib/fog/vsphere/models/compute/interfaces.rb +14 -2
- data/lib/fog/vsphere/models/compute/networks.rb +2 -2
- data/lib/fog/vsphere/models/compute/server.rb +44 -8
- data/lib/fog/vsphere/models/compute/servers.rb +9 -9
- data/lib/fog/vsphere/requests/compute/create_vm.rb +18 -3
- data/lib/fog/vsphere/requests/compute/get_datacenter.rb +3 -1
- data/lib/fog/vsphere/requests/compute/get_datastore.rb +6 -1
- data/lib/fog/vsphere/requests/compute/get_folder.rb +3 -1
- data/lib/fog/vsphere/requests/compute/get_network.rb +6 -1
- data/lib/fog/vsphere/requests/compute/get_template.rb +16 -0
- data/lib/fog/vsphere/requests/compute/get_virtual_machine.rb +13 -28
- data/lib/fog/vsphere/requests/compute/list_customfields.rb +22 -0
- data/lib/fog/vsphere/requests/compute/list_datacenters.rb +1 -0
- data/lib/fog/vsphere/requests/compute/list_templates.rb +49 -0
- data/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +25 -122
- data/lib/fog/vsphere/requests/compute/list_vm_customvalues.rb +22 -0
- data/lib/fog/vsphere/requests/compute/list_vm_interfaces.rb +14 -1
- data/lib/fog/vsphere/requests/compute/modify_vm_interface.rb +58 -0
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +79 -50
- data/lib/fog/vsphere/requests/compute/vm_power_off.rb +2 -0
- data/lib/fog/vsphere/requests/compute/vm_reconfig_hardware.rb +1 -1
- data/lib/fog/xenserver.rb +2 -0
- data/lib/fog/xenserver/CHANGELOG.md +77 -0
- data/lib/fog/xenserver/compute.rb +23 -12
- data/lib/fog/xenserver/examples/networks-and-vlans.rb +45 -0
- data/lib/fog/xenserver/models/compute/console.rb +27 -0
- data/lib/fog/xenserver/models/compute/consoles.rb +25 -0
- data/lib/fog/xenserver/models/compute/host.rb +19 -6
- data/lib/fog/xenserver/models/compute/host_cpu.rb +37 -0
- data/lib/fog/xenserver/models/compute/network.rb +33 -0
- data/lib/fog/xenserver/models/compute/pbd.rb +1 -1
- data/lib/fog/xenserver/models/compute/pool.rb +4 -4
- data/lib/fog/xenserver/models/compute/server.rb +13 -7
- data/lib/fog/xenserver/models/compute/servers.rb +5 -0
- data/lib/fog/xenserver/models/compute/storage_repository.rb +4 -4
- data/lib/fog/xenserver/models/compute/vlan.rb +80 -0
- data/lib/fog/xenserver/models/compute/vlans.rb +39 -0
- data/lib/fog/xenserver/requests/compute/create_network.rb +42 -0
- data/lib/fog/xenserver/requests/compute/create_server.rb +4 -0
- data/lib/fog/xenserver/requests/compute/create_vlan.rb +35 -0
- data/lib/fog/xenserver/requests/compute/destroy_network.rb +33 -0
- data/lib/fog/xenserver/requests/compute/destroy_vlan.rb +32 -0
- data/lib/fog/xenserver/requests/compute/snapshot_revert.rb +22 -0
- data/lib/fog/xenserver/requests/compute/snapshot_server.rb +22 -0
- data/lib/fog/xml.rb +21 -0
- data/lib/fog/xml/sax_parser_connection.rb +46 -0
- data/lib/fog/zerigo/models/dns/record.rb +0 -1
- data/lib/fog/zerigo/models/dns/records.rb +15 -12
- 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 +8 -2
- data/tests/aws/models/auto_scaling/groups_test.rb +22 -0
- data/tests/aws/models/compute/volume_tests.rb +1 -1
- data/tests/aws/models/data_pipeline/pipeline_tests.rb +8 -0
- data/tests/aws/models/data_pipeline/pipelines_tests.rb +8 -0
- data/tests/aws/models/elb/model_tests.rb +28 -1
- data/tests/aws/models/iam/roles_tests.rb +63 -0
- data/tests/aws/models/rds/server_tests.rb +10 -9
- data/tests/aws/models/storage/directory_tests.rb +41 -5
- data/tests/aws/models/storage/file_tests.rb +1 -2
- data/tests/aws/models/storage/files_tests.rb +6 -4
- data/tests/aws/models/storage/url_tests.rb +7 -5
- data/tests/aws/models/storage/version_tests.rb +2 -2
- data/tests/aws/models/storage/versions_tests.rb +5 -5
- data/tests/aws/parsers/elb/describe_load_balancers.rb +65 -0
- data/tests/aws/requests/cloud_formation/stack_tests.rb +10 -0
- data/tests/aws/requests/compute/address_tests.rb +4 -0
- data/tests/aws/requests/compute/image_tests.rb +22 -2
- data/tests/aws/requests/compute/instance_tests.rb +50 -54
- data/tests/aws/requests/compute/security_group_tests.rb +1 -1
- data/tests/aws/requests/compute/spot_instance_tests.rb +3 -2
- data/tests/aws/requests/compute/volume_tests.rb +3 -3
- data/tests/aws/requests/data_pipeline/helper.rb +44 -0
- data/tests/aws/requests/data_pipeline/pipeline_tests.rb +54 -0
- 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/elb/helper.rb +2 -1
- data/tests/aws/requests/elb/listener_tests.rb +1 -1
- data/tests/aws/requests/elb/load_balancer_tests.rb +5 -1
- data/tests/aws/requests/elb/policy_tests.rb +85 -6
- data/tests/aws/requests/glacier/vault_tests.rb +1 -1
- data/tests/aws/requests/iam/helper.rb +4 -1
- data/tests/aws/requests/iam/server_certificate_tests.rb +33 -1
- data/tests/aws/requests/iam/user_tests.rb +10 -8
- data/tests/aws/requests/rds/helper.rb +14 -0
- data/tests/aws/requests/rds/instance_tests.rb +8 -5
- data/tests/aws/requests/rds/log_file_tests.rb +19 -0
- data/tests/aws/requests/ses/verified_domain_identity_tests.rb +16 -0
- data/tests/aws/requests/storage/bucket_tests.rb +23 -3
- data/tests/aws/requests/storage/multipart_upload_tests.rb +1 -1
- data/tests/aws/requests/storage/object_tests.rb +22 -13
- data/tests/aws/requests/sts/assume_role_tests.rb +19 -0
- data/tests/bluebox/requests/blb/helper.rb +64 -0
- data/tests/bluebox/requests/blb/lb_tests.rb +75 -0
- data/tests/brightbox/compute/image_selector_tests.rb +103 -0
- data/tests/brightbox/oauth2_tests.rb +8 -1
- data/tests/brightbox/requests/compute/collaboration_tests.rb +41 -0
- data/tests/brightbox/requests/compute/firewall_policy_tests.rb +7 -0
- data/tests/brightbox/requests/compute/helper.rb +50 -4
- data/tests/brightbox/requests/compute/user_collaboration_tests.rb +67 -0
- 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/cloudstack/compute/models/disk_offering_tests.rb +5 -0
- data/tests/cloudstack/compute/models/snapshot_tests.rb +19 -0
- data/tests/cloudstack/requests/disk_offering_tests.rb +3 -3
- data/tests/cloudstack/requests/os_type_tests.rb +2 -3
- data/tests/compute/helper.rb +17 -0
- data/tests/core/connection_tests.rb +26 -0
- data/tests/core/mocking_tests.rb +15 -0
- data/tests/core/parser_tests.rb +32 -6
- data/tests/digitalocean/helper.rb +51 -0
- data/tests/digitalocean/models/compute/flavor_tests.rb +30 -0
- data/tests/digitalocean/models/compute/image_tests.rb +31 -0
- data/tests/digitalocean/models/compute/region_tests.rb +30 -0
- data/tests/digitalocean/models/compute/server_tests.rb +92 -0
- data/tests/digitalocean/models/compute/servers_tests.rb +21 -0
- data/tests/digitalocean/models/compute/ssh_key_tests.rb +44 -0
- data/tests/digitalocean/models/compute/ssh_keys_tests.rb +32 -0
- data/tests/digitalocean/requests/compute/create_server_tests.rb +25 -0
- data/tests/digitalocean/requests/compute/create_ssh_key_tests.rb +22 -0
- data/tests/digitalocean/requests/compute/destroy_server_tests.rb +14 -0
- data/tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb +23 -0
- data/tests/digitalocean/requests/compute/get_server_details_tests.rb +13 -0
- data/tests/digitalocean/requests/compute/get_ssh_key_tests.rb +25 -0
- data/tests/digitalocean/requests/compute/list_flavors_tests.rb +23 -0
- data/tests/digitalocean/requests/compute/list_images_tests.rb +24 -0
- data/tests/digitalocean/requests/compute/list_regions_tests.rb +23 -0
- data/tests/digitalocean/requests/compute/list_servers_tests.rb +26 -0
- data/tests/digitalocean/requests/compute/list_ssh_keys_tests.rb +24 -0
- data/tests/digitalocean/requests/compute/power_cycle_server_tests.rb +20 -0
- data/tests/digitalocean/requests/compute/power_state_tests.rb +25 -0
- data/tests/digitalocean/requests/compute/reboot_server_tests.rb +14 -0
- data/tests/dnsimple/requests/dns/dns_tests.rb +30 -26
- data/tests/dreamhost/README.md +56 -0
- data/tests/dreamhost/dns_tests.rb +20 -0
- data/tests/dreamhost/helper.rb +19 -0
- data/tests/dreamhost/models/dns/record_tests.rb +73 -0
- data/tests/dreamhost/models/dns/records_tests.rb +29 -0
- data/tests/dreamhost/models/dns/zone_tests.rb +62 -0
- data/tests/dreamhost/models/dns/zones_tests.rb +29 -0
- data/tests/dreamhost/requests/dns/create_record_tests.rb +39 -0
- data/tests/dreamhost/requests/dns/delete_record_tests.rb +26 -0
- data/tests/dreamhost/requests/dns/list_records_tests.rb +31 -0
- data/tests/dynect/requests/dns/dns_tests.rb +4 -7
- data/tests/ecloud/compute/models/server_tests.rb +9 -1
- data/tests/glesys/requests/compute/helper.rb +5 -5
- data/tests/google/models/compute/server_tests.rb +24 -0
- data/tests/google/requests/compute/disk_tests.rb +88 -0
- data/tests/google/requests/compute/firewall_tests.rb +85 -0
- data/tests/google/requests/compute/image_tests.rb +80 -0
- data/tests/google/requests/compute/network_tests.rb +74 -0
- data/tests/google/requests/compute/operation_tests.rb +19 -0
- data/tests/google/requests/compute/server_tests.rb +84 -0
- data/tests/google/requests/compute/zone_tests.rb +46 -0
- data/tests/helper.rb +16 -1
- data/tests/helpers/collection_helper.rb +35 -0
- data/tests/helpers/formats_helper.rb +63 -50
- data/tests/helpers/formats_helper_tests.rb +87 -36
- data/tests/helpers/mock_helper.rb +15 -2
- data/tests/helpers/schema_validator_tests.rb +107 -0
- data/tests/hp/models/block_storage/bootable_volume_tests.rb +23 -0
- data/tests/hp/models/block_storage/snapshot_tests.rb +23 -0
- data/tests/hp/models/block_storage/volume_tests.rb +21 -0
- data/tests/hp/models/compute/address_tests.rb +1 -1
- data/tests/hp/models/compute/addresses_tests.rb +1 -1
- data/tests/hp/models/compute/key_pair_tests.rb +1 -1
- data/tests/hp/models/compute/key_pairs_tests.rb +1 -1
- data/tests/hp/models/compute/metadata_image_tests.rb +60 -0
- data/tests/hp/models/compute/metadata_server_tests.rb +54 -0
- data/tests/hp/models/compute/security_group_tests.rb +3 -1
- data/tests/hp/models/compute/security_groups_tests.rb +1 -1
- data/tests/hp/models/storage/directories_tests.rb +23 -0
- data/tests/hp/models/storage/directory_tests.rb +62 -0
- data/tests/hp/models/storage/file_tests.rb +44 -0
- data/tests/hp/models/storage/files_tests.rb +38 -0
- data/tests/hp/requests/block_storage/bootable_volume_tests.rb +78 -0
- data/tests/hp/requests/block_storage/snapshot_tests.rb +56 -0
- data/tests/hp/requests/block_storage/volume_tests.rb +94 -0
- data/tests/hp/requests/cdn/container_tests.rb +1 -1
- data/tests/hp/requests/compute/address_tests.rb +5 -6
- data/tests/hp/requests/compute/flavor_tests.rb +1 -1
- data/tests/hp/requests/compute/image_tests.rb +1 -1
- data/tests/hp/requests/compute/key_pair_tests.rb +1 -1
- data/tests/hp/requests/compute/metadata_tests.rb +70 -0
- data/tests/hp/requests/compute/persistent_server_tests.rb +66 -0
- data/tests/hp/requests/compute/security_group_rule_tests.rb +1 -1
- data/tests/hp/requests/compute/security_group_tests.rb +1 -1
- data/tests/hp/requests/compute/server_address_tests.rb +1 -1
- data/tests/hp/requests/compute/server_tests.rb +5 -6
- data/tests/hp/requests/compute/server_volume_tests.rb +76 -0
- data/tests/hp/requests/storage/container_tests.rb +1 -1
- data/tests/hp/requests/storage/object_tests.rb +9 -1
- data/tests/hp/user_agent_tests.rb +13 -0
- data/tests/internet_archive/models/storage/directory_tests.rb +43 -0
- data/tests/internet_archive/models/storage/file_tests.rb +61 -0
- data/tests/internet_archive/models/storage/files_tests.rb +58 -0
- data/tests/internet_archive/models/storage/url_tests.rb +28 -0
- data/tests/internet_archive/requests/storage/acl_utils_tests.rb +209 -0
- data/tests/internet_archive/requests/storage/bucket_tests.rb +324 -0
- data/tests/internet_archive/requests/storage/cors_utils_tests.rb +108 -0
- data/tests/internet_archive/requests/storage/multipart_upload_tests.rb +132 -0
- data/tests/internet_archive/requests/storage/object_tests.rb +166 -0
- data/tests/internet_archive/signaturev4_tests.rb +41 -0
- data/tests/internet_archive/signed_params_tests.rb +5 -0
- data/tests/joyent/requests/compute/networks_tests.rb +39 -0
- data/tests/openstack/models/compute/images_tests.rb +14 -0
- data/tests/openstack/models/compute/server_tests.rb +133 -2
- data/tests/openstack/models/identity/roles_tests.rb +1 -0
- data/tests/openstack/models/identity/user_tests.rb +2 -2
- data/tests/openstack/models/image/images_tests.rb +5 -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/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/models/network/network_tests.rb +38 -1
- data/tests/openstack/models/network/router_tests.rb +38 -0
- data/tests/openstack/models/network/routers_tests.rb +21 -0
- data/tests/openstack/models/storage/file_tests.rb +178 -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/compute/limit_tests.rb +1 -1
- data/tests/openstack/requests/compute/tenant_tests.rb +2 -2
- data/tests/openstack/requests/compute/volume_tests.rb +11 -9
- data/tests/openstack/requests/identity/ec2_credentials_tests.rb +7 -4
- data/tests/openstack/requests/identity/helper.rb +17 -0
- data/tests/openstack/requests/identity/role_tests.rb +6 -0
- data/tests/openstack/requests/identity/tenant_tests.rb +14 -12
- data/tests/openstack/requests/identity/user_tests.rb +9 -5
- data/tests/openstack/requests/metering/meter_tests.rb +52 -0
- data/tests/openstack/requests/metering/resource_tests.rb +19 -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/network/network_tests.rb +61 -10
- data/tests/openstack/requests/network/quota_tests.rb +65 -0
- data/tests/openstack/requests/network/router_tests.rb +75 -0
- data/tests/openstack/requests/storage/container_tests.rb +64 -0
- data/tests/openstack/requests/storage/large_object_tests.rb +111 -0
- data/tests/openstack/requests/storage/object_tests.rb +109 -0
- data/tests/openstack/requests/volume/quota_tests.rb +51 -0
- data/tests/openstack/storage_tests.rb +19 -0
- data/tests/openstack/version_tests.rb +55 -0
- data/tests/openstack/volume_tests.rb +15 -0
- data/tests/openvz/helper.rb +47 -0
- data/tests/openvz/models/compute/server_tests.rb +56 -0
- data/tests/openvz/models/compute/servers_tests.rb +35 -0
- data/tests/ovirt/requests/compute/list_quotas_tests.rb +12 -0
- data/tests/rackspace/block_storage_tests.rb +114 -0
- data/tests/rackspace/cdn_tests.rb +173 -0
- data/tests/rackspace/compute_tests.rb +99 -0
- data/tests/rackspace/compute_v2_tests.rb +113 -0
- data/tests/rackspace/databases_tests.rb +110 -0
- data/tests/rackspace/dns_tests.rb +105 -0
- data/tests/rackspace/helper.rb +47 -1
- data/tests/rackspace/identity_tests.rb +25 -0
- data/tests/rackspace/load_balancer_tests.rb +111 -0
- data/tests/rackspace/models/block_storage/snapshot_tests.rb +4 -6
- data/tests/rackspace/models/block_storage/snapshots_tests.rb +1 -3
- data/tests/rackspace/models/block_storage/volume_tests.rb +3 -5
- 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 +2 -5
- data/tests/rackspace/models/compute_v2/image_tests.rb +57 -10
- data/tests/rackspace/models/compute_v2/images_tests.rb +2 -4
- data/tests/rackspace/models/compute_v2/keypairs_tests.rb +47 -0
- data/tests/rackspace/models/compute_v2/metadata_tests.rb +44 -0
- data/tests/rackspace/models/compute_v2/network_tests.rb +10 -0
- data/tests/rackspace/models/compute_v2/networks_tests.rb +10 -0
- data/tests/rackspace/models/compute_v2/server_tests.rb +152 -15
- data/tests/rackspace/models/compute_v2/servers_tests.rb +9 -7
- data/tests/rackspace/models/dns/zones_tests.rb +36 -0
- data/tests/rackspace/models/identity/credentials_tests.rb +14 -5
- data/tests/rackspace/models/identity/service_catalog_tests.rb +81 -0
- data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +2 -0
- data/tests/rackspace/models/monitoring/agent_token_tests.rb +9 -0
- data/tests/rackspace/models/monitoring/agent_tokens_tests.rb +9 -0
- data/tests/rackspace/models/monitoring/alarm_example_tests.rb +18 -0
- data/tests/rackspace/models/monitoring/alarm_examples_tests.rb +19 -0
- data/tests/rackspace/models/monitoring/alarm_tests.rb +56 -0
- data/tests/rackspace/models/monitoring/alarms_tests.rb +25 -0
- data/tests/rackspace/models/monitoring/check_tests.rb +50 -0
- data/tests/rackspace/models/monitoring/check_types_tests.rb +14 -0
- data/tests/rackspace/models/monitoring/checks_tests.rb +16 -0
- data/tests/rackspace/models/monitoring/data_points_tests.rb +19 -0
- data/tests/rackspace/models/monitoring/entities_tests.rb +14 -0
- data/tests/rackspace/models/monitoring/entity_tests.rb +26 -0
- data/tests/rackspace/models/monitoring/metric_tests.rb +19 -0
- data/tests/rackspace/models/monitoring/metrics_tests.rb +17 -0
- data/tests/rackspace/models/storage/account_tests.rb +28 -0
- data/tests/rackspace/models/storage/directories_tests.rb +29 -0
- data/tests/rackspace/models/storage/directory_tests.rb +141 -0
- data/tests/rackspace/models/storage/file_tests.rb +146 -16
- data/tests/rackspace/models/storage/metadata_tests.rb +174 -0
- data/tests/rackspace/monitoring_tests.rb +72 -0
- data/tests/rackspace/rackspace_tests.rb +56 -0
- data/tests/rackspace/requests/block_storage/snapshot_tests.rb +14 -15
- data/tests/rackspace/requests/block_storage/volume_tests.rb +9 -11
- data/tests/rackspace/requests/block_storage/volume_type_tests.rb +6 -16
- data/tests/rackspace/requests/cdn/cdn_tests.rb +76 -0
- data/tests/rackspace/requests/compute/image_tests.rb +3 -3
- data/tests/rackspace/requests/compute_v2/address_tests.rb +1 -1
- data/tests/rackspace/requests/compute_v2/attachment_tests.rb +19 -20
- data/tests/rackspace/requests/compute_v2/flavor_tests.rb +8 -10
- data/tests/rackspace/requests/compute_v2/image_tests.rb +19 -21
- data/tests/rackspace/requests/compute_v2/keypair_tests.rb +55 -0
- data/tests/rackspace/requests/compute_v2/metadata_tests.rb +104 -0
- data/tests/rackspace/requests/compute_v2/network_tests.rb +49 -0
- data/tests/rackspace/requests/compute_v2/server_tests.rb +55 -58
- data/tests/rackspace/requests/databases/database_tests.rb +23 -20
- data/tests/rackspace/requests/databases/user_tests.rb +6 -6
- data/tests/rackspace/requests/dns/dns_tests.rb +1 -1
- data/tests/rackspace/requests/dns/records_tests.rb +3 -3
- data/tests/rackspace/requests/identity/token_tests.rb +9 -0
- data/tests/rackspace/requests/identity/user_tests.rb +4 -5
- 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/load_balancers/usage_tests.rb +4 -2
- data/tests/rackspace/requests/monitoring/agent_tests.rb +34 -0
- data/tests/rackspace/requests/monitoring/alarm_example_tests.rb +30 -0
- data/tests/rackspace/requests/monitoring/alarm_tests.rb +56 -0
- data/tests/rackspace/requests/monitoring/check_tests.rb +40 -0
- data/tests/rackspace/requests/monitoring/entity_tests.rb +37 -0
- data/tests/rackspace/requests/monitoring/helper.rb +78 -0
- data/tests/rackspace/requests/monitoring/list_tests.rb +60 -0
- data/tests/rackspace/requests/storage/container_tests.rb +8 -1
- data/tests/rackspace/requests/storage/large_object_tests.rb +326 -18
- data/tests/rackspace/requests/storage/object_tests.rb +89 -4
- data/tests/rackspace/service_tests.rb +83 -0
- data/tests/rackspace/storage_tests.rb +116 -0
- data/tests/riakcs/requests/provisioning/provisioning_tests.rb +174 -0
- data/tests/riakcs/requests/usage/usage_tests.rb +29 -0
- data/tests/storage/helper.rb +3 -0
- data/tests/vcloud/requests/compute/disk_configure_tests.rb +7 -2
- data/tests/vsphere/models/compute/server_tests.rb +1 -1
- data/tests/vsphere/requests/compute/list_virtual_machines_tests.rb +2 -2
- data/tests/vsphere/requests/compute/vm_clone_tests.rb +21 -5
- data/tests/xenserver/compute_tests.rb +5 -5
- data/tests/xenserver/models/compute/console_test.rb +35 -0
- data/tests/xenserver/models/compute/consoles_test.rb +19 -0
- data/tests/xenserver/models/compute/host_cpu_tests.rb +58 -0
- data/tests/xenserver/models/compute/host_metrics_tests.rb +1 -1
- data/tests/xenserver/models/compute/host_tests.rb +13 -1
- data/tests/xenserver/models/compute/network_tests.rb +18 -6
- data/tests/xenserver/models/compute/server_tests.rb +35 -18
- data/tests/xenserver/models/compute/servers_tests.rb +1 -0
- data/tests/xenserver/models/compute/vlan_tests.rb +76 -0
- data/tests/xenserver/models/compute/vlans_tests.rb +36 -0
- data/tests/xenserver/requests/compute/create_network_tests.rb +20 -0
- data/tests/xenserver/requests/compute/create_vlan_tests.rb +36 -0
- data/tests/xenserver/requests/compute/destroy_network_tests.rb +13 -0
- data/tests/xenserver/requests/compute/destroy_vlan_tests.rb +36 -0
- data/tests/zerigo/requests/dns/dns_tests.rb +59 -13
- metadata +1211 -107
- data/docs/storage/aws.markdown +0 -21
- data/lib/fog/bin/virtual_box.rb +0 -57
- data/lib/fog/openstack/README.identity.md +0 -69
- data/lib/fog/providers.rb +0 -33
- data/lib/fog/rackspace/requests/identity/get_credentials.rb +0 -15
- 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/lib/fog/virtual_box.rb +0 -11
- data/lib/fog/virtual_box/compute.rb +0 -59
- data/lib/fog/virtual_box/models/compute/medium.rb +0 -87
- data/lib/fog/virtual_box/models/compute/medium_format.rb +0 -34
- data/lib/fog/virtual_box/models/compute/mediums.rb +0 -32
- data/lib/fog/virtual_box/models/compute/nat_engine.rb +0 -65
- data/lib/fog/virtual_box/models/compute/nat_redirect.rb +0 -91
- data/lib/fog/virtual_box/models/compute/nat_redirects.rb +0 -41
- data/lib/fog/virtual_box/models/compute/network_adapter.rb +0 -82
- data/lib/fog/virtual_box/models/compute/network_adapters.rb +0 -42
- data/lib/fog/virtual_box/models/compute/server.rb +0 -199
- data/lib/fog/virtual_box/models/compute/servers.rb +0 -41
- data/lib/fog/virtual_box/models/compute/storage_controller.rb +0 -83
- data/lib/fog/virtual_box/models/compute/storage_controllers.rb +0 -38
@@ -8,11 +8,28 @@ module Fog
|
|
8
8
|
|
9
9
|
model Fog::Compute::RackspaceV2::Image
|
10
10
|
|
11
|
+
# Returns list of images
|
12
|
+
# @return [Fog::Compute::RackspaceV2::Images] Retrieves a list images.
|
13
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
15
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
16
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
17
|
+
# @note Fog's current implementation only returns 1000 images.
|
18
|
+
# @note Fog does not retrieve all image details. Please use get to retrieve all details for a specific image.
|
19
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Images-d1e4435.html
|
11
20
|
def all
|
12
21
|
data = service.list_images.body['images']
|
13
22
|
load(data)
|
14
23
|
end
|
15
24
|
|
25
|
+
# Retrieve image
|
26
|
+
# @param [String] image_id id of image
|
27
|
+
# @return [Fog::Compute::RackspaceV2:Image] image
|
28
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
29
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
30
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
31
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
32
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Get_Image_Details-d1e4848.html
|
16
33
|
def get(image_id)
|
17
34
|
data = service.get_image(image_id).body['image']
|
18
35
|
new(data)
|
@@ -0,0 +1,56 @@
|
|
1
|
+
require 'fog/core/model'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module Compute
|
5
|
+
class RackspaceV2
|
6
|
+
class KeyPair < Fog::Model
|
7
|
+
|
8
|
+
# @!attribute [rw] name
|
9
|
+
# @return [String] the keypair name
|
10
|
+
identity :name
|
11
|
+
|
12
|
+
# @!attribute [r] public_key
|
13
|
+
# @return [String] the public key
|
14
|
+
attribute :public_key
|
15
|
+
|
16
|
+
# @!attribute [r] private_key
|
17
|
+
# @return [String] the private key
|
18
|
+
attribute :private_key
|
19
|
+
|
20
|
+
# @!attribute [r] user_id
|
21
|
+
# @return [String] the user_id associated to
|
22
|
+
attribute :user_id
|
23
|
+
|
24
|
+
# @!attribute [r] fingerprint
|
25
|
+
# @return [String] unique fingerprint
|
26
|
+
attribute :fingerprint
|
27
|
+
|
28
|
+
# Creates a keypair
|
29
|
+
# @return [Boolean] true if the keypair is successfully created
|
30
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound]
|
31
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest]
|
32
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError]
|
33
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
34
|
+
def save
|
35
|
+
requires :name
|
36
|
+
data = service.create_keypair(name, public_key)
|
37
|
+
merge_attributes(data.body['keypair'])
|
38
|
+
data.body['keypair']['name'] == name
|
39
|
+
end
|
40
|
+
|
41
|
+
# Destroys a keypair
|
42
|
+
# @return [Boolean] true if the keypair is successfully deleted
|
43
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound]
|
44
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest]
|
45
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError]
|
46
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
47
|
+
def destroy
|
48
|
+
requires :identity
|
49
|
+
service.delete_keypair(identity)
|
50
|
+
true
|
51
|
+
end
|
52
|
+
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
require 'fog/core/collection'
|
2
|
+
require 'fog/rackspace/models/compute_v2/key_pair'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module Compute
|
6
|
+
class RackspaceV2
|
7
|
+
|
8
|
+
class KeyPairs < Fog::Collection
|
9
|
+
|
10
|
+
model Fog::Compute::RackspaceV2::KeyPair
|
11
|
+
|
12
|
+
# Fetch the list of known keypairs
|
13
|
+
# @return [Fog::Compute::RackspaceV2::Keypairs] the retreived keypairs
|
14
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound]
|
15
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest]
|
16
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError]
|
17
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
18
|
+
def all
|
19
|
+
data = []
|
20
|
+
service.list_keypairs.body['keypairs'].each do |kp|
|
21
|
+
data << kp['keypair'] if kp['keypair']
|
22
|
+
end
|
23
|
+
load(data)
|
24
|
+
end
|
25
|
+
|
26
|
+
# Fetch keypair details
|
27
|
+
# @param [String] key_name: name of the key to request
|
28
|
+
# @return [Fog::Compute::RackspaceV2::Keypair] the requested keypair or 'nil' when not found
|
29
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest]
|
30
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError]
|
31
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
32
|
+
def get(key_name)
|
33
|
+
begin
|
34
|
+
new(service.get_keypair(key_name).body['keypair'])
|
35
|
+
rescue Fog::Compute::RackspaceV2::NotFound
|
36
|
+
nil
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class RackspaceV2
|
4
|
+
module MetaParent
|
5
|
+
|
6
|
+
# Parent of metadata
|
7
|
+
# @return [#parent] parent of metadata
|
8
|
+
def parent
|
9
|
+
@parent
|
10
|
+
end
|
11
|
+
|
12
|
+
# Sets parent of metadata
|
13
|
+
# @param [#parent] new_parent of metadata
|
14
|
+
def parent=(new_parent)
|
15
|
+
@parent = new_parent
|
16
|
+
end
|
17
|
+
|
18
|
+
# Collection type for parent
|
19
|
+
# @return [String] collection type
|
20
|
+
# @raise [RuntimeError] raises excpetion if collection type for parent is unknown
|
21
|
+
def collection_name
|
22
|
+
if parent.class == Fog::Compute::RackspaceV2::Image
|
23
|
+
return "images"
|
24
|
+
elsif parent.class == Fog::Compute::RackspaceV2::Server
|
25
|
+
return "servers"
|
26
|
+
else
|
27
|
+
raise "Metadata is not supported for this model type."
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Converts metadata to hash
|
32
|
+
# @return [Hash] hash containing key value pairs for metadata
|
33
|
+
def metas_to_hash(metas)
|
34
|
+
hash = {}
|
35
|
+
metas.each { |meta| hash[meta.key] = meta.value }
|
36
|
+
hash
|
37
|
+
end
|
38
|
+
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,112 @@
|
|
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
|
+
# Retrieves all of the metadata from server
|
18
|
+
# @return [Fog::Compute::RackspaceV2::Metadatum] list of metadatum
|
19
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
20
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
21
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
22
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
23
|
+
def all
|
24
|
+
requires :parent
|
25
|
+
return unless parent.identity
|
26
|
+
data = service.list_metadata(collection_name, parent.id).body['metadata']
|
27
|
+
from_hash(data)
|
28
|
+
end
|
29
|
+
|
30
|
+
# Retrieves specific metadata from server
|
31
|
+
# @param [String] key for metadatum
|
32
|
+
# @return [Fog::Compute::RackspaceV2::Metadatum] metadatum
|
33
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
34
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
35
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
36
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
37
|
+
def get(key)
|
38
|
+
requires :parent
|
39
|
+
data = service.get_metadata_item(collection_name, parent.id, key).body["meta"]
|
40
|
+
datum = data.first
|
41
|
+
new(:key => datum[0], :value => datum[1])
|
42
|
+
rescue Fog::Compute::RackspaceV2::NotFound
|
43
|
+
nil
|
44
|
+
end
|
45
|
+
|
46
|
+
# Retrieve specific value for key from Metadata.
|
47
|
+
# * If key is of type String, this method will return the value of the metadatum
|
48
|
+
# * If key is of type Fixnum, this method will return a Fog::Compute::RackspaceV2::Metadatum object (legacy)
|
49
|
+
# @param [#key] key
|
50
|
+
# @return [#value]
|
51
|
+
def [](key)
|
52
|
+
return super(key) if key.is_a?(Integer)
|
53
|
+
return nil unless key
|
54
|
+
datum = self.find {|datum| datum.key == key || datum.key == key.to_sym }
|
55
|
+
datum ? datum.value : nil
|
56
|
+
end
|
57
|
+
|
58
|
+
# Set value for key.
|
59
|
+
# * If key is of type String, this method will set/add the value to Metadata
|
60
|
+
# * If key is of type Fixnum, this method will set a Fog::Compute::RackspaceV2::Metadatum object (legacy)
|
61
|
+
# @param [#key] key
|
62
|
+
# @return [String]
|
63
|
+
def []=(key, value)
|
64
|
+
return super(key,value) if key.is_a?(Integer)
|
65
|
+
return nil unless key
|
66
|
+
datum = self.find {|datum| datum.key == key || datum.key == key.to_sym }
|
67
|
+
if datum
|
68
|
+
datum.value = value
|
69
|
+
else
|
70
|
+
self << Fog::Compute::RackspaceV2::Metadatum.new(:key => key, :value => value, :service => service, :parent => parent)
|
71
|
+
end
|
72
|
+
value
|
73
|
+
end
|
74
|
+
|
75
|
+
# Saves the current metadata on server
|
76
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
77
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
78
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
79
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
80
|
+
def save
|
81
|
+
requires :parent
|
82
|
+
service.set_metadata(collection_name, parent.id, to_hash)
|
83
|
+
end
|
84
|
+
|
85
|
+
# Creates new metadata
|
86
|
+
def new(attributes = {})
|
87
|
+
requires :parent
|
88
|
+
super({ :parent => parent }.merge!(attributes))
|
89
|
+
end
|
90
|
+
|
91
|
+
# Resets metadata using data from hash
|
92
|
+
# @param hash hash containing key value pairs used to populate metadata.
|
93
|
+
# @note This will remove existing data
|
94
|
+
def from_hash(hash)
|
95
|
+
return unless hash
|
96
|
+
metas = []
|
97
|
+
hash.each_pair {|k,v| metas << {:key => k, :value => v} }
|
98
|
+
load(metas)
|
99
|
+
end
|
100
|
+
|
101
|
+
# Converts metadata object to hash
|
102
|
+
# @return [Hash] hash of metadata key value pairs
|
103
|
+
def to_hash
|
104
|
+
h = {}
|
105
|
+
self.each { |datum| h[datum.key] = datum.value }
|
106
|
+
h
|
107
|
+
end
|
108
|
+
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'fog/core/model'
|
2
|
+
require 'fog/rackspace/models/compute_v2/meta_parent'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module Compute
|
6
|
+
class RackspaceV2
|
7
|
+
class Metadatum < Fog::Model
|
8
|
+
|
9
|
+
include Fog::Compute::RackspaceV2::MetaParent
|
10
|
+
|
11
|
+
identity :key
|
12
|
+
attribute :value
|
13
|
+
|
14
|
+
# Remove metadatum from server
|
15
|
+
# @return [Boolean] return true if metadatum is deleting
|
16
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
17
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
18
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
19
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
20
|
+
def destroy
|
21
|
+
requires :identity
|
22
|
+
connection.delete_metadata_item(collection_name, parent.id, key)
|
23
|
+
true
|
24
|
+
end
|
25
|
+
|
26
|
+
# Save metadatum on server
|
27
|
+
# @return [Boolean] return true if metadatum is saving
|
28
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
29
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
30
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
31
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
32
|
+
def save
|
33
|
+
requires :identity, :value
|
34
|
+
connection.set_metadata_item(collection_name, parent.id, key, value)
|
35
|
+
true
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class RackspaceV2
|
4
|
+
class Network < Fog::Model
|
5
|
+
identity :id
|
6
|
+
|
7
|
+
attribute :label
|
8
|
+
attribute :cidr
|
9
|
+
|
10
|
+
def save
|
11
|
+
requires :label, :cidr
|
12
|
+
|
13
|
+
data = service.create_network(label, cidr)
|
14
|
+
merge_attributes(data.body['network'])
|
15
|
+
true
|
16
|
+
end
|
17
|
+
|
18
|
+
def destroy
|
19
|
+
requires :identity
|
20
|
+
|
21
|
+
service.delete_network(identity)
|
22
|
+
true
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'fog/rackspace/models/compute_v2/network'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module Compute
|
5
|
+
class RackspaceV2
|
6
|
+
class Networks < Fog::Collection
|
7
|
+
model Fog::Compute::RackspaceV2::Network
|
8
|
+
|
9
|
+
def all
|
10
|
+
data = service.list_networks.body['networks']
|
11
|
+
load(data)
|
12
|
+
end
|
13
|
+
|
14
|
+
def get(id)
|
15
|
+
data = service.get_network(id).body['network']
|
16
|
+
new(data)
|
17
|
+
rescue Fog::Compute::RackspaceV2::NotFound
|
18
|
+
nil
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'fog/compute/models/server'
|
2
|
+
require 'fog/rackspace/models/compute_v2/metadata'
|
2
3
|
|
3
4
|
module Fog
|
4
5
|
module Compute
|
@@ -21,80 +22,293 @@ module Fog
|
|
21
22
|
UNKNOWN = 'UNKNOWN'
|
22
23
|
VERIFY_RESIZE = 'VERIFY_RESIZE'
|
23
24
|
|
25
|
+
# @!attribute [r] id
|
26
|
+
# @return [String] The server id
|
24
27
|
identity :id
|
25
28
|
|
29
|
+
# @!attribute [rw] name
|
30
|
+
# @return [String] The server name.
|
26
31
|
attribute :name
|
32
|
+
|
33
|
+
# @!attribute [r] created
|
34
|
+
# @return [String] The time stamp for the creation date.
|
27
35
|
attribute :created
|
36
|
+
|
37
|
+
# @!attribute [r] updated
|
38
|
+
# @return [String] The time stamp for the last update.
|
28
39
|
attribute :updated
|
40
|
+
|
41
|
+
# @!attribute [r] host Id
|
42
|
+
# The host Id.
|
43
|
+
# The compute provisioning algorithm has an anti-affinity property that attempts to spread customer VMs across hosts.
|
44
|
+
# Under certain situations, VMs from the same customer might be placed on the same host.
|
45
|
+
# hostId represents the host your server runs on and can be used to determine this scenario if it is relevant to your application.
|
46
|
+
# HostId is unique per account and is not globally unique.
|
47
|
+
# @return [String] host id.
|
29
48
|
attribute :host_id, :aliases => 'hostId'
|
49
|
+
|
50
|
+
# @!attribute [r] state
|
51
|
+
# @return [String] server status.
|
52
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Servers-d1e2078.html#server_status
|
30
53
|
attribute :state, :aliases => 'status'
|
54
|
+
|
55
|
+
# @!attribute [r] state_ext
|
56
|
+
# @return [String] server (extended) status.
|
57
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Servers-d1e2078.html#server_status
|
58
|
+
attribute :state_ext, :aliases => 'OS-EXT-STS:task_state'
|
59
|
+
|
60
|
+
# @!attribute [r] progress
|
61
|
+
# @return [Fixnum] The build completion progress, as a percentage. Value is from 0 to 100.
|
31
62
|
attribute :progress
|
63
|
+
|
64
|
+
# @!attribute [r] user_id
|
65
|
+
# @return [String] The user Id.
|
32
66
|
attribute :user_id
|
67
|
+
|
68
|
+
# @!attribute [r] tenant_id
|
69
|
+
# @return [String] The tenant Id.
|
33
70
|
attribute :tenant_id
|
71
|
+
|
72
|
+
# @!attribute [r] links
|
73
|
+
# @return [Array] Server links.
|
34
74
|
attribute :links
|
35
|
-
|
75
|
+
|
76
|
+
# @!attribute [rw] personality
|
77
|
+
# @note This attribute is only used for server creation. This field will be nil on subsequent retrievals.
|
78
|
+
# @return [Hash] Hash containing data to inject into the file system of the cloud server instance during server creation.
|
79
|
+
# @example To inject fog.txt into file system
|
80
|
+
# :personality => [{ :path => '/root/fog.txt',
|
81
|
+
# :contents => Base64.encode64('Fog was here!')
|
82
|
+
# }]
|
83
|
+
# @see #create
|
84
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Server_Personality-d1e2543.html
|
36
85
|
attribute :personality
|
86
|
+
|
87
|
+
# @!attribute [rw] ipv4_address
|
88
|
+
# @return [String] The public IP version 4 access address.
|
89
|
+
# @note This field will populate once the server is ready to use.
|
90
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Server_Primary_Addresses-d1e2558.html
|
37
91
|
attribute :ipv4_address, :aliases => 'accessIPv4'
|
92
|
+
|
93
|
+
# @!attribute [rw] ipv6_address
|
94
|
+
# @return [String] The public IP version 6 access address.
|
95
|
+
# @note This field will populate once the server is ready to use.
|
96
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Server_Primary_Addresses-d1e2558.html
|
38
97
|
attribute :ipv6_address, :aliases => 'accessIPv6'
|
98
|
+
|
99
|
+
# @!attribute [rw] disk_config
|
100
|
+
# @return [String<AUTO, MANUAL>] The disk configuration value.
|
101
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/ch_extensions.html#diskconfig_attribute
|
102
|
+
#
|
103
|
+
# The disk configuration value.
|
104
|
+
# * AUTO - The server is built with a single partition the size of the target flavor disk. The file system is automatically adjusted to fit the entire partition.
|
105
|
+
# This keeps things simple and automated. AUTO is valid only for images and servers with a single partition that use the EXT3 file system.
|
106
|
+
# This is the default setting for applicable Rackspace base images.
|
107
|
+
#
|
108
|
+
# * MANUAL - The server is built using whatever partition scheme and file system is in the source image. If the target flavor disk is larger,
|
109
|
+
# the remaining disk space is left unpartitioned. This enables images to have non-EXT3 file systems, multiple partitions,
|
110
|
+
# and so on, and enables you to manage the disk configuration.
|
39
111
|
attribute :disk_config, :aliases => 'OS-DCF:diskConfig'
|
112
|
+
|
113
|
+
# @!attribute [r] bandwidth
|
114
|
+
# @return [Array] The amount of bandwidth used for the specified audit period.
|
115
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/ch_extensions.html#bandwidth_extension
|
40
116
|
attribute :bandwidth, :aliases => 'rax-bandwidth:bandwidth'
|
117
|
+
|
118
|
+
# @!attribute [r] address
|
119
|
+
# @return [Hash<String, Array[Hash]>] IP addresses allocated for server by network
|
120
|
+
# @example
|
121
|
+
# {
|
122
|
+
# "public" => [
|
123
|
+
# {"version"=>4, "addr"=>"166.78.105.63"},
|
124
|
+
# {"version"=>6, "addr"=>"2001:4801:7817:0072:0fe1:75e8:ff10:61a9"}
|
125
|
+
# ],
|
126
|
+
# "private"=> [{"version"=>4, "addr"=>"10.177.18.209"}]
|
127
|
+
# }
|
41
128
|
attribute :addresses
|
129
|
+
|
130
|
+
# @!attribute [r] flavor_id
|
131
|
+
# @return [String] The flavor Id.
|
132
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Flavors-d1e4188.html
|
42
133
|
attribute :flavor_id, :aliases => 'flavor', :squash => 'id'
|
134
|
+
|
135
|
+
# @!attribute [r] image_id
|
136
|
+
# @return [String] The image Id.
|
137
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Images-d1e4435.html
|
43
138
|
attribute :image_id, :aliases => 'image', :squash => 'id'
|
139
|
+
# @!attribute [r] password
|
140
|
+
# @return [String] Password for system adminstrator account.
|
141
|
+
# @note This value is ONLY populated on server creation.
|
142
|
+
attr_reader :password
|
143
|
+
|
144
|
+
|
145
|
+
def initialize(attributes={})
|
146
|
+
@service = attributes[:service]
|
147
|
+
super
|
148
|
+
end
|
44
149
|
|
45
|
-
|
150
|
+
alias :access_ipv4_address :ipv4_address
|
151
|
+
alias :access_ipv4_address= :ipv4_address=
|
152
|
+
alias :access_ipv6_address :ipv6_address
|
153
|
+
alias :access_ipv6_address= :ipv6_address=
|
46
154
|
|
47
|
-
|
155
|
+
# Server metadata
|
156
|
+
# @return [Fog::Compute::RackspaceV2::Metadata] metadata key value pairs.
|
157
|
+
def metadata
|
158
|
+
@metadata ||= begin
|
159
|
+
Fog::Compute::RackspaceV2::Metadata.new({
|
160
|
+
:service => service,
|
161
|
+
:parent => self
|
162
|
+
})
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
# Set server metadata
|
167
|
+
# @param [Hash] hash contains key value pairs
|
168
|
+
def metadata=(hash={})
|
169
|
+
metadata.from_hash(hash)
|
170
|
+
end
|
171
|
+
|
172
|
+
# Saves the server.
|
173
|
+
# Creates server if it is new, otherwise it will update server attributes name, accessIPv4, and accessIPv6.
|
174
|
+
# @return [Boolean] true if server has started saving
|
175
|
+
def save(options = {})
|
48
176
|
if persisted?
|
49
177
|
update
|
50
178
|
else
|
51
|
-
create
|
179
|
+
create(options)
|
52
180
|
end
|
53
181
|
true
|
54
182
|
end
|
55
183
|
|
56
|
-
|
184
|
+
# Creates server
|
185
|
+
# * requires attributes: service:, :name, :image_id, and :flavor_id
|
186
|
+
# * optional attributes :disk_config, :metadata, :personality
|
187
|
+
# @return [Boolean] returns true if server is being created
|
188
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
189
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
190
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
191
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
192
|
+
# @note You should use servers.create to create servers instead calling this method directly
|
193
|
+
# @see Servers#create
|
194
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/CreateServers.html
|
195
|
+
#
|
196
|
+
# * State Transitions
|
197
|
+
# * BUILD -> ACTIVE
|
198
|
+
# * BUILD -> ERROR (on error)
|
199
|
+
def create(options)
|
57
200
|
requires :name, :image_id, :flavor_id
|
58
201
|
|
59
|
-
options
|
202
|
+
options[:networks] ||= attributes[:networks]
|
60
203
|
options[:disk_config] = disk_config unless disk_config.nil?
|
61
|
-
options[:metadata] = metadata unless metadata.nil?
|
204
|
+
options[:metadata] = metadata.to_hash unless @metadata.nil?
|
62
205
|
options[:personality] = personality unless personality.nil?
|
206
|
+
options[:keypair] ||= attributes[:keypair]
|
63
207
|
|
208
|
+
if options[:networks]
|
209
|
+
options[:networks].map! { |id| { :uuid => id } }
|
210
|
+
end
|
64
211
|
data = service.create_server(name, image_id, flavor_id, 1, 1, options)
|
65
212
|
merge_attributes(data.body['server'])
|
66
213
|
true
|
67
214
|
end
|
68
215
|
|
216
|
+
# Updates server
|
217
|
+
# This will update :name, :accessIPv4, and :accessIPv6 attributes.
|
218
|
+
# @note If you edit the server name, the server host name does not change. Also, server names are not guaranteed to be unique.
|
219
|
+
# @return true if update has started updating
|
220
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
221
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
222
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
223
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
224
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/ServerUpdate.html
|
225
|
+
#
|
226
|
+
# * State Transition
|
227
|
+
# * ACTIVE -> ACTIVE
|
69
228
|
def update
|
70
|
-
requires :identity
|
71
|
-
|
229
|
+
requires :identity
|
230
|
+
options = {
|
231
|
+
'name' => name,
|
232
|
+
'accessIPv4' => ipv4_address,
|
233
|
+
'accessIPv6' => ipv6_address
|
234
|
+
}
|
235
|
+
|
236
|
+
data = service.update_server(identity, options)
|
72
237
|
merge_attributes(data.body['server'])
|
73
238
|
true
|
74
239
|
end
|
75
240
|
|
241
|
+
# Destroy the server
|
242
|
+
# @return [Boolean] returns true if server has started deleting
|
243
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
244
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
245
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
246
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
247
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Delete_Server-d1e2883.html
|
248
|
+
#
|
249
|
+
# * Status Transition:
|
250
|
+
# * ACTIVE -> DELETED
|
251
|
+
# * ERROR -> DELETED
|
76
252
|
def destroy
|
77
253
|
requires :identity
|
78
254
|
service.delete_server(identity)
|
79
255
|
true
|
80
256
|
end
|
81
257
|
|
258
|
+
# Server flavor
|
259
|
+
# @return [Fog::Compute::RackspaceV2::Flavor] server flavor
|
260
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
261
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
262
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
263
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
82
264
|
def flavor
|
83
265
|
requires :flavor_id
|
84
266
|
@flavor ||= service.flavors.get(flavor_id)
|
85
267
|
end
|
86
268
|
|
269
|
+
# Server image
|
270
|
+
# @return [Fog::Compute::RackspaceV2::Image] server image
|
271
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
272
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
273
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
274
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
87
275
|
def image
|
88
276
|
requires :image_id
|
89
277
|
@image ||= service.images.get(image_id)
|
90
278
|
end
|
91
279
|
|
280
|
+
# Creates Image from server. Once complete, a new image is available that you can use to rebuild or create servers.
|
281
|
+
# @param name [String] name of image to create
|
282
|
+
# @param options [Hash]:
|
283
|
+
# @option options [Hash<String, String>] metadata hash of containing metadata key value pairs.
|
284
|
+
# @return [Fog::ComputeRackspaceV2::Image] image being created
|
285
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
286
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
287
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
288
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
289
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Create_Image-d1e4655.html
|
290
|
+
#
|
291
|
+
# * State Transition:
|
292
|
+
# * SAVING -> ACTIVE
|
293
|
+
# * SAVING -> ERROR (on error)
|
92
294
|
def create_image(name, options = {})
|
93
295
|
requires :identity
|
94
296
|
response = service.create_image(identity, name, options)
|
95
|
-
|
297
|
+
begin
|
298
|
+
image_id = response.headers["Location"].match(/\/([^\/]+$)/)[1]
|
299
|
+
Fog::Compute::RackspaceV2::Image.new(:collection => service.images, :service => service, :id => image_id)
|
300
|
+
rescue
|
301
|
+
nil
|
302
|
+
end
|
96
303
|
end
|
97
304
|
|
305
|
+
# Attached Cloud Block Volumes
|
306
|
+
# @return [Fog::Compute::RackspaceV2::Attachments] attached Cloud Block Volumes
|
307
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
308
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
309
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
310
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
311
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/List_Volume_Attachments.html
|
98
312
|
def attachments
|
99
313
|
@attachments ||= begin
|
100
314
|
Fog::Compute::RackspaceV2::Attachments.new({
|
@@ -104,18 +318,58 @@ module Fog
|
|
104
318
|
end
|
105
319
|
end
|
106
320
|
|
321
|
+
# Attaches Cloud Block Volume
|
322
|
+
# @param [Fog::Rackspace::BlockStorage::Volume, String] volume object or the volume id of volume to mount
|
323
|
+
# @param [String] device name of the device /dev/xvd[a-p] (optional)
|
324
|
+
# @return [Fog::Compute::RackspaceV2::Attachment] resulting attachment object
|
325
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
326
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
327
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
328
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
329
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Attach_Volume_to_Server.html
|
330
|
+
def attach_volume(volume, device=nil)
|
331
|
+
requires :identity
|
332
|
+
volume_id = volume.is_a?(String) ? volume : volume.id
|
333
|
+
attachments.create(:server_id => identity, :volume_id => volume_id, :device => device)
|
334
|
+
end
|
335
|
+
|
336
|
+
# Server's private IPv4 address
|
337
|
+
# @return [String] private IPv4 address
|
107
338
|
def private_ip_address
|
108
|
-
addresses['private'].select{|a| a["version"] == 4}[0]["addr"]
|
339
|
+
addresses['private'].select{|a| a["version"] == 4}[0]["addr"] rescue ''
|
109
340
|
end
|
110
341
|
|
342
|
+
# Server's public IPv4 address
|
343
|
+
# @return [String] public IPv4 address
|
111
344
|
def public_ip_address
|
112
345
|
ipv4_address
|
113
346
|
end
|
114
347
|
|
115
|
-
|
116
|
-
|
348
|
+
# Is server is in ready state
|
349
|
+
# @param [String] ready_state By default state is ACTIVE
|
350
|
+
# @param [Array,String] error_states By default state is ERROR
|
351
|
+
# @return [Boolean] returns true if server is in a ready state
|
352
|
+
# @raise [Fog::Compute::RackspaceV2::InvalidServerStateException] if server state is an error state
|
353
|
+
def ready?(ready_state = ACTIVE, error_states=[ERROR])
|
354
|
+
if error_states
|
355
|
+
error_states = Array(error_states)
|
356
|
+
raise InvalidServerStateException.new(ready_state, state) if error_states.include?(state)
|
357
|
+
end
|
358
|
+
state == ready_state
|
117
359
|
end
|
118
360
|
|
361
|
+
# Reboot server
|
362
|
+
# @param [String<SOFT, HARD>] type 'SOFT' will do a soft reboot. 'HARD' will do a hard reboot.
|
363
|
+
# @return [Boolean] returns true if server is being rebooted
|
364
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
365
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
366
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
367
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
368
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Reboot_Server-d1e3371.html
|
369
|
+
#
|
370
|
+
# * State transition:
|
371
|
+
# * ACTIVE -> REBOOT -> ACTIVE (soft reboot)
|
372
|
+
# * ACTIVE -> HARD_REBOOT -> ACTIVE (hard reboot)
|
119
373
|
def reboot(type = 'SOFT')
|
120
374
|
requires :identity
|
121
375
|
service.reboot_server(identity, type)
|
@@ -123,32 +377,137 @@ module Fog
|
|
123
377
|
true
|
124
378
|
end
|
125
379
|
|
126
|
-
|
380
|
+
|
381
|
+
# Rebuild removes all data on the server and replaces it with the specified image. The id and all IP addresses remain the same.
|
382
|
+
# @param [String] image_id image to use for rebuild
|
383
|
+
# @return [Boolean] returns true if rebuild is in process
|
384
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
385
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
386
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
387
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
388
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Rebuild_Server-d1e3538.html
|
389
|
+
#
|
390
|
+
# * Status Transition:
|
391
|
+
# * ACTIVE -> REBUILD -> ACTIVE
|
392
|
+
# * ACTIVE -> REBUILD -> ERROR (on error)
|
393
|
+
def rebuild(image_id, options={})
|
127
394
|
requires :identity
|
128
|
-
service.
|
129
|
-
self.state =
|
395
|
+
service.rebuild_server(identity, image_id, options)
|
396
|
+
self.state = REBUILD
|
130
397
|
true
|
131
398
|
end
|
132
399
|
|
133
|
-
|
400
|
+
# Resize existing server to a different flavor, in essence, scaling the server up or down. The original server is saved for a period of time to allow rollback if there is a problem. All resizes should be tested and explicitly confirmed, at which time the original server is removed. All resizes are automatically confirmed after 24 hours if they are not confirmed or reverted.
|
401
|
+
# @param [String] flavor_id to resize
|
402
|
+
# @return [Boolean] returns true if resize is in process
|
403
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
404
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
405
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
406
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
407
|
+
# @note All resizes are automatically confirmed after 24 hours if you do not explicitly confirm or revert the resize.
|
408
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Resize_Server-d1e3707.html
|
409
|
+
# @see #confirm_resize
|
410
|
+
# @see #revert_resize
|
411
|
+
#
|
412
|
+
# * Status Transition:
|
413
|
+
# * ACTIVE -> QUEUE_RESIZE -> PREP_RESIZE -> VERIFY_RESIZE
|
414
|
+
# * ACTIVE -> QUEUE_RESIZE -> ACTIVE (on error)
|
415
|
+
def resize(flavor_id)
|
134
416
|
requires :identity
|
135
|
-
service.
|
136
|
-
self.state =
|
417
|
+
service.resize_server(identity, flavor_id)
|
418
|
+
self.state = RESIZE
|
137
419
|
true
|
138
420
|
end
|
139
421
|
|
422
|
+
# Confirms server resize operation
|
423
|
+
# @return [Boolean] returns true if resize has been confirmed
|
424
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
425
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
426
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
427
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
428
|
+
# @note All resizes are automatically confirmed after 24 hours if you do not explicitly confirm or revert the resize.
|
429
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Confirm_Resized_Server-d1e3868.html
|
430
|
+
# @see #resize
|
431
|
+
#
|
432
|
+
# * Status Transition:
|
433
|
+
# * VERIFY_RESIZE -> ACTIVE
|
434
|
+
# * VERIFY_RESIZE -> ERROR (on error)å
|
140
435
|
def confirm_resize
|
141
436
|
requires :identity
|
142
437
|
service.confirm_resize_server(identity)
|
143
438
|
true
|
144
439
|
end
|
145
440
|
|
441
|
+
# Reverts server resize operation
|
442
|
+
# @return [Boolean] returns true if resize is being reverted
|
443
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
444
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
445
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
446
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
447
|
+
# @note All resizes are automatically confirmed after 24 hours if you do not explicitly confirm or revert the resize.
|
448
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Revert_Resized_Server-d1e4024.html
|
449
|
+
# @see #resize
|
450
|
+
#
|
451
|
+
# * Status Transition:
|
452
|
+
# * VERIFY_RESIZE -> ACTIVE
|
453
|
+
# * VERIFY_RESIZE -> ERROR (on error)
|
146
454
|
def revert_resize
|
147
455
|
requires :identity
|
148
456
|
service.revert_resize_server(identity)
|
149
457
|
true
|
150
458
|
end
|
151
459
|
|
460
|
+
# Place existing server into rescue mode, allowing for offline editing of configuration. The original server's disk is attached to a new instance of the same base image for a period of time to facilitate working within rescue mode. The original server will be automatically restored after 90 minutes.
|
461
|
+
# @return [Boolean] returns true if call to put server in rescue mode reports success
|
462
|
+
# @raise [Fog::Rackspace::Errors::NotFound] - HTTP 404
|
463
|
+
# @raise [Fog::Rackspace::Errors::BadRequest] - HTTP 400
|
464
|
+
# @raise [Fog::Rackspace::Errors::InternalServerError] - HTTP 500
|
465
|
+
# @raise [Fog::Rackspace::Errors::ServiceError]
|
466
|
+
# @note Rescue mode is only guaranteed to be active for 90 minutes.
|
467
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/rescue_mode.html
|
468
|
+
# @see #unrescue
|
469
|
+
#
|
470
|
+
# * Status Transition:
|
471
|
+
# * ACTIVE -> PREP_RESCUE -> RESCUE
|
472
|
+
def rescue
|
473
|
+
requires :identity
|
474
|
+
data = service.rescue_server(identity)
|
475
|
+
merge_attributes(data.body)
|
476
|
+
true
|
477
|
+
end
|
478
|
+
|
479
|
+
# Remove existing server from rescue mode.
|
480
|
+
# @return [Boolean] returns true if call to remove server from rescue mode reports success
|
481
|
+
# @raise [Fog::Rackspace::Errors::NotFound] - HTTP 404
|
482
|
+
# @raise [Fog::Rackspace::Errors::BadRequest] - HTTP 400
|
483
|
+
# @raise [Fog::Rackspace::Errors::InternalServerError] - HTTP 500
|
484
|
+
# @raise [Fog::Rackspace::Errors::ServiceError]
|
485
|
+
# @note Rescue mode is only guaranteed to be active for 90 minutes.
|
486
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/exit_rescue_mode.html
|
487
|
+
# @see #rescue
|
488
|
+
#
|
489
|
+
# * Status Transition:
|
490
|
+
# * PREP_UNRESCUE -> ACTIVE
|
491
|
+
def unrescue
|
492
|
+
requires :identity
|
493
|
+
service.unrescue_server(identity)
|
494
|
+
self.state = ACTIVE
|
495
|
+
true
|
496
|
+
end
|
497
|
+
|
498
|
+
# Change admin password
|
499
|
+
# @param [String] password The administrator password.
|
500
|
+
# @return [Boolean] returns true if operation was scheduled
|
501
|
+
# @raise [Fog::Compute::RackspaceV2::NotFound] - HTTP 404
|
502
|
+
# @raise [Fog::Compute::RackspaceV2::BadRequest] - HTTP 400
|
503
|
+
# @raise [Fog::Compute::RackspaceV2::InternalServerError] - HTTP 500
|
504
|
+
# @raise [Fog::Compute::RackspaceV2::ServiceError]
|
505
|
+
# @note Though Rackspace does not enforce complexity requirements for the password, the operating system might. If the password is not complex enough, the server might enter an ERROR state.
|
506
|
+
# @see http://docs.rackspace.com/servers/api/v2/cs-devguide/content/Change_Password-d1e3234.html
|
507
|
+
#
|
508
|
+
# * Status Transition:
|
509
|
+
# * ACTIVE -> PASSWORD -> ACTIVE
|
510
|
+
# * ACTIVE -> PASSWORD -> ERROR (on error)
|
152
511
|
def change_admin_password(password)
|
153
512
|
requires :identity
|
154
513
|
service.change_server_password(identity, password)
|
@@ -157,6 +516,8 @@ module Fog
|
|
157
516
|
true
|
158
517
|
end
|
159
518
|
|
519
|
+
# Setup server for SSH access
|
520
|
+
# @see Servers#bootstrap
|
160
521
|
def setup(credentials = {})
|
161
522
|
requires :public_ip_address, :identity, :public_key, :username
|
162
523
|
Fog::SSH.new(public_ip_address, username, credentials).run([
|