fog 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/README.rdoc +1 -1
- data/Rakefile +3 -16
- data/changelog.txt +401 -2
- data/docs/_layouts/default.html +1 -1
- data/docs/index.markdown +2 -2
- data/docs/storage/index.markdown +4 -4
- data/fog.gemspec +7 -4
- data/lib/fog.rb +1 -1
- data/lib/fog/aws.rb +32 -6
- data/lib/fog/aws/auto_scaling.rb +1 -18
- data/lib/fog/aws/beanstalk.rb +140 -0
- data/lib/fog/aws/cloud_formation.rb +1 -18
- data/lib/fog/aws/cloud_watch.rb +2 -19
- data/lib/fog/aws/compute.rb +16 -21
- data/lib/fog/aws/dns.rb +2 -2
- data/lib/fog/aws/dynamodb.rb +162 -0
- data/lib/fog/aws/elasticache.rb +1 -14
- data/lib/fog/aws/elb.rb +34 -26
- data/lib/fog/aws/elb/policy_types.rb +35 -0
- data/lib/fog/aws/emr.rb +5 -4
- data/lib/fog/aws/iam.rb +16 -1
- data/lib/fog/aws/models/auto_scaling/activity.rb +1 -1
- data/lib/fog/aws/models/auto_scaling/group.rb +2 -2
- data/lib/fog/aws/models/beanstalk/application.rb +62 -0
- data/lib/fog/aws/models/beanstalk/applications.rb +25 -0
- data/lib/fog/aws/models/beanstalk/environment.rb +129 -0
- data/lib/fog/aws/models/beanstalk/environments.rb +29 -0
- data/lib/fog/aws/models/beanstalk/event.rb +20 -0
- data/lib/fog/aws/models/beanstalk/events.rb +19 -0
- data/lib/fog/aws/models/beanstalk/template.rb +62 -0
- data/lib/fog/aws/models/beanstalk/templates.rb +70 -0
- data/lib/fog/aws/models/beanstalk/version.rb +79 -0
- data/lib/fog/aws/models/beanstalk/versions.rb +31 -0
- data/lib/fog/aws/models/compute/address.rb +7 -4
- data/lib/fog/aws/models/compute/addresses.rb +2 -2
- data/lib/fog/aws/models/compute/flavors.rb +1 -1
- data/lib/fog/aws/models/compute/key_pairs.rb +2 -2
- data/lib/fog/aws/models/compute/security_group.rb +2 -2
- data/lib/fog/aws/models/compute/security_groups.rb +30 -5
- data/lib/fog/aws/models/compute/server.rb +2 -0
- data/lib/fog/aws/models/compute/servers.rb +2 -2
- data/lib/fog/aws/models/compute/subnet.rb +58 -0
- data/lib/fog/aws/models/compute/subnets.rb +99 -0
- data/lib/fog/aws/models/compute/volumes.rb +3 -3
- data/lib/fog/aws/models/compute/vpc.rb +63 -0
- data/lib/fog/aws/models/compute/vpcs.rb +93 -0
- data/lib/fog/aws/models/dns/record.rb +37 -23
- data/lib/fog/aws/models/elasticache/cluster.rb +1 -1
- data/lib/fog/aws/models/elb/listener.rb +9 -7
- data/lib/fog/aws/models/storage/directory.rb +22 -1
- data/lib/fog/aws/models/storage/file.rb +58 -7
- 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/describe_scheduled_actions.rb +3 -3
- data/lib/fog/aws/parsers/beanstalk/check_dns_availability.rb +19 -0
- data/lib/fog/aws/parsers/beanstalk/create_application.rb +24 -0
- data/lib/fog/aws/parsers/beanstalk/create_application_version.rb +26 -0
- data/lib/fog/aws/parsers/beanstalk/create_configuration_template.rb +29 -0
- data/lib/fog/aws/parsers/beanstalk/create_environment.rb +37 -0
- data/lib/fog/aws/parsers/beanstalk/create_storage_location.rb +18 -0
- data/lib/fog/aws/parsers/beanstalk/describe_application_versions.rb +26 -0
- data/lib/fog/aws/parsers/beanstalk/describe_applications.rb +24 -0
- data/lib/fog/aws/parsers/beanstalk/describe_configuration_options.rb +32 -0
- data/lib/fog/aws/parsers/beanstalk/describe_configuration_settings.rb +30 -0
- data/lib/fog/aws/parsers/beanstalk/describe_environment_resources.rb +26 -0
- data/lib/fog/aws/parsers/beanstalk/describe_environments.rb +38 -0
- data/lib/fog/aws/parsers/beanstalk/describe_events.rb +27 -0
- data/lib/fog/aws/parsers/beanstalk/empty.rb +27 -0
- data/lib/fog/aws/parsers/beanstalk/list_available_solution_stacks.rb +21 -0
- data/lib/fog/aws/parsers/beanstalk/parser.rb +93 -0
- data/lib/fog/aws/parsers/beanstalk/retrieve_environment_info.rb +22 -0
- data/lib/fog/aws/parsers/beanstalk/terminate_environment.rb +37 -0
- data/lib/fog/aws/parsers/beanstalk/update_application.rb +24 -0
- data/lib/fog/aws/parsers/beanstalk/update_application_version.rb +26 -0
- data/lib/fog/aws/parsers/beanstalk/update_configuration_template.rb +29 -0
- data/lib/fog/aws/parsers/beanstalk/update_environment.rb +37 -0
- data/lib/fog/aws/parsers/beanstalk/validate_configuration_settings.rb +22 -0
- data/lib/fog/aws/parsers/compute/allocate_address.rb +1 -1
- data/lib/fog/aws/parsers/compute/associate_address.rb +25 -0
- data/lib/fog/aws/parsers/compute/create_subnet.rb +51 -0
- data/lib/fog/aws/parsers/compute/create_vpc.rb +51 -0
- data/lib/fog/aws/parsers/compute/delete_subnet.rb +24 -0
- data/lib/fog/aws/parsers/compute/delete_vpc.rb +24 -0
- data/lib/fog/aws/parsers/compute/describe_addresses.rb +1 -1
- data/lib/fog/aws/parsers/compute/describe_images.rb +20 -13
- data/lib/fog/aws/parsers/compute/describe_instance_status.rb +62 -29
- data/lib/fog/aws/parsers/compute/describe_instances.rb +2 -2
- data/lib/fog/aws/parsers/compute/describe_security_groups.rb +4 -4
- data/lib/fog/aws/parsers/compute/describe_subnets.rb +49 -0
- data/lib/fog/aws/parsers/compute/describe_volume_status.rb +70 -0
- data/lib/fog/aws/parsers/compute/describe_vpcs.rb +49 -0
- data/lib/fog/aws/parsers/dns/list_resource_record_sets.rb +15 -7
- 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/sns/confirm_subscription.rb +1 -1
- data/lib/fog/aws/parsers/sns/create_topic.rb +1 -1
- data/lib/fog/aws/parsers/sns/list_subscriptions.rb +2 -2
- data/lib/fog/aws/parsers/sns/list_topics.rb +1 -1
- data/lib/fog/aws/parsers/sns/subscribe.rb +1 -1
- data/lib/fog/aws/parsers/storage/get_bucket_lifecycle.rb +32 -0
- data/lib/fog/aws/parsers/storage/get_bucket_object_versions.rb +1 -1
- data/lib/fog/aws/parsers/storage/get_bucket_versioning.rb +1 -1
- data/lib/fog/aws/parsers/sts/get_session_token.rb +1 -1
- data/lib/fog/aws/rds.rb +19 -21
- data/lib/fog/aws/requests/auto_scaling/delete_launch_configuration.rb +10 -1
- data/lib/fog/aws/requests/auto_scaling/describe_launch_configurations.rb +16 -7
- data/lib/fog/aws/requests/auto_scaling/describe_scheduled_actions.rb +5 -0
- data/lib/fog/aws/requests/auto_scaling/put_scheduled_update_group_action.rb +13 -3
- data/lib/fog/aws/requests/beanstalk/check_dns_availability.rb +27 -0
- data/lib/fog/aws/requests/beanstalk/create_application.rb +29 -0
- data/lib/fog/aws/requests/beanstalk/create_application_version.rb +41 -0
- data/lib/fog/aws/requests/beanstalk/create_configuration_template.rb +44 -0
- data/lib/fog/aws/requests/beanstalk/create_environment.rb +50 -0
- data/lib/fog/aws/requests/beanstalk/create_storage_location.rb +27 -0
- data/lib/fog/aws/requests/beanstalk/delete_application.rb +29 -0
- data/lib/fog/aws/requests/beanstalk/delete_application_version.rb +36 -0
- data/lib/fog/aws/requests/beanstalk/delete_configuration_template.rb +34 -0
- data/lib/fog/aws/requests/beanstalk/delete_environment_configuration.rb +34 -0
- data/lib/fog/aws/requests/beanstalk/describe_application_versions.rb +34 -0
- data/lib/fog/aws/requests/beanstalk/describe_applications.rb +30 -0
- data/lib/fog/aws/requests/beanstalk/describe_configuration_options.rb +40 -0
- data/lib/fog/aws/requests/beanstalk/describe_configuration_settings.rb +31 -0
- data/lib/fog/aws/requests/beanstalk/describe_environment_resources.rb +29 -0
- data/lib/fog/aws/requests/beanstalk/describe_environments.rb +40 -0
- data/lib/fog/aws/requests/beanstalk/describe_events.rb +29 -0
- data/lib/fog/aws/requests/beanstalk/list_available_solution_stacks.rb +27 -0
- data/lib/fog/aws/requests/beanstalk/rebuild_environment.rb +30 -0
- data/lib/fog/aws/requests/beanstalk/request_environment_info.rb +29 -0
- data/lib/fog/aws/requests/beanstalk/restart_app_server.rb +29 -0
- data/lib/fog/aws/requests/beanstalk/retrieve_environment_info.rb +29 -0
- data/lib/fog/aws/requests/beanstalk/swap_environment_cnames.rb +29 -0
- data/lib/fog/aws/requests/beanstalk/terminate_environment.rb +31 -0
- data/lib/fog/aws/requests/beanstalk/update_application.rb +30 -0
- data/lib/fog/aws/requests/beanstalk/update_application_version.rb +30 -0
- data/lib/fog/aws/requests/beanstalk/update_configuration_template.rb +36 -0
- data/lib/fog/aws/requests/beanstalk/update_environment.rb +42 -0
- data/lib/fog/aws/requests/beanstalk/validate_configuration_settings.rb +33 -0
- data/lib/fog/aws/requests/compute/allocate_address.rb +11 -4
- data/lib/fog/aws/requests/compute/associate_address.rb +44 -17
- data/lib/fog/aws/requests/compute/authorize_security_group_ingress.rb +15 -17
- data/lib/fog/aws/requests/compute/create_security_group.rb +8 -4
- data/lib/fog/aws/requests/compute/create_subnet.rb +79 -0
- data/lib/fog/aws/requests/compute/create_tags.rb +3 -2
- data/lib/fog/aws/requests/compute/create_vpc.rb +71 -0
- data/lib/fog/aws/requests/compute/delete_security_group.rb +22 -4
- data/lib/fog/aws/requests/compute/delete_subnet.rb +49 -0
- data/lib/fog/aws/requests/compute/delete_vpc.rb +52 -0
- data/lib/fog/aws/requests/compute/describe_security_groups.rb +2 -0
- data/lib/fog/aws/requests/compute/describe_subnets.rb +66 -0
- data/lib/fog/aws/requests/compute/describe_volume_status.rb +50 -0
- data/lib/fog/aws/requests/compute/describe_vpcs.rb +62 -0
- data/lib/fog/aws/requests/compute/detach_volume.rb +13 -8
- data/lib/fog/aws/requests/compute/disassociate_address.rb +7 -5
- data/lib/fog/aws/requests/compute/request_spot_instances.rb +5 -1
- data/lib/fog/aws/requests/compute/revoke_security_group_ingress.rb +11 -13
- data/lib/fog/aws/requests/compute/run_instances.rb +5 -1
- data/lib/fog/aws/requests/dns/change_resource_record_sets.rb +43 -28
- data/lib/fog/aws/requests/dns/create_hosted_zone.rb +9 -9
- data/lib/fog/aws/requests/dns/delete_hosted_zone.rb +7 -7
- data/lib/fog/aws/requests/dns/get_change.rb +5 -5
- data/lib/fog/aws/requests/dns/get_hosted_zone.rb +8 -8
- data/lib/fog/aws/requests/dns/list_hosted_zones.rb +15 -15
- data/lib/fog/aws/requests/dns/list_resource_record_sets.rb +23 -20
- 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/create_cache_cluster.rb +2 -2
- data/lib/fog/aws/requests/elasticache/modify_cache_cluster.rb +2 -2
- data/lib/fog/aws/requests/elb/create_app_cookie_stickiness_policy.rb +2 -0
- data/lib/fog/aws/requests/elb/create_lb_cookie_stickiness_policy.rb +3 -1
- data/lib/fog/aws/requests/elb/create_load_balancer.rb +7 -2
- data/lib/fog/aws/requests/elb/create_load_balancer_listeners.rb +10 -1
- data/lib/fog/aws/requests/elb/create_load_balancer_policy.rb +79 -0
- data/lib/fog/aws/requests/elb/delete_load_balancer_policy.rb +1 -1
- 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 +5 -1
- data/lib/fog/aws/requests/elb/set_load_balancer_policies_of_listener.rb +1 -1
- data/lib/fog/aws/requests/emr/run_job_flow.rb +9 -7
- data/lib/fog/aws/requests/iam/add_user_to_group.rb +24 -0
- data/lib/fog/aws/requests/iam/create_access_key.rb +24 -0
- data/lib/fog/aws/requests/iam/create_group.rb +21 -0
- data/lib/fog/aws/requests/iam/create_user.rb +21 -0
- data/lib/fog/aws/requests/iam/delete_access_key.rb +17 -0
- data/lib/fog/aws/requests/iam/delete_group.rb +19 -0
- data/lib/fog/aws/requests/iam/delete_user.rb +17 -0
- data/lib/fog/aws/requests/iam/delete_user_policy.rb +16 -0
- data/lib/fog/aws/requests/iam/list_access_keys.rb +21 -0
- data/lib/fog/aws/requests/iam/list_groups.rb +18 -0
- data/lib/fog/aws/requests/iam/list_groups_for_user.rb +24 -0
- data/lib/fog/aws/requests/iam/list_user_policies.rb +18 -0
- data/lib/fog/aws/requests/iam/list_users.rb +17 -0
- data/lib/fog/aws/requests/iam/put_user_policy.rb +18 -0
- data/lib/fog/aws/requests/iam/remove_user_from_group.rb +19 -0
- data/lib/fog/aws/requests/iam/upload_server_certificate.rb +4 -1
- data/lib/fog/aws/requests/rds/authorize_db_security_group_ingress.rb +30 -1
- data/lib/fog/aws/requests/rds/create_db_instance.rb +18 -15
- data/lib/fog/aws/requests/rds/create_db_parameter_group.rb +19 -1
- data/lib/fog/aws/requests/rds/create_db_security_group.rb +19 -1
- data/lib/fog/aws/requests/rds/create_db_snapshot.rb +38 -2
- data/lib/fog/aws/requests/rds/delete_db_instance.rb +1 -2
- data/lib/fog/aws/requests/rds/delete_db_parameter_group.rb +11 -1
- data/lib/fog/aws/requests/rds/delete_db_security_group.rb +11 -1
- data/lib/fog/aws/requests/rds/delete_db_snapshot.rb +15 -4
- data/lib/fog/aws/requests/rds/describe_db_instances.rb +25 -9
- data/lib/fog/aws/requests/rds/describe_db_parameter_groups.rb +19 -1
- data/lib/fog/aws/requests/rds/describe_db_parameters.rb +0 -1
- data/lib/fog/aws/requests/rds/describe_db_security_groups.rb +49 -3
- data/lib/fog/aws/requests/rds/describe_db_snapshots.rb +28 -1
- data/lib/fog/aws/requests/rds/modify_db_instance.rb +10 -8
- data/lib/fog/aws/requests/rds/reboot_db_instance.rb +6 -6
- data/lib/fog/aws/requests/rds/revoke_db_security_group_ingress.rb +27 -1
- data/lib/fog/aws/requests/sns/confirm_subscription.rb +1 -1
- data/lib/fog/aws/requests/sns/delete_topic.rb +1 -1
- data/lib/fog/aws/requests/sns/get_topic_attributes.rb +1 -1
- data/lib/fog/aws/requests/sns/list_subscriptions_by_topic.rb +1 -1
- data/lib/fog/aws/requests/sns/publish.rb +1 -1
- data/lib/fog/aws/requests/sns/set_topic_attributes.rb +1 -1
- data/lib/fog/aws/requests/sns/subscribe.rb +1 -1
- data/lib/fog/aws/requests/sns/unsubscribe.rb +1 -1
- data/lib/fog/aws/requests/sqs/change_message_visibility.rb +1 -1
- data/lib/fog/aws/requests/sqs/delete_message.rb +1 -1
- data/lib/fog/aws/requests/sqs/receive_message.rb +13 -14
- data/lib/fog/aws/requests/storage/copy_object.rb +3 -5
- data/lib/fog/aws/requests/storage/delete_bucket_lifecycle.rb +30 -0
- data/lib/fog/aws/requests/storage/delete_object.rb +73 -2
- data/lib/fog/aws/requests/storage/get_bucket.rb +3 -2
- data/lib/fog/aws/requests/storage/get_bucket_lifecycle.rb +41 -0
- data/lib/fog/aws/requests/storage/get_bucket_object_versions.rb +95 -2
- data/lib/fog/aws/requests/storage/get_bucket_versioning.rb +32 -0
- data/lib/fog/aws/requests/storage/get_object.rb +42 -12
- data/lib/fog/aws/requests/storage/get_object_http_url.rb +7 -2
- data/lib/fog/aws/requests/storage/get_object_https_url.rb +7 -2
- data/lib/fog/aws/requests/storage/head_object.rb +7 -6
- data/lib/fog/aws/requests/storage/put_bucket_lifecycle.rb +48 -0
- data/lib/fog/aws/requests/storage/put_bucket_versioning.rb +41 -0
- data/lib/fog/aws/requests/storage/put_bucket_website.rb +17 -0
- data/lib/fog/aws/requests/storage/put_object.rb +26 -10
- data/lib/fog/aws/requests/storage/sync_clock.rb +1 -1
- data/lib/fog/aws/requests/sts/get_federation_token.rb +1 -0
- data/lib/fog/aws/requests/sts/get_session_token.rb +1 -0
- data/lib/fog/aws/ses.rb +2 -7
- data/lib/fog/aws/simpledb.rb +1 -18
- data/lib/fog/aws/sns.rb +1 -16
- data/lib/fog/aws/sqs.rb +2 -12
- data/lib/fog/aws/storage.rb +7 -29
- data/lib/fog/{new_servers.rb → bare_metal_cloud.rb} +2 -2
- data/lib/fog/{new_servers → bare_metal_cloud}/compute.rb +14 -14
- data/lib/fog/{new_servers → bare_metal_cloud}/requests/compute/add_server.rb +1 -1
- data/lib/fog/{new_servers → bare_metal_cloud}/requests/compute/cancel_server.rb +1 -1
- data/lib/fog/{new_servers → bare_metal_cloud}/requests/compute/get_server.rb +1 -1
- data/lib/fog/{new_servers → bare_metal_cloud}/requests/compute/list_images.rb +1 -1
- data/lib/fog/{new_servers → bare_metal_cloud}/requests/compute/list_plans.rb +1 -1
- data/lib/fog/{new_servers → bare_metal_cloud}/requests/compute/list_servers.rb +1 -1
- data/lib/fog/{new_servers → bare_metal_cloud}/requests/compute/reboot_server.rb +1 -1
- data/lib/fog/bin.rb +4 -1
- data/lib/fog/bin/aws.rb +9 -1
- data/lib/fog/bin/{new_servers.rb → bare_metal_cloud.rb} +5 -5
- data/lib/fog/bin/cloudstack.rb +30 -0
- data/lib/fog/bin/joyent.rb +31 -0
- data/lib/fog/bin/ovirt.rb +30 -0
- data/lib/fog/bin/voxel.rb +1 -1
- data/lib/fog/bluebox/compute.rb +4 -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 +12 -5
- data/lib/fog/bluebox/requests/compute/create_block.rb +2 -2
- 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/brightbox/compute.rb +1 -0
- data/lib/fog/brightbox/requests/compute/update_firewall_rule.rb +13 -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 +17 -3
- data/lib/fog/compute/models/server.rb +11 -0
- data/lib/fog/core.rb +1 -3
- data/lib/fog/core/connection.rb +2 -2
- data/lib/fog/core/errors.rb +8 -2
- data/lib/fog/core/model.rb +8 -0
- data/lib/fog/core/scp.rb +18 -2
- data/lib/fog/dns.rb +1 -0
- data/lib/fog/dnsimple/dns.rb +1 -1
- data/lib/fog/dynect/models/dns/records.rb +2 -2
- data/lib/fog/dynect/requests/dns/get_node_list.rb +2 -1
- data/lib/fog/ecloud/compute.rb +1 -1
- data/lib/fog/ecloud/requests/compute/add_backup_internet_service.rb +1 -1
- data/lib/fog/ecloud/requests/compute/add_internet_service.rb +2 -2
- data/lib/fog/ecloud/requests/compute/add_node.rb +1 -1
- data/lib/fog/ecloud/requests/compute/clone_vapp.rb +1 -1
- data/lib/fog/ecloud/requests/compute/configure_internet_service.rb +1 -1
- data/lib/fog/ecloud/requests/compute/configure_network.rb +1 -1
- data/lib/fog/ecloud/requests/compute/configure_network_ip.rb +1 -1
- data/lib/fog/ecloud/requests/compute/configure_vapp.rb +1 -1
- data/lib/fog/ecloud/requests/compute/instantiate_vapp_template.rb +1 -1
- data/lib/fog/glesys/compute.rb +4 -2
- data/lib/fog/glesys/models/compute/server.rb +14 -14
- data/lib/fog/google/requests/storage/get_object.rb +22 -14
- 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/compute.rb +5 -3
- data/lib/fog/libvirt/models/compute/server.rb +89 -102
- data/lib/fog/libvirt/models/compute/servers.rb +2 -1
- data/lib/fog/libvirt/models/compute/util.rb +1 -2
- data/lib/fog/local/models/storage/file.rb +8 -1
- data/lib/fog/local/storage.rb +8 -0
- data/lib/fog/ninefold/models/storage/file.rb +8 -0
- data/lib/fog/openstack.rb +9 -7
- data/lib/fog/openstack/compute.rb +0 -2
- data/lib/fog/ovirt.rb +17 -0
- data/lib/fog/ovirt/compute.rb +106 -0
- data/lib/fog/ovirt/models/compute/cluster.rb +24 -0
- data/lib/fog/ovirt/models/compute/clusters.rb +23 -0
- data/lib/fog/ovirt/models/compute/interface.rb +22 -0
- data/lib/fog/ovirt/models/compute/interfaces.rb +32 -0
- data/lib/fog/ovirt/models/compute/server.rb +112 -0
- data/lib/fog/ovirt/models/compute/servers.rb +30 -0
- data/lib/fog/ovirt/models/compute/template.rb +53 -0
- data/lib/fog/ovirt/models/compute/templates.rb +23 -0
- data/lib/fog/ovirt/requests/compute/add_interface.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_interface.rb +25 -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_networks.rb +17 -0
- data/lib/fog/ovirt/requests/compute/list_template_interfaces.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/list_vm_interfaces.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/nics.xml +10 -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_interface.rb +25 -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 +4 -1
- data/lib/fog/rackspace/models/compute/flavor.rb +2 -0
- data/lib/fog/rackspace/models/storage/directory.rb +5 -1
- data/lib/fog/rackspace/models/storage/file.rb +7 -0
- data/lib/fog/rackspace/requests/compute/create_image.rb +1 -3
- data/lib/fog/rackspace/requests/storage/copy_object.rb +27 -0
- data/lib/fog/rackspace/requests/storage/get_object.rb +8 -2
- data/lib/fog/rackspace/requests/storage/put_object.rb +6 -5
- data/lib/fog/rackspace/storage.rb +1 -0
- data/lib/fog/storm_on_demand/compute.rb +1 -1
- data/lib/fog/vcloud/compute.rb +85 -30
- data/lib/fog/vcloud/models/compute/catalog.rb +1 -1
- data/lib/fog/vcloud/models/compute/catalog_item.rb +1 -1
- data/lib/fog/vcloud/models/compute/catalogs.rb +2 -4
- data/lib/fog/vcloud/models/compute/ip.rb +2 -2
- data/lib/fog/vcloud/models/compute/network.rb +3 -9
- data/lib/fog/vcloud/models/compute/networks.rb +13 -8
- data/lib/fog/vcloud/models/compute/organization.rb +3 -4
- data/lib/fog/vcloud/models/compute/organizations.rb +7 -4
- data/lib/fog/vcloud/models/compute/server.rb +5 -4
- data/lib/fog/vcloud/models/compute/servers.rb +1 -5
- data/lib/fog/vcloud/models/compute/task.rb +1 -1
- data/lib/fog/vcloud/models/compute/tasks.rb +1 -3
- data/lib/fog/vcloud/models/compute/vapp.rb +6 -4
- data/lib/fog/vcloud/models/compute/vapps.rb +2 -6
- data/lib/fog/vcloud/models/compute/vdc.rb +5 -5
- data/lib/fog/vcloud/models/compute/vdcs.rb +2 -5
- data/lib/fog/vcloud/requests/compute/clone_vapp.rb +1 -1
- data/lib/fog/vcloud/requests/compute/configure_network.rb +1 -1
- data/lib/fog/vcloud/requests/compute/configure_network_ip.rb +1 -1
- data/lib/fog/vcloud/requests/compute/configure_vapp.rb +1 -1
- data/lib/fog/vcloud/requests/compute/configure_vm.rb +1 -1
- data/lib/fog/vcloud/requests/compute/instantiate_vapp_template.rb +1 -1
- data/lib/fog/vcloud/requests/compute/login.rb +8 -4
- data/lib/fog/virtual_box/compute.rb +4 -0
- data/lib/fog/vmfusion/models/compute/server.rb +120 -52
- data/lib/fog/vmfusion/models/compute/servers.rb +11 -7
- data/lib/fog/voxel/compute.rb +1 -1
- data/lib/fog/vsphere/compute.rb +5 -0
- data/lib/fog/vsphere/models/compute/server.rb +25 -0
- data/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +1 -1
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +43 -8
- data/lib/fog/vsphere/requests/compute/vm_create.rb +97 -0
- data/lib/fog/vsphere/requests/compute/vm_migrate.rb +37 -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/models/dns/record.rb +7 -5
- data/lib/fog/zerigo/parsers/dns/create_host.rb +3 -1
- data/lib/fog/zerigo/parsers/dns/find_hosts.rb +3 -1
- data/lib/fog/zerigo/parsers/dns/get_host.rb +3 -1
- data/lib/fog/zerigo/parsers/dns/get_zone.rb +3 -1
- data/lib/fog/zerigo/parsers/dns/list_hosts.rb +3 -1
- data/lib/fog/zerigo/requests/dns/update_host.rb +2 -2
- data/spec/ecloud/spec_helper.rb +1 -1
- data/tests/aws/models/beanstalk/application_tests.rb +70 -0
- data/tests/aws/models/beanstalk/applications_tests.rb +7 -0
- data/tests/aws/models/beanstalk/environment_tests.rb +132 -0
- data/tests/aws/models/beanstalk/environments_tests.rb +34 -0
- data/tests/aws/models/beanstalk/template_tests.rb +47 -0
- data/tests/aws/models/beanstalk/templates_tests.rb +62 -0
- data/tests/aws/models/beanstalk/version_tests.rb +66 -0
- data/tests/aws/models/beanstalk/versions_tests.rb +61 -0
- data/tests/aws/models/compute/subnet_tests.rb +5 -0
- data/tests/aws/models/compute/subnets_tests.rb +6 -0
- data/tests/aws/models/compute/vpc_tests.rb +4 -0
- data/tests/aws/models/compute/vpcs_tests.rb +6 -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/elb/model_tests.rb +11 -7
- data/tests/aws/models/rds/security_group_tests.rb +6 -3
- data/tests/aws/models/rds/security_groups_tests.rb +1 -2
- data/tests/aws/models/rds/server_tests.rb +5 -3
- data/tests/aws/models/rds/servers_tests.rb +1 -3
- data/tests/aws/models/rds/snapshot_tests.rb +1 -3
- data/tests/aws/models/rds/snapshots_tests.rb +1 -3
- data/tests/aws/models/storage/directory_tests.rb +51 -0
- data/tests/aws/models/storage/file_tests.rb +80 -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/helper.rb +2 -2
- data/tests/aws/requests/beanstalk/application_tests.rb +140 -0
- data/tests/aws/requests/beanstalk/solution_stack_tests.rb +22 -0
- data/tests/aws/requests/compute/address_tests.rb +7 -5
- data/tests/aws/requests/compute/instance_tests.rb +16 -2
- data/tests/aws/requests/compute/security_group_tests.rb +77 -4
- data/tests/aws/requests/compute/subnet_tests.rb +36 -0
- data/tests/aws/requests/compute/volume_tests.rb +4 -0
- data/tests/aws/requests/compute/vpc_tests.rb +34 -0
- data/tests/aws/requests/dns/dns_tests.rb +106 -99
- data/tests/aws/requests/dns/helper.rb +21 -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/elb/helper.rb +33 -0
- data/tests/aws/requests/elb/listener_tests.rb +18 -4
- data/tests/aws/requests/elb/policy_tests.rb +13 -0
- data/tests/aws/requests/iam/access_key_tests.rb +2 -7
- data/tests/aws/requests/iam/group_tests.rb +1 -4
- data/tests/aws/requests/iam/helper.rb +19 -0
- data/tests/aws/requests/iam/server_certificate_tests.rb +5 -0
- data/tests/aws/requests/iam/user_policy_tests.rb +4 -11
- data/tests/aws/requests/iam/user_tests.rb +19 -12
- data/tests/aws/requests/rds/helper.rb +45 -11
- data/tests/aws/requests/rds/instance_tests.rb +2 -3
- data/tests/aws/requests/rds/parameter_group_tests.rb +1 -7
- data/tests/aws/requests/rds/security_group_tests.rb +101 -0
- data/tests/aws/requests/storage/bucket_tests.rb +66 -1
- data/tests/aws/requests/storage/versioning_tests.rb +188 -0
- data/tests/bluebox/requests/compute/block_tests.rb +9 -8
- data/tests/bluebox/requests/compute/helper.rb +5 -0
- data/tests/bluebox/requests/compute/location_tests.rb +32 -0
- data/tests/bluebox/requests/compute/product_tests.rb +10 -4
- data/tests/bluebox/requests/compute/template_tests.rb +4 -2
- data/tests/brightbox/requests/compute/account_tests.rb +3 -3
- data/tests/brightbox/requests/compute/api_client_tests.rb +6 -6
- data/tests/brightbox/requests/compute/cloud_ip_tests.rb +7 -7
- data/tests/brightbox/requests/compute/helper.rb +33 -8
- data/tests/brightbox/requests/compute/image_tests.rb +2 -2
- data/tests/brightbox/requests/compute/interface_tests.rb +1 -1
- data/tests/brightbox/requests/compute/load_balancer_tests.rb +9 -9
- data/tests/brightbox/requests/compute/server_group_tests.rb +8 -8
- data/tests/brightbox/requests/compute/server_tests.rb +13 -11
- data/tests/brightbox/requests/compute/server_type_tests.rb +2 -2
- data/tests/brightbox/requests/compute/user_tests.rb +3 -3
- data/tests/brightbox/requests/compute/zone_tests.rb +2 -2
- 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 +7 -2
- data/tests/glesys/requests/compute/helper.rb +146 -123
- data/tests/glesys/requests/compute/ip_tests.rb +3 -3
- data/tests/glesys/requests/compute/server_tests.rb +50 -12
- data/tests/helper.rb +1 -1
- data/tests/helpers/formats_helper.rb +1 -1
- data/tests/helpers/mock_helper.rb +7 -2
- 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/ovirt/compute_tests.rb +24 -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/interface_tests.rb +27 -0
- data/tests/ovirt/models/compute/interfaces_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/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_+_vApp_+_vapp-1 +1 -1
- data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-1 +1 -1
- data/tests/vcloud/data/api_+_v1.0_+_vApp_+_vm-2 +1 -1
- 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 +2 -2
- data/tests/vcloud/models/compute/network_tests.rb +54 -52
- data/tests/vcloud/models/compute/networks_tests.rb +54 -35
- data/tests/vcloud/models/compute/organization_tests.rb +17 -10
- data/tests/vcloud/models/compute/organizations_tests.rb +10 -8
- data/tests/vcloud/models/compute/server_tests.rb +45 -39
- data/tests/vcloud/models/compute/servers_tests.rb +17 -10
- data/tests/vcloud/models/compute/vapp_tests.rb +26 -21
- data/tests/vcloud/models/compute/vapps_tests.rb +13 -11
- data/tests/vcloud/models/compute/vdc_tests.rb +40 -34
- data/tests/vcloud/models/compute/vdcs_tests.rb +17 -10
- data/tests/vsphere/requests/compute/vm_clone_tests.rb +16 -4
- data/tests/vsphere/requests/compute/vm_create_tests.rb +20 -0
- data/tests/vsphere/requests/compute/vm_migrate_tests.rb +16 -0
- data/tests/vsphere/requests/compute/vm_power_on_tests.rb +1 -1
- 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
- metadata +519 -50
- data/examples/compute_tests.rb +0 -71
- data/examples/dns_tests.rb +0 -78
- data/examples/storage_tests.rb +0 -105
@@ -6,7 +6,7 @@
|
|
6
6
|
<Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/action/undeploy"/>
|
7
7
|
<Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/controlAccess/"/>
|
8
8
|
<Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/action/controlAccess"/>
|
9
|
-
<Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="https://vcloud.example.com/api/v1.0/vdc/
|
9
|
+
<Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="https://vcloud.example.com/api/v1.0/vdc/1"/>
|
10
10
|
<Link rel="edit" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
|
11
11
|
<Description>Some Description of a vApp</Description>
|
12
12
|
<LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1/leaseSettingsSection/" ovf:required="false">
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/power/action/powerOn"/>
|
11
11
|
<Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/power/action/powerOff"/>
|
12
12
|
<Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/action/undeploy"/>
|
13
|
-
<Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-
|
13
|
+
<Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
|
14
14
|
<Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1"/>
|
15
15
|
<Link rel="screen:thumbnail" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/screen"/>
|
16
16
|
<Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-1/media/action/insertMedia"/>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/power/action/powerOn"/>
|
11
11
|
<Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/power/action/powerOff"/>
|
12
12
|
<Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/action/undeploy"/>
|
13
|
-
<Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-
|
13
|
+
<Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
|
14
14
|
<Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2"/>
|
15
15
|
<Link rel="screen:thumbnail" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/screen"/>
|
16
16
|
<Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/media/action/insertMedia"/>
|
@@ -0,0 +1,369 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<VApp xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" deployed="true" status="8" name="vApp1" id="urn:vcloud:vapp:1" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/vApp/vapp-1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5 http://vcloud.example.com/api/v1.5/schema/vmwextensions.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://www.vmware.com/vcloud/v1.5 http://vcloud.example.com/api/v1.5/schema/master.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd">
|
3
|
+
<Link rel="power:powerOn" href="https://vcloud.example.com/api/vApp/vapp-1/power/action/powerOn"/>
|
4
|
+
<Link rel="power:powerOff" href="https://vcloud.example.com/api/vApp/vapp-1/power/action/powerOff"/>
|
5
|
+
<Link rel="deploy" type="application/vnd.vmware.vcloud.deployVAppParams+xml" href="https://vcloud.example.com/api/vApp/vapp-1/action/deploy"/>
|
6
|
+
<Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/vApp/vapp-1/action/undeploy"/>
|
7
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/vApp/vapp-1/controlAccess/"/>
|
8
|
+
<Link rel="controlAccess" type="application/vnd.vmware.vcloud.controlAccess+xml" href="https://vcloud.example.com/api/vApp/vapp-1/action/controlAccess"/>
|
9
|
+
<Link rel="up" type="application/vnd.vmware.vcloud.vdc+xml" href="https://vcloud.example.com/api/vdc/1"/>
|
10
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/vApp/vapp-1"/>
|
11
|
+
<Description>Some Description of a vApp</Description>
|
12
|
+
<LeaseSettingsSection type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://vcloud.example.com/api/vApp/vapp-1/leaseSettingsSection/" ovf:required="false">
|
13
|
+
<ovf:Info>Lease settings section</ovf:Info>
|
14
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.leaseSettingsSection+xml" href="https://vcloud.example.com/api/vApp/vapp-1/leaseSettingsSection/"/>
|
15
|
+
<DeploymentLeaseInSeconds>0</DeploymentLeaseInSeconds>
|
16
|
+
<StorageLeaseInSeconds>0</StorageLeaseInSeconds>
|
17
|
+
</LeaseSettingsSection>
|
18
|
+
<ovf:StartupSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/vApp/vapp-1/startupSection/" vcloud:type="application/vnd.vmware.vcloud.startupSection+xml">
|
19
|
+
<ovf:Info>VApp startup section</ovf:Info>
|
20
|
+
<ovf:Item ovf:stopDelay="0" ovf:stopAction="guestShutdown" ovf:startDelay="30" ovf:startAction="powerOn" ovf:order="2" ovf:id="vm1"/>
|
21
|
+
<ovf:Item ovf:stopDelay="30" ovf:stopAction="guestShutdown" ovf:startDelay="0" ovf:startAction="powerOn" ovf:order="1" ovf:id="vm2"/>
|
22
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.startupSection+xml" href="https://vcloud.example.com/api/vApp/vapp-1/startupSection/"/>
|
23
|
+
</ovf:StartupSection>
|
24
|
+
<ovf:NetworkSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/vApp/vapp-1/networkSection/" vcloud:type="application/vnd.vmware.vcloud.networkSection+xml">
|
25
|
+
<ovf:Info>The list of logical networks</ovf:Info>
|
26
|
+
<ovf:Network ovf:name="Network1">
|
27
|
+
<ovf:Description/>
|
28
|
+
</ovf:Network>
|
29
|
+
</ovf:NetworkSection>
|
30
|
+
<NetworkConfigSection type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="https://vcloud.example.com/api/vApp/vapp-1/networkConfigSection/" ovf:required="false">
|
31
|
+
<ovf:Info>The configuration parameters for logical networks</ovf:Info>
|
32
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.networkConfigSection+xml" href="https://vcloud.example.com/api/vApp/vapp-1/networkConfigSection/"/>
|
33
|
+
<NetworkConfig networkName="Network1">
|
34
|
+
<Description>Some Network Description</Description>
|
35
|
+
<Configuration>
|
36
|
+
<IpScope>
|
37
|
+
<IsInherited>false</IsInherited>
|
38
|
+
<Gateway>192.168.2.1</Gateway>
|
39
|
+
<Netmask>255.255.255.0</Netmask>
|
40
|
+
<Dns1>192.168.2.1</Dns1>
|
41
|
+
<IpRanges>
|
42
|
+
<IpRange>
|
43
|
+
<StartAddress>192.168.2.101</StartAddress>
|
44
|
+
<EndAddress>192.168.2.150</EndAddress>
|
45
|
+
</IpRange>
|
46
|
+
</IpRanges>
|
47
|
+
<AllocatedIpAddresses>
|
48
|
+
<IpAddress>192.168.2.101</IpAddress>
|
49
|
+
<IpAddress>192.168.2.1</IpAddress>
|
50
|
+
<IpAddress>192.168.2.102</IpAddress>
|
51
|
+
</AllocatedIpAddresses>
|
52
|
+
</IpScope>
|
53
|
+
<ParentNetwork type="application/vnd.vmware.vcloud.network+xml" name="Network1" href="https://vcloud.example.com/api/network/1"/>
|
54
|
+
<FenceMode>natRouted</FenceMode>
|
55
|
+
<Features>
|
56
|
+
<DhcpService>
|
57
|
+
<IsEnabled>false</IsEnabled>
|
58
|
+
<DefaultLeaseTime>7200</DefaultLeaseTime>
|
59
|
+
<MaxLeaseTime>7200</MaxLeaseTime>
|
60
|
+
<IpRange/>
|
61
|
+
</DhcpService>
|
62
|
+
<FirewallService>
|
63
|
+
<IsEnabled>true</IsEnabled>
|
64
|
+
</FirewallService>
|
65
|
+
<NatService>
|
66
|
+
<IsEnabled>true</IsEnabled>
|
67
|
+
<NatType>ipTranslation</NatType>
|
68
|
+
<Policy>allowTraffic</Policy>
|
69
|
+
<NatRule>
|
70
|
+
<OneToOneVmRule>
|
71
|
+
<MappingMode>automatic</MappingMode>
|
72
|
+
<ExternalIP>192.168.1.102</ExternalIP>
|
73
|
+
<VAppScopedVmId>vm1</VAppScopedVmId>
|
74
|
+
<VmNicId>0</VmNicId>
|
75
|
+
</OneToOneVmRule>
|
76
|
+
</NatRule>
|
77
|
+
<NatRule>
|
78
|
+
<OneToOneVmRule>
|
79
|
+
<MappingMode>automatic</MappingMode>
|
80
|
+
<ExternalIP>192.168.1.103</ExternalIP>
|
81
|
+
<VAppScopedVmId>vm2</VAppScopedVmId>
|
82
|
+
<VmNicId>0</VmNicId>
|
83
|
+
</OneToOneVmRule>
|
84
|
+
</NatRule>
|
85
|
+
</NatService>
|
86
|
+
</Features>
|
87
|
+
</Configuration>
|
88
|
+
<IsDeployed>true</IsDeployed>
|
89
|
+
</NetworkConfig>
|
90
|
+
</NetworkConfigSection>
|
91
|
+
<Children>
|
92
|
+
<Vm deployed="true" status="8" name="vm2" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/vApp/vm-2">
|
93
|
+
<VCloudExtension required="false">
|
94
|
+
<vmext:VimObjectRef>
|
95
|
+
<vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="vm2.example.com" href="https://vcloud.example.com/api/admin/extension/vimServer/2"/>
|
96
|
+
<vmext:MoRef>vm-595</vmext:MoRef>
|
97
|
+
<vmext:VimObjectType>VIRTUAL_MACHINE</vmext:VimObjectType>
|
98
|
+
</vmext:VimObjectRef>
|
99
|
+
</VCloudExtension>
|
100
|
+
<Link rel="power:powerOn" href="https://vcloud.example.com/api/vApp/vm-2/power/action/powerOn"/>
|
101
|
+
<Link rel="power:powerOff" href="https://vcloud.example.com/api/vApp/vm-2/power/action/powerOff"/>
|
102
|
+
<Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/vApp/vm-2/action/undeploy"/>
|
103
|
+
<Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/vApp/vapp-1"/>
|
104
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/vApp/vm-2"/>
|
105
|
+
<Link rel="screen:thumbnail" href="https://vcloud.example.com/api/vApp/vm-2/screen"/>
|
106
|
+
<Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/vApp/vm-2/media/action/insertMedia"/>
|
107
|
+
<Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/vApp/vm-2/media/action/ejectMedia"/>
|
108
|
+
<Description/>
|
109
|
+
<ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
|
110
|
+
<ovf:Info>Virtual hardware requirements</ovf:Info>
|
111
|
+
<ovf:System>
|
112
|
+
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
|
113
|
+
<vssd:InstanceID>0</vssd:InstanceID>
|
114
|
+
<vssd:VirtualSystemIdentifier>vm2</vssd:VirtualSystemIdentifier>
|
115
|
+
<vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
|
116
|
+
</ovf:System>
|
117
|
+
<ovf:Item>
|
118
|
+
<rasd:Address>00:50:56:01:02:03</rasd:Address>
|
119
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
120
|
+
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
|
121
|
+
<rasd:Connection vcloud:ipAddress="192.168.2.102" vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="POOL">Network1</rasd:Connection>
|
122
|
+
<rasd:Description>PCNet32 ethernet adapter</rasd:Description>
|
123
|
+
<rasd:ElementName>Network adapter 0</rasd:ElementName>
|
124
|
+
<rasd:InstanceID>1</rasd:InstanceID>
|
125
|
+
<rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
|
126
|
+
<rasd:ResourceType>10</rasd:ResourceType>
|
127
|
+
</ovf:Item>
|
128
|
+
<ovf:Item>
|
129
|
+
<rasd:Address>0</rasd:Address>
|
130
|
+
<rasd:Description>SCSI Controller</rasd:Description>
|
131
|
+
<rasd:ElementName>SCSI Controller 0</rasd:ElementName>
|
132
|
+
<rasd:InstanceID>2</rasd:InstanceID>
|
133
|
+
<rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
|
134
|
+
<rasd:ResourceType>6</rasd:ResourceType>
|
135
|
+
</ovf:Item>
|
136
|
+
<ovf:Item>
|
137
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
138
|
+
<rasd:Description>Hard disk</rasd:Description>
|
139
|
+
<rasd:ElementName>Hard disk 1</rasd:ElementName>
|
140
|
+
<rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
|
141
|
+
<rasd:InstanceID>2000</rasd:InstanceID>
|
142
|
+
<rasd:Parent>2</rasd:Parent>
|
143
|
+
<rasd:ResourceType>17</rasd:ResourceType>
|
144
|
+
</ovf:Item>
|
145
|
+
<ovf:Item>
|
146
|
+
<rasd:Address>0</rasd:Address>
|
147
|
+
<rasd:Description>IDE Controller</rasd:Description>
|
148
|
+
<rasd:ElementName>IDE Controller 0</rasd:ElementName>
|
149
|
+
<rasd:InstanceID>3</rasd:InstanceID>
|
150
|
+
<rasd:ResourceType>5</rasd:ResourceType>
|
151
|
+
</ovf:Item>
|
152
|
+
<ovf:Item>
|
153
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
154
|
+
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
|
155
|
+
<rasd:Description>CD/DVD Drive</rasd:Description>
|
156
|
+
<rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
|
157
|
+
<rasd:HostResource/>
|
158
|
+
<rasd:InstanceID>3002</rasd:InstanceID>
|
159
|
+
<rasd:Parent>3</rasd:Parent>
|
160
|
+
<rasd:ResourceType>15</rasd:ResourceType>
|
161
|
+
</ovf:Item>
|
162
|
+
<ovf:Item vcloud:href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
|
163
|
+
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
|
164
|
+
<rasd:Description>Number of Virtual CPUs</rasd:Description>
|
165
|
+
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
|
166
|
+
<rasd:InstanceID>4</rasd:InstanceID>
|
167
|
+
<rasd:Reservation>0</rasd:Reservation>
|
168
|
+
<rasd:ResourceType>3</rasd:ResourceType>
|
169
|
+
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
|
170
|
+
<rasd:Weight>0</rasd:Weight>
|
171
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/cpu"/>
|
172
|
+
</ovf:Item>
|
173
|
+
<ovf:Item vcloud:href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
|
174
|
+
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
|
175
|
+
<rasd:Description>Memory Size</rasd:Description>
|
176
|
+
<rasd:ElementName>512 MB of memory</rasd:ElementName>
|
177
|
+
<rasd:InstanceID>5</rasd:InstanceID>
|
178
|
+
<rasd:Reservation>0</rasd:Reservation>
|
179
|
+
<rasd:ResourceType>4</rasd:ResourceType>
|
180
|
+
<rasd:VirtualQuantity>512</rasd:VirtualQuantity>
|
181
|
+
<rasd:Weight>0</rasd:Weight>
|
182
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/memory"/>
|
183
|
+
</ovf:Item>
|
184
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/"/>
|
185
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/cpu"/>
|
186
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/cpu"/>
|
187
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/memory"/>
|
188
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/memory"/>
|
189
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/disks"/>
|
190
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/disks"/>
|
191
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/media"/>
|
192
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/networkCards"/>
|
193
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/vApp/vm-2/virtualHardwareSection/networkCards"/>
|
194
|
+
</ovf:VirtualHardwareSection>
|
195
|
+
<ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="80" vcloud:href="https://vcloud.example.com/api/vApp/vm-2/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="rhel5_64Guest">
|
196
|
+
<ovf:Info>Specifies the operating system installed</ovf:Info>
|
197
|
+
<ovf:Description>Red Hat Enterprise Linux 5 (64-bit)</ovf:Description>
|
198
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloud.example.com/api/vApp/vm-2/operatingSystemSection/"/>
|
199
|
+
</ovf:OperatingSystemSection>
|
200
|
+
<NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/vApp/vm-2/networkConnectionSection/" ovf:required="false">
|
201
|
+
<ovf:Info>Specifies the available VM network connections</ovf:Info>
|
202
|
+
<PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
|
203
|
+
<NetworkConnection network="Network1">
|
204
|
+
<NetworkConnectionIndex>0</NetworkConnectionIndex>
|
205
|
+
<IpAddress>192.168.2.102</IpAddress>
|
206
|
+
<ExternalIpAddress>192.168.1.103</ExternalIpAddress>
|
207
|
+
<IsConnected>true</IsConnected>
|
208
|
+
<MACAddress>00:50:56:01:00:03</MACAddress>
|
209
|
+
<IpAddressAllocationMode>POOL</IpAddressAllocationMode>
|
210
|
+
</NetworkConnection>
|
211
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/vApp/vm-2/networkConnectionSection/"/>
|
212
|
+
</NetworkConnectionSection>
|
213
|
+
<GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/vApp/vm-2/guestCustomizationSection/" ovf:required="false">
|
214
|
+
<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
|
215
|
+
<Enabled>true</Enabled>
|
216
|
+
<ChangeSid>false</ChangeSid>
|
217
|
+
<VirtualMachineId>2</VirtualMachineId>
|
218
|
+
<JoinDomainEnabled>false</JoinDomainEnabled>
|
219
|
+
<UseOrgSettings>false</UseOrgSettings>
|
220
|
+
<AdminPasswordEnabled>true</AdminPasswordEnabled>
|
221
|
+
<AdminPasswordAuto>true</AdminPasswordAuto>
|
222
|
+
<AdminPassword>password</AdminPassword>
|
223
|
+
<ResetPasswordRequired>false</ResetPasswordRequired>
|
224
|
+
<CustomizationScript/>
|
225
|
+
<ComputerName>vm2</ComputerName>
|
226
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/vApp/vm-2/guestCustomizationSection/"/>
|
227
|
+
</GuestCustomizationSection>
|
228
|
+
<VAppScopedLocalId>vmware_RHEL5-U5-64-small_v02</VAppScopedLocalId>
|
229
|
+
</Vm>
|
230
|
+
<Vm deployed="true" status="8" name="vm1" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/vApp/vm-1">
|
231
|
+
<VCloudExtension required="false">
|
232
|
+
<vmext:VimObjectRef>
|
233
|
+
<vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="vm1.example.com" href="https://vcloud.example.com/api/admin/extension/vimServer/1"/>
|
234
|
+
<vmext:MoRef>vm-594</vmext:MoRef>
|
235
|
+
<vmext:VimObjectType>VIRTUAL_MACHINE</vmext:VimObjectType>
|
236
|
+
</vmext:VimObjectRef>
|
237
|
+
</VCloudExtension>
|
238
|
+
<Link rel="power:powerOn" href="https://vcloud.example.com/api/vApp/vm-1/power/action/powerOn"/>
|
239
|
+
<Link rel="power:powerOff" href="https://vcloud.example.com/api/vApp/vm-1/power/action/powerOff"/>
|
240
|
+
<Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/vApp/vm-1/action/undeploy"/>
|
241
|
+
<Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/vApp/vapp-1"/>
|
242
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/vApp/vm-1"/>
|
243
|
+
<Link rel="screen:thumbnail" href="https://vcloud.example.com/api/vApp/vm-1/screen"/>
|
244
|
+
<Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/vApp/vm-1/media/action/insertMedia"/>
|
245
|
+
<Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/vApp/vm-1/media/action/ejectMedia"/>
|
246
|
+
<Description/>
|
247
|
+
<ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
|
248
|
+
<ovf:Info>Virtual hardware requirements</ovf:Info>
|
249
|
+
<ovf:System>
|
250
|
+
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
|
251
|
+
<vssd:InstanceID>0</vssd:InstanceID>
|
252
|
+
<vssd:VirtualSystemIdentifier>vm1</vssd:VirtualSystemIdentifier>
|
253
|
+
<vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
|
254
|
+
</ovf:System>
|
255
|
+
<ovf:Item>
|
256
|
+
<rasd:Address>00:50:56:01:02:04</rasd:Address>
|
257
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
258
|
+
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
|
259
|
+
<rasd:Connection vcloud:ipAddress="192.168.2.101" vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="POOL">Network1</rasd:Connection>
|
260
|
+
<rasd:Description>PCNet32 ethernet adapter</rasd:Description>
|
261
|
+
<rasd:ElementName>Network adapter 0</rasd:ElementName>
|
262
|
+
<rasd:InstanceID>1</rasd:InstanceID>
|
263
|
+
<rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
|
264
|
+
<rasd:ResourceType>10</rasd:ResourceType>
|
265
|
+
</ovf:Item>
|
266
|
+
<ovf:Item>
|
267
|
+
<rasd:Address>0</rasd:Address>
|
268
|
+
<rasd:Description>SCSI Controller</rasd:Description>
|
269
|
+
<rasd:ElementName>SCSI Controller 0</rasd:ElementName>
|
270
|
+
<rasd:InstanceID>2</rasd:InstanceID>
|
271
|
+
<rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
|
272
|
+
<rasd:ResourceType>6</rasd:ResourceType>
|
273
|
+
</ovf:Item>
|
274
|
+
<ovf:Item>
|
275
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
276
|
+
<rasd:Description>Hard disk</rasd:Description>
|
277
|
+
<rasd:ElementName>Hard disk 1</rasd:ElementName>
|
278
|
+
<rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
|
279
|
+
<rasd:InstanceID>2000</rasd:InstanceID>
|
280
|
+
<rasd:Parent>2</rasd:Parent>
|
281
|
+
<rasd:ResourceType>17</rasd:ResourceType>
|
282
|
+
</ovf:Item>
|
283
|
+
<ovf:Item>
|
284
|
+
<rasd:Address>0</rasd:Address>
|
285
|
+
<rasd:Description>IDE Controller</rasd:Description>
|
286
|
+
<rasd:ElementName>IDE Controller 0</rasd:ElementName>
|
287
|
+
<rasd:InstanceID>3</rasd:InstanceID>
|
288
|
+
<rasd:ResourceType>5</rasd:ResourceType>
|
289
|
+
</ovf:Item>
|
290
|
+
<ovf:Item>
|
291
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
292
|
+
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
|
293
|
+
<rasd:Description>CD/DVD Drive</rasd:Description>
|
294
|
+
<rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
|
295
|
+
<rasd:HostResource/>
|
296
|
+
<rasd:InstanceID>3002</rasd:InstanceID>
|
297
|
+
<rasd:Parent>3</rasd:Parent>
|
298
|
+
<rasd:ResourceType>15</rasd:ResourceType>
|
299
|
+
</ovf:Item>
|
300
|
+
<ovf:Item vcloud:href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
|
301
|
+
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
|
302
|
+
<rasd:Description>Number of Virtual CPUs</rasd:Description>
|
303
|
+
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
|
304
|
+
<rasd:InstanceID>4</rasd:InstanceID>
|
305
|
+
<rasd:Reservation>0</rasd:Reservation>
|
306
|
+
<rasd:ResourceType>3</rasd:ResourceType>
|
307
|
+
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
|
308
|
+
<rasd:Weight>0</rasd:Weight>
|
309
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/cpu"/>
|
310
|
+
</ovf:Item>
|
311
|
+
<ovf:Item vcloud:href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
|
312
|
+
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
|
313
|
+
<rasd:Description>Memory Size</rasd:Description>
|
314
|
+
<rasd:ElementName>512 MB of memory</rasd:ElementName>
|
315
|
+
<rasd:InstanceID>5</rasd:InstanceID>
|
316
|
+
<rasd:Reservation>0</rasd:Reservation>
|
317
|
+
<rasd:ResourceType>4</rasd:ResourceType>
|
318
|
+
<rasd:VirtualQuantity>512</rasd:VirtualQuantity>
|
319
|
+
<rasd:Weight>0</rasd:Weight>
|
320
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/memory"/>
|
321
|
+
</ovf:Item>
|
322
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/"/>
|
323
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/cpu"/>
|
324
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/cpu"/>
|
325
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/memory"/>
|
326
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/memory"/>
|
327
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/disks"/>
|
328
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/disks"/>
|
329
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/media"/>
|
330
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/networkCards"/>
|
331
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/vApp/vm-1/virtualHardwareSection/networkCards"/>
|
332
|
+
</ovf:VirtualHardwareSection>
|
333
|
+
<ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="80" vcloud:href="https://vcloud.example.com/api/vApp/vm-1/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="rhel5_64Guest">
|
334
|
+
<ovf:Info>Specifies the operating system installed</ovf:Info>
|
335
|
+
<ovf:Description>Red Hat Enterprise Linux 5 (64-bit)</ovf:Description>
|
336
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloud.example.com/api/vApp/vm-1/operatingSystemSection/"/>
|
337
|
+
</ovf:OperatingSystemSection>
|
338
|
+
<NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/vApp/vm-1/networkConnectionSection/" ovf:required="false">
|
339
|
+
<ovf:Info>Specifies the available VM network connections</ovf:Info>
|
340
|
+
<PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
|
341
|
+
<NetworkConnection network="Network1">
|
342
|
+
<NetworkConnectionIndex>0</NetworkConnectionIndex>
|
343
|
+
<IpAddress>192.168.2.101</IpAddress>
|
344
|
+
<ExternalIpAddress>192.168.1.102</ExternalIpAddress>
|
345
|
+
<IsConnected>true</IsConnected>
|
346
|
+
<MACAddress>00:50:56:01:02:04</MACAddress>
|
347
|
+
<IpAddressAllocationMode>POOL</IpAddressAllocationMode>
|
348
|
+
</NetworkConnection>
|
349
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/vApp/vm-1/networkConnectionSection/"/>
|
350
|
+
</NetworkConnectionSection>
|
351
|
+
<GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/vApp/vm-1/guestCustomizationSection/" ovf:required="false">
|
352
|
+
<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
|
353
|
+
<Enabled>true</Enabled>
|
354
|
+
<ChangeSid>false</ChangeSid>
|
355
|
+
<VirtualMachineId>1</VirtualMachineId>
|
356
|
+
<JoinDomainEnabled>false</JoinDomainEnabled>
|
357
|
+
<UseOrgSettings>false</UseOrgSettings>
|
358
|
+
<AdminPasswordEnabled>true</AdminPasswordEnabled>
|
359
|
+
<AdminPasswordAuto>true</AdminPasswordAuto>
|
360
|
+
<AdminPassword>password</AdminPassword>
|
361
|
+
<ResetPasswordRequired>false</ResetPasswordRequired>
|
362
|
+
<CustomizationScript/>
|
363
|
+
<ComputerName>vm1</ComputerName>
|
364
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/vApp/vm-1/guestCustomizationSection/"/>
|
365
|
+
</GuestCustomizationSection>
|
366
|
+
<VAppScopedLocalId>vmware_RHEL5-U5-64-small_v01</VAppScopedLocalId>
|
367
|
+
</Vm>
|
368
|
+
</Children>
|
369
|
+
</VApp>
|
@@ -0,0 +1,155 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Vm xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:vmext="http://www.vmware.com/vcloud/extension/v1.5" needsCustomization="false" deployed="true" status="8" name="vm2" id="urn:vcloud:vm:1" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/vApp/vm-2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.vmware.com/vcloud/extension/v1.5 http://vcloud.example.com/api/v1.5/schema/vmwextensions.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_VirtualSystemSettingData.xsd http://schemas.dmtf.org/ovf/envelope/1 http://schemas.dmtf.org/ovf/envelope/1/dsp8023_1.1.0.xsd http://www.vmware.com/vcloud/v1.5 http://vcloud.example.com/api/v1.5/schema/master.xsd http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2.22.0/CIM_ResourceAllocationSettingData.xsd">
|
3
|
+
<VCloudExtension required="false">
|
4
|
+
<vmext:VimObjectRef>
|
5
|
+
<vmext:VimServerRef type="application/vnd.vmware.admin.vmwvirtualcenter+xml" name="vm2.example.com" href="https://vcloud.example.com/api/v1.0/admin/extension/vimServer/2"/>
|
6
|
+
<vmext:MoRef>vm-595</vmext:MoRef>
|
7
|
+
<vmext:VimObjectType>VIRTUAL_MACHINE</vmext:VimObjectType>
|
8
|
+
</vmext:VimObjectRef>
|
9
|
+
</VCloudExtension>
|
10
|
+
<Link rel="power:powerOn" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/power/action/powerOn"/>
|
11
|
+
<Link rel="power:powerOff" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/power/action/powerOff"/>
|
12
|
+
<Link rel="undeploy" type="application/vnd.vmware.vcloud.undeployVAppParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/action/undeploy"/>
|
13
|
+
<Link rel="up" type="application/vnd.vmware.vcloud.vApp+xml" href="https://vcloud.example.com/api/v1.0/vApp/vapp-1"/>
|
14
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.vm+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2"/>
|
15
|
+
<Link rel="screen:thumbnail" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/screen"/>
|
16
|
+
<Link rel="media:insertMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/media/action/insertMedia"/>
|
17
|
+
<Link rel="media:ejectMedia" type="application/vnd.vmware.vcloud.mediaInsertOrEjectParams+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/media/action/ejectMedia"/>
|
18
|
+
<Description>Some VM Description</Description>
|
19
|
+
<ovf:VirtualHardwareSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/" vcloud:type="application/vnd.vmware.vcloud.virtualHardwareSection+xml">
|
20
|
+
<ovf:Info>Virtual hardware requirements</ovf:Info>
|
21
|
+
<ovf:System>
|
22
|
+
<vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
|
23
|
+
<vssd:InstanceID>0</vssd:InstanceID>
|
24
|
+
<vssd:VirtualSystemIdentifier>vm2</vssd:VirtualSystemIdentifier>
|
25
|
+
<vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
|
26
|
+
</ovf:System>
|
27
|
+
<ovf:Item>
|
28
|
+
<rasd:Address>00:50:56:01:02:03</rasd:Address>
|
29
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
30
|
+
<rasd:AutomaticAllocation>true</rasd:AutomaticAllocation>
|
31
|
+
<rasd:Connection vcloud:ipAddress="192.168.2.102" vcloud:primaryNetworkConnection="true" vcloud:ipAddressingMode="POOL">Network1</rasd:Connection>
|
32
|
+
<rasd:Description>PCNet32 ethernet adapter</rasd:Description>
|
33
|
+
<rasd:ElementName>Network adapter 0</rasd:ElementName>
|
34
|
+
<rasd:InstanceID>1</rasd:InstanceID>
|
35
|
+
<rasd:ResourceSubType>PCNet32</rasd:ResourceSubType>
|
36
|
+
<rasd:ResourceType>10</rasd:ResourceType>
|
37
|
+
</ovf:Item>
|
38
|
+
<ovf:Item>
|
39
|
+
<rasd:Address>0</rasd:Address>
|
40
|
+
<rasd:Description>SCSI Controller</rasd:Description>
|
41
|
+
<rasd:ElementName>SCSI Controller 0</rasd:ElementName>
|
42
|
+
<rasd:InstanceID>2</rasd:InstanceID>
|
43
|
+
<rasd:ResourceSubType>lsilogicsas</rasd:ResourceSubType>
|
44
|
+
<rasd:ResourceType>6</rasd:ResourceType>
|
45
|
+
</ovf:Item>
|
46
|
+
<ovf:Item>
|
47
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
48
|
+
<rasd:Description>Hard disk</rasd:Description>
|
49
|
+
<rasd:ElementName>Hard disk 1</rasd:ElementName>
|
50
|
+
<rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
|
51
|
+
<rasd:InstanceID>2000</rasd:InstanceID>
|
52
|
+
<rasd:Parent>2</rasd:Parent>
|
53
|
+
<rasd:ResourceType>17</rasd:ResourceType>
|
54
|
+
</ovf:Item>
|
55
|
+
<ovf:Item>
|
56
|
+
<rasd:AddressOnParent>1</rasd:AddressOnParent>
|
57
|
+
<rasd:Description>Hard disk</rasd:Description>
|
58
|
+
<rasd:ElementName>Hard disk 2</rasd:ElementName>
|
59
|
+
<rasd:HostResource vcloud:capacity="1600" vcloud:busType="6" vcloud:busSubType="lsilogicsas"/>
|
60
|
+
<rasd:InstanceID>3000</rasd:InstanceID>
|
61
|
+
<rasd:Parent>2</rasd:Parent>
|
62
|
+
<rasd:ResourceType>17</rasd:ResourceType>
|
63
|
+
</ovf:Item>
|
64
|
+
<ovf:Item>
|
65
|
+
<rasd:Address>0</rasd:Address>
|
66
|
+
<rasd:Description>IDE Controller</rasd:Description>
|
67
|
+
<rasd:ElementName>IDE Controller 0</rasd:ElementName>
|
68
|
+
<rasd:InstanceID>3</rasd:InstanceID>
|
69
|
+
<rasd:ResourceType>5</rasd:ResourceType>
|
70
|
+
</ovf:Item>
|
71
|
+
<ovf:Item>
|
72
|
+
<rasd:AddressOnParent>0</rasd:AddressOnParent>
|
73
|
+
<rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
|
74
|
+
<rasd:Description>CD/DVD Drive</rasd:Description>
|
75
|
+
<rasd:ElementName>CD/DVD Drive 1</rasd:ElementName>
|
76
|
+
<rasd:HostResource/>
|
77
|
+
<rasd:InstanceID>3002</rasd:InstanceID>
|
78
|
+
<rasd:Parent>3</rasd:Parent>
|
79
|
+
<rasd:ResourceType>15</rasd:ResourceType>
|
80
|
+
</ovf:Item>
|
81
|
+
<ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
|
82
|
+
<rasd:AllocationUnits>hertz * 10^6</rasd:AllocationUnits>
|
83
|
+
<rasd:Description>Number of Virtual CPUs</rasd:Description>
|
84
|
+
<rasd:ElementName>1 virtual CPU(s)</rasd:ElementName>
|
85
|
+
<rasd:InstanceID>4</rasd:InstanceID>
|
86
|
+
<rasd:Reservation>0</rasd:Reservation>
|
87
|
+
<rasd:ResourceType>3</rasd:ResourceType>
|
88
|
+
<rasd:VirtualQuantity>1</rasd:VirtualQuantity>
|
89
|
+
<rasd:Weight>0</rasd:Weight>
|
90
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
|
91
|
+
</ovf:Item>
|
92
|
+
<ovf:Item vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory" vcloud:type="application/vnd.vmware.vcloud.rasdItem+xml">
|
93
|
+
<rasd:AllocationUnits>byte * 2^20</rasd:AllocationUnits>
|
94
|
+
<rasd:Description>Memory Size</rasd:Description>
|
95
|
+
<rasd:ElementName>512 MB of memory</rasd:ElementName>
|
96
|
+
<rasd:InstanceID>5</rasd:InstanceID>
|
97
|
+
<rasd:Reservation>0</rasd:Reservation>
|
98
|
+
<rasd:ResourceType>4</rasd:ResourceType>
|
99
|
+
<rasd:VirtualQuantity>512</rasd:VirtualQuantity>
|
100
|
+
<rasd:Weight>0</rasd:Weight>
|
101
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
|
102
|
+
</ovf:Item>
|
103
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.virtualHardwareSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/"/>
|
104
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
|
105
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/cpu"/>
|
106
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
|
107
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItem+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/memory"/>
|
108
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/disks"/>
|
109
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/disks"/>
|
110
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/media"/>
|
111
|
+
<Link rel="down" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/networkCards"/>
|
112
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.rasdItemsList+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/virtualHardwareSection/networkCards"/>
|
113
|
+
</ovf:VirtualHardwareSection>
|
114
|
+
<ovf:OperatingSystemSection xmlns:vcloud="http://www.vmware.com/vcloud/v1" xmlns:vmw="http://www.vmware.com/schema/ovf" ovf:id="80" vcloud:href="https://vcloud.example.com/api/v1.0/vApp/vm-2/operatingSystemSection/" vcloud:type="application/vnd.vmware.vcloud.operatingSystemSection+xml" vmw:osType="rhel5_64Guest">
|
115
|
+
<ovf:Info>Specifies the operating system installed</ovf:Info>
|
116
|
+
<ovf:Description>Red Hat Enterprise Linux 5 (64-bit)</ovf:Description>
|
117
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.operatingSystemSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/operatingSystemSection/"/>
|
118
|
+
</ovf:OperatingSystemSection>
|
119
|
+
<NetworkConnectionSection type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/networkConnectionSection/" ovf:required="false">
|
120
|
+
<ovf:Info>Specifies the available VM network connections</ovf:Info>
|
121
|
+
<PrimaryNetworkConnectionIndex>0</PrimaryNetworkConnectionIndex>
|
122
|
+
<NetworkConnection network="Network1">
|
123
|
+
<NetworkConnectionIndex>0</NetworkConnectionIndex>
|
124
|
+
<IpAddress>192.168.2.102</IpAddress>
|
125
|
+
<ExternalIpAddress>192.168.1.103</ExternalIpAddress>
|
126
|
+
<IsConnected>true</IsConnected>
|
127
|
+
<MACAddress>00:50:56:01:02:03</MACAddress>
|
128
|
+
<IpAddressAllocationMode>POOL</IpAddressAllocationMode>
|
129
|
+
</NetworkConnection>
|
130
|
+
<NetworkConnection network="Network2">
|
131
|
+
<NetworkConnectionIndex>1</NetworkConnectionIndex>
|
132
|
+
<IpAddress>192.168.3.102</IpAddress>
|
133
|
+
<IsConnected>true</IsConnected>
|
134
|
+
<MACAddress>00:50:56:01:02:04</MACAddress>
|
135
|
+
<IpAddressAllocationMode>POOL</IpAddressAllocationMode>
|
136
|
+
</NetworkConnection>
|
137
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.networkConnectionSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/networkConnectionSection/"/>
|
138
|
+
</NetworkConnectionSection>
|
139
|
+
<GuestCustomizationSection type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/guestCustomizationSection/" ovf:required="false">
|
140
|
+
<ovf:Info>Specifies Guest OS Customization Settings</ovf:Info>
|
141
|
+
<Enabled>true</Enabled>
|
142
|
+
<ChangeSid>false</ChangeSid>
|
143
|
+
<VirtualMachineId>2</VirtualMachineId>
|
144
|
+
<JoinDomainEnabled>false</JoinDomainEnabled>
|
145
|
+
<UseOrgSettings>false</UseOrgSettings>
|
146
|
+
<AdminPasswordEnabled>true</AdminPasswordEnabled>
|
147
|
+
<AdminPasswordAuto>true</AdminPasswordAuto>
|
148
|
+
<AdminPassword>password</AdminPassword>
|
149
|
+
<ResetPasswordRequired>false</ResetPasswordRequired>
|
150
|
+
<CustomizationScript/>
|
151
|
+
<ComputerName>vm2</ComputerName>
|
152
|
+
<Link rel="edit" type="application/vnd.vmware.vcloud.guestCustomizationSection+xml" href="https://vcloud.example.com/api/v1.0/vApp/vm-2/guestCustomizationSection/"/>
|
153
|
+
</GuestCustomizationSection>
|
154
|
+
<VAppScopedLocalId>vmware_RHEL5-U5-64-small_v02</VAppScopedLocalId>
|
155
|
+
</Vm>
|