ktheory-fog 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +3 -0
- data/.gitignore +20 -0
- data/Gemfile +3 -0
- data/README.rdoc +147 -0
- data/Rakefile +438 -0
- data/benchs/fog_vs.rb +106 -0
- data/benchs/params.rb +43 -0
- data/benchs/parse_vs_push.rb +69 -0
- data/bin/fog +54 -0
- data/changelog.txt +1914 -0
- data/docs/_config.yml +39 -0
- data/docs/_layouts/default.html +111 -0
- data/docs/about/contributing.markdown +228 -0
- data/docs/about/getting_started.markdown +108 -0
- data/docs/about/press.markdown +52 -0
- data/docs/about/structure.markdown +78 -0
- data/docs/about/users.markdown +33 -0
- data/docs/cdn/index.markdown +82 -0
- data/docs/compute/index.markdown +122 -0
- data/docs/dns/index.markdown +79 -0
- data/docs/index.markdown +88 -0
- data/docs/public/crossdomain.xml +25 -0
- data/docs/public/css/fog.css +142 -0
- data/docs/public/css/handheld.css +8 -0
- data/docs/public/css/style.css +129 -0
- data/docs/public/images/.gitignore +3 -0
- data/docs/public/js/libs/dd_belatedpng.js +13 -0
- data/docs/public/js/libs/jquery-1.4.2.js +6240 -0
- data/docs/public/js/libs/jquery-1.4.2.min.js +154 -0
- data/docs/public/js/libs/modernizr-1.6.min.js +30 -0
- data/docs/public/js/mylibs/.gitignore +3 -0
- data/docs/public/js/plugins.js +34 -0
- data/docs/public/js/profiling/config.js +59 -0
- data/docs/public/js/profiling/yahoo-profiling.css +7 -0
- data/docs/public/js/profiling/yahoo-profiling.min.js +39 -0
- data/docs/public/js/script.js +26 -0
- data/docs/public/robots.txt +5 -0
- data/docs/storage/index.markdown +204 -0
- data/fog.gemspec +65 -0
- data/lib/fog.rb +18 -0
- data/lib/fog/aws.rb +234 -0
- data/lib/fog/aws/auto_scaling.rb +212 -0
- data/lib/fog/aws/cdn.rb +120 -0
- data/lib/fog/aws/cloud_formation.rb +116 -0
- data/lib/fog/aws/cloud_watch.rb +115 -0
- data/lib/fog/aws/compute.rb +335 -0
- data/lib/fog/aws/dns.rb +119 -0
- data/lib/fog/aws/dynamodb.rb +162 -0
- data/lib/fog/aws/elasticache.rb +121 -0
- data/lib/fog/aws/elb.rb +197 -0
- data/lib/fog/aws/elb/policy_types.rb +35 -0
- data/lib/fog/aws/emr.rb +134 -0
- data/lib/fog/aws/iam.rb +196 -0
- data/lib/fog/aws/models/auto_scaling/activities.rb +30 -0
- data/lib/fog/aws/models/auto_scaling/activity.rb +29 -0
- data/lib/fog/aws/models/auto_scaling/configuration.rb +63 -0
- data/lib/fog/aws/models/auto_scaling/configurations.rb +35 -0
- data/lib/fog/aws/models/auto_scaling/group.rb +140 -0
- data/lib/fog/aws/models/auto_scaling/groups.rb +35 -0
- data/lib/fog/aws/models/auto_scaling/instance.rb +60 -0
- data/lib/fog/aws/models/auto_scaling/instances.rb +30 -0
- data/lib/fog/aws/models/cloud_watch/alarm.rb +12 -0
- data/lib/fog/aws/models/cloud_watch/alarm_data.rb +39 -0
- data/lib/fog/aws/models/cloud_watch/alarm_datum.rb +66 -0
- data/lib/fog/aws/models/cloud_watch/alarm_histories.rb +18 -0
- data/lib/fog/aws/models/cloud_watch/alarm_history.rb +16 -0
- data/lib/fog/aws/models/cloud_watch/alarms.rb +30 -0
- data/lib/fog/aws/models/cloud_watch/metric.rb +14 -0
- data/lib/fog/aws/models/cloud_watch/metric_statistic.rb +45 -0
- data/lib/fog/aws/models/cloud_watch/metric_statistics.rb +23 -0
- data/lib/fog/aws/models/cloud_watch/metrics.rb +32 -0
- data/lib/fog/aws/models/compute/address.rb +72 -0
- data/lib/fog/aws/models/compute/addresses.rb +100 -0
- data/lib/fog/aws/models/compute/flavor.rb +21 -0
- data/lib/fog/aws/models/compute/flavors.rb +167 -0
- data/lib/fog/aws/models/compute/image.rb +48 -0
- data/lib/fog/aws/models/compute/images.rb +62 -0
- data/lib/fog/aws/models/compute/key_pair.rb +59 -0
- data/lib/fog/aws/models/compute/key_pairs.rb +88 -0
- data/lib/fog/aws/models/compute/security_group.rb +205 -0
- data/lib/fog/aws/models/compute/security_groups.rb +120 -0
- data/lib/fog/aws/models/compute/server.rb +272 -0
- data/lib/fog/aws/models/compute/servers.rb +158 -0
- data/lib/fog/aws/models/compute/snapshot.rb +56 -0
- data/lib/fog/aws/models/compute/snapshots.rb +52 -0
- data/lib/fog/aws/models/compute/spot_request.rb +110 -0
- data/lib/fog/aws/models/compute/spot_requests.rb +92 -0
- data/lib/fog/aws/models/compute/tag.rb +34 -0
- data/lib/fog/aws/models/compute/tags.rb +34 -0
- data/lib/fog/aws/models/compute/volume.rb +112 -0
- data/lib/fog/aws/models/compute/volumes.rb +121 -0
- data/lib/fog/aws/models/dns/record.rb +78 -0
- data/lib/fog/aws/models/dns/records.rb +49 -0
- data/lib/fog/aws/models/dns/zone.rb +53 -0
- data/lib/fog/aws/models/dns/zones.rb +33 -0
- data/lib/fog/aws/models/elasticache/cluster.rb +69 -0
- data/lib/fog/aws/models/elasticache/clusters.rb +31 -0
- data/lib/fog/aws/models/elasticache/parameter_group.rb +32 -0
- data/lib/fog/aws/models/elasticache/parameter_groups.rb +30 -0
- data/lib/fog/aws/models/elasticache/security_group.rb +52 -0
- data/lib/fog/aws/models/elasticache/security_groups.rb +30 -0
- data/lib/fog/aws/models/elb/listener.rb +59 -0
- data/lib/fog/aws/models/elb/listeners.rb +32 -0
- data/lib/fog/aws/models/elb/load_balancer.rb +141 -0
- data/lib/fog/aws/models/elb/load_balancers.rb +28 -0
- data/lib/fog/aws/models/elb/policies.rb +40 -0
- data/lib/fog/aws/models/elb/policy.rb +52 -0
- data/lib/fog/aws/models/rds/parameter.rb +21 -0
- data/lib/fog/aws/models/rds/parameter_group.rb +36 -0
- data/lib/fog/aws/models/rds/parameter_groups.rb +27 -0
- data/lib/fog/aws/models/rds/parameters.rb +37 -0
- data/lib/fog/aws/models/rds/security_group.rb +82 -0
- data/lib/fog/aws/models/rds/security_groups.rb +43 -0
- data/lib/fog/aws/models/rds/server.rb +111 -0
- data/lib/fog/aws/models/rds/servers.rb +27 -0
- data/lib/fog/aws/models/rds/snapshot.rb +49 -0
- data/lib/fog/aws/models/rds/snapshots.rb +45 -0
- data/lib/fog/aws/models/storage/directories.rb +43 -0
- data/lib/fog/aws/models/storage/directory.rb +119 -0
- data/lib/fog/aws/models/storage/file.rb +192 -0
- data/lib/fog/aws/models/storage/files.rb +117 -0
- data/lib/fog/aws/models/storage/version.rb +36 -0
- data/lib/fog/aws/models/storage/versions.rb +38 -0
- data/lib/fog/aws/parsers/auto_scaling/basic.rb +28 -0
- data/lib/fog/aws/parsers/auto_scaling/describe_adjustment_types.rb +39 -0
- data/lib/fog/aws/parsers/auto_scaling/describe_auto_scaling_groups.rb +126 -0
- data/lib/fog/aws/parsers/auto_scaling/describe_auto_scaling_instances.rb +43 -0
- data/lib/fog/aws/parsers/auto_scaling/describe_launch_configurations.rb +94 -0
- data/lib/fog/aws/parsers/auto_scaling/describe_metric_collection_types.rb +66 -0
- data/lib/fog/aws/parsers/auto_scaling/describe_policies.rb +66 -0
- data/lib/fog/aws/parsers/auto_scaling/describe_scaling_activities.rb +47 -0
- data/lib/fog/aws/parsers/auto_scaling/describe_scaling_process_types.rb +39 -0
- data/lib/fog/aws/parsers/auto_scaling/describe_scheduled_actions.rb +46 -0
- data/lib/fog/aws/parsers/auto_scaling/put_scaling_policy.rb +30 -0
- data/lib/fog/aws/parsers/auto_scaling/terminate_instance_in_auto_scaling_group.rb +35 -0
- data/lib/fog/aws/parsers/cdn/distribution.rb +59 -0
- data/lib/fog/aws/parsers/cdn/get_distribution_list.rb +61 -0
- data/lib/fog/aws/parsers/cdn/get_invalidation_list.rb +42 -0
- data/lib/fog/aws/parsers/cdn/get_streaming_distribution_list.rb +59 -0
- data/lib/fog/aws/parsers/cdn/post_invalidation.rb +28 -0
- data/lib/fog/aws/parsers/cdn/streaming_distribution.rb +59 -0
- data/lib/fog/aws/parsers/cloud_formation/basic.rb +12 -0
- data/lib/fog/aws/parsers/cloud_formation/create_stack.rb +19 -0
- data/lib/fog/aws/parsers/cloud_formation/describe_stack_events.rb +31 -0
- data/lib/fog/aws/parsers/cloud_formation/describe_stack_resources.rb +31 -0
- data/lib/fog/aws/parsers/cloud_formation/describe_stacks.rb +72 -0
- data/lib/fog/aws/parsers/cloud_formation/get_template.rb +19 -0
- data/lib/fog/aws/parsers/cloud_formation/update_stack.rb +19 -0
- data/lib/fog/aws/parsers/cloud_formation/validate_template.rb +52 -0
- data/lib/fog/aws/parsers/cloud_watch/delete_alarms.rb +26 -0
- data/lib/fog/aws/parsers/cloud_watch/describe_alarm_history.rb +40 -0
- data/lib/fog/aws/parsers/cloud_watch/describe_alarms.rb +73 -0
- data/lib/fog/aws/parsers/cloud_watch/describe_alarms_for_metric.rb +71 -0
- data/lib/fog/aws/parsers/cloud_watch/disable_alarm_actions.rb +26 -0
- data/lib/fog/aws/parsers/cloud_watch/enable_alarm_actions.rb +26 -0
- data/lib/fog/aws/parsers/cloud_watch/get_metric_statistics.rb +43 -0
- data/lib/fog/aws/parsers/cloud_watch/list_metrics.rb +58 -0
- data/lib/fog/aws/parsers/cloud_watch/put_metric_alarm.rb +26 -0
- data/lib/fog/aws/parsers/cloud_watch/put_metric_data.rb +26 -0
- data/lib/fog/aws/parsers/cloud_watch/set_alarm_state.rb +26 -0
- data/lib/fog/aws/parsers/compute/allocate_address.rb +19 -0
- data/lib/fog/aws/parsers/compute/associate_address.rb +25 -0
- data/lib/fog/aws/parsers/compute/attach_volume.rb +22 -0
- data/lib/fog/aws/parsers/compute/basic.rb +25 -0
- data/lib/fog/aws/parsers/compute/cancel_spot_instance_requests.rb +30 -0
- data/lib/fog/aws/parsers/compute/create_image.rb +20 -0
- data/lib/fog/aws/parsers/compute/create_key_pair.rb +20 -0
- data/lib/fog/aws/parsers/compute/create_snapshot.rb +26 -0
- data/lib/fog/aws/parsers/compute/create_volume.rb +24 -0
- data/lib/fog/aws/parsers/compute/deregister_image.rb +20 -0
- data/lib/fog/aws/parsers/compute/describe_addresses.rb +30 -0
- data/lib/fog/aws/parsers/compute/describe_availability_zones.rb +32 -0
- data/lib/fog/aws/parsers/compute/describe_images.rb +91 -0
- data/lib/fog/aws/parsers/compute/describe_instance_status.rb +97 -0
- data/lib/fog/aws/parsers/compute/describe_instances.rb +90 -0
- data/lib/fog/aws/parsers/compute/describe_key_pairs.rb +30 -0
- data/lib/fog/aws/parsers/compute/describe_placement_groups.rb +30 -0
- data/lib/fog/aws/parsers/compute/describe_regions.rb +30 -0
- data/lib/fog/aws/parsers/compute/describe_reserved_instances.rb +36 -0
- data/lib/fog/aws/parsers/compute/describe_reserved_instances_offerings.rb +34 -0
- data/lib/fog/aws/parsers/compute/describe_security_groups.rb +100 -0
- data/lib/fog/aws/parsers/compute/describe_snapshots.rb +54 -0
- data/lib/fog/aws/parsers/compute/describe_spot_price_history.rb +34 -0
- data/lib/fog/aws/parsers/compute/describe_tags.rb +30 -0
- data/lib/fog/aws/parsers/compute/describe_volumes.rb +73 -0
- data/lib/fog/aws/parsers/compute/detach_volume.rb +22 -0
- data/lib/fog/aws/parsers/compute/get_console_output.rb +28 -0
- data/lib/fog/aws/parsers/compute/get_password_data.rb +26 -0
- data/lib/fog/aws/parsers/compute/import_key_pair.rb +20 -0
- data/lib/fog/aws/parsers/compute/monitor_unmonitor_instances.rb +35 -0
- data/lib/fog/aws/parsers/compute/purchase_reserved_instances_offering.rb +24 -0
- data/lib/fog/aws/parsers/compute/register_image.rb +20 -0
- data/lib/fog/aws/parsers/compute/run_instances.rb +82 -0
- data/lib/fog/aws/parsers/compute/spot_datafeed_subscription.rb +29 -0
- data/lib/fog/aws/parsers/compute/spot_instance_requests.rb +67 -0
- data/lib/fog/aws/parsers/compute/start_stop_instances.rb +41 -0
- data/lib/fog/aws/parsers/compute/terminate_instances.rb +55 -0
- data/lib/fog/aws/parsers/dns/change_resource_record_sets.rb +26 -0
- data/lib/fog/aws/parsers/dns/create_hosted_zone.rb +55 -0
- data/lib/fog/aws/parsers/dns/delete_hosted_zone.rb +25 -0
- data/lib/fog/aws/parsers/dns/get_change.rb +26 -0
- data/lib/fog/aws/parsers/dns/get_hosted_zone.rb +43 -0
- data/lib/fog/aws/parsers/dns/list_hosted_zones.rb +37 -0
- data/lib/fog/aws/parsers/dns/list_resource_record_sets.rb +52 -0
- data/lib/fog/aws/parsers/elasticache/authorize_cache_security_group_ingress.rb +26 -0
- data/lib/fog/aws/parsers/elasticache/base.rb +34 -0
- data/lib/fog/aws/parsers/elasticache/cache_cluster_parser.rb +79 -0
- data/lib/fog/aws/parsers/elasticache/describe_cache_clusters.rb +27 -0
- data/lib/fog/aws/parsers/elasticache/describe_cache_parameters.rb +22 -0
- data/lib/fog/aws/parsers/elasticache/describe_engine_default_parameters.rb +22 -0
- data/lib/fog/aws/parsers/elasticache/describe_parameter_groups.rb +27 -0
- data/lib/fog/aws/parsers/elasticache/describe_security_groups.rb +27 -0
- data/lib/fog/aws/parsers/elasticache/engine_defaults_parser.rb +59 -0
- data/lib/fog/aws/parsers/elasticache/event_list.rb +38 -0
- data/lib/fog/aws/parsers/elasticache/modify_parameter_group.rb +27 -0
- data/lib/fog/aws/parsers/elasticache/parameter_group_parser.rb +30 -0
- data/lib/fog/aws/parsers/elasticache/reset_parameter_group.rb +27 -0
- data/lib/fog/aws/parsers/elasticache/security_group_parser.rb +40 -0
- data/lib/fog/aws/parsers/elasticache/single_cache_cluster.rb +22 -0
- data/lib/fog/aws/parsers/elasticache/single_parameter_group.rb +22 -0
- data/lib/fog/aws/parsers/elasticache/single_security_group.rb +34 -0
- data/lib/fog/aws/parsers/elb/configure_health_check.rb +37 -0
- data/lib/fog/aws/parsers/elb/create_load_balancer.rb +26 -0
- data/lib/fog/aws/parsers/elb/delete_load_balancer.rb +24 -0
- data/lib/fog/aws/parsers/elb/deregister_instances_from_load_balancer.rb +26 -0
- data/lib/fog/aws/parsers/elb/describe_instance_health.rb +30 -0
- data/lib/fog/aws/parsers/elb/describe_load_balancer_policies.rb +64 -0
- data/lib/fog/aws/parsers/elb/describe_load_balancer_policy_types.rb +70 -0
- data/lib/fog/aws/parsers/elb/describe_load_balancers.rb +124 -0
- data/lib/fog/aws/parsers/elb/disable_availability_zones_for_load_balancer.rb +26 -0
- data/lib/fog/aws/parsers/elb/empty.rb +28 -0
- data/lib/fog/aws/parsers/elb/enable_availability_zones_for_load_balancer.rb +26 -0
- data/lib/fog/aws/parsers/elb/register_instances_with_load_balancer.rb +26 -0
- data/lib/fog/aws/parsers/emr/add_instance_groups.rb +28 -0
- data/lib/fog/aws/parsers/emr/add_job_flow_steps.rb +17 -0
- data/lib/fog/aws/parsers/emr/describe_job_flows.rb +140 -0
- data/lib/fog/aws/parsers/emr/modify_instance_groups.rb +17 -0
- data/lib/fog/aws/parsers/emr/run_job_flow.rb +19 -0
- data/lib/fog/aws/parsers/emr/set_termination_protection.rb +17 -0
- data/lib/fog/aws/parsers/emr/terminate_job_flows.rb +17 -0
- data/lib/fog/aws/parsers/iam/basic.rb +19 -0
- data/lib/fog/aws/parsers/iam/create_access_key.rb +26 -0
- data/lib/fog/aws/parsers/iam/create_group.rb +26 -0
- data/lib/fog/aws/parsers/iam/create_user.rb +26 -0
- data/lib/fog/aws/parsers/iam/get_group.rb +55 -0
- data/lib/fog/aws/parsers/iam/get_group_policy.rb +27 -0
- data/lib/fog/aws/parsers/iam/get_user.rb +27 -0
- data/lib/fog/aws/parsers/iam/get_user_policy.rb +27 -0
- data/lib/fog/aws/parsers/iam/list_access_keys.rb +32 -0
- data/lib/fog/aws/parsers/iam/list_account_aliases.rb +28 -0
- data/lib/fog/aws/parsers/iam/list_groups.rb +32 -0
- data/lib/fog/aws/parsers/iam/list_groups_for_user.rb +32 -0
- data/lib/fog/aws/parsers/iam/list_policies.rb +28 -0
- data/lib/fog/aws/parsers/iam/list_server_certificates.rb +38 -0
- data/lib/fog/aws/parsers/iam/list_signing_certificates.rb +32 -0
- data/lib/fog/aws/parsers/iam/list_users.rb +32 -0
- data/lib/fog/aws/parsers/iam/login_profile.rb +27 -0
- data/lib/fog/aws/parsers/iam/update_group.rb +26 -0
- data/lib/fog/aws/parsers/iam/update_user.rb +27 -0
- data/lib/fog/aws/parsers/iam/upload_server_certificate.rb +28 -0
- data/lib/fog/aws/parsers/iam/upload_signing_certificate.rb +26 -0
- data/lib/fog/aws/parsers/rds/authorize_db_security_group_ingress.rb +38 -0
- data/lib/fog/aws/parsers/rds/create_db_instance.rb +34 -0
- data/lib/fog/aws/parsers/rds/create_db_instance_read_replica.rb +34 -0
- data/lib/fog/aws/parsers/rds/create_db_parameter_group.rb +35 -0
- data/lib/fog/aws/parsers/rds/create_db_security_group.rb +38 -0
- data/lib/fog/aws/parsers/rds/create_db_snapshot.rb +35 -0
- data/lib/fog/aws/parsers/rds/db_engine_version_parser.rb +35 -0
- data/lib/fog/aws/parsers/rds/db_parser.rb +123 -0
- data/lib/fog/aws/parsers/rds/delete_db_instance.rb +35 -0
- data/lib/fog/aws/parsers/rds/delete_db_parameter_group.rb +27 -0
- data/lib/fog/aws/parsers/rds/delete_db_security_group.rb +33 -0
- data/lib/fog/aws/parsers/rds/delete_db_snapshot.rb +34 -0
- data/lib/fog/aws/parsers/rds/describe_db_engine_versions.rb +39 -0
- data/lib/fog/aws/parsers/rds/describe_db_instances.rb +36 -0
- data/lib/fog/aws/parsers/rds/describe_db_parameter_groups.rb +38 -0
- data/lib/fog/aws/parsers/rds/describe_db_parameters.rb +44 -0
- data/lib/fog/aws/parsers/rds/describe_db_reserved_instances.rb +43 -0
- data/lib/fog/aws/parsers/rds/describe_db_security_groups.rb +39 -0
- data/lib/fog/aws/parsers/rds/describe_db_snapshots.rb +39 -0
- data/lib/fog/aws/parsers/rds/modify_db_instance.rb +34 -0
- data/lib/fog/aws/parsers/rds/modify_db_parameter_group.rb +28 -0
- data/lib/fog/aws/parsers/rds/reboot_db_instance.rb +35 -0
- data/lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb +34 -0
- data/lib/fog/aws/parsers/rds/restore_db_instance_to_point_in_time.rb +35 -0
- data/lib/fog/aws/parsers/rds/revoke_db_security_group_ingress.rb +39 -0
- data/lib/fog/aws/parsers/rds/security_group_parser.rb +39 -0
- data/lib/fog/aws/parsers/rds/snapshot_parser.rb +40 -0
- data/lib/fog/aws/parsers/ses/delete_verified_email_address.rb +24 -0
- data/lib/fog/aws/parsers/ses/get_send_quota.rb +26 -0
- data/lib/fog/aws/parsers/ses/get_send_statistics.rb +29 -0
- data/lib/fog/aws/parsers/ses/list_verified_email_addresses.rb +25 -0
- data/lib/fog/aws/parsers/ses/send_email.rb +26 -0
- data/lib/fog/aws/parsers/ses/send_raw_email.rb +26 -0
- data/lib/fog/aws/parsers/ses/verify_email_address.rb +24 -0
- data/lib/fog/aws/parsers/simpledb/basic.rb +31 -0
- data/lib/fog/aws/parsers/simpledb/domain_metadata.rb +32 -0
- data/lib/fog/aws/parsers/simpledb/get_attributes.rb +36 -0
- data/lib/fog/aws/parsers/simpledb/list_domains.rb +30 -0
- data/lib/fog/aws/parsers/simpledb/select.rb +41 -0
- data/lib/fog/aws/parsers/sns/add_permission.rb +24 -0
- data/lib/fog/aws/parsers/sns/confirm_subscription.rb +24 -0
- data/lib/fog/aws/parsers/sns/create_topic.rb +24 -0
- data/lib/fog/aws/parsers/sns/delete_topic.rb +24 -0
- data/lib/fog/aws/parsers/sns/get_topic_attributes.rb +32 -0
- data/lib/fog/aws/parsers/sns/list_subscriptions.rb +29 -0
- data/lib/fog/aws/parsers/sns/list_topics.rb +26 -0
- data/lib/fog/aws/parsers/sns/publish.rb +24 -0
- data/lib/fog/aws/parsers/sns/remove_permission.rb +24 -0
- data/lib/fog/aws/parsers/sns/set_topic_attributes.rb +24 -0
- data/lib/fog/aws/parsers/sns/subscribe.rb +24 -0
- data/lib/fog/aws/parsers/sns/unsubscribe.rb +24 -0
- data/lib/fog/aws/parsers/sqs/basic.rb +23 -0
- data/lib/fog/aws/parsers/sqs/create_queue.rb +26 -0
- data/lib/fog/aws/parsers/sqs/get_queue_attributes.rb +35 -0
- data/lib/fog/aws/parsers/sqs/list_queues.rb +25 -0
- data/lib/fog/aws/parsers/sqs/receive_message.rb +41 -0
- data/lib/fog/aws/parsers/sqs/send_message.rb +28 -0
- data/lib/fog/aws/parsers/storage/access_control_list.rb +46 -0
- data/lib/fog/aws/parsers/storage/complete_multipart_upload.rb +24 -0
- data/lib/fog/aws/parsers/storage/copy_object.rb +22 -0
- data/lib/fog/aws/parsers/storage/get_bucket.rb +62 -0
- data/lib/fog/aws/parsers/storage/get_bucket_lifecycle.rb +32 -0
- data/lib/fog/aws/parsers/storage/get_bucket_location.rb +20 -0
- data/lib/fog/aws/parsers/storage/get_bucket_logging.rb +40 -0
- data/lib/fog/aws/parsers/storage/get_bucket_object_versions.rb +88 -0
- data/lib/fog/aws/parsers/storage/get_bucket_versioning.rb +24 -0
- data/lib/fog/aws/parsers/storage/get_bucket_website.rb +26 -0
- data/lib/fog/aws/parsers/storage/get_request_payment.rb +20 -0
- data/lib/fog/aws/parsers/storage/get_service.rb +32 -0
- data/lib/fog/aws/parsers/storage/initiate_multipart_upload.rb +24 -0
- data/lib/fog/aws/parsers/storage/list_multipart_uploads.rb +56 -0
- data/lib/fog/aws/parsers/storage/list_parts.rb +40 -0
- data/lib/fog/aws/parsers/sts/get_session_token.rb +31 -0
- data/lib/fog/aws/rds.rb +193 -0
- data/lib/fog/aws/requests/auto_scaling/create_auto_scaling_group.rb +108 -0
- data/lib/fog/aws/requests/auto_scaling/create_launch_configuration.rb +105 -0
- data/lib/fog/aws/requests/auto_scaling/delete_auto_scaling_group.rb +45 -0
- data/lib/fog/aws/requests/auto_scaling/delete_launch_configuration.rb +48 -0
- data/lib/fog/aws/requests/auto_scaling/delete_policy.rb +47 -0
- data/lib/fog/aws/requests/auto_scaling/delete_scheduled_action.rb +48 -0
- data/lib/fog/aws/requests/auto_scaling/describe_adjustment_types.rb +52 -0
- data/lib/fog/aws/requests/auto_scaling/describe_auto_scaling_groups.rb +128 -0
- data/lib/fog/aws/requests/auto_scaling/describe_auto_scaling_instances.rb +96 -0
- data/lib/fog/aws/requests/auto_scaling/describe_launch_configurations.rb +108 -0
- data/lib/fog/aws/requests/auto_scaling/describe_metric_collection_types.rb +60 -0
- data/lib/fog/aws/requests/auto_scaling/describe_policies.rb +85 -0
- data/lib/fog/aws/requests/auto_scaling/describe_scaling_activities.rb +88 -0
- data/lib/fog/aws/requests/auto_scaling/describe_scaling_process_types.rb +54 -0
- data/lib/fog/aws/requests/auto_scaling/describe_scheduled_actions.rb +88 -0
- data/lib/fog/aws/requests/auto_scaling/disable_metrics_collection.rb +56 -0
- data/lib/fog/aws/requests/auto_scaling/enable_metrics_collection.rb +66 -0
- data/lib/fog/aws/requests/auto_scaling/execute_policy.rb +50 -0
- data/lib/fog/aws/requests/auto_scaling/put_scaling_policy.rb +66 -0
- data/lib/fog/aws/requests/auto_scaling/put_scheduled_update_group_action.rb +67 -0
- data/lib/fog/aws/requests/auto_scaling/resume_processes.rb +50 -0
- data/lib/fog/aws/requests/auto_scaling/set_desired_capacity.rb +87 -0
- data/lib/fog/aws/requests/auto_scaling/set_instance_health.rb +55 -0
- data/lib/fog/aws/requests/auto_scaling/suspend_processes.rb +57 -0
- data/lib/fog/aws/requests/auto_scaling/terminate_instance_in_auto_scaling_group.rb +65 -0
- data/lib/fog/aws/requests/auto_scaling/update_auto_scaling_group.rb +79 -0
- data/lib/fog/aws/requests/cdn/delete_distribution.rb +28 -0
- data/lib/fog/aws/requests/cdn/delete_streaming_distribution.rb +28 -0
- data/lib/fog/aws/requests/cdn/get_distribution.rb +57 -0
- data/lib/fog/aws/requests/cdn/get_distribution_list.rb +59 -0
- data/lib/fog/aws/requests/cdn/get_invalidation_list.rb +42 -0
- data/lib/fog/aws/requests/cdn/get_streaming_distribution.rb +50 -0
- data/lib/fog/aws/requests/cdn/get_streaming_distribution_list.rb +59 -0
- data/lib/fog/aws/requests/cdn/post_distribution.rb +91 -0
- data/lib/fog/aws/requests/cdn/post_invalidation.rb +51 -0
- data/lib/fog/aws/requests/cdn/post_streaming_distribution.rb +78 -0
- data/lib/fog/aws/requests/cdn/put_distribution_config.rb +94 -0
- data/lib/fog/aws/requests/cdn/put_streaming_distribution_config.rb +83 -0
- data/lib/fog/aws/requests/cloud_formation/create_stack.rb +77 -0
- data/lib/fog/aws/requests/cloud_formation/delete_stack.rb +30 -0
- data/lib/fog/aws/requests/cloud_formation/describe_stack_events.rb +44 -0
- data/lib/fog/aws/requests/cloud_formation/describe_stack_resources.rb +43 -0
- data/lib/fog/aws/requests/cloud_formation/describe_stacks.rb +42 -0
- data/lib/fog/aws/requests/cloud_formation/get_template.rb +32 -0
- data/lib/fog/aws/requests/cloud_formation/update_stack.rb +62 -0
- data/lib/fog/aws/requests/cloud_formation/validate_template.rb +34 -0
- data/lib/fog/aws/requests/cloud_watch/delete_alarms.rb +30 -0
- data/lib/fog/aws/requests/cloud_watch/describe_alarm_history.rb +33 -0
- data/lib/fog/aws/requests/cloud_watch/describe_alarms.rb +38 -0
- data/lib/fog/aws/requests/cloud_watch/describe_alarms_for_metric.rb +39 -0
- data/lib/fog/aws/requests/cloud_watch/disable_alarm_actions.rb +30 -0
- data/lib/fog/aws/requests/cloud_watch/enable_alarm_actions.rb +30 -0
- data/lib/fog/aws/requests/cloud_watch/get_metric_statistics.rb +48 -0
- data/lib/fog/aws/requests/cloud_watch/list_metrics.rb +38 -0
- data/lib/fog/aws/requests/cloud_watch/put_metric_alarm.rb +84 -0
- data/lib/fog/aws/requests/cloud_watch/put_metric_data.rb +73 -0
- data/lib/fog/aws/requests/cloud_watch/set_alarm_state.rb +31 -0
- data/lib/fog/aws/requests/compute/allocate_address.rb +60 -0
- data/lib/fog/aws/requests/compute/associate_address.rb +94 -0
- data/lib/fog/aws/requests/compute/attach_volume.rb +87 -0
- data/lib/fog/aws/requests/compute/authorize_security_group_ingress.rb +207 -0
- data/lib/fog/aws/requests/compute/cancel_spot_instance_requests.rb +34 -0
- data/lib/fog/aws/requests/compute/create_image.rb +65 -0
- data/lib/fog/aws/requests/compute/create_key_pair.rb +56 -0
- data/lib/fog/aws/requests/compute/create_placement_group.rb +34 -0
- data/lib/fog/aws/requests/compute/create_security_group.rb +60 -0
- data/lib/fog/aws/requests/compute/create_snapshot.rb +72 -0
- data/lib/fog/aws/requests/compute/create_spot_datafeed_subscription.rb +41 -0
- data/lib/fog/aws/requests/compute/create_tags.rb +87 -0
- data/lib/fog/aws/requests/compute/create_volume.rb +86 -0
- data/lib/fog/aws/requests/compute/delete_key_pair.rb +47 -0
- data/lib/fog/aws/requests/compute/delete_placement_group.rb +32 -0
- data/lib/fog/aws/requests/compute/delete_security_group.rb +74 -0
- data/lib/fog/aws/requests/compute/delete_snapshot.rb +50 -0
- data/lib/fog/aws/requests/compute/delete_spot_datafeed_subscription.rb +28 -0
- data/lib/fog/aws/requests/compute/delete_tags.rb +86 -0
- data/lib/fog/aws/requests/compute/delete_volume.rb +56 -0
- data/lib/fog/aws/requests/compute/deregister_image.rb +53 -0
- data/lib/fog/aws/requests/compute/describe_addresses.rb +66 -0
- data/lib/fog/aws/requests/compute/describe_availability_zones.rb +94 -0
- data/lib/fog/aws/requests/compute/describe_images.rb +130 -0
- data/lib/fog/aws/requests/compute/describe_instance_status.rb +36 -0
- data/lib/fog/aws/requests/compute/describe_instances.rb +222 -0
- data/lib/fog/aws/requests/compute/describe_key_pairs.rb +68 -0
- data/lib/fog/aws/requests/compute/describe_placement_groups.rb +35 -0
- data/lib/fog/aws/requests/compute/describe_regions.rb +68 -0
- data/lib/fog/aws/requests/compute/describe_reserved_instances.rb +60 -0
- data/lib/fog/aws/requests/compute/describe_reserved_instances_offerings.rb +64 -0
- data/lib/fog/aws/requests/compute/describe_security_groups.rb +99 -0
- data/lib/fog/aws/requests/compute/describe_snapshots.rb +122 -0
- data/lib/fog/aws/requests/compute/describe_spot_datafeed_subscription.rb +35 -0
- data/lib/fog/aws/requests/compute/describe_spot_instance_requests.rb +47 -0
- data/lib/fog/aws/requests/compute/describe_spot_price_history.rb +37 -0
- data/lib/fog/aws/requests/compute/describe_tags.rb +107 -0
- data/lib/fog/aws/requests/compute/describe_volumes.rb +118 -0
- data/lib/fog/aws/requests/compute/detach_volume.rb +60 -0
- data/lib/fog/aws/requests/compute/disassociate_address.rb +58 -0
- data/lib/fog/aws/requests/compute/get_console_output.rb +54 -0
- data/lib/fog/aws/requests/compute/get_password_data.rb +56 -0
- data/lib/fog/aws/requests/compute/import_key_pair.rb +56 -0
- data/lib/fog/aws/requests/compute/modify_image_attribute.rb +74 -0
- data/lib/fog/aws/requests/compute/modify_instance_attribute.rb +44 -0
- data/lib/fog/aws/requests/compute/modify_snapshot_attribute.rb +37 -0
- data/lib/fog/aws/requests/compute/monitor_instances.rb +54 -0
- data/lib/fog/aws/requests/compute/purchase_reserved_instances_offering.rb +63 -0
- data/lib/fog/aws/requests/compute/reboot_instances.rb +54 -0
- data/lib/fog/aws/requests/compute/register_image.rb +133 -0
- data/lib/fog/aws/requests/compute/release_address.rb +47 -0
- data/lib/fog/aws/requests/compute/request_spot_instances.rb +83 -0
- data/lib/fog/aws/requests/compute/revoke_security_group_ingress.rb +104 -0
- data/lib/fog/aws/requests/compute/run_instances.rb +176 -0
- data/lib/fog/aws/requests/compute/start_instances.rb +32 -0
- data/lib/fog/aws/requests/compute/stop_instances.rb +33 -0
- data/lib/fog/aws/requests/compute/terminate_instances.rb +96 -0
- data/lib/fog/aws/requests/compute/unmonitor_instances.rb +55 -0
- data/lib/fog/aws/requests/dns/change_resource_record_sets.rb +97 -0
- data/lib/fog/aws/requests/dns/create_hosted_zone.rb +59 -0
- data/lib/fog/aws/requests/dns/delete_hosted_zone.rb +39 -0
- data/lib/fog/aws/requests/dns/get_change.rb +38 -0
- data/lib/fog/aws/requests/dns/get_hosted_zone.rb +42 -0
- data/lib/fog/aws/requests/dns/list_hosted_zones.rb +54 -0
- data/lib/fog/aws/requests/dns/list_resource_record_sets.rb +63 -0
- data/lib/fog/aws/requests/dynamodb/batch_get_item.rb +43 -0
- data/lib/fog/aws/requests/dynamodb/create_table.rb +55 -0
- data/lib/fog/aws/requests/dynamodb/delete_item.rb +45 -0
- data/lib/fog/aws/requests/dynamodb/delete_table.rb +42 -0
- data/lib/fog/aws/requests/dynamodb/describe_table.rb +44 -0
- data/lib/fog/aws/requests/dynamodb/get_item.rb +43 -0
- data/lib/fog/aws/requests/dynamodb/list_tables.rb +29 -0
- data/lib/fog/aws/requests/dynamodb/put_item.rb +41 -0
- data/lib/fog/aws/requests/dynamodb/query.rb +44 -0
- data/lib/fog/aws/requests/dynamodb/scan.rb +45 -0
- data/lib/fog/aws/requests/dynamodb/update_item.rb +49 -0
- data/lib/fog/aws/requests/dynamodb/update_table.rb +46 -0
- data/lib/fog/aws/requests/elasticache/authorize_cache_security_group_ingress.rb +36 -0
- data/lib/fog/aws/requests/elasticache/create_cache_cluster.rb +62 -0
- data/lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb +37 -0
- data/lib/fog/aws/requests/elasticache/create_cache_security_group.rb +33 -0
- data/lib/fog/aws/requests/elasticache/delete_cache_cluster.rb +32 -0
- data/lib/fog/aws/requests/elasticache/delete_cache_parameter_group.rb +31 -0
- data/lib/fog/aws/requests/elasticache/delete_cache_security_group.rb +31 -0
- data/lib/fog/aws/requests/elasticache/describe_cache_clusters.rb +39 -0
- data/lib/fog/aws/requests/elasticache/describe_cache_parameter_groups.rb +34 -0
- data/lib/fog/aws/requests/elasticache/describe_cache_parameters.rb +36 -0
- data/lib/fog/aws/requests/elasticache/describe_cache_security_groups.rb +34 -0
- data/lib/fog/aws/requests/elasticache/describe_engine_default_parameters.rb +35 -0
- data/lib/fog/aws/requests/elasticache/describe_events.rb +46 -0
- data/lib/fog/aws/requests/elasticache/modify_cache_cluster.rb +70 -0
- data/lib/fog/aws/requests/elasticache/modify_cache_parameter_group.rb +45 -0
- data/lib/fog/aws/requests/elasticache/reboot_cache_cluster.rb +44 -0
- data/lib/fog/aws/requests/elasticache/reset_cache_parameter_group.rb +46 -0
- data/lib/fog/aws/requests/elasticache/revoke_cache_security_group_ingress.rb +37 -0
- data/lib/fog/aws/requests/elb/configure_health_check.rb +65 -0
- data/lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb +56 -0
- data/lib/fog/aws/requests/elb/create_lb_cookie_stickiness_policy.rb +58 -0
- data/lib/fog/aws/requests/elb/create_load_balancer.rb +114 -0
- data/lib/fog/aws/requests/elb/create_load_balancer_listeners.rb +88 -0
- data/lib/fog/aws/requests/elb/create_load_balancer_policy.rb +79 -0
- data/lib/fog/aws/requests/elb/delete_load_balancer.rb +51 -0
- data/lib/fog/aws/requests/elb/delete_load_balancer_listeners.rb +50 -0
- data/lib/fog/aws/requests/elb/delete_load_balancer_policy.rb +54 -0
- data/lib/fog/aws/requests/elb/deregister_instances_from_load_balancer.rb +63 -0
- data/lib/fog/aws/requests/elb/describe_instance_health.rb +72 -0
- data/lib/fog/aws/requests/elb/describe_load_balancer_policies.rb +71 -0
- data/lib/fog/aws/requests/elb/describe_load_balancer_policy_types.rb +68 -0
- data/lib/fog/aws/requests/elb/describe_load_balancers.rb +89 -0
- data/lib/fog/aws/requests/elb/disable_availability_zones_for_load_balancer.rb +59 -0
- data/lib/fog/aws/requests/elb/enable_availability_zones_for_load_balancer.rb +61 -0
- data/lib/fog/aws/requests/elb/register_instances_with_load_balancer.rb +64 -0
- data/lib/fog/aws/requests/elb/set_load_balancer_listener_ssl_certificate.rb +67 -0
- data/lib/fog/aws/requests/elb/set_load_balancer_policies_of_listener.rb +80 -0
- data/lib/fog/aws/requests/emr/add_instance_groups.rb +46 -0
- data/lib/fog/aws/requests/emr/add_job_flow_steps.rb +49 -0
- data/lib/fog/aws/requests/emr/describe_job_flows.rb +108 -0
- data/lib/fog/aws/requests/emr/modify_instance_groups.rb +40 -0
- data/lib/fog/aws/requests/emr/run_job_flow.rb +108 -0
- data/lib/fog/aws/requests/emr/set_termination_protection.rb +39 -0
- data/lib/fog/aws/requests/emr/terminate_job_flows.rb +37 -0
- data/lib/fog/aws/requests/iam/add_user_to_group.rb +58 -0
- data/lib/fog/aws/requests/iam/create_access_key.rb +61 -0
- data/lib/fog/aws/requests/iam/create_account_alias.rb +19 -0
- data/lib/fog/aws/requests/iam/create_group.rb +60 -0
- data/lib/fog/aws/requests/iam/create_login_profile.rb +36 -0
- data/lib/fog/aws/requests/iam/create_user.rb +60 -0
- data/lib/fog/aws/requests/iam/delete_access_key.rb +51 -0
- data/lib/fog/aws/requests/iam/delete_account_alias.rb +19 -0
- data/lib/fog/aws/requests/iam/delete_group.rb +51 -0
- data/lib/fog/aws/requests/iam/delete_group_policy.rb +34 -0
- data/lib/fog/aws/requests/iam/delete_login_profile.rb +31 -0
- data/lib/fog/aws/requests/iam/delete_server_certificate.rb +46 -0
- data/lib/fog/aws/requests/iam/delete_signing_certificate.rb +33 -0
- data/lib/fog/aws/requests/iam/delete_user.rb +49 -0
- data/lib/fog/aws/requests/iam/delete_user_policy.rb +50 -0
- data/lib/fog/aws/requests/iam/get_group.rb +44 -0
- data/lib/fog/aws/requests/iam/get_group_policy.rb +36 -0
- data/lib/fog/aws/requests/iam/get_login_profile.rb +35 -0
- data/lib/fog/aws/requests/iam/get_server_certificate.rb +48 -0
- data/lib/fog/aws/requests/iam/get_user.rb +36 -0
- data/lib/fog/aws/requests/iam/get_user_policy.rb +36 -0
- data/lib/fog/aws/requests/iam/list_access_keys.rb +61 -0
- data/lib/fog/aws/requests/iam/list_account_aliases.rb +18 -0
- data/lib/fog/aws/requests/iam/list_group_policies.rb +39 -0
- data/lib/fog/aws/requests/iam/list_groups.rb +60 -0
- data/lib/fog/aws/requests/iam/list_groups_for_user.rb +67 -0
- data/lib/fog/aws/requests/iam/list_server_certificates.rb +56 -0
- data/lib/fog/aws/requests/iam/list_signing_certificates.rb +38 -0
- data/lib/fog/aws/requests/iam/list_user_policies.rb +57 -0
- data/lib/fog/aws/requests/iam/list_users.rb +59 -0
- data/lib/fog/aws/requests/iam/put_group_policy.rb +36 -0
- data/lib/fog/aws/requests/iam/put_user_policy.rb +54 -0
- data/lib/fog/aws/requests/iam/remove_user_from_group.rb +53 -0
- data/lib/fog/aws/requests/iam/update_access_key.rb +36 -0
- data/lib/fog/aws/requests/iam/update_group.rb +39 -0
- data/lib/fog/aws/requests/iam/update_login_profile.rb +33 -0
- data/lib/fog/aws/requests/iam/update_server_certificate.rb +37 -0
- data/lib/fog/aws/requests/iam/update_signing_certificate.rb +32 -0
- data/lib/fog/aws/requests/iam/update_user.rb +39 -0
- data/lib/fog/aws/requests/iam/upload_server_certificate.rb +97 -0
- data/lib/fog/aws/requests/iam/upload_signing_certificate.rb +38 -0
- data/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb +72 -0
- data/lib/fog/aws/requests/rds/create_db_instance.rb +122 -0
- data/lib/fog/aws/requests/rds/create_db_instance_read_replica.rb +42 -0
- data/lib/fog/aws/requests/rds/create_db_parameter_group.rb +41 -0
- data/lib/fog/aws/requests/rds/create_db_security_group.rb +55 -0
- data/lib/fog/aws/requests/rds/create_db_snapshot.rb +72 -0
- data/lib/fog/aws/requests/rds/delete_db_instance.rb +55 -0
- data/lib/fog/aws/requests/rds/delete_db_parameter_group.rb +36 -0
- data/lib/fog/aws/requests/rds/delete_db_security_group.rb +46 -0
- data/lib/fog/aws/requests/rds/delete_db_snapshot.rb +47 -0
- data/lib/fog/aws/requests/rds/describe_db_engine_versions.rb +34 -0
- data/lib/fog/aws/requests/rds/describe_db_instances.rb +97 -0
- data/lib/fog/aws/requests/rds/describe_db_parameter_groups.rb +45 -0
- data/lib/fog/aws/requests/rds/describe_db_parameters.rb +46 -0
- data/lib/fog/aws/requests/rds/describe_db_reserved_instances.rb +42 -0
- data/lib/fog/aws/requests/rds/describe_db_security_groups.rb +85 -0
- data/lib/fog/aws/requests/rds/describe_db_snapshots.rb +69 -0
- data/lib/fog/aws/requests/rds/modify_db_instance.rb +79 -0
- data/lib/fog/aws/requests/rds/modify_db_parameter_group.rb +55 -0
- data/lib/fog/aws/requests/rds/reboot_db_instance.rb +50 -0
- data/lib/fog/aws/requests/rds/restore_db_instance_from_db_snapshot.rb +34 -0
- data/lib/fog/aws/requests/rds/restore_db_instance_to_point_in_time.rb +35 -0
- data/lib/fog/aws/requests/rds/revoke_db_security_group_ingress.rb +70 -0
- data/lib/fog/aws/requests/ses/delete_verified_email_address.rb +28 -0
- data/lib/fog/aws/requests/ses/get_send_quota.rb +31 -0
- data/lib/fog/aws/requests/ses/get_send_statistics.rb +34 -0
- data/lib/fog/aws/requests/ses/list_verified_email_addresses.rb +28 -0
- data/lib/fog/aws/requests/ses/send_email.rb +73 -0
- data/lib/fog/aws/requests/ses/send_raw_email.rb +41 -0
- data/lib/fog/aws/requests/ses/verify_email_address.rb +28 -0
- data/lib/fog/aws/requests/simpledb/batch_put_attributes.rb +64 -0
- data/lib/fog/aws/requests/simpledb/create_domain.rb +44 -0
- data/lib/fog/aws/requests/simpledb/delete_attributes.rb +73 -0
- data/lib/fog/aws/requests/simpledb/delete_domain.rb +45 -0
- data/lib/fog/aws/requests/simpledb/domain_metadata.rb +76 -0
- data/lib/fog/aws/requests/simpledb/get_attributes.rb +84 -0
- data/lib/fog/aws/requests/simpledb/list_domains.rb +59 -0
- data/lib/fog/aws/requests/simpledb/put_attributes.rb +78 -0
- data/lib/fog/aws/requests/simpledb/select.rb +43 -0
- data/lib/fog/aws/requests/sns/add_permission.rb +26 -0
- data/lib/fog/aws/requests/sns/confirm_subscription.rb +33 -0
- data/lib/fog/aws/requests/sns/create_topic.rb +29 -0
- data/lib/fog/aws/requests/sns/delete_topic.rb +29 -0
- data/lib/fog/aws/requests/sns/get_topic_attributes.rb +29 -0
- data/lib/fog/aws/requests/sns/list_subscriptions.rb +29 -0
- data/lib/fog/aws/requests/sns/list_subscriptions_by_topic.rb +31 -0
- data/lib/fog/aws/requests/sns/list_topics.rb +29 -0
- data/lib/fog/aws/requests/sns/publish.rb +34 -0
- data/lib/fog/aws/requests/sns/remove_permission.rb +26 -0
- data/lib/fog/aws/requests/sns/set_topic_attributes.rb +33 -0
- data/lib/fog/aws/requests/sns/subscribe.rb +33 -0
- data/lib/fog/aws/requests/sns/unsubscribe.rb +29 -0
- data/lib/fog/aws/requests/sqs/change_message_visibility.rb +63 -0
- data/lib/fog/aws/requests/sqs/create_queue.rb +65 -0
- data/lib/fog/aws/requests/sqs/delete_message.rb +60 -0
- data/lib/fog/aws/requests/sqs/delete_queue.rb +52 -0
- data/lib/fog/aws/requests/sqs/get_queue_attributes.rb +52 -0
- data/lib/fog/aws/requests/sqs/list_queues.rb +42 -0
- data/lib/fog/aws/requests/sqs/receive_message.rb +87 -0
- data/lib/fog/aws/requests/sqs/send_message.rb +69 -0
- data/lib/fog/aws/requests/sqs/set_queue_attributes.rb +51 -0
- data/lib/fog/aws/requests/storage/abort_multipart_upload.rb +30 -0
- data/lib/fog/aws/requests/storage/acl_utils.rb +62 -0
- data/lib/fog/aws/requests/storage/complete_multipart_upload.rb +52 -0
- data/lib/fog/aws/requests/storage/copy_object.rb +82 -0
- data/lib/fog/aws/requests/storage/delete_bucket.rb +50 -0
- data/lib/fog/aws/requests/storage/delete_bucket_lifecycle.rb +30 -0
- data/lib/fog/aws/requests/storage/delete_bucket_policy.rb +32 -0
- data/lib/fog/aws/requests/storage/delete_bucket_website.rb +32 -0
- data/lib/fog/aws/requests/storage/delete_object.rb +121 -0
- data/lib/fog/aws/requests/storage/get_bucket.rb +115 -0
- data/lib/fog/aws/requests/storage/get_bucket_acl.rb +72 -0
- data/lib/fog/aws/requests/storage/get_bucket_lifecycle.rb +41 -0
- data/lib/fog/aws/requests/storage/get_bucket_location.rb +61 -0
- data/lib/fog/aws/requests/storage/get_bucket_logging.rb +50 -0
- data/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +168 -0
- data/lib/fog/aws/requests/storage/get_bucket_policy.rb +37 -0
- data/lib/fog/aws/requests/storage/get_bucket_versioning.rb +72 -0
- data/lib/fog/aws/requests/storage/get_bucket_website.rb +42 -0
- data/lib/fog/aws/requests/storage/get_object.rb +144 -0
- data/lib/fog/aws/requests/storage/get_object_acl.rb +83 -0
- data/lib/fog/aws/requests/storage/get_object_http_url.rb +57 -0
- data/lib/fog/aws/requests/storage/get_object_https_url.rb +57 -0
- data/lib/fog/aws/requests/storage/get_object_torrent.rb +50 -0
- data/lib/fog/aws/requests/storage/get_object_url.rb +37 -0
- data/lib/fog/aws/requests/storage/get_request_payment.rb +52 -0
- data/lib/fog/aws/requests/storage/get_service.rb +57 -0
- data/lib/fog/aws/requests/storage/head_object.rb +69 -0
- data/lib/fog/aws/requests/storage/initiate_multipart_upload.rb +47 -0
- data/lib/fog/aws/requests/storage/list_multipart_uploads.rb +60 -0
- data/lib/fog/aws/requests/storage/list_parts.rb +59 -0
- data/lib/fog/aws/requests/storage/post_object_hidden_fields.rb +40 -0
- data/lib/fog/aws/requests/storage/put_bucket.rb +77 -0
- data/lib/fog/aws/requests/storage/put_bucket_acl.rb +73 -0
- data/lib/fog/aws/requests/storage/put_bucket_lifecycle.rb +48 -0
- data/lib/fog/aws/requests/storage/put_bucket_logging.rb +83 -0
- data/lib/fog/aws/requests/storage/put_bucket_policy.rb +30 -0
- data/lib/fog/aws/requests/storage/put_bucket_versioning.rb +77 -0
- data/lib/fog/aws/requests/storage/put_bucket_website.rb +66 -0
- data/lib/fog/aws/requests/storage/put_object.rb +116 -0
- data/lib/fog/aws/requests/storage/put_object_acl.rb +82 -0
- data/lib/fog/aws/requests/storage/put_object_url.rb +57 -0
- data/lib/fog/aws/requests/storage/put_request_payment.rb +51 -0
- data/lib/fog/aws/requests/storage/sync_clock.rb +28 -0
- data/lib/fog/aws/requests/storage/upload_part.rb +43 -0
- data/lib/fog/aws/requests/sts/get_federation_token.rb +21 -0
- data/lib/fog/aws/requests/sts/get_session_token.rb +19 -0
- data/lib/fog/aws/ses.rb +108 -0
- data/lib/fog/aws/simpledb.rb +187 -0
- data/lib/fog/aws/sns.rb +105 -0
- data/lib/fog/aws/sqs.rb +145 -0
- data/lib/fog/aws/storage.rb +371 -0
- data/lib/fog/aws/sts.rb +137 -0
- data/lib/fog/bin.rb +84 -0
- data/lib/fog/bin/aws.rb +107 -0
- data/lib/fog/bin/bluebox.rb +36 -0
- data/lib/fog/bin/brightbox.rb +35 -0
- data/lib/fog/bin/clodo.rb +31 -0
- data/lib/fog/bin/cloudstack.rb +30 -0
- data/lib/fog/bin/dnsimple.rb +31 -0
- data/lib/fog/bin/dnsmadeeasy.rb +31 -0
- data/lib/fog/bin/dynect.rb +30 -0
- data/lib/fog/bin/ecloud.rb +31 -0
- data/lib/fog/bin/glesys.rb +31 -0
- data/lib/fog/bin/go_grid.rb +31 -0
- data/lib/fog/bin/google.rb +31 -0
- data/lib/fog/bin/joyent.rb +31 -0
- data/lib/fog/bin/libvirt.rb +60 -0
- data/lib/fog/bin/linode.rb +36 -0
- data/lib/fog/bin/local.rb +31 -0
- data/lib/fog/bin/new_servers.rb +31 -0
- data/lib/fog/bin/ninefold.rb +36 -0
- data/lib/fog/bin/openstack.rb +31 -0
- data/lib/fog/bin/ovirt.rb +30 -0
- data/lib/fog/bin/rackspace.rb +49 -0
- data/lib/fog/bin/slicehost.rb +36 -0
- data/lib/fog/bin/stormondemand.rb +31 -0
- data/lib/fog/bin/terremark.rb +31 -0
- data/lib/fog/bin/vcloud.rb +30 -0
- data/lib/fog/bin/virtual_box.rb +57 -0
- data/lib/fog/bin/vmfusion.rb +60 -0
- data/lib/fog/bin/voxel.rb +31 -0
- data/lib/fog/bin/vsphere.rb +30 -0
- data/lib/fog/bin/zerigo.rb +31 -0
- data/lib/fog/bluebox.rb +12 -0
- data/lib/fog/bluebox/compute.rb +105 -0
- data/lib/fog/bluebox/dns.rb +104 -0
- data/lib/fog/bluebox/models/compute/flavor.rb +45 -0
- data/lib/fog/bluebox/models/compute/flavors.rb +28 -0
- data/lib/fog/bluebox/models/compute/image.rb +34 -0
- data/lib/fog/bluebox/models/compute/images.rb +28 -0
- data/lib/fog/bluebox/models/compute/location.rb +17 -0
- data/lib/fog/bluebox/models/compute/locations.rb +28 -0
- data/lib/fog/bluebox/models/compute/server.rb +139 -0
- data/lib/fog/bluebox/models/compute/servers.rb +36 -0
- data/lib/fog/bluebox/models/dns/record.rb +55 -0
- data/lib/fog/bluebox/models/dns/records.rb +36 -0
- data/lib/fog/bluebox/models/dns/zone.rb +64 -0
- data/lib/fog/bluebox/models/dns/zones.rb +28 -0
- data/lib/fog/bluebox/parsers/dns/create_record.rb +26 -0
- data/lib/fog/bluebox/parsers/dns/create_zone.rb +26 -0
- data/lib/fog/bluebox/parsers/dns/get_record.rb +21 -0
- data/lib/fog/bluebox/parsers/dns/get_records.rb +28 -0
- data/lib/fog/bluebox/parsers/dns/get_zone.rb +26 -0
- data/lib/fog/bluebox/parsers/dns/get_zones.rb +30 -0
- data/lib/fog/bluebox/requests/compute/create_block.rb +33 -0
- data/lib/fog/bluebox/requests/compute/create_template.rb +27 -0
- data/lib/fog/bluebox/requests/compute/destroy_block.rb +26 -0
- data/lib/fog/bluebox/requests/compute/destroy_template.rb +26 -0
- data/lib/fog/bluebox/requests/compute/get_block.rb +26 -0
- data/lib/fog/bluebox/requests/compute/get_blocks.rb +28 -0
- data/lib/fog/bluebox/requests/compute/get_location.rb +26 -0
- data/lib/fog/bluebox/requests/compute/get_locations.rb +24 -0
- data/lib/fog/bluebox/requests/compute/get_product.rb +26 -0
- data/lib/fog/bluebox/requests/compute/get_products.rb +25 -0
- data/lib/fog/bluebox/requests/compute/get_template.rb +26 -0
- data/lib/fog/bluebox/requests/compute/get_templates.rb +26 -0
- data/lib/fog/bluebox/requests/compute/reboot_block.rb +27 -0
- data/lib/fog/bluebox/requests/dns/create_record.rb +48 -0
- data/lib/fog/bluebox/requests/dns/create_zone.rb +52 -0
- data/lib/fog/bluebox/requests/dns/delete_record.rb +31 -0
- data/lib/fog/bluebox/requests/dns/delete_zone.rb +31 -0
- data/lib/fog/bluebox/requests/dns/get_record.rb +40 -0
- data/lib/fog/bluebox/requests/dns/get_records.rb +41 -0
- data/lib/fog/bluebox/requests/dns/get_zone.rb +44 -0
- data/lib/fog/bluebox/requests/dns/get_zones.rb +43 -0
- data/lib/fog/bluebox/requests/dns/update_record.rb +34 -0
- data/lib/fog/bluebox/requests/dns/update_zone.rb +30 -0
- data/lib/fog/brightbox.rb +10 -0
- data/lib/fog/brightbox/compute.rb +188 -0
- data/lib/fog/brightbox/models/compute/account.rb +63 -0
- data/lib/fog/brightbox/models/compute/cloud_ip.rb +57 -0
- data/lib/fog/brightbox/models/compute/cloud_ips.rb +34 -0
- data/lib/fog/brightbox/models/compute/firewall_policies.rb +29 -0
- data/lib/fog/brightbox/models/compute/firewall_policy.rb +65 -0
- data/lib/fog/brightbox/models/compute/firewall_rule.rb +54 -0
- data/lib/fog/brightbox/models/compute/firewall_rules.rb +24 -0
- data/lib/fog/brightbox/models/compute/flavor.rb +32 -0
- data/lib/fog/brightbox/models/compute/flavors.rb +28 -0
- data/lib/fog/brightbox/models/compute/image.rb +65 -0
- data/lib/fog/brightbox/models/compute/images.rb +28 -0
- data/lib/fog/brightbox/models/compute/load_balancer.rb +59 -0
- data/lib/fog/brightbox/models/compute/load_balancers.rb +28 -0
- data/lib/fog/brightbox/models/compute/server.rb +156 -0
- data/lib/fog/brightbox/models/compute/server_group.rb +96 -0
- data/lib/fog/brightbox/models/compute/server_groups.rb +29 -0
- data/lib/fog/brightbox/models/compute/servers.rb +29 -0
- data/lib/fog/brightbox/models/compute/user.rb +43 -0
- data/lib/fog/brightbox/models/compute/users.rb +29 -0
- data/lib/fog/brightbox/models/compute/zone.rb +22 -0
- data/lib/fog/brightbox/models/compute/zones.rb +29 -0
- data/lib/fog/brightbox/requests/compute/activate_console_server.rb +14 -0
- data/lib/fog/brightbox/requests/compute/add_listeners_load_balancer.rb +14 -0
- data/lib/fog/brightbox/requests/compute/add_nodes_load_balancer.rb +14 -0
- data/lib/fog/brightbox/requests/compute/add_servers_server_group.rb +28 -0
- data/lib/fog/brightbox/requests/compute/apply_to_firewall_policy.rb +14 -0
- data/lib/fog/brightbox/requests/compute/create_api_client.rb +13 -0
- data/lib/fog/brightbox/requests/compute/create_cloud_ip.rb +13 -0
- data/lib/fog/brightbox/requests/compute/create_firewall_policy.rb +13 -0
- data/lib/fog/brightbox/requests/compute/create_firewall_rule.rb +13 -0
- data/lib/fog/brightbox/requests/compute/create_image.rb +13 -0
- data/lib/fog/brightbox/requests/compute/create_load_balancer.rb +13 -0
- data/lib/fog/brightbox/requests/compute/create_server.rb +13 -0
- data/lib/fog/brightbox/requests/compute/create_server_group.rb +13 -0
- data/lib/fog/brightbox/requests/compute/destroy_api_client.rb +14 -0
- data/lib/fog/brightbox/requests/compute/destroy_cloud_ip.rb +14 -0
- data/lib/fog/brightbox/requests/compute/destroy_firewall_policy.rb +14 -0
- data/lib/fog/brightbox/requests/compute/destroy_firewall_rule.rb +14 -0
- data/lib/fog/brightbox/requests/compute/destroy_image.rb +14 -0
- data/lib/fog/brightbox/requests/compute/destroy_load_balancer.rb +14 -0
- data/lib/fog/brightbox/requests/compute/destroy_server.rb +14 -0
- data/lib/fog/brightbox/requests/compute/destroy_server_group.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_account.rb +13 -0
- data/lib/fog/brightbox/requests/compute/get_api_client.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_cloud_ip.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_firewall_policy.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_firewall_rule.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_image.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_interface.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_load_balancer.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_server.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_server_group.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_server_type.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_user.rb +14 -0
- data/lib/fog/brightbox/requests/compute/get_zone.rb +14 -0
- data/lib/fog/brightbox/requests/compute/list_api_clients.rb +13 -0
- data/lib/fog/brightbox/requests/compute/list_cloud_ips.rb +13 -0
- data/lib/fog/brightbox/requests/compute/list_firewall_policies.rb +13 -0
- data/lib/fog/brightbox/requests/compute/list_images.rb +13 -0
- data/lib/fog/brightbox/requests/compute/list_load_balancers.rb +13 -0
- data/lib/fog/brightbox/requests/compute/list_server_groups.rb +13 -0
- data/lib/fog/brightbox/requests/compute/list_server_types.rb +13 -0
- data/lib/fog/brightbox/requests/compute/list_servers.rb +13 -0
- data/lib/fog/brightbox/requests/compute/list_users.rb +13 -0
- data/lib/fog/brightbox/requests/compute/list_zones.rb +13 -0
- data/lib/fog/brightbox/requests/compute/map_cloud_ip.rb +14 -0
- data/lib/fog/brightbox/requests/compute/move_servers_server_group.rb +29 -0
- data/lib/fog/brightbox/requests/compute/remove_firewall_policy.rb +14 -0
- data/lib/fog/brightbox/requests/compute/remove_listeners_load_balancer.rb +14 -0
- data/lib/fog/brightbox/requests/compute/remove_nodes_load_balancer.rb +14 -0
- data/lib/fog/brightbox/requests/compute/remove_servers_server_group.rb +27 -0
- data/lib/fog/brightbox/requests/compute/reset_ftp_password_account.rb +13 -0
- data/lib/fog/brightbox/requests/compute/reset_secret_api_client.rb +14 -0
- data/lib/fog/brightbox/requests/compute/resize_server.rb +19 -0
- data/lib/fog/brightbox/requests/compute/shutdown_server.rb +14 -0
- data/lib/fog/brightbox/requests/compute/snapshot_server.rb +14 -0
- data/lib/fog/brightbox/requests/compute/start_server.rb +14 -0
- data/lib/fog/brightbox/requests/compute/stop_server.rb +14 -0
- data/lib/fog/brightbox/requests/compute/unmap_cloud_ip.rb +14 -0
- data/lib/fog/brightbox/requests/compute/update_account.rb +14 -0
- data/lib/fog/brightbox/requests/compute/update_api_client.rb +15 -0
- data/lib/fog/brightbox/requests/compute/update_cloud_ip.rb +15 -0
- data/lib/fog/brightbox/requests/compute/update_firewall_rule.rb +13 -0
- data/lib/fog/brightbox/requests/compute/update_image.rb +15 -0
- data/lib/fog/brightbox/requests/compute/update_load_balancer.rb +15 -0
- data/lib/fog/brightbox/requests/compute/update_server.rb +15 -0
- data/lib/fog/brightbox/requests/compute/update_server_group.rb +15 -0
- data/lib/fog/brightbox/requests/compute/update_user.rb +15 -0
- data/lib/fog/cdn.rb +27 -0
- data/lib/fog/clodo.rb +34 -0
- data/lib/fog/clodo/compute.rb +152 -0
- data/lib/fog/clodo/models/compute/image.rb +31 -0
- data/lib/fog/clodo/models/compute/images.rb +28 -0
- data/lib/fog/clodo/models/compute/server.rb +163 -0
- data/lib/fog/clodo/models/compute/servers.rb +36 -0
- data/lib/fog/clodo/requests/compute/add_ip_address.rb +49 -0
- data/lib/fog/clodo/requests/compute/create_server.rb +112 -0
- data/lib/fog/clodo/requests/compute/delete_ip_address.rb +47 -0
- data/lib/fog/clodo/requests/compute/delete_server.rb +44 -0
- data/lib/fog/clodo/requests/compute/get_image_details.rb +20 -0
- data/lib/fog/clodo/requests/compute/get_server_details.rb +49 -0
- data/lib/fog/clodo/requests/compute/list_images.rb +48 -0
- data/lib/fog/clodo/requests/compute/list_images_detail.rb +61 -0
- data/lib/fog/clodo/requests/compute/list_servers.rb +50 -0
- data/lib/fog/clodo/requests/compute/list_servers_detail.rb +51 -0
- data/lib/fog/clodo/requests/compute/move_ip_address.rb +34 -0
- data/lib/fog/clodo/requests/compute/reboot_server.rb +19 -0
- data/lib/fog/clodo/requests/compute/rebuild_server.rb +21 -0
- data/lib/fog/clodo/requests/compute/server_action.rb +25 -0
- data/lib/fog/clodo/requests/compute/start_server.rb +19 -0
- data/lib/fog/clodo/requests/compute/stop_server.rb +19 -0
- data/lib/fog/cloudstack.rb +28 -0
- data/lib/fog/cloudstack/compute.rb +254 -0
- data/lib/fog/cloudstack/requests/compute/acquire_ip_address.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/attach_volume.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_account.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_domain.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_network.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_security_group.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_snapshot.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_user.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_volume.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_account.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_domain.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_security_group.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_snapshot.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_user.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_volume.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb +33 -0
- data/lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/detach_volume.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/disable_account.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/disable_user.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/enable_account.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/enable_user.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/generate_usage_records.rb +28 -0
- data/lib/fog/cloudstack/requests/compute/get_vm_password.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_accounts.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_alerts.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_async_jobs.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_capabilities.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_capacity.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_clusters.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_configurations.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_disk_offerings.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_domain_children.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_domains.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_events.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_external_firewalls.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_hosts.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_hypervisors.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_instance_groups.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_isos.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/list_network_offerings.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_networks.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_os_categories.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/list_os_types.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/list_pods.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/list_resource_limits.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_security_groups.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_service_offerings.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_snapshots.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_storage_pools.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_templates.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_usage_records.rb +28 -0
- data/lib/fog/cloudstack/requests/compute/list_users.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_virtual_machines.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_volumes.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_zones.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/query_async_job_result.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/register_user_keys.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/start_virtual_machine.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/update_account.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/update_domain.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/update_resource_count.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/update_user.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/update_virtual_machine.rb +20 -0
- data/lib/fog/compute.rb +101 -0
- data/lib/fog/compute/models/server.rb +37 -0
- data/lib/fog/core.rb +37 -0
- data/lib/fog/core/attributes.rb +204 -0
- data/lib/fog/core/collection.rb +135 -0
- data/lib/fog/core/connection.rb +35 -0
- data/lib/fog/core/credentials.rb +63 -0
- data/lib/fog/core/current_machine.rb +38 -0
- data/lib/fog/core/deprecation.rb +23 -0
- data/lib/fog/core/errors.rb +96 -0
- data/lib/fog/core/hmac.rb +48 -0
- data/lib/fog/core/json.rb +20 -0
- data/lib/fog/core/logger.rb +43 -0
- data/lib/fog/core/mock.rb +92 -0
- data/lib/fog/core/model.rb +62 -0
- data/lib/fog/core/parser.rb +103 -0
- data/lib/fog/core/provider.rb +35 -0
- data/lib/fog/core/scp.rb +79 -0
- data/lib/fog/core/service.rb +202 -0
- data/lib/fog/core/ssh.rb +115 -0
- data/lib/fog/core/time.rb +26 -0
- data/lib/fog/core/timeout.rb +11 -0
- data/lib/fog/core/wait_for.rb +17 -0
- data/lib/fog/dns.rb +59 -0
- data/lib/fog/dnsimple.rb +11 -0
- data/lib/fog/dnsimple/dns.rb +97 -0
- data/lib/fog/dnsimple/models/dns/record.rb +67 -0
- data/lib/fog/dnsimple/models/dns/records.rb +38 -0
- data/lib/fog/dnsimple/models/dns/zone.rb +50 -0
- data/lib/fog/dnsimple/models/dns/zones.rb +29 -0
- data/lib/fog/dnsimple/requests/dns/create_domain.rb +27 -0
- data/lib/fog/dnsimple/requests/dns/create_record.rb +48 -0
- data/lib/fog/dnsimple/requests/dns/delete_domain.rb +26 -0
- data/lib/fog/dnsimple/requests/dns/delete_record.rb +21 -0
- data/lib/fog/dnsimple/requests/dns/get_domain.rb +37 -0
- data/lib/fog/dnsimple/requests/dns/get_record.rb +34 -0
- data/lib/fog/dnsimple/requests/dns/list_domains.rb +35 -0
- data/lib/fog/dnsimple/requests/dns/list_records.rb +32 -0
- data/lib/fog/dnsimple/requests/dns/update_record.rb +42 -0
- data/lib/fog/dnsmadeeasy.rb +11 -0
- data/lib/fog/dnsmadeeasy/dns.rb +136 -0
- data/lib/fog/dnsmadeeasy/models/dns/record.rb +80 -0
- data/lib/fog/dnsmadeeasy/models/dns/records.rb +36 -0
- data/lib/fog/dnsmadeeasy/models/dns/zone.rb +42 -0
- data/lib/fog/dnsmadeeasy/models/dns/zones.rb +30 -0
- data/lib/fog/dnsmadeeasy/requests/dns/create_domain.rb +29 -0
- data/lib/fog/dnsmadeeasy/requests/dns/create_record.rb +62 -0
- data/lib/fog/dnsmadeeasy/requests/dns/create_secondary.rb +36 -0
- data/lib/fog/dnsmadeeasy/requests/dns/delete_all_domains.rb +23 -0
- data/lib/fog/dnsmadeeasy/requests/dns/delete_all_secondary.rb +22 -0
- data/lib/fog/dnsmadeeasy/requests/dns/delete_domain.rb +25 -0
- data/lib/fog/dnsmadeeasy/requests/dns/delete_record.rb +26 -0
- data/lib/fog/dnsmadeeasy/requests/dns/delete_secondary.rb +25 -0
- data/lib/fog/dnsmadeeasy/requests/dns/get_domain.rb +29 -0
- data/lib/fog/dnsmadeeasy/requests/dns/get_record.rb +38 -0
- data/lib/fog/dnsmadeeasy/requests/dns/get_secondary.rb +29 -0
- data/lib/fog/dnsmadeeasy/requests/dns/list_domains.rb +24 -0
- data/lib/fog/dnsmadeeasy/requests/dns/list_records.rb +42 -0
- data/lib/fog/dnsmadeeasy/requests/dns/list_secondary.rb +24 -0
- data/lib/fog/dnsmadeeasy/requests/dns/update_record.rb +56 -0
- data/lib/fog/dnsmadeeasy/requests/dns/update_secondary.rb +36 -0
- data/lib/fog/dynect.rb +26 -0
- data/lib/fog/dynect/dns.rb +132 -0
- data/lib/fog/dynect/models/dns/record.rb +66 -0
- data/lib/fog/dynect/models/dns/records.rb +53 -0
- data/lib/fog/dynect/models/dns/zone.rb +60 -0
- data/lib/fog/dynect/models/dns/zones.rb +29 -0
- data/lib/fog/dynect/requests/dns/delete_record.rb +55 -0
- data/lib/fog/dynect/requests/dns/delete_zone.rb +42 -0
- data/lib/fog/dynect/requests/dns/get_node_list.rb +55 -0
- data/lib/fog/dynect/requests/dns/get_record.rb +83 -0
- data/lib/fog/dynect/requests/dns/get_zone.rb +57 -0
- data/lib/fog/dynect/requests/dns/post_record.rb +72 -0
- data/lib/fog/dynect/requests/dns/post_session.rb +43 -0
- data/lib/fog/dynect/requests/dns/post_zone.rb +71 -0
- data/lib/fog/dynect/requests/dns/put_zone.rb +76 -0
- data/lib/fog/ecloud.rb +11 -0
- data/lib/fog/ecloud/compute.rb +1307 -0
- data/lib/fog/ecloud/models/compute/backup_internet_service.rb +56 -0
- data/lib/fog/ecloud/models/compute/backup_internet_services.rb +33 -0
- data/lib/fog/ecloud/models/compute/catalog.rb +28 -0
- data/lib/fog/ecloud/models/compute/catalog_item.rb +29 -0
- data/lib/fog/ecloud/models/compute/firewall_acl.rb +24 -0
- data/lib/fog/ecloud/models/compute/firewall_acls.rb +31 -0
- data/lib/fog/ecloud/models/compute/internet_service.rb +117 -0
- data/lib/fog/ecloud/models/compute/internet_services.rb +33 -0
- data/lib/fog/ecloud/models/compute/ip.rb +49 -0
- data/lib/fog/ecloud/models/compute/ips.rb +32 -0
- data/lib/fog/ecloud/models/compute/network.rb +75 -0
- data/lib/fog/ecloud/models/compute/networks.rb +33 -0
- data/lib/fog/ecloud/models/compute/node.rb +43 -0
- data/lib/fog/ecloud/models/compute/nodes.rb +31 -0
- data/lib/fog/ecloud/models/compute/public_ip.rb +22 -0
- data/lib/fog/ecloud/models/compute/public_ips.rb +36 -0
- data/lib/fog/ecloud/models/compute/server.rb +209 -0
- data/lib/fog/ecloud/models/compute/servers.rb +57 -0
- data/lib/fog/ecloud/models/compute/task.rb +21 -0
- data/lib/fog/ecloud/models/compute/tasks.rb +31 -0
- data/lib/fog/ecloud/models/compute/vdc.rb +81 -0
- data/lib/fog/ecloud/models/compute/vdcs.rb +40 -0
- data/lib/fog/ecloud/requests/compute/add_backup_internet_service.rb +109 -0
- data/lib/fog/ecloud/requests/compute/add_internet_service.rb +149 -0
- data/lib/fog/ecloud/requests/compute/add_node.rb +62 -0
- data/lib/fog/ecloud/requests/compute/clone_vapp.rb +40 -0
- data/lib/fog/ecloud/requests/compute/configure_internet_service.rb +112 -0
- data/lib/fog/ecloud/requests/compute/configure_network.rb +44 -0
- data/lib/fog/ecloud/requests/compute/configure_network_ip.rb +66 -0
- data/lib/fog/ecloud/requests/compute/configure_node.rb +56 -0
- data/lib/fog/ecloud/requests/compute/configure_vapp.rb +144 -0
- data/lib/fog/ecloud/requests/compute/delete_internet_service.rb +22 -0
- data/lib/fog/ecloud/requests/compute/delete_node.rb +22 -0
- data/lib/fog/ecloud/requests/compute/delete_vapp.rb +29 -0
- data/lib/fog/ecloud/requests/compute/get_catalog.rb +44 -0
- data/lib/fog/ecloud/requests/compute/get_catalog_item.rb +47 -0
- data/lib/fog/ecloud/requests/compute/get_customization_options.rb +22 -0
- data/lib/fog/ecloud/requests/compute/get_firewall_acl.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_firewall_acls.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_internet_services.rb +82 -0
- data/lib/fog/ecloud/requests/compute/get_network.rb +44 -0
- data/lib/fog/ecloud/requests/compute/get_network_extensions.rb +33 -0
- data/lib/fog/ecloud/requests/compute/get_network_ip.rb +43 -0
- data/lib/fog/ecloud/requests/compute/get_network_ips.rb +35 -0
- data/lib/fog/ecloud/requests/compute/get_node.rb +40 -0
- data/lib/fog/ecloud/requests/compute/get_nodes.rb +41 -0
- data/lib/fog/ecloud/requests/compute/get_organization.rb +49 -0
- data/lib/fog/ecloud/requests/compute/get_public_ip.rb +34 -0
- data/lib/fog/ecloud/requests/compute/get_public_ips.rb +38 -0
- data/lib/fog/ecloud/requests/compute/get_task.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_task_list.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_vapp.rb +99 -0
- data/lib/fog/ecloud/requests/compute/get_vapp_template.rb +11 -0
- data/lib/fog/ecloud/requests/compute/get_vdc.rb +84 -0
- data/lib/fog/ecloud/requests/compute/get_versions.rb +37 -0
- data/lib/fog/ecloud/requests/compute/instantiate_vapp_template.rb +142 -0
- data/lib/fog/ecloud/requests/compute/login.rb +48 -0
- data/lib/fog/ecloud/requests/compute/power_off.rb +23 -0
- data/lib/fog/ecloud/requests/compute/power_on.rb +23 -0
- data/lib/fog/ecloud/requests/compute/power_reset.rb +11 -0
- data/lib/fog/ecloud/requests/compute/power_shutdown.rb +11 -0
- data/lib/fog/glesys.rb +11 -0
- data/lib/fog/glesys/compute.rb +130 -0
- data/lib/fog/glesys/models/compute/ip.rb +75 -0
- data/lib/fog/glesys/models/compute/ips.rb +39 -0
- data/lib/fog/glesys/models/compute/server.rb +71 -0
- data/lib/fog/glesys/models/compute/servers.rb +34 -0
- data/lib/fog/glesys/models/compute/template.rb +25 -0
- data/lib/fog/glesys/models/compute/templates.rb +22 -0
- data/lib/fog/glesys/requests/compute/create.rb +15 -0
- data/lib/fog/glesys/requests/compute/destroy.rb +18 -0
- data/lib/fog/glesys/requests/compute/ip_add.rb +14 -0
- data/lib/fog/glesys/requests/compute/ip_details.rb +14 -0
- data/lib/fog/glesys/requests/compute/ip_list_free.rb +14 -0
- data/lib/fog/glesys/requests/compute/ip_list_own.rb +14 -0
- data/lib/fog/glesys/requests/compute/ip_release.rb +14 -0
- data/lib/fog/glesys/requests/compute/ip_remove.rb +14 -0
- data/lib/fog/glesys/requests/compute/ip_take.rb +14 -0
- data/lib/fog/glesys/requests/compute/list_servers.rb +19 -0
- data/lib/fog/glesys/requests/compute/server_details.rb +14 -0
- data/lib/fog/glesys/requests/compute/server_status.rb +14 -0
- data/lib/fog/glesys/requests/compute/start.rb +14 -0
- data/lib/fog/glesys/requests/compute/stop.rb +14 -0
- data/lib/fog/glesys/requests/compute/template_list.rb +14 -0
- data/lib/fog/go_grid.rb +11 -0
- data/lib/fog/go_grid/compute.rb +117 -0
- data/lib/fog/go_grid/models/compute/image.rb +60 -0
- data/lib/fog/go_grid/models/compute/images.rb +33 -0
- data/lib/fog/go_grid/models/compute/password.rb +50 -0
- data/lib/fog/go_grid/models/compute/passwords.rb +36 -0
- data/lib/fog/go_grid/models/compute/server.rb +102 -0
- data/lib/fog/go_grid/models/compute/servers.rb +36 -0
- data/lib/fog/go_grid/requests/compute/common_lookup_list.rb +28 -0
- data/lib/fog/go_grid/requests/compute/grid_image_get.rb +41 -0
- data/lib/fog/go_grid/requests/compute/grid_image_list.rb +44 -0
- data/lib/fog/go_grid/requests/compute/grid_ip_list.rb +30 -0
- data/lib/fog/go_grid/requests/compute/grid_loadbalancer_list.rb +28 -0
- data/lib/fog/go_grid/requests/compute/grid_server_add.rb +36 -0
- data/lib/fog/go_grid/requests/compute/grid_server_delete.rb +25 -0
- data/lib/fog/go_grid/requests/compute/grid_server_get.rb +25 -0
- data/lib/fog/go_grid/requests/compute/grid_server_list.rb +30 -0
- data/lib/fog/go_grid/requests/compute/grid_server_power.rb +26 -0
- data/lib/fog/go_grid/requests/compute/support_password_get.rb +28 -0
- data/lib/fog/go_grid/requests/compute/support_password_list.rb +30 -0
- data/lib/fog/google.rb +23 -0
- data/lib/fog/google/models/storage/directories.rb +43 -0
- data/lib/fog/google/models/storage/directory.rb +78 -0
- data/lib/fog/google/models/storage/file.rb +141 -0
- data/lib/fog/google/models/storage/files.rb +103 -0
- data/lib/fog/google/parsers/storage/access_control_list.rb +48 -0
- data/lib/fog/google/parsers/storage/copy_object.rb +22 -0
- data/lib/fog/google/parsers/storage/get_bucket.rb +62 -0
- data/lib/fog/google/parsers/storage/get_bucket_logging.rb +40 -0
- data/lib/fog/google/parsers/storage/get_bucket_object_versions.rb +88 -0
- data/lib/fog/google/parsers/storage/get_bucket_versioning.rb +24 -0
- data/lib/fog/google/parsers/storage/get_request_payment.rb +20 -0
- data/lib/fog/google/parsers/storage/get_service.rb +32 -0
- data/lib/fog/google/requests/storage/copy_object.rb +72 -0
- data/lib/fog/google/requests/storage/delete_bucket.rb +46 -0
- data/lib/fog/google/requests/storage/delete_object.rb +50 -0
- data/lib/fog/google/requests/storage/get_bucket.rb +111 -0
- data/lib/fog/google/requests/storage/get_bucket_acl.rb +63 -0
- data/lib/fog/google/requests/storage/get_object.rb +104 -0
- data/lib/fog/google/requests/storage/get_object_acl.rb +74 -0
- data/lib/fog/google/requests/storage/get_object_http_url.rb +51 -0
- data/lib/fog/google/requests/storage/get_object_https_url.rb +51 -0
- data/lib/fog/google/requests/storage/get_object_torrent.rb +47 -0
- data/lib/fog/google/requests/storage/get_object_url.rb +37 -0
- data/lib/fog/google/requests/storage/get_service.rb +53 -0
- data/lib/fog/google/requests/storage/head_object.rb +64 -0
- data/lib/fog/google/requests/storage/put_bucket.rb +75 -0
- data/lib/fog/google/requests/storage/put_bucket_acl.rb +73 -0
- data/lib/fog/google/requests/storage/put_object.rb +94 -0
- data/lib/fog/google/requests/storage/put_object_url.rb +54 -0
- data/lib/fog/google/storage.rb +271 -0
- data/lib/fog/joyent.rb +8 -0
- data/lib/fog/joyent/compute.rb +228 -0
- data/lib/fog/joyent/errors.rb +90 -0
- data/lib/fog/joyent/models/compute/flavor.rb +17 -0
- data/lib/fog/joyent/models/compute/flavors.rb +25 -0
- data/lib/fog/joyent/models/compute/image.rb +18 -0
- data/lib/fog/joyent/models/compute/images.rb +25 -0
- data/lib/fog/joyent/models/compute/key.rb +19 -0
- data/lib/fog/joyent/models/compute/keys.rb +34 -0
- data/lib/fog/joyent/models/compute/server.rb +117 -0
- data/lib/fog/joyent/models/compute/servers.rb +35 -0
- data/lib/fog/joyent/models/compute/snapshot.rb +45 -0
- data/lib/fog/joyent/models/compute/snapshots.rb +37 -0
- data/lib/fog/joyent/requests/compute/add_machine_tags.rb +20 -0
- data/lib/fog/joyent/requests/compute/create_key.rb +56 -0
- data/lib/fog/joyent/requests/compute/create_machine.rb +16 -0
- data/lib/fog/joyent/requests/compute/create_machine_snapshot.rb +18 -0
- data/lib/fog/joyent/requests/compute/delete_all_machine_metadata.rb +16 -0
- data/lib/fog/joyent/requests/compute/delete_all_machine_tags.rb +15 -0
- data/lib/fog/joyent/requests/compute/delete_key.rb +29 -0
- data/lib/fog/joyent/requests/compute/delete_machine.rb +15 -0
- data/lib/fog/joyent/requests/compute/delete_machine_metadata.rb +18 -0
- data/lib/fog/joyent/requests/compute/delete_machine_snapshot.rb +21 -0
- data/lib/fog/joyent/requests/compute/delete_machine_tag.rb +15 -0
- data/lib/fog/joyent/requests/compute/get_dataset.rb +28 -0
- data/lib/fog/joyent/requests/compute/get_key.rb +29 -0
- data/lib/fog/joyent/requests/compute/get_machine.rb +29 -0
- data/lib/fog/joyent/requests/compute/get_machine_metadata.rb +25 -0
- data/lib/fog/joyent/requests/compute/get_machine_snapshot.rb +14 -0
- data/lib/fog/joyent/requests/compute/get_machine_tag.rb +19 -0
- data/lib/fog/joyent/requests/compute/get_package.rb +33 -0
- data/lib/fog/joyent/requests/compute/list_datasets.rb +24 -0
- data/lib/fog/joyent/requests/compute/list_keys.rb +25 -0
- data/lib/fog/joyent/requests/compute/list_machine_snapshots.rb +14 -0
- data/lib/fog/joyent/requests/compute/list_machine_tags.rb +20 -0
- data/lib/fog/joyent/requests/compute/list_machines.rb +25 -0
- data/lib/fog/joyent/requests/compute/list_packages.rb +36 -0
- data/lib/fog/joyent/requests/compute/reboot_machine.rb +15 -0
- data/lib/fog/joyent/requests/compute/resize_machine.rb +13 -0
- data/lib/fog/joyent/requests/compute/start_machine.rb +16 -0
- data/lib/fog/joyent/requests/compute/start_machine_from_snapshot.rb +15 -0
- data/lib/fog/joyent/requests/compute/stop_machine.rb +16 -0
- data/lib/fog/joyent/requests/compute/update_machine_metadata.rb +15 -0
- data/lib/fog/libvirt.rb +11 -0
- data/lib/fog/libvirt/compute.rb +108 -0
- data/lib/fog/libvirt/models/compute/README.md +76 -0
- data/lib/fog/libvirt/models/compute/interface.rb +48 -0
- data/lib/fog/libvirt/models/compute/interfaces.rb +62 -0
- data/lib/fog/libvirt/models/compute/network.rb +65 -0
- data/lib/fog/libvirt/models/compute/networks.rb +61 -0
- data/lib/fog/libvirt/models/compute/node.rb +45 -0
- data/lib/fog/libvirt/models/compute/nodes.rb +38 -0
- data/lib/fog/libvirt/models/compute/pool.rb +200 -0
- data/lib/fog/libvirt/models/compute/pools.rb +60 -0
- data/lib/fog/libvirt/models/compute/server.rb +526 -0
- data/lib/fog/libvirt/models/compute/servers.rb +79 -0
- data/lib/fog/libvirt/models/compute/templates/network.xml.erb +6 -0
- data/lib/fog/libvirt/models/compute/templates/pool.xml.erb +6 -0
- data/lib/fog/libvirt/models/compute/templates/server.xml.erb +57 -0
- data/lib/fog/libvirt/models/compute/templates/volume.xml.erb +14 -0
- data/lib/fog/libvirt/models/compute/uri.rb +146 -0
- data/lib/fog/libvirt/models/compute/util.rb +24 -0
- data/lib/fog/libvirt/models/compute/volume.rb +176 -0
- data/lib/fog/libvirt/models/compute/volumes.rb +87 -0
- data/lib/fog/linode.rb +10 -0
- data/lib/fog/linode/compute.rb +119 -0
- data/lib/fog/linode/dns.rb +94 -0
- data/lib/fog/linode/models/compute/data_center.rb +12 -0
- data/lib/fog/linode/models/compute/data_centers.rb +26 -0
- data/lib/fog/linode/models/compute/disk.rb +62 -0
- data/lib/fog/linode/models/compute/disks.rb +40 -0
- data/lib/fog/linode/models/compute/flavor.rb +23 -0
- data/lib/fog/linode/models/compute/flavors.rb +32 -0
- data/lib/fog/linode/models/compute/image.rb +14 -0
- data/lib/fog/linode/models/compute/images.rb +33 -0
- data/lib/fog/linode/models/compute/ip.rb +30 -0
- data/lib/fog/linode/models/compute/ips.rb +40 -0
- data/lib/fog/linode/models/compute/kernel.rb +12 -0
- data/lib/fog/linode/models/compute/kernels.rb +32 -0
- data/lib/fog/linode/models/compute/server.rb +98 -0
- data/lib/fog/linode/models/compute/servers.rb +32 -0
- data/lib/fog/linode/models/compute/stack_script.rb +13 -0
- data/lib/fog/linode/models/compute/stack_scripts.rb +32 -0
- data/lib/fog/linode/models/dns/record.rb +72 -0
- data/lib/fog/linode/models/dns/records.rb +37 -0
- data/lib/fog/linode/models/dns/zone.rb +84 -0
- data/lib/fog/linode/models/dns/zones.rb +29 -0
- data/lib/fog/linode/requests/compute/avail_datacenters.rb +23 -0
- data/lib/fog/linode/requests/compute/avail_distributions.rb +30 -0
- data/lib/fog/linode/requests/compute/avail_kernels.rb +30 -0
- data/lib/fog/linode/requests/compute/avail_linodeplans.rb +34 -0
- data/lib/fog/linode/requests/compute/avail_stackscripts.rb +19 -0
- data/lib/fog/linode/requests/compute/linode_boot.rb +17 -0
- data/lib/fog/linode/requests/compute/linode_config_create.rb +23 -0
- data/lib/fog/linode/requests/compute/linode_config_list.rb +20 -0
- data/lib/fog/linode/requests/compute/linode_create.rb +33 -0
- data/lib/fog/linode/requests/compute/linode_delete.rb +28 -0
- data/lib/fog/linode/requests/compute/linode_disk_create.rb +23 -0
- data/lib/fog/linode/requests/compute/linode_disk_createfromdistribution.rb +24 -0
- data/lib/fog/linode/requests/compute/linode_disk_createfromstackscript.rb +26 -0
- data/lib/fog/linode/requests/compute/linode_disk_delete.rb +21 -0
- data/lib/fog/linode/requests/compute/linode_disk_list.rb +21 -0
- data/lib/fog/linode/requests/compute/linode_ip_addprivate.rb +17 -0
- data/lib/fog/linode/requests/compute/linode_ip_list.rb +21 -0
- data/lib/fog/linode/requests/compute/linode_list.rb +30 -0
- data/lib/fog/linode/requests/compute/linode_reboot.rb +28 -0
- data/lib/fog/linode/requests/compute/linode_shutdown.rb +17 -0
- data/lib/fog/linode/requests/compute/linode_update.rb +17 -0
- data/lib/fog/linode/requests/compute/stackscript_list.rb +32 -0
- data/lib/fog/linode/requests/dns/domain_create.rb +43 -0
- data/lib/fog/linode/requests/dns/domain_delete.rb +27 -0
- data/lib/fog/linode/requests/dns/domain_list.rb +42 -0
- data/lib/fog/linode/requests/dns/domain_resource_create.rb +44 -0
- data/lib/fog/linode/requests/dns/domain_resource_delete.rb +28 -0
- data/lib/fog/linode/requests/dns/domain_resource_list.rb +43 -0
- data/lib/fog/linode/requests/dns/domain_resource_update.rb +46 -0
- data/lib/fog/linode/requests/dns/domain_update.rb +40 -0
- data/lib/fog/local.rb +11 -0
- data/lib/fog/local/models/storage/directories.rb +33 -0
- data/lib/fog/local/models/storage/directory.rb +57 -0
- data/lib/fog/local/models/storage/file.rb +120 -0
- data/lib/fog/local/models/storage/files.rb +87 -0
- data/lib/fog/local/storage.rb +79 -0
- data/lib/fog/new_servers.rb +11 -0
- data/lib/fog/new_servers/compute.rb +98 -0
- data/lib/fog/new_servers/requests/compute/add_server.rb +33 -0
- data/lib/fog/new_servers/requests/compute/cancel_server.rb +30 -0
- data/lib/fog/new_servers/requests/compute/get_server.rb +36 -0
- data/lib/fog/new_servers/requests/compute/list_images.rb +27 -0
- data/lib/fog/new_servers/requests/compute/list_plans.rb +30 -0
- data/lib/fog/new_servers/requests/compute/list_servers.rb +36 -0
- data/lib/fog/new_servers/requests/compute/reboot_server.rb +24 -0
- data/lib/fog/ninefold.rb +12 -0
- data/lib/fog/ninefold/compute.rb +143 -0
- data/lib/fog/ninefold/models/compute/address.rb +103 -0
- data/lib/fog/ninefold/models/compute/addresses.rb +31 -0
- data/lib/fog/ninefold/models/compute/flavor.rb +29 -0
- data/lib/fog/ninefold/models/compute/flavors.rb +30 -0
- data/lib/fog/ninefold/models/compute/image.rb +42 -0
- data/lib/fog/ninefold/models/compute/images.rb +30 -0
- data/lib/fog/ninefold/models/compute/ip_forwarding_rule.rb +79 -0
- data/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb +31 -0
- data/lib/fog/ninefold/models/compute/server.rb +185 -0
- data/lib/fog/ninefold/models/compute/servers.rb +31 -0
- data/lib/fog/ninefold/models/storage/directories.rb +48 -0
- data/lib/fog/ninefold/models/storage/directory.rb +53 -0
- data/lib/fog/ninefold/models/storage/file.rb +108 -0
- data/lib/fog/ninefold/models/storage/files.rb +73 -0
- data/lib/fog/ninefold/requests/compute/associate_ip_address.rb +14 -0
- data/lib/fog/ninefold/requests/compute/change_service_for_virtual_machine.rb +14 -0
- data/lib/fog/ninefold/requests/compute/create_ip_forwarding_rule.rb +14 -0
- data/lib/fog/ninefold/requests/compute/delete_ip_forwarding_rule.rb +14 -0
- data/lib/fog/ninefold/requests/compute/deploy_virtual_machine.rb +14 -0
- data/lib/fog/ninefold/requests/compute/destroy_virtual_machine.rb +14 -0
- data/lib/fog/ninefold/requests/compute/disable_static_nat.rb +14 -0
- data/lib/fog/ninefold/requests/compute/disassociate_ip_address.rb +14 -0
- data/lib/fog/ninefold/requests/compute/enable_static_nat.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_accounts.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_async_jobs.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_capabilities.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_disk_offerings.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_events.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_hypervisors.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_ip_forwarding_rules.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_network_offerings.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_networks.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_public_ip_addresses.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_resource_limits.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_service_offerings.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_templates.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_virtual_machines.rb +14 -0
- data/lib/fog/ninefold/requests/compute/list_zones.rb +14 -0
- data/lib/fog/ninefold/requests/compute/query_async_job_result.rb +14 -0
- data/lib/fog/ninefold/requests/compute/reboot_virtual_machine.rb +14 -0
- data/lib/fog/ninefold/requests/compute/reset_password_for_virtual_machine.rb +14 -0
- data/lib/fog/ninefold/requests/compute/start_virtual_machine.rb +14 -0
- data/lib/fog/ninefold/requests/compute/stop_virtual_machine.rb +14 -0
- data/lib/fog/ninefold/requests/compute/update_virtual_machine.rb +14 -0
- data/lib/fog/ninefold/requests/storage/delete_namespace.rb +19 -0
- data/lib/fog/ninefold/requests/storage/get_namespace.rb +20 -0
- data/lib/fog/ninefold/requests/storage/head_namespace.rb +20 -0
- data/lib/fog/ninefold/requests/storage/post_namespace.rb +20 -0
- data/lib/fog/ninefold/requests/storage/put_namespace.rb +20 -0
- data/lib/fog/ninefold/storage.rb +154 -0
- data/lib/fog/openstack.rb +115 -0
- data/lib/fog/openstack/compute.rb +196 -0
- data/lib/fog/openstack/models/compute/flavor.rb +20 -0
- data/lib/fog/openstack/models/compute/flavors.rb +28 -0
- data/lib/fog/openstack/models/compute/image.rb +57 -0
- data/lib/fog/openstack/models/compute/images.rb +33 -0
- data/lib/fog/openstack/models/compute/meta.rb +29 -0
- data/lib/fog/openstack/models/compute/metadata.rb +69 -0
- data/lib/fog/openstack/models/compute/server.rb +201 -0
- data/lib/fog/openstack/models/compute/servers.rb +36 -0
- data/lib/fog/openstack/models/meta_parent.rb +33 -0
- data/lib/fog/openstack/requests/compute/change_password_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/confirm_resized_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/create_image.rb +49 -0
- data/lib/fog/openstack/requests/compute/create_server.rb +70 -0
- data/lib/fog/openstack/requests/compute/delete_image.rb +40 -0
- data/lib/fog/openstack/requests/compute/delete_meta.rb +28 -0
- data/lib/fog/openstack/requests/compute/delete_server.rb +38 -0
- data/lib/fog/openstack/requests/compute/get_flavor_details.rb +43 -0
- data/lib/fog/openstack/requests/compute/get_image_details.rb +33 -0
- data/lib/fog/openstack/requests/compute/get_meta.rb +29 -0
- data/lib/fog/openstack/requests/compute/get_server_details.rb +32 -0
- data/lib/fog/openstack/requests/compute/list_addresses.rb +32 -0
- data/lib/fog/openstack/requests/compute/list_flavors.rb +38 -0
- data/lib/fog/openstack/requests/compute/list_flavors_detail.rb +38 -0
- data/lib/fog/openstack/requests/compute/list_images.rb +33 -0
- data/lib/fog/openstack/requests/compute/list_images_detail.rb +39 -0
- data/lib/fog/openstack/requests/compute/list_metadata.rb +28 -0
- data/lib/fog/openstack/requests/compute/list_private_addresses.rb +32 -0
- data/lib/fog/openstack/requests/compute/list_public_addresses.rb +32 -0
- data/lib/fog/openstack/requests/compute/list_servers.rb +33 -0
- data/lib/fog/openstack/requests/compute/list_servers_detail.rb +39 -0
- data/lib/fog/openstack/requests/compute/reboot_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/rebuild_server.rb +31 -0
- data/lib/fog/openstack/requests/compute/resize_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/revert_resized_server.rb +30 -0
- data/lib/fog/openstack/requests/compute/server_action.rb +18 -0
- data/lib/fog/openstack/requests/compute/set_metadata.rb +45 -0
- data/lib/fog/openstack/requests/compute/update_meta.rb +45 -0
- data/lib/fog/openstack/requests/compute/update_metadata.rb +46 -0
- data/lib/fog/openstack/requests/compute/update_server.rb +35 -0
- data/lib/fog/ovirt.rb +17 -0
- data/lib/fog/ovirt/compute.rb +93 -0
- data/lib/fog/ovirt/models/compute/cluster.rb +26 -0
- data/lib/fog/ovirt/models/compute/clusters.rb +23 -0
- data/lib/fog/ovirt/models/compute/server.rb +85 -0
- data/lib/fog/ovirt/models/compute/servers.rb +30 -0
- data/lib/fog/ovirt/models/compute/template.rb +42 -0
- data/lib/fog/ovirt/models/compute/templates.rb +23 -0
- data/lib/fog/ovirt/requests/compute/create_vm.rb +20 -0
- data/lib/fog/ovirt/requests/compute/datacenters.rb +22 -0
- data/lib/fog/ovirt/requests/compute/destroy_vm.rb +22 -0
- data/lib/fog/ovirt/requests/compute/get_cluster.rb +18 -0
- data/lib/fog/ovirt/requests/compute/get_template.rb +18 -0
- data/lib/fog/ovirt/requests/compute/get_virtual_machine.rb +18 -0
- data/lib/fog/ovirt/requests/compute/list_clusters.rb +20 -0
- data/lib/fog/ovirt/requests/compute/list_templates.rb +20 -0
- data/lib/fog/ovirt/requests/compute/list_virtual_machines.rb +20 -0
- data/lib/fog/ovirt/requests/compute/mock_files/cluster.xml +20 -0
- data/lib/fog/ovirt/requests/compute/mock_files/clusters.xml +39 -0
- data/lib/fog/ovirt/requests/compute/mock_files/data_centers.xml +17 -0
- data/lib/fog/ovirt/requests/compute/mock_files/storage_domains.xml +36 -0
- data/lib/fog/ovirt/requests/compute/mock_files/template.xml +39 -0
- data/lib/fog/ovirt/requests/compute/mock_files/templates.xml +110 -0
- data/lib/fog/ovirt/requests/compute/mock_files/vm.xml +54 -0
- data/lib/fog/ovirt/requests/compute/mock_files/vms.xml +152 -0
- data/lib/fog/ovirt/requests/compute/storage_domains.rb +22 -0
- data/lib/fog/ovirt/requests/compute/update_vm.rb +20 -0
- data/lib/fog/ovirt/requests/compute/vm_action.rb +26 -0
- data/lib/fog/providers.rb +29 -0
- data/lib/fog/rackspace.rb +81 -0
- data/lib/fog/rackspace/cdn.rb +101 -0
- data/lib/fog/rackspace/compute.rb +158 -0
- data/lib/fog/rackspace/dns.rb +140 -0
- data/lib/fog/rackspace/load_balancers.rb +159 -0
- data/lib/fog/rackspace/models/compute/flavor.rb +46 -0
- data/lib/fog/rackspace/models/compute/flavors.rb +28 -0
- data/lib/fog/rackspace/models/compute/image.rb +48 -0
- data/lib/fog/rackspace/models/compute/images.rb +33 -0
- data/lib/fog/rackspace/models/compute/server.rb +130 -0
- data/lib/fog/rackspace/models/compute/servers.rb +36 -0
- data/lib/fog/rackspace/models/dns/callback.rb +30 -0
- data/lib/fog/rackspace/models/dns/record.rb +82 -0
- data/lib/fog/rackspace/models/dns/records.rb +38 -0
- data/lib/fog/rackspace/models/dns/zone.rb +67 -0
- data/lib/fog/rackspace/models/dns/zones.rb +33 -0
- data/lib/fog/rackspace/models/load_balancers/access_rule.rb +39 -0
- data/lib/fog/rackspace/models/load_balancers/access_rules.rb +29 -0
- data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +226 -0
- data/lib/fog/rackspace/models/load_balancers/load_balancers.rb +27 -0
- data/lib/fog/rackspace/models/load_balancers/node.rb +58 -0
- data/lib/fog/rackspace/models/load_balancers/nodes.rb +29 -0
- data/lib/fog/rackspace/models/load_balancers/virtual_ip.rb +35 -0
- data/lib/fog/rackspace/models/load_balancers/virtual_ips.rb +32 -0
- data/lib/fog/rackspace/models/storage/directories.rb +43 -0
- data/lib/fog/rackspace/models/storage/directory.rb +80 -0
- data/lib/fog/rackspace/models/storage/file.rb +82 -0
- data/lib/fog/rackspace/models/storage/files.rb +94 -0
- data/lib/fog/rackspace/requests/cdn/get_containers.rb +31 -0
- data/lib/fog/rackspace/requests/cdn/head_container.rb +33 -0
- data/lib/fog/rackspace/requests/cdn/post_container.rb +30 -0
- data/lib/fog/rackspace/requests/cdn/put_container.rb +30 -0
- data/lib/fog/rackspace/requests/compute/confirm_resized_server.rb +34 -0
- data/lib/fog/rackspace/requests/compute/create_image.rb +60 -0
- data/lib/fog/rackspace/requests/compute/create_server.rb +94 -0
- data/lib/fog/rackspace/requests/compute/delete_image.rb +45 -0
- data/lib/fog/rackspace/requests/compute/delete_server.rb +43 -0
- data/lib/fog/rackspace/requests/compute/get_flavor_details.rb +52 -0
- data/lib/fog/rackspace/requests/compute/get_image_details.rb +27 -0
- data/lib/fog/rackspace/requests/compute/get_server_details.rb +52 -0
- data/lib/fog/rackspace/requests/compute/list_addresses.rb +43 -0
- data/lib/fog/rackspace/requests/compute/list_flavors.rb +45 -0
- data/lib/fog/rackspace/requests/compute/list_flavors_detail.rb +47 -0
- data/lib/fog/rackspace/requests/compute/list_images.rb +40 -0
- data/lib/fog/rackspace/requests/compute/list_images_detail.rb +49 -0
- data/lib/fog/rackspace/requests/compute/list_private_addresses.rb +41 -0
- data/lib/fog/rackspace/requests/compute/list_public_addresses.rb +41 -0
- data/lib/fog/rackspace/requests/compute/list_servers.rb +41 -0
- data/lib/fog/rackspace/requests/compute/list_servers_detail.rb +56 -0
- data/lib/fog/rackspace/requests/compute/reboot_server.rb +30 -0
- data/lib/fog/rackspace/requests/compute/resize_server.rb +39 -0
- data/lib/fog/rackspace/requests/compute/revert_resized_server.rb +35 -0
- data/lib/fog/rackspace/requests/compute/server_action.rb +25 -0
- data/lib/fog/rackspace/requests/compute/update_server.rb +45 -0
- data/lib/fog/rackspace/requests/dns/add_records.rb +34 -0
- data/lib/fog/rackspace/requests/dns/callback.rb +19 -0
- data/lib/fog/rackspace/requests/dns/create_domains.rb +48 -0
- data/lib/fog/rackspace/requests/dns/list_domain_details.rb +32 -0
- data/lib/fog/rackspace/requests/dns/list_domains.rb +21 -0
- data/lib/fog/rackspace/requests/dns/list_record_details.rb +21 -0
- data/lib/fog/rackspace/requests/dns/list_records.rb +23 -0
- data/lib/fog/rackspace/requests/dns/list_subdomains.rb +23 -0
- data/lib/fog/rackspace/requests/dns/modify_domain.rb +36 -0
- data/lib/fog/rackspace/requests/dns/modify_record.rb +37 -0
- data/lib/fog/rackspace/requests/dns/remove_domain.rb +29 -0
- data/lib/fog/rackspace/requests/dns/remove_domains.rb +27 -0
- data/lib/fog/rackspace/requests/dns/remove_record.rb +21 -0
- data/lib/fog/rackspace/requests/dns/remove_records.rb +20 -0
- data/lib/fog/rackspace/requests/load_balancers/create_access_rule.rb +24 -0
- data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +26 -0
- data/lib/fog/rackspace/requests/load_balancers/create_node.rb +27 -0
- data/lib/fog/rackspace/requests/load_balancers/create_virtual_ip.rb +20 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_access_rule.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_all_access_rules.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_load_balancer.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_node.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb +16 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_virtual_ip.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_connection_logging.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_connection_throttling.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_error_page.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_load_balancer.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_load_balancer_usage.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/get_monitor.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_node.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_session_persistence.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_usage.rb +20 -0
- data/lib/fog/rackspace/requests/load_balancers/list_access_rules.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_algorithms.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_load_balancers.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/list_nodes.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_protocols.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_virtual_ips.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_connection_throttling.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_error_page.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_monitor.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_session_persistence.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/set_connection_throttling.rb +22 -0
- data/lib/fog/rackspace/requests/load_balancers/set_error_page.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/set_monitor.rb +31 -0
- data/lib/fog/rackspace/requests/load_balancers/set_session_persistence.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb +24 -0
- data/lib/fog/rackspace/requests/load_balancers/update_node.rb +26 -0
- data/lib/fog/rackspace/requests/storage/copy_object.rb +27 -0
- data/lib/fog/rackspace/requests/storage/delete_container.rb +22 -0
- data/lib/fog/rackspace/requests/storage/delete_object.rb +23 -0
- data/lib/fog/rackspace/requests/storage/get_container.rb +44 -0
- data/lib/fog/rackspace/requests/storage/get_containers.rb +33 -0
- data/lib/fog/rackspace/requests/storage/get_object.rb +24 -0
- data/lib/fog/rackspace/requests/storage/head_container.rb +28 -0
- data/lib/fog/rackspace/requests/storage/head_containers.rb +25 -0
- data/lib/fog/rackspace/requests/storage/head_object.rb +23 -0
- data/lib/fog/rackspace/requests/storage/put_container.rb +22 -0
- data/lib/fog/rackspace/requests/storage/put_object.rb +30 -0
- data/lib/fog/rackspace/requests/storage/put_object_manifest.rb +25 -0
- data/lib/fog/rackspace/storage.rb +132 -0
- data/lib/fog/slicehost.rb +12 -0
- data/lib/fog/slicehost/compute.rb +104 -0
- data/lib/fog/slicehost/dns.rb +101 -0
- data/lib/fog/slicehost/models/compute/flavor.rb +45 -0
- data/lib/fog/slicehost/models/compute/flavors.rb +28 -0
- data/lib/fog/slicehost/models/compute/image.rb +17 -0
- data/lib/fog/slicehost/models/compute/images.rb +27 -0
- data/lib/fog/slicehost/models/compute/server.rb +113 -0
- data/lib/fog/slicehost/models/compute/servers.rb +38 -0
- data/lib/fog/slicehost/models/dns/record.rb +73 -0
- data/lib/fog/slicehost/models/dns/records.rb +36 -0
- data/lib/fog/slicehost/models/dns/zone.rb +69 -0
- data/lib/fog/slicehost/models/dns/zones.rb +28 -0
- data/lib/fog/slicehost/parsers/compute/create_slice.rb +31 -0
- data/lib/fog/slicehost/parsers/compute/get_backups.rb +32 -0
- data/lib/fog/slicehost/parsers/compute/get_flavor.rb +26 -0
- data/lib/fog/slicehost/parsers/compute/get_flavors.rb +30 -0
- data/lib/fog/slicehost/parsers/compute/get_image.rb +26 -0
- data/lib/fog/slicehost/parsers/compute/get_images.rb +30 -0
- data/lib/fog/slicehost/parsers/compute/get_slice.rb +31 -0
- data/lib/fog/slicehost/parsers/compute/get_slices.rb +35 -0
- data/lib/fog/slicehost/parsers/dns/create_record.rb +32 -0
- data/lib/fog/slicehost/parsers/dns/create_zone.rb +26 -0
- data/lib/fog/slicehost/parsers/dns/get_record.rb +38 -0
- data/lib/fog/slicehost/parsers/dns/get_records.rb +38 -0
- data/lib/fog/slicehost/parsers/dns/get_zone.rb +26 -0
- data/lib/fog/slicehost/parsers/dns/get_zones.rb +30 -0
- data/lib/fog/slicehost/requests/compute/create_slice.rb +41 -0
- data/lib/fog/slicehost/requests/compute/delete_slice.rb +23 -0
- data/lib/fog/slicehost/requests/compute/get_backups.rb +29 -0
- data/lib/fog/slicehost/requests/compute/get_flavor.rb +32 -0
- data/lib/fog/slicehost/requests/compute/get_flavors.rb +29 -0
- data/lib/fog/slicehost/requests/compute/get_image.rb +30 -0
- data/lib/fog/slicehost/requests/compute/get_images.rb +27 -0
- data/lib/fog/slicehost/requests/compute/get_slice.rb +38 -0
- data/lib/fog/slicehost/requests/compute/get_slices.rb +35 -0
- data/lib/fog/slicehost/requests/compute/reboot_slice.rb +36 -0
- data/lib/fog/slicehost/requests/dns/create_record.rb +52 -0
- data/lib/fog/slicehost/requests/dns/create_zone.rb +46 -0
- data/lib/fog/slicehost/requests/dns/delete_record.rb +23 -0
- data/lib/fog/slicehost/requests/dns/delete_zone.rb +23 -0
- data/lib/fog/slicehost/requests/dns/get_record.rb +32 -0
- data/lib/fog/slicehost/requests/dns/get_records.rb +32 -0
- data/lib/fog/slicehost/requests/dns/get_zone.rb +32 -0
- data/lib/fog/slicehost/requests/dns/get_zones.rb +30 -0
- data/lib/fog/slicehost/requests/dns/update_record.rb +43 -0
- data/lib/fog/storage.rb +81 -0
- data/lib/fog/storm_on_demand.rb +12 -0
- data/lib/fog/storm_on_demand/compute.rb +137 -0
- data/lib/fog/storm_on_demand/models/compute/balancer.rb +38 -0
- data/lib/fog/storm_on_demand/models/compute/balancers.rb +21 -0
- data/lib/fog/storm_on_demand/models/compute/config.rb +25 -0
- data/lib/fog/storm_on_demand/models/compute/configs.rb +22 -0
- data/lib/fog/storm_on_demand/models/compute/image.rb +20 -0
- data/lib/fog/storm_on_demand/models/compute/images.rb +21 -0
- data/lib/fog/storm_on_demand/models/compute/private_ip.rb +19 -0
- data/lib/fog/storm_on_demand/models/compute/private_ips.rb +31 -0
- data/lib/fog/storm_on_demand/models/compute/server.rb +74 -0
- data/lib/fog/storm_on_demand/models/compute/servers.rb +26 -0
- data/lib/fog/storm_on_demand/models/compute/stat.rb +23 -0
- data/lib/fog/storm_on_demand/models/compute/stats.rb +22 -0
- data/lib/fog/storm_on_demand/models/compute/template.rb +22 -0
- data/lib/fog/storm_on_demand/models/compute/templates.rb +21 -0
- data/lib/fog/storm_on_demand/requests/compute/add_balancer_node.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/clone_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/create_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/delete_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/get_stats.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_balancers.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_configs.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_images.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_private_ips.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_servers.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/list_templates.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/reboot_server.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/remove_balancer_node.rb +16 -0
- data/lib/fog/storm_on_demand/requests/compute/resize_server.rb +16 -0
- data/lib/fog/terremark.rb +11 -0
- data/lib/fog/terremark/models/shared/address.rb +29 -0
- data/lib/fog/terremark/models/shared/addresses.rb +49 -0
- data/lib/fog/terremark/models/shared/network.rb +35 -0
- data/lib/fog/terremark/models/shared/networks.rb +52 -0
- data/lib/fog/terremark/models/shared/server.rb +110 -0
- data/lib/fog/terremark/models/shared/servers.rb +55 -0
- data/lib/fog/terremark/models/shared/task.rb +50 -0
- data/lib/fog/terremark/models/shared/tasks.rb +58 -0
- data/lib/fog/terremark/models/shared/vdc.rb +39 -0
- data/lib/fog/terremark/models/shared/vdcs.rb +52 -0
- data/lib/fog/terremark/parser.rb +19 -0
- data/lib/fog/terremark/parsers/shared/get_catalog.rb +46 -0
- data/lib/fog/terremark/parsers/shared/get_catalog_item.rb +46 -0
- data/lib/fog/terremark/parsers/shared/get_internet_services.rb +60 -0
- data/lib/fog/terremark/parsers/shared/get_network_ips.rb +29 -0
- data/lib/fog/terremark/parsers/shared/get_node_services.rb +36 -0
- data/lib/fog/terremark/parsers/shared/get_organization.rb +52 -0
- data/lib/fog/terremark/parsers/shared/get_organizations.rb +32 -0
- data/lib/fog/terremark/parsers/shared/get_public_ips.rb +30 -0
- data/lib/fog/terremark/parsers/shared/get_tasks_list.rb +52 -0
- data/lib/fog/terremark/parsers/shared/get_vapp_template.rb +46 -0
- data/lib/fog/terremark/parsers/shared/get_vdc.rb +123 -0
- data/lib/fog/terremark/parsers/shared/instantiate_vapp_template.rb +41 -0
- data/lib/fog/terremark/parsers/shared/internet_service.rb +65 -0
- data/lib/fog/terremark/parsers/shared/network.rb +51 -0
- data/lib/fog/terremark/parsers/shared/node_service.rb +32 -0
- data/lib/fog/terremark/parsers/shared/public_ip.rb +26 -0
- data/lib/fog/terremark/parsers/shared/task.rb +40 -0
- data/lib/fog/terremark/parsers/shared/vapp.rb +77 -0
- data/lib/fog/terremark/requests/shared/add_internet_service.rb +55 -0
- data/lib/fog/terremark/requests/shared/add_node_service.rb +55 -0
- data/lib/fog/terremark/requests/shared/create_internet_service.rb +55 -0
- data/lib/fog/terremark/requests/shared/delete_internet_service.rb +22 -0
- data/lib/fog/terremark/requests/shared/delete_node_service.rb +22 -0
- data/lib/fog/terremark/requests/shared/delete_public_ip.rb +22 -0
- data/lib/fog/terremark/requests/shared/delete_vapp.rb +22 -0
- data/lib/fog/terremark/requests/shared/deploy_vapp.rb +35 -0
- data/lib/fog/terremark/requests/shared/get_catalog.rb +32 -0
- data/lib/fog/terremark/requests/shared/get_catalog_item.rb +35 -0
- data/lib/fog/terremark/requests/shared/get_internet_services.rb +35 -0
- data/lib/fog/terremark/requests/shared/get_network.rb +73 -0
- data/lib/fog/terremark/requests/shared/get_network_ips.rb +32 -0
- data/lib/fog/terremark/requests/shared/get_node_services.rb +30 -0
- data/lib/fog/terremark/requests/shared/get_organization.rb +86 -0
- data/lib/fog/terremark/requests/shared/get_organizations.rb +49 -0
- data/lib/fog/terremark/requests/shared/get_public_ip.rb +33 -0
- data/lib/fog/terremark/requests/shared/get_public_ips.rb +72 -0
- data/lib/fog/terremark/requests/shared/get_task.rb +39 -0
- data/lib/fog/terremark/requests/shared/get_tasks_list.rb +33 -0
- data/lib/fog/terremark/requests/shared/get_vapp.rb +42 -0
- data/lib/fog/terremark/requests/shared/get_vapp_template.rb +35 -0
- data/lib/fog/terremark/requests/shared/get_vdc.rb +125 -0
- data/lib/fog/terremark/requests/shared/instantiate_vapp_template.rb +71 -0
- data/lib/fog/terremark/requests/shared/power_off.rb +35 -0
- data/lib/fog/terremark/requests/shared/power_on.rb +35 -0
- data/lib/fog/terremark/requests/shared/power_reset.rb +35 -0
- data/lib/fog/terremark/requests/shared/power_shutdown.rb +24 -0
- data/lib/fog/terremark/shared.rb +293 -0
- data/lib/fog/terremark/vcloud.rb +126 -0
- data/lib/fog/vcloud.rb +11 -0
- data/lib/fog/vcloud/compute.rb +372 -0
- data/lib/fog/vcloud/models/compute/catalog.rb +22 -0
- data/lib/fog/vcloud/models/compute/catalog_item.rb +29 -0
- data/lib/fog/vcloud/models/compute/catalog_items.rb +32 -0
- data/lib/fog/vcloud/models/compute/catalogs.rb +38 -0
- data/lib/fog/vcloud/models/compute/helpers/status.rb +37 -0
- data/lib/fog/vcloud/models/compute/ip.rb +42 -0
- data/lib/fog/vcloud/models/compute/ips.rb +33 -0
- data/lib/fog/vcloud/models/compute/network.rb +23 -0
- data/lib/fog/vcloud/models/compute/networks.rb +48 -0
- data/lib/fog/vcloud/models/compute/organization.rb +43 -0
- data/lib/fog/vcloud/models/compute/organizations.rb +32 -0
- data/lib/fog/vcloud/models/compute/server.rb +271 -0
- data/lib/fog/vcloud/models/compute/servers.rb +52 -0
- data/lib/fog/vcloud/models/compute/task.rb +21 -0
- data/lib/fog/vcloud/models/compute/tasks.rb +30 -0
- data/lib/fog/vcloud/models/compute/vapp.rb +43 -0
- data/lib/fog/vcloud/models/compute/vapps.rb +28 -0
- data/lib/fog/vcloud/models/compute/vdc.rb +41 -0
- data/lib/fog/vcloud/models/compute/vdcs.rb +35 -0
- data/lib/fog/vcloud/requests/compute/clone_vapp.rb +40 -0
- data/lib/fog/vcloud/requests/compute/configure_network.rb +43 -0
- data/lib/fog/vcloud/requests/compute/configure_network_ip.rb +46 -0
- data/lib/fog/vcloud/requests/compute/configure_node.rb +38 -0
- data/lib/fog/vcloud/requests/compute/configure_vapp.rb +112 -0
- data/lib/fog/vcloud/requests/compute/configure_vm.rb +247 -0
- data/lib/fog/vcloud/requests/compute/configure_vm_disks.rb +100 -0
- data/lib/fog/vcloud/requests/compute/configure_vm_memory.rb +40 -0
- data/lib/fog/vcloud/requests/compute/configure_vm_name_description.rb +30 -0
- data/lib/fog/vcloud/requests/compute/delete_node.rb +10 -0
- data/lib/fog/vcloud/requests/compute/delete_vapp.rb +10 -0
- data/lib/fog/vcloud/requests/compute/get_catalog.rb +10 -0
- data/lib/fog/vcloud/requests/compute/get_catalog_item.rb +10 -0
- data/lib/fog/vcloud/requests/compute/get_customization_options.rb +10 -0
- data/lib/fog/vcloud/requests/compute/get_network.rb +10 -0
- data/lib/fog/vcloud/requests/compute/get_network_extensions.rb +11 -0
- data/lib/fog/vcloud/requests/compute/get_network_ip.rb +15 -0
- data/lib/fog/vcloud/requests/compute/get_network_ips.rb +15 -0
- data/lib/fog/vcloud/requests/compute/get_organization.rb +11 -0
- data/lib/fog/vcloud/requests/compute/get_server.rb +10 -0
- data/lib/fog/vcloud/requests/compute/get_task.rb +11 -0
- data/lib/fog/vcloud/requests/compute/get_task_list.rb +11 -0
- data/lib/fog/vcloud/requests/compute/get_vapp.rb +10 -0
- data/lib/fog/vcloud/requests/compute/get_vapp_template.rb +11 -0
- data/lib/fog/vcloud/requests/compute/get_vdc.rb +10 -0
- data/lib/fog/vcloud/requests/compute/get_vm_disks.rb +16 -0
- data/lib/fog/vcloud/requests/compute/get_vm_memory.rb +16 -0
- data/lib/fog/vcloud/requests/compute/instantiate_vapp_template.rb +83 -0
- data/lib/fog/vcloud/requests/compute/login.rb +27 -0
- data/lib/fog/vcloud/requests/compute/power_off.rb +10 -0
- data/lib/fog/vcloud/requests/compute/power_on.rb +11 -0
- data/lib/fog/vcloud/requests/compute/power_reset.rb +11 -0
- data/lib/fog/vcloud/requests/compute/power_shutdown.rb +11 -0
- data/lib/fog/vcloud/requests/compute/undeploy.rb +23 -0
- data/lib/fog/virtual_box.rb +11 -0
- data/lib/fog/virtual_box/compute.rb +53 -0
- data/lib/fog/virtual_box/models/compute/medium.rb +87 -0
- data/lib/fog/virtual_box/models/compute/medium_format.rb +34 -0
- data/lib/fog/virtual_box/models/compute/mediums.rb +32 -0
- data/lib/fog/virtual_box/models/compute/nat_engine.rb +65 -0
- data/lib/fog/virtual_box/models/compute/nat_redirect.rb +91 -0
- data/lib/fog/virtual_box/models/compute/nat_redirects.rb +41 -0
- data/lib/fog/virtual_box/models/compute/network_adapter.rb +82 -0
- data/lib/fog/virtual_box/models/compute/network_adapters.rb +42 -0
- data/lib/fog/virtual_box/models/compute/server.rb +241 -0
- data/lib/fog/virtual_box/models/compute/servers.rb +41 -0
- data/lib/fog/virtual_box/models/compute/storage_controller.rb +83 -0
- data/lib/fog/virtual_box/models/compute/storage_controllers.rb +38 -0
- data/lib/fog/vmfusion.rb +11 -0
- data/lib/fog/vmfusion/compute.rb +29 -0
- data/lib/fog/vmfusion/models/compute/server.rb +291 -0
- data/lib/fog/vmfusion/models/compute/servers.rb +41 -0
- data/lib/fog/voxel.rb +16 -0
- data/lib/fog/voxel/compute.rb +125 -0
- data/lib/fog/voxel/models/compute/image.rb +15 -0
- data/lib/fog/voxel/models/compute/images.rb +30 -0
- data/lib/fog/voxel/models/compute/server.rb +78 -0
- data/lib/fog/voxel/models/compute/servers.rb +32 -0
- data/lib/fog/voxel/parsers/compute/basic.rb +31 -0
- data/lib/fog/voxel/parsers/compute/devices_list.rb +111 -0
- data/lib/fog/voxel/parsers/compute/images_list.rb +59 -0
- data/lib/fog/voxel/parsers/compute/voxcloud_create.rb +40 -0
- data/lib/fog/voxel/parsers/compute/voxcloud_delete.rb +31 -0
- data/lib/fog/voxel/parsers/compute/voxcloud_status.rb +42 -0
- data/lib/fog/voxel/requests/compute/devices_list.rb +24 -0
- data/lib/fog/voxel/requests/compute/devices_power.rb +22 -0
- data/lib/fog/voxel/requests/compute/images_list.rb +31 -0
- data/lib/fog/voxel/requests/compute/voxcloud_create.rb +22 -0
- data/lib/fog/voxel/requests/compute/voxcloud_delete.rb +20 -0
- data/lib/fog/voxel/requests/compute/voxcloud_status.rb +24 -0
- data/lib/fog/vsphere.rb +17 -0
- data/lib/fog/vsphere/compute.rb +180 -0
- data/lib/fog/vsphere/models/compute/server.rb +100 -0
- data/lib/fog/vsphere/models/compute/servers.rb +43 -0
- data/lib/fog/vsphere/requests/compute/current_time.rb +22 -0
- data/lib/fog/vsphere/requests/compute/datacenters.rb +34 -0
- data/lib/fog/vsphere/requests/compute/find_vm_by_ref.rb +41 -0
- data/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +236 -0
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +171 -0
- data/lib/fog/vsphere/requests/compute/vm_create.rb +97 -0
- data/lib/fog/vsphere/requests/compute/vm_destroy.rb +34 -0
- data/lib/fog/vsphere/requests/compute/vm_power_off.rb +41 -0
- data/lib/fog/vsphere/requests/compute/vm_power_on.rb +30 -0
- data/lib/fog/vsphere/requests/compute/vm_reboot.rb +35 -0
- data/lib/fog/vsphere/requests/compute/vm_reconfig_cpus.rb +23 -0
- data/lib/fog/vsphere/requests/compute/vm_reconfig_hardware.rb +25 -0
- data/lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb +23 -0
- data/lib/fog/zerigo.rb +11 -0
- data/lib/fog/zerigo/dns.rb +120 -0
- data/lib/fog/zerigo/models/dns/record.rb +70 -0
- data/lib/fog/zerigo/models/dns/records.rb +46 -0
- data/lib/fog/zerigo/models/dns/zone.rb +88 -0
- data/lib/fog/zerigo/models/dns/zones.rb +30 -0
- data/lib/fog/zerigo/parsers/dns/count_hosts.rb +24 -0
- data/lib/fog/zerigo/parsers/dns/count_zones.rb +24 -0
- data/lib/fog/zerigo/parsers/dns/create_host.rb +28 -0
- data/lib/fog/zerigo/parsers/dns/create_zone.rb +26 -0
- data/lib/fog/zerigo/parsers/dns/find_hosts.rb +32 -0
- data/lib/fog/zerigo/parsers/dns/get_host.rb +28 -0
- data/lib/fog/zerigo/parsers/dns/get_zone.rb +58 -0
- data/lib/fog/zerigo/parsers/dns/get_zone_stats.rb +26 -0
- data/lib/fog/zerigo/parsers/dns/list_hosts.rb +32 -0
- data/lib/fog/zerigo/parsers/dns/list_zones.rb +30 -0
- data/lib/fog/zerigo/requests/dns/count_hosts.rb +47 -0
- data/lib/fog/zerigo/requests/dns/count_zones.rb +39 -0
- data/lib/fog/zerigo/requests/dns/create_host.rb +128 -0
- data/lib/fog/zerigo/requests/dns/create_zone.rb +132 -0
- data/lib/fog/zerigo/requests/dns/delete_host.rb +43 -0
- data/lib/fog/zerigo/requests/dns/delete_zone.rb +42 -0
- data/lib/fog/zerigo/requests/dns/find_hosts.rb +76 -0
- data/lib/fog/zerigo/requests/dns/get_host.rb +56 -0
- data/lib/fog/zerigo/requests/dns/get_zone.rb +66 -0
- data/lib/fog/zerigo/requests/dns/get_zone_stats.rb +59 -0
- data/lib/fog/zerigo/requests/dns/list_hosts.rb +59 -0
- data/lib/fog/zerigo/requests/dns/list_zones.rb +60 -0
- data/lib/fog/zerigo/requests/dns/update_host.rb +71 -0
- data/lib/fog/zerigo/requests/dns/update_zone.rb +89 -0
- data/spec/core/current_machine_spec.rb +22 -0
- data/spec/ecloud/bin_spec.rb +28 -0
- data/spec/ecloud/models/backup_internet_service_spec.rb +48 -0
- data/spec/ecloud/models/backup_internet_services_spec.rb +28 -0
- data/spec/ecloud/models/internet_service_spec.rb +104 -0
- data/spec/ecloud/models/internet_services_spec.rb +29 -0
- data/spec/ecloud/models/ip_spec.rb +33 -0
- data/spec/ecloud/models/ips_spec.rb +28 -0
- data/spec/ecloud/models/network_spec.rb +71 -0
- data/spec/ecloud/models/networks_spec.rb +27 -0
- data/spec/ecloud/models/node_spec.rb +38 -0
- data/spec/ecloud/models/nodes_spec.rb +28 -0
- data/spec/ecloud/models/public_ip_spec.rb +36 -0
- data/spec/ecloud/models/public_ips_spec.rb +27 -0
- data/spec/ecloud/models/server_spec.rb +62 -0
- data/spec/ecloud/models/vdc_spec.rb +63 -0
- data/spec/ecloud/models/vdcs_spec.rb +28 -0
- data/spec/ecloud/requests/add_backup_internet_service_spec.rb +60 -0
- data/spec/ecloud/requests/add_internet_service_spec.rb +65 -0
- data/spec/ecloud/requests/add_node_spec.rb +56 -0
- data/spec/ecloud/requests/configure_internet_service_spec.rb +61 -0
- data/spec/ecloud/requests/configure_network_ip_spec.rb +55 -0
- data/spec/ecloud/requests/configure_node_spec.rb +52 -0
- data/spec/ecloud/requests/configure_vapp_spec.rb +71 -0
- data/spec/ecloud/requests/delete_internet_service_spec.rb +34 -0
- data/spec/ecloud/requests/delete_node_spec.rb +30 -0
- data/spec/ecloud/requests/delete_vapp_spec.rb +92 -0
- data/spec/ecloud/requests/get_catalog_item_spec.rb +62 -0
- data/spec/ecloud/requests/get_catalog_spec.rb +44 -0
- data/spec/ecloud/requests/get_customization_options_spec.rb +39 -0
- data/spec/ecloud/requests/get_internet_services_spec.rb +150 -0
- data/spec/ecloud/requests/get_network_ip_spec.rb +40 -0
- data/spec/ecloud/requests/get_network_ips_spec.rb +58 -0
- data/spec/ecloud/requests/get_network_spec.rb +49 -0
- data/spec/ecloud/requests/get_node_spec.rb +41 -0
- data/spec/ecloud/requests/get_nodes_spec.rb +58 -0
- data/spec/ecloud/requests/get_organization_spec.rb +52 -0
- data/spec/ecloud/requests/get_public_ip_spec.rb +38 -0
- data/spec/ecloud/requests/get_public_ips_spec.rb +52 -0
- data/spec/ecloud/requests/get_vapp_spec.rb +125 -0
- data/spec/ecloud/requests/get_vdc_spec.rb +112 -0
- data/spec/ecloud/requests/get_versions_spec.rb +57 -0
- data/spec/ecloud/requests/instantiate_vapp_template_spec.rb +95 -0
- data/spec/ecloud/requests/login_spec.rb +10 -0
- data/spec/ecloud/requests/power_off_spec.rb +34 -0
- data/spec/ecloud/requests/power_on_spec.rb +34 -0
- data/spec/ecloud/spec_helper.rb +387 -0
- data/spec/ecloud/vcloud_spec.rb +18 -0
- data/spec/lib/fog/aws/parsers/sqs/receive_message_spec.rb +58 -0
- data/spec/spec_helper.rb +8 -0
- data/tests/aws/models/auto_scaling/activities_tests.rb +6 -0
- data/tests/aws/models/auto_scaling/configuration_test.rb +13 -0
- data/tests/aws/models/auto_scaling/configurations_tests.rb +11 -0
- data/tests/aws/models/auto_scaling/helper.rb +0 -0
- data/tests/aws/models/auto_scaling/instances_tests.rb +6 -0
- data/tests/aws/models/cloud_watch/alarm_data_tests.rb +42 -0
- data/tests/aws/models/cloud_watch/alarm_history_tests.rb +22 -0
- data/tests/aws/models/cloud_watch/metric_statistics_tests.rb +51 -0
- data/tests/aws/models/cloud_watch/metrics_tests.rb +17 -0
- data/tests/aws/models/compute/address_tests.rb +16 -0
- data/tests/aws/models/compute/addresses_tests.rb +5 -0
- data/tests/aws/models/compute/key_pair_tests.rb +27 -0
- data/tests/aws/models/compute/key_pairs_tests.rb +5 -0
- data/tests/aws/models/compute/security_group_tests.rb +37 -0
- data/tests/aws/models/compute/security_groups_tests.rb +5 -0
- data/tests/aws/models/compute/server_tests.rb +63 -0
- data/tests/aws/models/compute/snapshot_tests.rb +10 -0
- data/tests/aws/models/compute/snapshots_tests.rb +10 -0
- data/tests/aws/models/compute/volume_tests.rb +39 -0
- data/tests/aws/models/compute/volumes_tests.rb +5 -0
- data/tests/aws/models/dns/record_tests.rb +23 -0
- data/tests/aws/models/dns/records_tests.rb +23 -0
- data/tests/aws/models/dns/zone_tests.rb +4 -0
- data/tests/aws/models/dns/zones_tests.rb +4 -0
- data/tests/aws/models/elasticache/cluster_tests.rb +30 -0
- data/tests/aws/models/elasticache/parameter_groups_tests.rb +17 -0
- data/tests/aws/models/elasticache/security_groups_tests.rb +52 -0
- data/tests/aws/models/elb/model_tests.rb +262 -0
- data/tests/aws/models/rds/helper.rb +5 -0
- data/tests/aws/models/rds/parameter_group_tests.rb +24 -0
- data/tests/aws/models/rds/parameter_groups_tests.rb +8 -0
- data/tests/aws/models/rds/security_group_tests.rb +53 -0
- data/tests/aws/models/rds/security_groups_tests.rb +5 -0
- data/tests/aws/models/rds/server_tests.rb +106 -0
- data/tests/aws/models/rds/servers_tests.rb +6 -0
- data/tests/aws/models/rds/snapshot_tests.rb +13 -0
- data/tests/aws/models/rds/snapshots_tests.rb +13 -0
- data/tests/aws/models/storage/directory_tests.rb +51 -0
- data/tests/aws/models/storage/file_tests.rb +78 -0
- data/tests/aws/models/storage/files_tests.rb +56 -0
- data/tests/aws/models/storage/version_tests.rb +52 -0
- data/tests/aws/models/storage/versions_tests.rb +56 -0
- data/tests/aws/requests/auto_scaling/auto_scaling_tests.rb +80 -0
- data/tests/aws/requests/auto_scaling/helper.rb +185 -0
- data/tests/aws/requests/auto_scaling/model_tests.rb +235 -0
- data/tests/aws/requests/cloud_formation/stack_tests.rb +157 -0
- data/tests/aws/requests/cloud_watch/get_metric_statistics_tests.rb +28 -0
- data/tests/aws/requests/cloud_watch/list_metrics_test.rb +64 -0
- data/tests/aws/requests/cloud_watch/put_metric_data_tests.rb +36 -0
- data/tests/aws/requests/compute/address_tests.rb +78 -0
- data/tests/aws/requests/compute/availability_zone_tests.rb +25 -0
- data/tests/aws/requests/compute/helper.rb +16 -0
- data/tests/aws/requests/compute/image_tests.rb +107 -0
- data/tests/aws/requests/compute/instance_tests.rb +286 -0
- data/tests/aws/requests/compute/key_pair_tests.rb +67 -0
- data/tests/aws/requests/compute/placement_group_tests.rb +48 -0
- data/tests/aws/requests/compute/region_tests.rb +23 -0
- data/tests/aws/requests/compute/security_group_tests.rb +363 -0
- data/tests/aws/requests/compute/snapshot_tests.rb +57 -0
- data/tests/aws/requests/compute/spot_datafeed_subscription_tests.rb +47 -0
- data/tests/aws/requests/compute/spot_instance_tests.rb +53 -0
- data/tests/aws/requests/compute/spot_price_history_tests.rb +24 -0
- data/tests/aws/requests/compute/tag_tests.rb +77 -0
- data/tests/aws/requests/compute/volume_tests.rb +122 -0
- data/tests/aws/requests/dns/dns_tests.rb +289 -0
- data/tests/aws/requests/dynamodb/item_tests.rb +117 -0
- data/tests/aws/requests/dynamodb/table_tests.rb +99 -0
- data/tests/aws/requests/elasticache/cache_cluster_tests.rb +137 -0
- data/tests/aws/requests/elasticache/describe_events.rb +17 -0
- data/tests/aws/requests/elasticache/helper.rb +68 -0
- data/tests/aws/requests/elasticache/parameter_group_tests.rb +105 -0
- data/tests/aws/requests/elasticache/security_group_tests.rb +107 -0
- data/tests/aws/requests/elb/helper.rb +80 -0
- data/tests/aws/requests/elb/listener_tests.rb +68 -0
- data/tests/aws/requests/elb/load_balancer_tests.rb +61 -0
- data/tests/aws/requests/elb/policy_tests.rb +54 -0
- data/tests/aws/requests/emr/helper.rb +172 -0
- data/tests/aws/requests/emr/instance_group_tests.rb +106 -0
- data/tests/aws/requests/emr/job_flow_tests.rb +88 -0
- data/tests/aws/requests/iam/access_key_tests.rb +55 -0
- data/tests/aws/requests/iam/group_policy_tests.rb +42 -0
- data/tests/aws/requests/iam/group_tests.rb +44 -0
- data/tests/aws/requests/iam/helper.rb +104 -0
- data/tests/aws/requests/iam/login_profile_tests.rb +64 -0
- data/tests/aws/requests/iam/server_certificate_tests.rb +95 -0
- data/tests/aws/requests/iam/user_policy_tests.rb +35 -0
- data/tests/aws/requests/iam/user_tests.rb +72 -0
- data/tests/aws/requests/rds/helper.rb +204 -0
- data/tests/aws/requests/rds/instance_tests.rb +127 -0
- data/tests/aws/requests/rds/parameter_group_tests.rb +68 -0
- data/tests/aws/requests/rds/parameter_request_tests.rb +35 -0
- data/tests/aws/requests/rds/security_group_tests.rb +101 -0
- data/tests/aws/requests/ses/helper.rb +15 -0
- data/tests/aws/requests/ses/verified_email_address_tests.rb +27 -0
- data/tests/aws/requests/simpledb/attributes_tests.rb +86 -0
- data/tests/aws/requests/simpledb/domain_tests.rb +51 -0
- data/tests/aws/requests/simpledb/helper.rb +16 -0
- data/tests/aws/requests/sns/helper.rb +9 -0
- data/tests/aws/requests/sns/subscription_tests.rb +86 -0
- data/tests/aws/requests/sns/topic_tests.rb +50 -0
- data/tests/aws/requests/sqs/helper.rb +15 -0
- data/tests/aws/requests/sqs/message_tests.rb +51 -0
- data/tests/aws/requests/sqs/queue_tests.rb +50 -0
- data/tests/aws/requests/storage/acl_utils_tests.rb +209 -0
- data/tests/aws/requests/storage/bucket_tests.rb +294 -0
- data/tests/aws/requests/storage/multipart_upload_tests.rb +132 -0
- data/tests/aws/requests/storage/object_tests.rb +135 -0
- data/tests/aws/requests/storage/versioning_tests.rb +188 -0
- data/tests/aws/requests/sts/get_federation_token_tests.rb +21 -0
- data/tests/aws/requests/sts/session_token_tests.rb +16 -0
- data/tests/aws/signed_params_tests.rb +5 -0
- data/tests/bluebox/requests/compute/block_tests.rb +82 -0
- data/tests/bluebox/requests/compute/helper.rb +22 -0
- data/tests/bluebox/requests/compute/location_tests.rb +32 -0
- data/tests/bluebox/requests/compute/product_tests.rb +34 -0
- data/tests/bluebox/requests/compute/template_tests.rb +37 -0
- data/tests/bluebox/requests/dns/dns_tests.rb +259 -0
- data/tests/brightbox/requests/compute/account_tests.rb +37 -0
- data/tests/brightbox/requests/compute/api_client_tests.rb +64 -0
- data/tests/brightbox/requests/compute/cloud_ip_tests.rb +86 -0
- data/tests/brightbox/requests/compute/helper.rb +597 -0
- data/tests/brightbox/requests/compute/image_tests.rb +60 -0
- data/tests/brightbox/requests/compute/interface_tests.rb +31 -0
- data/tests/brightbox/requests/compute/load_balancer_tests.rb +121 -0
- data/tests/brightbox/requests/compute/server_group_tests.rb +96 -0
- data/tests/brightbox/requests/compute/server_tests.rb +96 -0
- data/tests/brightbox/requests/compute/server_type_tests.rb +34 -0
- data/tests/brightbox/requests/compute/user_tests.rb +36 -0
- data/tests/brightbox/requests/compute/zone_tests.rb +34 -0
- data/tests/clodo/requests/compute/image_tests.rb +36 -0
- data/tests/clodo/requests/compute/server_tests.rb +152 -0
- data/tests/cloudstack/requests/disk_offering_tests.rb +29 -0
- data/tests/cloudstack/requests/os_type_tests.rb +38 -0
- data/tests/cloudstack/requests/security_group_tests.rb +29 -0
- data/tests/cloudstack/requests/service_offering_tests.rb +38 -0
- data/tests/cloudstack/requests/snapshot_tests.rb +32 -0
- data/tests/cloudstack/requests/ssh_key_pair_tests.rb +23 -0
- data/tests/cloudstack/requests/template_tests.rb +53 -0
- data/tests/cloudstack/requests/virtual_machine_tests.rb +71 -0
- data/tests/cloudstack/requests/volume_tests.rb +48 -0
- data/tests/cloudstack/requests/zone_tests.rb +33 -0
- data/tests/cloudstack/signed_params_tests.rb +12 -0
- data/tests/compute/helper.rb +56 -0
- data/tests/compute/models/flavors_tests.rb +11 -0
- data/tests/compute/models/server_tests.rb +20 -0
- data/tests/compute/models/servers_tests.rb +9 -0
- data/tests/core/attribute_tests.rb +83 -0
- data/tests/core/credential_tests.rb +66 -0
- data/tests/core/mocking_tests.rb +60 -0
- data/tests/core/parser_tests.rb +67 -0
- data/tests/core/timeout_tests.rb +10 -0
- data/tests/dns/helper.rb +55 -0
- data/tests/dns/models/record_tests.rb +30 -0
- data/tests/dns/models/records_tests.rb +30 -0
- data/tests/dns/models/zone_tests.rb +18 -0
- data/tests/dns/models/zones_tests.rb +18 -0
- data/tests/dnsimple/requests/dns/dns_tests.rb +118 -0
- data/tests/dnsmadeeasy/requests/dns/dns_tests.rb +138 -0
- data/tests/dynect/requests/dns/dns_tests.rb +193 -0
- data/tests/glesys/requests/compute/helper.rb +261 -0
- data/tests/glesys/requests/compute/ip_tests.rb +67 -0
- data/tests/glesys/requests/compute/server_tests.rb +125 -0
- data/tests/glesys/requests/compute/template_tests.rb +12 -0
- data/tests/go_grid/requests/compute/image_tests.rb +0 -0
- data/tests/google/requests/storage/bucket_tests.rb +78 -0
- data/tests/google/requests/storage/object_tests.rb +81 -0
- data/tests/helper.rb +20 -0
- data/tests/helpers/collection_helper.rb +59 -0
- data/tests/helpers/compute/flavors_helper.rb +34 -0
- data/tests/helpers/compute/server_helper.rb +26 -0
- data/tests/helpers/compute/servers_helper.rb +11 -0
- data/tests/helpers/formats_helper.rb +84 -0
- data/tests/helpers/formats_helper_tests.rb +51 -0
- data/tests/helpers/mock_helper.rb +72 -0
- data/tests/helpers/model_helper.rb +38 -0
- data/tests/helpers/responds_to_helper.rb +13 -0
- data/tests/helpers/succeeds_helper.rb +12 -0
- data/tests/joyent/requests/compute/datasets_tests.rb +49 -0
- data/tests/joyent/requests/compute/keys_tests.rb +47 -0
- data/tests/joyent/requests/compute/machines_tests.rb +67 -0
- data/tests/joyent/requests/compute/packages_tests.rb +68 -0
- data/tests/linode/requests/compute/datacenter_tests.rb +19 -0
- data/tests/linode/requests/compute/distribution_tests.rb +32 -0
- data/tests/linode/requests/compute/helper.rb +16 -0
- data/tests/linode/requests/compute/kernel_tests.rb +27 -0
- data/tests/linode/requests/compute/linode_tests.rb +143 -0
- data/tests/linode/requests/compute/linodeplans_tests.rb +40 -0
- data/tests/linode/requests/compute/stackscripts_tests.rb +36 -0
- data/tests/linode/requests/dns/dns_tests.rb +250 -0
- data/tests/lorem.txt +1 -0
- data/tests/ninefold/models/storage/file_update_tests.rb +19 -0
- data/tests/ninefold/models/storage/nested_directories_tests.rb +23 -0
- data/tests/ninefold/requests/compute/address_tests.rb +42 -0
- data/tests/ninefold/requests/compute/async_job_tests.rb +33 -0
- data/tests/ninefold/requests/compute/helper.rb +317 -0
- data/tests/ninefold/requests/compute/list_tests.rb +56 -0
- data/tests/ninefold/requests/compute/nat_tests.rb +92 -0
- data/tests/ninefold/requests/compute/network_tests.rb +21 -0
- data/tests/ninefold/requests/compute/template_tests.rb +21 -0
- data/tests/ninefold/requests/compute/virtual_machine_tests.rb +69 -0
- data/tests/openstack/requests/compute/flavor_tests.rb +35 -0
- data/tests/openstack/requests/compute/helper.rb +17 -0
- data/tests/openstack/requests/compute/image_tests.rb +59 -0
- data/tests/openstack/requests/compute/server_tests.rb +142 -0
- data/tests/ovirt/compute_tests.rb +22 -0
- data/tests/ovirt/models/compute/cluster_tests.rb +31 -0
- data/tests/ovirt/models/compute/clusters_tests.rb +9 -0
- data/tests/ovirt/models/compute/server_tests.rb +51 -0
- data/tests/ovirt/models/compute/servers_tests.rb +14 -0
- data/tests/ovirt/models/compute/template_tests.rb +28 -0
- data/tests/ovirt/models/compute/templates_tests.rb +9 -0
- data/tests/ovirt/requests/compute/create_vm_tests.rb +26 -0
- data/tests/ovirt/requests/compute/destroy_vm_tests.rb +18 -0
- data/tests/ovirt/requests/compute/list_datacenters_tests.rb +13 -0
- data/tests/ovirt/requests/compute/list_storage_domains_tests.rb +13 -0
- data/tests/ovirt/requests/compute/update_vm_tests.rb +18 -0
- data/tests/rackspace/helper.rb +24 -0
- data/tests/rackspace/load_balancer_tests.rb +21 -0
- data/tests/rackspace/models/dns/zone_tests.rb +14 -0
- data/tests/rackspace/models/load_balancers/access_list_tests.rb +12 -0
- data/tests/rackspace/models/load_balancers/access_lists_tests.rb +12 -0
- data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +141 -0
- data/tests/rackspace/models/load_balancers/load_balancers_tests.rb +19 -0
- data/tests/rackspace/models/load_balancers/node_tests.rb +19 -0
- data/tests/rackspace/models/load_balancers/nodes_tests.rb +12 -0
- data/tests/rackspace/models/load_balancers/virtual_ip_tests.rb +16 -0
- data/tests/rackspace/models/load_balancers/virtual_ips_tests.rb +12 -0
- data/tests/rackspace/requests/compute/address_tests.rb +40 -0
- data/tests/rackspace/requests/compute/flavor_tests.rb +38 -0
- data/tests/rackspace/requests/compute/helper.rb +16 -0
- data/tests/rackspace/requests/compute/image_tests.rb +68 -0
- data/tests/rackspace/requests/compute/resize_tests.rb +33 -0
- data/tests/rackspace/requests/compute/server_tests.rb +92 -0
- data/tests/rackspace/requests/dns/dns_tests.rb +125 -0
- data/tests/rackspace/requests/dns/helper.rb +140 -0
- data/tests/rackspace/requests/dns/records_tests.rb +83 -0
- data/tests/rackspace/requests/load_balancers/access_list_tests.rb +56 -0
- data/tests/rackspace/requests/load_balancers/algorithm_tests.rb +19 -0
- data/tests/rackspace/requests/load_balancers/connection_logging_tests.rb +25 -0
- data/tests/rackspace/requests/load_balancers/connection_throttling_tests.rb +37 -0
- data/tests/rackspace/requests/load_balancers/error_page_tests.rb +31 -0
- data/tests/rackspace/requests/load_balancers/helper.rb +139 -0
- data/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +66 -0
- data/tests/rackspace/requests/load_balancers/load_balancer_usage_tests.rb +19 -0
- data/tests/rackspace/requests/load_balancers/monitor_tests.rb +46 -0
- data/tests/rackspace/requests/load_balancers/node_tests.rb +86 -0
- data/tests/rackspace/requests/load_balancers/protocol_tests.rb +21 -0
- data/tests/rackspace/requests/load_balancers/session_persistence_tests.rb +33 -0
- data/tests/rackspace/requests/load_balancers/usage_tests.rb +17 -0
- data/tests/rackspace/requests/load_balancers/virtual_ip_tests.rb +40 -0
- data/tests/rackspace/requests/storage/container_tests.rb +64 -0
- data/tests/rackspace/requests/storage/large_object_tests.rb +47 -0
- data/tests/rackspace/requests/storage/object_tests.rb +78 -0
- data/tests/rackspace/url_encoding_tests.rb +3 -0
- data/tests/slicehost/requests/compute/backup_tests.rb +18 -0
- data/tests/slicehost/requests/compute/flavor_tests.rb +33 -0
- data/tests/slicehost/requests/compute/image_tests.rb +31 -0
- data/tests/slicehost/requests/compute/slice_tests.rb +75 -0
- data/tests/slicehost/requests/dns/dns_tests.rb +314 -0
- data/tests/storage/helper.rb +19 -0
- data/tests/storage/models/directories_tests.rb +17 -0
- data/tests/storage/models/directory_test.rb +29 -0
- data/tests/storage/models/file_tests.rb +41 -0
- data/tests/storage/models/files_tests.rb +26 -0
- data/tests/storm_on_demand/requests/compute/server_tests.rb +64 -0
- data/tests/vcloud/data/api_+_admin_+_network_+_2 +110 -0
- data/tests/vcloud/data/api_+_network_+_1 +44 -0
- data/tests/vcloud/data/api_+_org_+_ +5 -0
- data/tests/vcloud/data/api_+_org_+_1 +17 -0
- data/tests/vcloud/data/api_+_sessions +8 -0
- data/tests/vcloud/data/api_+_v1.0_+_admin_+_network_+_2 +110 -0
- data/tests/vcloud/data/api_+_v1.0_+_login +5 -0
- data/tests/vcloud/data/api_+_v1.0_+_network_+_1 +44 -0
- data/tests/vcloud/data/api_+_v1.0_+_network_+_2 +31 -0
- data/tests/vcloud/data/api_+_v1.0_+_org_+_1 +17 -0
- data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vapp-1 +369 -0
- data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-1 +139 -0
- data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-2 +155 -0
- data/tests/vcloud/data/api_+_v1.0_+_vdc_+_1 +61 -0
- data/tests/vcloud/data/api_+_vApp_+_vapp-1 +369 -0
- data/tests/vcloud/data/api_+_vApp_+_vm-2 +155 -0
- data/tests/vcloud/data/api_+_vdc_+_1 +61 -0
- data/tests/vcloud/models/compute/conn_helper.rb +20 -0
- data/tests/vcloud/models/compute/helper.rb +25 -0
- data/tests/vcloud/models/compute/network_tests.rb +67 -0
- data/tests/vcloud/models/compute/networks_tests.rb +61 -0
- data/tests/vcloud/models/compute/organization_tests.rb +20 -0
- data/tests/vcloud/models/compute/organizations_tests.rb +16 -0
- data/tests/vcloud/models/compute/server_tests.rb +142 -0
- data/tests/vcloud/models/compute/servers_tests.rb +23 -0
- data/tests/vcloud/models/compute/vapp_tests.rb +32 -0
- data/tests/vcloud/models/compute/vapps_tests.rb +19 -0
- data/tests/vcloud/models/compute/vdc_tests.rb +48 -0
- data/tests/vcloud/models/compute/vdcs_tests.rb +24 -0
- data/tests/vcloud/requests/compute/disk_configure_tests.rb +114 -0
- data/tests/voxel/requests/compute/image_tests.rb +52 -0
- data/tests/voxel/requests/compute/server_tests.rb +123 -0
- data/tests/vsphere/compute_tests.rb +55 -0
- data/tests/vsphere/models/compute/server_tests.rb +45 -0
- data/tests/vsphere/models/compute/servers_tests.rb +15 -0
- data/tests/vsphere/requests/compute/current_time_tests.rb +12 -0
- data/tests/vsphere/requests/compute/find_vm_by_ref_tests.rb +26 -0
- data/tests/vsphere/requests/compute/list_virtual_machines_tests.rb +46 -0
- data/tests/vsphere/requests/compute/vm_clone_tests.rb +32 -0
- data/tests/vsphere/requests/compute/vm_create_tests.rb +20 -0
- data/tests/vsphere/requests/compute/vm_destroy_tests.rb +17 -0
- data/tests/vsphere/requests/compute/vm_power_off_tests.rb +26 -0
- data/tests/vsphere/requests/compute/vm_power_on_tests.rb +17 -0
- data/tests/vsphere/requests/compute/vm_reboot_tests.rb +26 -0
- data/tests/vsphere/requests/compute/vm_reconfig_cpus_tests.rb +19 -0
- data/tests/vsphere/requests/compute/vm_reconfig_hardware_tests.rb +19 -0
- data/tests/vsphere/requests/compute/vm_reconfig_memory_tests.rb +19 -0
- data/tests/watchr.rb +22 -0
- data/tests/zerigo/requests/dns/dns_tests.rb +373 -0
- metadata +2795 -0
@@ -0,0 +1,54 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class AWS
|
4
|
+
class Real
|
5
|
+
|
6
|
+
require 'fog/aws/parsers/compute/basic'
|
7
|
+
|
8
|
+
# Reboot specified instances
|
9
|
+
#
|
10
|
+
# ==== Parameters
|
11
|
+
# * instance_id<~Array> - Ids of instances to reboot
|
12
|
+
#
|
13
|
+
# ==== Returns
|
14
|
+
# # * response<~Excon::Response>:
|
15
|
+
# * body<~Hash>:
|
16
|
+
# * 'requestId'<~String> - Id of request
|
17
|
+
# * 'return'<~Boolean> - success?
|
18
|
+
#
|
19
|
+
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RebootInstances.html]
|
20
|
+
def reboot_instances(instance_id = [])
|
21
|
+
params = Fog::AWS.indexed_param('InstanceId', instance_id)
|
22
|
+
request({
|
23
|
+
'Action' => 'RebootInstances',
|
24
|
+
:idempotent => true,
|
25
|
+
:parser => Fog::Parsers::Compute::AWS::Basic.new
|
26
|
+
}.merge!(params))
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
class Mock
|
32
|
+
|
33
|
+
def reboot_instances(instance_id = [])
|
34
|
+
response = Excon::Response.new
|
35
|
+
instance_id = [*instance_id]
|
36
|
+
if (self.data[:instances].keys & instance_id).length == instance_id.length
|
37
|
+
for instance_id in instance_id
|
38
|
+
self.data[:instances][instance_id]['status'] = 'rebooting'
|
39
|
+
end
|
40
|
+
response.status = 200
|
41
|
+
response.body = {
|
42
|
+
'requestId' => Fog::AWS::Mock.request_id,
|
43
|
+
'return' => true
|
44
|
+
}
|
45
|
+
response
|
46
|
+
else
|
47
|
+
raise Fog::Compute::AWS::NotFound.new("The instance ID #{instance_id.inspect} does not exist")
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,133 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class AWS
|
4
|
+
class Real
|
5
|
+
require 'fog/aws/parsers/compute/register_image'
|
6
|
+
|
7
|
+
# register an image
|
8
|
+
#
|
9
|
+
# ==== Parameters
|
10
|
+
# * Name<~String> - Name of the AMI to be registered
|
11
|
+
# * Description<~String> - AMI description
|
12
|
+
# * Location<~String> - S3 manifest location (for S3 backed AMIs)
|
13
|
+
# or
|
14
|
+
# * RootDeviceName<~String> - Name of Root Device (for EBS snapshot backed AMIs)
|
15
|
+
# * BlockDevices<~Array>:
|
16
|
+
# * BlockDeviceOptions<~Hash>:
|
17
|
+
# * DeviceName<~String> - Name of the Block Device
|
18
|
+
# * VirtualName<~String> - Name of the Virtual Device
|
19
|
+
# * SnapshotId<~String> - id of the EBS Snapshot
|
20
|
+
# * VolumeSize<~Integer> - Size of the snapshot (optional)
|
21
|
+
# * NoDevice<~Boolean> - Do not use an ebs device (def: true)
|
22
|
+
# * DeleteOnTermation<~Boolean> - Delete EBS volume on instance term (def: true)
|
23
|
+
# * Options<~Hash>:
|
24
|
+
# * Architecture<~String> - i386 or x86_64
|
25
|
+
# * KernelId<~String> - kernelId
|
26
|
+
# * RamdiskId<~String> - ramdiskId
|
27
|
+
#
|
28
|
+
# ==== Returns
|
29
|
+
# * response<~Excon::Response>:
|
30
|
+
# * body<~Hash>:
|
31
|
+
# * 'imageId'<~String> - Id of newly created AMI
|
32
|
+
|
33
|
+
#
|
34
|
+
|
35
|
+
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RegisterImage.html]
|
36
|
+
|
37
|
+
def register_image(name, description, location, block_devices=[], options={})
|
38
|
+
common_options = {
|
39
|
+
'Action' => 'RegisterImage',
|
40
|
+
'Name' => name,
|
41
|
+
'Description' => description,
|
42
|
+
:parser => Fog::Parsers::Compute::AWS::RegisterImage.new
|
43
|
+
}
|
44
|
+
|
45
|
+
# This determines if we are doing a snapshot or a S3 backed AMI.
|
46
|
+
if(location =~ /^\/dev\/sd[a-p]\d{0,2}$/)
|
47
|
+
common_options['RootDeviceName'] = location
|
48
|
+
else
|
49
|
+
common_options['ImageLocation'] = location
|
50
|
+
end
|
51
|
+
|
52
|
+
block_devices.each_with_index do |bd, index|
|
53
|
+
index += 1
|
54
|
+
["DeviceName","VirtualName"].each do |n|
|
55
|
+
common_options["BlockDeviceMapping.#{index}.#{n}"] = bd[n] if bd[n]
|
56
|
+
end
|
57
|
+
["SnapshotId","VolumeSize","NoDevice","DeleteOnTermination"].each do |n|
|
58
|
+
common_options["BlockDeviceMapping.#{index}.Ebs.#{n}"] = bd[n] if bd[n]
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
request(common_options.merge!(options))
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
class Mock
|
67
|
+
def register_image(name, description, location, block_devices=[], options={})
|
68
|
+
unless name.empty?
|
69
|
+
image = {
|
70
|
+
'imageId' => Fog::AWS::Mock.image_id,
|
71
|
+
'imageLocation' => '',
|
72
|
+
'imageState' => 'pending',
|
73
|
+
'imageOwnerId' => self.data[:owner_id],
|
74
|
+
'isPublic' => false,
|
75
|
+
'productCodes' => [],
|
76
|
+
'architecture' => 'i386',
|
77
|
+
'imageType' => 'machine',
|
78
|
+
'kernelId' => Fog::AWS::Mock.kernel_id,
|
79
|
+
'ramdiskId' => Fog::AWS::Mock.ramdisk_id,
|
80
|
+
'platform' => 'Linux',
|
81
|
+
'stateReason' => {},
|
82
|
+
'imageOwnerAlias' => self.data[:owner_id],
|
83
|
+
'name' => name,
|
84
|
+
'description' => description,
|
85
|
+
'rootDeviceType' => '',
|
86
|
+
'rootDeviceName' => '',
|
87
|
+
'blockDeviceMapping' => [],
|
88
|
+
'virtualizationType' => 'paravirtual',
|
89
|
+
'hypervisor' => 'xen',
|
90
|
+
'registered' => Time.now
|
91
|
+
}
|
92
|
+
|
93
|
+
if location[/^\/dev\/sd[a-p]\d{0,2}$/]
|
94
|
+
image['rootDeviceName'] = location
|
95
|
+
image['rootDeviceType'] = 'ebs'
|
96
|
+
else
|
97
|
+
image['imageLocation'] = location
|
98
|
+
end
|
99
|
+
|
100
|
+
block_devices.each do |bd|
|
101
|
+
block_device_mapping = {
|
102
|
+
'ebs' => {}
|
103
|
+
}
|
104
|
+
["DeviceName","VirtualName"].each do |n|
|
105
|
+
block_device_mapping = bd[n] if bd[n]
|
106
|
+
end
|
107
|
+
["SnapshotId","VolumeSize","NoDevice","DeleteOnTermination"].each do |n|
|
108
|
+
block_device_mapping['ebs'][n] = bd[n] if bd[n]
|
109
|
+
end
|
110
|
+
image['blockDeviceMapping'] << block_device_mapping
|
111
|
+
end
|
112
|
+
|
113
|
+
self.data[:images][image['imageId']] = image
|
114
|
+
|
115
|
+
response = Excon::Response.new
|
116
|
+
response.status = 200
|
117
|
+
response.body = {
|
118
|
+
'requestId' => Fog::AWS::Mock.request_id,
|
119
|
+
'imageId' => image['imageId']
|
120
|
+
}
|
121
|
+
response
|
122
|
+
else
|
123
|
+
message = 'MissingParameter => '
|
124
|
+
if name.empty?
|
125
|
+
message << 'The request must contain the parameter name'
|
126
|
+
end
|
127
|
+
raise Fog::Compute::AWS::Error.new(message)
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class AWS
|
4
|
+
class Real
|
5
|
+
|
6
|
+
require 'fog/aws/parsers/compute/basic'
|
7
|
+
|
8
|
+
# Release an elastic IP address.
|
9
|
+
#
|
10
|
+
# ==== Returns
|
11
|
+
# * response<~Excon::Response>:
|
12
|
+
# * body<~Hash>:
|
13
|
+
# * 'requestId'<~String> - Id of request
|
14
|
+
# * 'return'<~Boolean> - success?
|
15
|
+
#
|
16
|
+
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-ReleaseAddress.html]
|
17
|
+
def release_address(public_ip)
|
18
|
+
request(
|
19
|
+
'Action' => 'ReleaseAddress',
|
20
|
+
'PublicIp' => public_ip,
|
21
|
+
:idempotent => true,
|
22
|
+
:parser => Fog::Parsers::Compute::AWS::Basic.new
|
23
|
+
)
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
|
28
|
+
class Mock
|
29
|
+
|
30
|
+
def release_address(public_ip)
|
31
|
+
response = Excon::Response.new
|
32
|
+
if (address = self.data[:addresses].delete(public_ip))
|
33
|
+
response.status = 200
|
34
|
+
response.body = {
|
35
|
+
'requestId' => Fog::AWS::Mock.request_id,
|
36
|
+
'return' => true
|
37
|
+
}
|
38
|
+
response
|
39
|
+
else
|
40
|
+
raise Fog::Compute::AWS::Error.new("AuthFailure => The address '#{public_ip}' does not belong to you.")
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class AWS
|
4
|
+
class Real
|
5
|
+
|
6
|
+
require 'fog/aws/parsers/compute/spot_instance_requests'
|
7
|
+
|
8
|
+
# Launch specified instances
|
9
|
+
#
|
10
|
+
# ==== Parameters
|
11
|
+
# * 'image_id'<~String> - Id of machine image to load on instances
|
12
|
+
# * 'instance_type'<~String> - Type of instance
|
13
|
+
# * 'spot_price'<~Float> - maximum hourly price for instances launched
|
14
|
+
# * options<~Hash>:
|
15
|
+
# * 'AvailabilityZoneGroup'<~String> - specify whether or not to launch all instances in the same availability group
|
16
|
+
# * 'InstanceCount'<~Integer> - maximum number of instances to launch
|
17
|
+
# * 'LaunchGroup'<~String> - whether or not to launch/shutdown instances as a group
|
18
|
+
# * 'LaunchSpecification.BlockDeviceMapping'<~Array>: array of hashes
|
19
|
+
# * 'DeviceName'<~String> - where the volume will be exposed to instance
|
20
|
+
# * 'VirtualName'<~String> - volume virtual device name
|
21
|
+
# * 'Ebs.SnapshotId'<~String> - id of snapshot to boot volume from
|
22
|
+
# * 'Ebs.NoDevice'<~String> - specifies that no device should be mapped
|
23
|
+
# * 'Ebs.VolumeSize'<~String> - size of volume in GiBs required unless snapshot is specified
|
24
|
+
# * 'Ebs.DeleteOnTermination'<~String> - specifies whether or not to delete the volume on instance termination
|
25
|
+
# * 'LaunchSpecification.KeyName'<~String> - Name of a keypair to add to booting instances
|
26
|
+
# * 'LaunchSpecification.Monitoring.Enabled'<~Boolean> - Enables monitoring, defaults to disabled
|
27
|
+
# * 'LaunchSpecification.Placement.AvailabilityZone'<~String> - Placement constraint for instances
|
28
|
+
# * 'LaunchSpecification.SecurityGroup'<~Array> or <~String> - Name of security group(s) for instances
|
29
|
+
# * 'LaunchSpecification.UserData'<~String> - Additional data to provide to booting instances
|
30
|
+
# * 'Type'<~String> - spot instance request type in ['one-time', 'persistent']
|
31
|
+
# * 'ValidFrom'<~Time> - start date for request
|
32
|
+
# * 'ValidUntil'<~Time> - end date for request
|
33
|
+
#
|
34
|
+
# ==== Returns
|
35
|
+
# * response<~Excon::Response>:
|
36
|
+
# * body<~Hash>:
|
37
|
+
# * 'requestId'<~String> - Id of request
|
38
|
+
# * 'spotInstanceRequestSet'<~Array>:
|
39
|
+
# * 'createTime'<~Time> - time of instance request creation
|
40
|
+
# * 'instanceId'<~String> - instance id if one has been launched to fulfill request
|
41
|
+
# * 'launchedAvailabilityZone'<~String> - availability zone of instance if one has been launched to fulfill request
|
42
|
+
# * 'launchSpecification'<~Hash>:
|
43
|
+
# * 'blockDeviceMapping'<~Hash> - list of block device mappings for instance
|
44
|
+
# * 'groupSet'<~String> - security group(s) for instance
|
45
|
+
# * 'keyName'<~String> - keypair name for instance
|
46
|
+
# * 'imageId'<~String> - AMI for instance
|
47
|
+
# * 'instanceType'<~String> - type for instance
|
48
|
+
# * 'monitoring'<~Boolean> - monitoring status for instance
|
49
|
+
# * 'productDescription'<~String> - general description of AMI
|
50
|
+
# * 'spotInstanceRequestId'<~String> - id of spot instance request
|
51
|
+
# * 'spotPrice'<~Float> - maximum price for instances to be launched
|
52
|
+
# * 'state'<~String> - spot instance request state
|
53
|
+
# * 'type'<~String> - spot instance request type
|
54
|
+
#
|
55
|
+
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RequestSpotInstances.html]
|
56
|
+
def request_spot_instances(image_id, instance_type, spot_price, options = {})
|
57
|
+
if block_device_mapping = options.delete('LaunchSpecification.BlockDeviceMapping')
|
58
|
+
block_device_mapping.each_with_index do |mapping, index|
|
59
|
+
for key, value in mapping
|
60
|
+
options.merge!({ format("LaunchSpecification.BlockDeviceMapping.%d.#{key}", index) => value })
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
if security_groups = options.delete('LaunchSpecification.SecurityGroup')
|
65
|
+
options.merge!(Fog::AWS.indexed_param('LaunchSpecification.SecurityGroup', [*security_groups]))
|
66
|
+
end
|
67
|
+
if options['LaunchSpecification.UserData']
|
68
|
+
options['LaunchSpecification.UserData'] = Base64.encode64(options['LaunchSpecification.UserData'])
|
69
|
+
end
|
70
|
+
|
71
|
+
request({
|
72
|
+
'Action' => 'RequestSpotInstances',
|
73
|
+
'LaunchSpecification.ImageId' => image_id,
|
74
|
+
'LaunchSpecification.InstanceType' => instance_type,
|
75
|
+
'SpotPrice' => spot_price,
|
76
|
+
:parser => Fog::Parsers::Compute::AWS::SpotInstanceRequests.new
|
77
|
+
}.merge!(options))
|
78
|
+
end
|
79
|
+
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class AWS
|
4
|
+
class Real
|
5
|
+
|
6
|
+
require 'fog/aws/parsers/compute/basic'
|
7
|
+
|
8
|
+
# Remove permissions from a security group
|
9
|
+
#
|
10
|
+
# ==== Parameters
|
11
|
+
# * group_name<~String> - Name of group
|
12
|
+
# * options<~Hash>:
|
13
|
+
# * 'SourceSecurityGroupName'<~String> - Name of security group to authorize
|
14
|
+
# * 'SourceSecurityGroupOwnerId'<~String> - Name of owner to authorize
|
15
|
+
# or
|
16
|
+
# * 'CidrIp'<~String> - CIDR range
|
17
|
+
# * 'FromPort'<~Integer> - Start of port range (or -1 for ICMP wildcard)
|
18
|
+
# * 'IpProtocol'<~String> - Ip protocol, must be in ['tcp', 'udp', 'icmp']
|
19
|
+
# * 'ToPort'<~Integer> - End of port range (or -1 for ICMP wildcard)
|
20
|
+
# or
|
21
|
+
# * 'IpPermissions'<~Array>:
|
22
|
+
# * permission<~Hash>:
|
23
|
+
# * 'FromPort'<~Integer> - Start of port range (or -1 for ICMP wildcard)
|
24
|
+
# * 'Groups'<~Array>:
|
25
|
+
# * group<~Hash>:
|
26
|
+
# * 'GroupName'<~String> - Name of security group to authorize
|
27
|
+
# * 'UserId'<~String> - Name of owner to authorize
|
28
|
+
# * 'IpProtocol'<~String> - Ip protocol, must be in ['tcp', 'udp', 'icmp']
|
29
|
+
# * 'IpRanges'<~Array>:
|
30
|
+
# * ip_range<~Hash>:
|
31
|
+
# * 'CidrIp'<~String> - CIDR range
|
32
|
+
# * 'ToPort'<~Integer> - End of port range (or -1 for ICMP wildcard)
|
33
|
+
#
|
34
|
+
# === Returns
|
35
|
+
# * response<~Excon::Response>:
|
36
|
+
# * body<~Hash>:
|
37
|
+
# * 'requestId'<~String> - Id of request
|
38
|
+
# * 'return'<~Boolean> - success?
|
39
|
+
#
|
40
|
+
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RevokeSecurityGroupIngress.html]
|
41
|
+
def revoke_security_group_ingress(group_name, options = {})
|
42
|
+
if group_name.is_a?(Hash)
|
43
|
+
Fog::Logger.deprecation("Fog::AWS::Compute#revoke_security_group_ingress now requires the 'group_name' parameter. Only specifying an options hash is now deprecated [light_black](#{caller.first})[/]")
|
44
|
+
options = group_name
|
45
|
+
group_name = options.delete('GroupName')
|
46
|
+
end
|
47
|
+
|
48
|
+
if ip_permissions = options.delete('IpPermissions')
|
49
|
+
options.merge!(indexed_ip_permissions_params(ip_permissions))
|
50
|
+
end
|
51
|
+
|
52
|
+
request({
|
53
|
+
'Action' => 'RevokeSecurityGroupIngress',
|
54
|
+
'GroupName' => group_name,
|
55
|
+
:idempotent => true,
|
56
|
+
:parser => Fog::Parsers::Compute::AWS::Basic.new
|
57
|
+
}.merge!(options))
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
class Mock
|
63
|
+
|
64
|
+
def revoke_security_group_ingress(group_name, options = {})
|
65
|
+
if group_name.is_a?(Hash)
|
66
|
+
Fog::Logger.deprecation("Fog::AWS::Compute#revoke_security_group_ingress now requires the 'group_name' parameter. Only specifying an options hash is now deprecated [light_black](#{caller.first})[/]")
|
67
|
+
options = group_name
|
68
|
+
group_name = options.delete('GroupName')
|
69
|
+
end
|
70
|
+
|
71
|
+
verify_permission_options(options)
|
72
|
+
|
73
|
+
response = Excon::Response.new
|
74
|
+
group = self.data[:security_groups][group_name]
|
75
|
+
|
76
|
+
if group
|
77
|
+
normalized_permissions = normalize_permissions(options)
|
78
|
+
|
79
|
+
normalized_permissions.each do |permission|
|
80
|
+
if matching_permission = find_matching_permission(group, permission)
|
81
|
+
matching_permission['ipRanges'] -= permission['ipRanges']
|
82
|
+
matching_permission['groups'] -= permission['groups']
|
83
|
+
|
84
|
+
if matching_permission['ipRanges'].empty? && matching_permission['groups'].empty?
|
85
|
+
group['ipPermissions'].delete(matching_permission)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
response.status = 200
|
91
|
+
response.body = {
|
92
|
+
'requestId' => Fog::AWS::Mock.request_id,
|
93
|
+
'return' => true
|
94
|
+
}
|
95
|
+
response
|
96
|
+
else
|
97
|
+
raise Fog::Compute::AWS::NotFound.new("The security group '#{group_name}' does not exist")
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
102
|
+
end
|
103
|
+
end
|
104
|
+
end
|
@@ -0,0 +1,176 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class AWS
|
4
|
+
class Real
|
5
|
+
|
6
|
+
require 'fog/aws/parsers/compute/run_instances'
|
7
|
+
|
8
|
+
# Launch specified instances
|
9
|
+
#
|
10
|
+
# ==== Parameters
|
11
|
+
# * image_id<~String> - Id of machine image to load on instances
|
12
|
+
# * min_count<~Integer> - Minimum number of instances to launch. If this
|
13
|
+
# exceeds the count of available instances, no instances will be
|
14
|
+
# launched. Must be between 1 and maximum allowed for your account
|
15
|
+
# (by default the maximum for an account is 20)
|
16
|
+
# * max_count<~Integer> - Maximum number of instances to launch. If this
|
17
|
+
# exceeds the number of available instances, the largest possible
|
18
|
+
# number of instances above min_count will be launched instead. Must
|
19
|
+
# be between 1 and maximum allowed for you account
|
20
|
+
# (by default the maximum for an account is 20)
|
21
|
+
# * options<~Hash>:
|
22
|
+
# * 'Placement.AvailabilityZone'<~String> - Placement constraint for instances
|
23
|
+
# * 'Placement.GroupName'<~String> - Name of existing placement group to launch instance into
|
24
|
+
# * 'Placement.Tenancy'<~String> - Tenancy option in ['dedicated', 'default'], defaults to 'default'
|
25
|
+
# * 'BlockDeviceMapping'<~Array>: array of hashes
|
26
|
+
# * 'DeviceName'<~String> - where the volume will be exposed to instance
|
27
|
+
# * 'VirtualName'<~String> - volume virtual device name
|
28
|
+
# * 'Ebs.SnapshotId'<~String> - id of snapshot to boot volume from
|
29
|
+
# * 'Ebs.VolumeSize'<~String> - size of volume in GiBs required unless snapshot is specified
|
30
|
+
# * 'Ebs.DeleteOnTermination'<~String> - specifies whether or not to delete the volume on instance termination
|
31
|
+
# * 'ClientToken'<~String> - unique case-sensitive token for ensuring idempotency
|
32
|
+
# * 'DisableApiTermination'<~Boolean> - specifies whether or not to allow termination of the instance from the api
|
33
|
+
# * 'SecurityGroup'<~Array> or <~String> - Name of security group(s) for instances (you must omit this parameter if using Virtual Private Clouds)
|
34
|
+
# * 'InstanceInitiatedShutdownBehaviour'<~String> - specifies whether volumes are stopped or terminated when instance is shutdown, in [stop, terminate]
|
35
|
+
# * 'InstanceType'<~String> - Type of instance to boot. Valid options
|
36
|
+
# in ['t1.micro', 'm1.small', 'm1.large', 'm1.xlarge', 'c1.medium', 'c1.xlarge', 'm2.xlarge', m2.2xlarge', 'm2.4xlarge', 'cc1.4xlarge', 'cg1.4xlarge']
|
37
|
+
# default is 'm1.small'
|
38
|
+
# * 'KernelId'<~String> - Id of kernel with which to launch
|
39
|
+
# * 'KeyName'<~String> - Name of a keypair to add to booting instances
|
40
|
+
# * 'Monitoring.Enabled'<~Boolean> - Enables monitoring, defaults to
|
41
|
+
# disabled
|
42
|
+
# * 'PrivateIpAddress<~String> - VPC option to specify ip address within subnet
|
43
|
+
# * 'RamdiskId'<~String> - Id of ramdisk with which to launch
|
44
|
+
# * 'SubnetId'<~String> - VPC option to specify subnet to launch instance into
|
45
|
+
# * 'UserData'<~String> - Additional data to provide to booting instances
|
46
|
+
#
|
47
|
+
# ==== Returns
|
48
|
+
# * response<~Excon::Response>:
|
49
|
+
# * body<~Hash>:
|
50
|
+
# * 'groupSet'<~Array>: groups the instances are members in
|
51
|
+
# * 'groupName'<~String> - Name of group
|
52
|
+
# * 'instancesSet'<~Array>: returned instances
|
53
|
+
# * instance<~Hash>:
|
54
|
+
# * 'amiLaunchIndex'<~Integer> - reference to instance in launch group
|
55
|
+
# * 'architecture'<~String> - architecture of image in [i386, x86_64]
|
56
|
+
# * 'blockDeviceMapping'<~Array>
|
57
|
+
# * 'attachTime'<~Time> - time of volume attachment
|
58
|
+
# * 'deleteOnTermination'<~Boolean> - whether or not to delete volume on termination
|
59
|
+
# * 'deviceName'<~String> - specifies how volume is exposed to instance
|
60
|
+
# * 'status'<~String> - status of attached volume
|
61
|
+
# * 'volumeId'<~String> - Id of attached volume
|
62
|
+
# * 'dnsName'<~String> - public dns name, blank until instance is running
|
63
|
+
# * 'imageId'<~String> - image id of ami used to launch instance
|
64
|
+
# * 'instanceId'<~String> - id of the instance
|
65
|
+
# * 'instanceState'<~Hash>:
|
66
|
+
# * 'code'<~Integer> - current status code
|
67
|
+
# * 'name'<~String> - current status name
|
68
|
+
# * 'instanceType'<~String> - type of instance
|
69
|
+
# * 'ipAddress'<~String> - public ip address assigned to instance
|
70
|
+
# * 'kernelId'<~String> - Id of kernel used to launch instance
|
71
|
+
# * 'keyName'<~String> - name of key used launch instances or blank
|
72
|
+
# * 'launchTime'<~Time> - time instance was launched
|
73
|
+
# * 'monitoring'<~Hash>:
|
74
|
+
# * 'state'<~Boolean - state of monitoring
|
75
|
+
# * 'placement'<~Hash>:
|
76
|
+
# * 'availabilityZone'<~String> - Availability zone of the instance
|
77
|
+
# * 'privateDnsName'<~String> - private dns name, blank until instance is running
|
78
|
+
# * 'privateIpAddress'<~String> - private ip address assigned to instance
|
79
|
+
# * 'productCodes'<~Array> - Product codes for the instance
|
80
|
+
# * 'ramdiskId'<~String> - Id of ramdisk used to launch instance
|
81
|
+
# * 'reason'<~String> - reason for most recent state transition, or blank
|
82
|
+
# * 'rootDeviceName'<~String> - specifies how the root device is exposed to the instance
|
83
|
+
# * 'rootDeviceType'<~String> - root device type used by AMI in [ebs, instance-store]
|
84
|
+
# * 'ownerId'<~String> - Id of owner
|
85
|
+
# * 'requestId'<~String> - Id of request
|
86
|
+
# * 'reservationId'<~String> - Id of reservation
|
87
|
+
#
|
88
|
+
# {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-RunInstances.html]
|
89
|
+
def run_instances(image_id, min_count, max_count, options = {})
|
90
|
+
if block_device_mapping = options.delete('BlockDeviceMapping')
|
91
|
+
block_device_mapping.each_with_index do |mapping, index|
|
92
|
+
for key, value in mapping
|
93
|
+
options.merge!({ format("BlockDeviceMapping.%d.#{key}", index) => value })
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
if security_groups = options.delete('SecurityGroup')
|
98
|
+
options.merge!(Fog::AWS.indexed_param('SecurityGroup', [*security_groups]))
|
99
|
+
end
|
100
|
+
if options['UserData']
|
101
|
+
options['UserData'] = Base64.encode64(options['UserData'])
|
102
|
+
end
|
103
|
+
|
104
|
+
idempotent = !(options['ClientToken'].nil? || options['ClientToken'].empty?)
|
105
|
+
|
106
|
+
request({
|
107
|
+
'Action' => 'RunInstances',
|
108
|
+
'ImageId' => image_id,
|
109
|
+
'MinCount' => min_count,
|
110
|
+
'MaxCount' => max_count,
|
111
|
+
:idempotent => idempotent,
|
112
|
+
:parser => Fog::Parsers::Compute::AWS::RunInstances.new
|
113
|
+
}.merge!(options))
|
114
|
+
end
|
115
|
+
|
116
|
+
end
|
117
|
+
|
118
|
+
class Mock
|
119
|
+
|
120
|
+
def run_instances(image_id, min_count, max_count, options = {})
|
121
|
+
response = Excon::Response.new
|
122
|
+
response.status = 200
|
123
|
+
|
124
|
+
group_set = [ (options['SecurityGroup'] || 'default') ].flatten
|
125
|
+
instances_set = []
|
126
|
+
reservation_id = Fog::AWS::Mock.reservation_id
|
127
|
+
|
128
|
+
if options['KeyName'] && describe_key_pairs('key-name' => options['KeyName']).body['keySet'].empty?
|
129
|
+
raise Fog::Compute::AWS::NotFound.new("The key pair '#{options['KeyName']}' does not exist")
|
130
|
+
end
|
131
|
+
|
132
|
+
min_count.times do |i|
|
133
|
+
instance_id = Fog::AWS::Mock.instance_id
|
134
|
+
instance = {
|
135
|
+
'amiLaunchIndex' => i,
|
136
|
+
'blockDeviceMapping' => [],
|
137
|
+
'clientToken' => options['clientToken'],
|
138
|
+
'dnsName' => nil,
|
139
|
+
'imageId' => image_id,
|
140
|
+
'instanceId' => instance_id,
|
141
|
+
'instanceState' => { 'code' => 0, 'name' => 'pending' },
|
142
|
+
'instanceType' => options['InstanceType'] || 'm1.small',
|
143
|
+
'kernelId' => options['KernelId'] || Fog::AWS::Mock.kernel_id,
|
144
|
+
'keyName' => options['KeyName'],
|
145
|
+
'launchTime' => Time.now,
|
146
|
+
'monitoring' => { 'state' => options['Monitoring.Enabled'] || false },
|
147
|
+
'placement' => { 'availabilityZone' => options['Placement.AvailabilityZone'] || Fog::AWS::Mock.availability_zone(@region), 'groupName' => nil, 'tenancy' => 'default' },
|
148
|
+
'privateDnsName' => nil,
|
149
|
+
'productCodes' => [],
|
150
|
+
'reason' => nil,
|
151
|
+
'rootDeviceType' => 'instance-store'
|
152
|
+
}
|
153
|
+
instances_set << instance
|
154
|
+
self.data[:instances][instance_id] = instance.merge({
|
155
|
+
'architecture' => 'i386',
|
156
|
+
'groupSet' => group_set,
|
157
|
+
'ownerId' => self.data[:owner_id],
|
158
|
+
'privateIpAddress' => nil,
|
159
|
+
'reservationId' => reservation_id,
|
160
|
+
'stateReason' => {}
|
161
|
+
})
|
162
|
+
end
|
163
|
+
response.body = {
|
164
|
+
'groupSet' => group_set,
|
165
|
+
'instancesSet' => instances_set,
|
166
|
+
'ownerId' => self.data[:owner_id],
|
167
|
+
'requestId' => Fog::AWS::Mock.request_id,
|
168
|
+
'reservationId' => reservation_id
|
169
|
+
}
|
170
|
+
response
|
171
|
+
end
|
172
|
+
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|