fog 1.38.0 → 1.39.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +13 -3
- data/CHANGELOG.md +66 -0
- data/Gemfile +1 -1
- data/LICENSE.md +1 -1
- data/README.md +13 -0
- data/fog.gemspec +27 -6
- data/gemfiles/Gemfile-1.9 +16 -0
- data/gemfiles/Gemfile-2.0 +11 -0
- data/gemfiles/Gemfile-edge +1 -1
- data/gemfiles/Gemfile-edge-1.9 +20 -0
- data/gemfiles/Gemfile-edge-2.0 +16 -0
- data/lib/fog.rb +0 -1
- data/lib/fog/bin.rb +0 -1
- data/lib/fog/cloudsigma/compute.rb +9 -0
- data/lib/fog/cloudsigma/models/server.rb +5 -0
- data/lib/fog/cloudsigma/models/snapshot.rb +77 -0
- data/lib/fog/cloudsigma/models/snapshots.rb +26 -0
- data/lib/fog/cloudsigma/models/volume.rb +15 -0
- data/lib/fog/cloudsigma/requests/clone_snapshot.rb +31 -0
- data/lib/fog/cloudsigma/requests/create_snapshot.rb +27 -0
- data/lib/fog/cloudsigma/requests/delete_snapshot.rb +17 -0
- data/lib/fog/cloudsigma/requests/get_snapshot.rb +17 -0
- data/lib/fog/cloudsigma/requests/list_snapshots.rb +17 -0
- data/lib/fog/cloudsigma/requests/stop_server.rb +5 -4
- data/lib/fog/cloudsigma/requests/update_snapshot.rb +17 -0
- data/lib/fog/cloudstack/core.rb +2 -0
- data/lib/fog/joyent/compute.rb +4 -16
- data/lib/fog/opennebula/README.md +0 -0
- data/lib/fog/opennebula/compute.rb +90 -19
- data/lib/fog/opennebula/models/compute/server.rb +9 -1
- data/lib/fog/opennebula/requests/compute/image_pool.rb +0 -1
- data/lib/fog/opennebula/requests/compute/list_vms.rb +8 -26
- data/lib/fog/opennebula/requests/compute/template_pool.rb +8 -29
- data/lib/fog/opennebula/requests/compute/vm_allocate.rb +24 -15
- data/lib/fog/opennebula/requests/compute/vm_destroy.rb +13 -4
- data/lib/fog/opennebula/requests/compute/vm_disk_snapshot.rb +8 -2
- data/lib/fog/opennebula/requests/compute/vm_resume.rb +13 -23
- data/lib/fog/opennebula/requests/compute/vm_shutdown.rb +1 -1
- data/lib/fog/opennebula/requests/compute/vm_stop.rb +3 -10
- data/lib/fog/opennebula/requests/compute/vm_suspend.rb +31 -0
- data/lib/fog/ovirt/compute.rb +4 -0
- data/lib/fog/ovirt/models/compute/instance_type.rb +39 -0
- data/lib/fog/ovirt/models/compute/instance_types.rb +20 -0
- data/lib/fog/ovirt/models/compute/server.rb +1 -0
- data/lib/fog/ovirt/requests/compute/get_instance_type.rb +17 -0
- data/lib/fog/ovirt/requests/compute/list_instance_types.rb +19 -0
- data/lib/fog/ovirt/requests/compute/mock_files/instance_type.xml +42 -0
- data/lib/fog/ovirt/requests/compute/mock_files/instance_types.xml +197 -0
- data/lib/fog/rage4/dns.rb +1 -0
- data/lib/fog/rage4/requests/dns/bulk_update_records.rb +38 -0
- data/lib/fog/vcloud_director/compute.rb +1 -0
- data/lib/fog/vcloud_director/generators/compute/compose_common.rb +17 -16
- data/lib/fog/vcloud_director/generators/compute/create_snapshot.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/post_create_snapshot.rb +21 -0
- data/lib/fog/version.rb +1 -1
- data/lib/tasks/changelog_task.rb +4 -4
- data/spec/fog/bin/dnsimple_spec.rb +2 -2
- data/spec/fog/bin_spec.rb +3 -6
- data/tests/cloudsigma/models/snapshot_tests.rb +23 -0
- data/tests/cloudsigma/models/snapshots_tests.rb +15 -0
- data/tests/cloudsigma/models/volume_tests.rb +3 -3
- data/tests/cloudsigma/requests/server_tests.rb +10 -10
- data/tests/cloudsigma/requests/snapshots_tests.rb +83 -0
- data/tests/cloudsigma/requests/volumes_tests.rb +12 -11
- data/tests/compute/helper.rb +0 -19
- data/tests/helpers/mock_helper.rb +0 -4
- data/tests/opennebula/models/compute/flavor_tests.rb +2 -2
- data/tests/opennebula/models/compute/network_tests.rb +1 -2
- data/tests/opennebula/requests/compute/vm_allocate_tests.rb +20 -3
- data/tests/opennebula/requests/compute/vm_suspend_resume_tests.rb +52 -0
- data/tests/rage4/requests/dns/dns_tests.rb +12 -0
- data/tests/storage/helper.rb +0 -6
- metadata +101 -389
- data/lib/fog/bin/digitalocean.rb +0 -29
- data/lib/fog/bin/dnsimple.rb +0 -29
- data/lib/fog/bin/ninefold.rb +0 -34
- data/lib/fog/digitalocean.rb +0 -1
- data/lib/fog/digitalocean/CHANGELOG.md +0 -6
- data/lib/fog/digitalocean/compute_v2.rb +0 -109
- data/lib/fog/digitalocean/core.rb +0 -9
- data/lib/fog/digitalocean/examples/getting_started.md +0 -124
- data/lib/fog/digitalocean/models/compute_v2/flavor.rb +0 -17
- data/lib/fog/digitalocean/models/compute_v2/flavors.rb +0 -21
- data/lib/fog/digitalocean/models/compute_v2/image.rb +0 -25
- data/lib/fog/digitalocean/models/compute_v2/images.rb +0 -42
- data/lib/fog/digitalocean/models/compute_v2/region.rb +0 -13
- data/lib/fog/digitalocean/models/compute_v2/regions.rb +0 -21
- data/lib/fog/digitalocean/models/compute_v2/server.rb +0 -170
- data/lib/fog/digitalocean/models/compute_v2/servers.rb +0 -43
- data/lib/fog/digitalocean/models/compute_v2/ssh_key.rb +0 -31
- data/lib/fog/digitalocean/models/compute_v2/ssh_keys.rb +0 -40
- data/lib/fog/digitalocean/models/paging_collection.rb +0 -41
- data/lib/fog/digitalocean/requests/compute_v2/change_kernel.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/convert_to_snapshot.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/create_server.rb +0 -93
- data/lib/fog/digitalocean/requests/compute_v2/create_ssh_key.rb +0 -49
- data/lib/fog/digitalocean/requests/compute_v2/delete_ssh_key.rb +0 -32
- data/lib/fog/digitalocean/requests/compute_v2/destroy_server.rb +0 -35
- data/lib/fog/digitalocean/requests/compute_v2/disable_backups.rb +0 -45
- data/lib/fog/digitalocean/requests/compute_v2/enable_ipv6.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/enable_private_networking.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/get_droplet_action.rb +0 -36
- data/lib/fog/digitalocean/requests/compute_v2/get_image_details.rb +0 -42
- data/lib/fog/digitalocean/requests/compute_v2/get_server_details.rb +0 -84
- data/lib/fog/digitalocean/requests/compute_v2/get_ssh_key.rb +0 -34
- data/lib/fog/digitalocean/requests/compute_v2/list_droplet_actions.rb +0 -38
- data/lib/fog/digitalocean/requests/compute_v2/list_flavors.rb +0 -131
- data/lib/fog/digitalocean/requests/compute_v2/list_images.rb +0 -50
- data/lib/fog/digitalocean/requests/compute_v2/list_regions.rb +0 -94
- data/lib/fog/digitalocean/requests/compute_v2/list_servers.rb +0 -28
- data/lib/fog/digitalocean/requests/compute_v2/list_ssh_keys.rb +0 -31
- data/lib/fog/digitalocean/requests/compute_v2/password_reset.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/power_cycle.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/power_off.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/power_on.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/reboot_server.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/rebuild.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/rename.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/resize.rb +0 -48
- data/lib/fog/digitalocean/requests/compute_v2/restore.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/shutdown.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/snapshot.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/transfer_image.rb +0 -44
- data/lib/fog/digitalocean/requests/compute_v2/update_ssh_key.rb +0 -46
- data/lib/fog/digitalocean/requests/compute_v2/upgrade.rb +0 -44
- data/lib/fog/digitalocean/service.rb +0 -51
- data/lib/fog/dnsimple.rb +0 -1
- data/lib/fog/dnsimple/core.rb +0 -10
- data/lib/fog/dnsimple/dns.rb +0 -112
- data/lib/fog/dnsimple/models/dns/record.rb +0 -63
- data/lib/fog/dnsimple/models/dns/records.rb +0 -34
- data/lib/fog/dnsimple/models/dns/zone.rb +0 -46
- data/lib/fog/dnsimple/models/dns/zones.rb +0 -25
- data/lib/fog/dnsimple/requests/dns/create_domain.rb +0 -62
- data/lib/fog/dnsimple/requests/dns/create_record.rb +0 -67
- data/lib/fog/dnsimple/requests/dns/delete_domain.rb +0 -35
- data/lib/fog/dnsimple/requests/dns/delete_record.rb +0 -30
- data/lib/fog/dnsimple/requests/dns/get_domain.rb +0 -39
- data/lib/fog/dnsimple/requests/dns/get_record.rb +0 -49
- data/lib/fog/dnsimple/requests/dns/list_domains.rb +0 -34
- data/lib/fog/dnsimple/requests/dns/list_records.rb +0 -34
- data/lib/fog/dnsimple/requests/dns/update_record.rb +0 -53
- data/lib/fog/ninefold.rb +0 -1
- data/lib/fog/ninefold/compute.rb +0 -144
- data/lib/fog/ninefold/core.rb +0 -11
- data/lib/fog/ninefold/models/compute/address.rb +0 -100
- data/lib/fog/ninefold/models/compute/addresses.rb +0 -27
- data/lib/fog/ninefold/models/compute/flavor.rb +0 -24
- data/lib/fog/ninefold/models/compute/flavors.rb +0 -26
- data/lib/fog/ninefold/models/compute/image.rb +0 -38
- data/lib/fog/ninefold/models/compute/images.rb +0 -26
- data/lib/fog/ninefold/models/compute/ip_forwarding_rule.rb +0 -76
- data/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb +0 -27
- data/lib/fog/ninefold/models/compute/server.rb +0 -182
- data/lib/fog/ninefold/models/compute/servers.rb +0 -27
- data/lib/fog/ninefold/requests/compute/assign_to_load_balancer_rule.rb +0 -11
- data/lib/fog/ninefold/requests/compute/associate_ip_address.rb +0 -12
- data/lib/fog/ninefold/requests/compute/change_service_for_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/create_ip_forwarding_rule.rb +0 -12
- data/lib/fog/ninefold/requests/compute/create_load_balancer_rule.rb +0 -11
- data/lib/fog/ninefold/requests/compute/delete_ip_forwarding_rule.rb +0 -12
- data/lib/fog/ninefold/requests/compute/delete_load_balancer_rule.rb +0 -11
- data/lib/fog/ninefold/requests/compute/deploy_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/destroy_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/disable_static_nat.rb +0 -12
- data/lib/fog/ninefold/requests/compute/disassociate_ip_address.rb +0 -12
- data/lib/fog/ninefold/requests/compute/enable_static_nat.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_accounts.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_async_jobs.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_capabilities.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_disk_offerings.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_events.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_hypervisors.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_ip_forwarding_rules.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_load_balancer_rule_instances.rb +0 -11
- data/lib/fog/ninefold/requests/compute/list_load_balancer_rules.rb +0 -11
- data/lib/fog/ninefold/requests/compute/list_network_offerings.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_networks.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_public_ip_addresses.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_resource_limits.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_service_offerings.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_templates.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_virtual_machines.rb +0 -12
- data/lib/fog/ninefold/requests/compute/list_zones.rb +0 -12
- data/lib/fog/ninefold/requests/compute/query_async_job_result.rb +0 -12
- data/lib/fog/ninefold/requests/compute/reboot_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/remove_from_load_balancer_rule.rb +0 -11
- data/lib/fog/ninefold/requests/compute/reset_password_for_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/start_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/stop_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/requests/compute/update_load_balancer_rule.rb +0 -11
- data/lib/fog/ninefold/requests/compute/update_virtual_machine.rb +0 -12
- data/lib/fog/ninefold/storage.rb +0 -53
- data/spec/fog/bin/digitalocean_spec.rb +0 -9
- data/spec/fog/bin/ninefold_spec.rb +0 -10
- data/tests/digitalocean/helper.rb +0 -56
- data/tests/digitalocean/requests/compute_v2/list_flavors_tests.rb +0 -25
- data/tests/digitalocean/requests/compute_v2/list_images_tests.rb +0 -25
- data/tests/digitalocean/requests/compute_v2/list_regions_tests.rb +0 -21
- data/tests/digitalocean/requests/compute_v2/server_tests.rb +0 -77
- data/tests/dnsimple/requests/dns/dns_tests.rb +0 -122
- data/tests/hp/block_storage_tests.rb +0 -47
- data/tests/hp/cdn_tests.rb +0 -23
- data/tests/hp/compute_tests.rb +0 -22
- data/tests/hp/models/block_storage/bootable_volume_tests.rb +0 -23
- data/tests/hp/models/block_storage/snapshot_tests.rb +0 -23
- data/tests/hp/models/block_storage/volume_tests.rb +0 -21
- data/tests/hp/models/block_storage_v2/snapshot_tests.rb +0 -22
- data/tests/hp/models/block_storage_v2/snapshots_tests.rb +0 -10
- data/tests/hp/models/block_storage_v2/volume_backup_tests.rb +0 -22
- data/tests/hp/models/block_storage_v2/volume_backups_tests.rb +0 -9
- data/tests/hp/models/block_storage_v2/volume_tests.rb +0 -22
- data/tests/hp/models/block_storage_v2/volumes_tests.rb +0 -5
- data/tests/hp/models/compute/address_tests.rb +0 -18
- data/tests/hp/models/compute/addresses_tests.rb +0 -5
- data/tests/hp/models/compute/key_pair_tests.rb +0 -26
- data/tests/hp/models/compute/key_pairs_tests.rb +0 -5
- data/tests/hp/models/compute/metadata_image_tests.rb +0 -60
- data/tests/hp/models/compute/metadata_server_tests.rb +0 -54
- data/tests/hp/models/compute/security_group_tests.rb +0 -38
- data/tests/hp/models/compute/security_groups_tests.rb +0 -5
- data/tests/hp/models/compute_v2/address_tests.rb +0 -23
- data/tests/hp/models/compute_v2/addresses_tests.rb +0 -7
- data/tests/hp/models/compute_v2/availability_zone_tests.rb +0 -11
- data/tests/hp/models/compute_v2/availability_zones_tests.rb +0 -13
- data/tests/hp/models/compute_v2/key_pair_tests.rb +0 -28
- data/tests/hp/models/compute_v2/key_pairs_tests.rb +0 -7
- data/tests/hp/models/compute_v2/metadata_image_tests.rb +0 -60
- data/tests/hp/models/compute_v2/metadata_server_tests.rb +0 -56
- data/tests/hp/models/compute_v2/server_tests.rb +0 -45
- data/tests/hp/models/compute_v2/servers_tests.rb +0 -9
- data/tests/hp/models/compute_v2/volume_attachment_tests.rb +0 -40
- data/tests/hp/models/compute_v2/volume_attachments_tests.rb +0 -17
- data/tests/hp/models/dns/domain_tests.rb +0 -25
- data/tests/hp/models/dns/domains_tests.rb +0 -14
- data/tests/hp/models/dns/record_tests.rb +0 -29
- data/tests/hp/models/dns/records_tests.rb +0 -9
- data/tests/hp/models/lb/algorithms_tests.rb +0 -15
- data/tests/hp/models/lb/load_balancer_node_tests.rb +0 -9
- data/tests/hp/models/lb/load_balancer_nodes_tests.rb +0 -27
- data/tests/hp/models/lb/load_balancer_tests.rb +0 -6
- data/tests/hp/models/lb/load_balancer_virtual_ips_tests.rb +0 -22
- data/tests/hp/models/lb/load_balancers_tests.rb +0 -22
- data/tests/hp/models/lb/protocols_tests.rb +0 -15
- data/tests/hp/models/network/floating_ip_tests.rb +0 -37
- data/tests/hp/models/network/floating_ips_tests.rb +0 -8
- data/tests/hp/models/network/network_tests.rb +0 -25
- data/tests/hp/models/network/networks_tests.rb +0 -15
- data/tests/hp/models/network/port_tests.rb +0 -30
- data/tests/hp/models/network/ports_tests.rb +0 -21
- data/tests/hp/models/network/router_tests.rb +0 -55
- data/tests/hp/models/network/routers_tests.rb +0 -19
- data/tests/hp/models/network/security_group_rule_tests.rb +0 -25
- data/tests/hp/models/network/security_group_rules_tests.rb +0 -23
- data/tests/hp/models/network/security_group_tests.rb +0 -20
- data/tests/hp/models/network/security_groups_tests.rb +0 -20
- data/tests/hp/models/network/subnet_tests.rb +0 -30
- data/tests/hp/models/network/subnets_tests.rb +0 -22
- data/tests/hp/models/storage/directories_tests.rb +0 -23
- data/tests/hp/models/storage/directory_tests.rb +0 -131
- data/tests/hp/models/storage/file_tests.rb +0 -44
- data/tests/hp/models/storage/files_tests.rb +0 -38
- data/tests/hp/requests/block_storage/bootable_volume_tests.rb +0 -78
- data/tests/hp/requests/block_storage/snapshot_tests.rb +0 -56
- data/tests/hp/requests/block_storage/volume_tests.rb +0 -94
- data/tests/hp/requests/block_storage_v2/snapshot_tests.rb +0 -69
- data/tests/hp/requests/block_storage_v2/volume_backup_tests.rb +0 -117
- data/tests/hp/requests/block_storage_v2/volume_tests.rb +0 -106
- data/tests/hp/requests/cdn/container_tests.rb +0 -56
- data/tests/hp/requests/compute/address_tests.rb +0 -72
- data/tests/hp/requests/compute/flavor_tests.rb +0 -45
- data/tests/hp/requests/compute/image_tests.rb +0 -79
- data/tests/hp/requests/compute/key_pair_tests.rb +0 -65
- data/tests/hp/requests/compute/metadata_tests.rb +0 -70
- data/tests/hp/requests/compute/persistent_server_tests.rb +0 -66
- data/tests/hp/requests/compute/security_group_rule_tests.rb +0 -54
- data/tests/hp/requests/compute/security_group_tests.rb +0 -63
- data/tests/hp/requests/compute/server_address_tests.rb +0 -45
- data/tests/hp/requests/compute/server_tests.rb +0 -126
- data/tests/hp/requests/compute/server_volume_tests.rb +0 -75
- data/tests/hp/requests/compute_v2/address_tests.rb +0 -80
- data/tests/hp/requests/compute_v2/availability_zone_tests.rb +0 -19
- data/tests/hp/requests/compute_v2/flavor_tests.rb +0 -45
- data/tests/hp/requests/compute_v2/image_tests.rb +0 -86
- data/tests/hp/requests/compute_v2/key_pair_tests.rb +0 -66
- data/tests/hp/requests/compute_v2/metadata_tests.rb +0 -101
- data/tests/hp/requests/compute_v2/persistent_server_tests.rb +0 -67
- data/tests/hp/requests/compute_v2/server_address_tests.rb +0 -46
- data/tests/hp/requests/compute_v2/server_security_group_tests.rb +0 -42
- data/tests/hp/requests/compute_v2/server_tests.rb +0 -113
- data/tests/hp/requests/compute_v2/server_volume_tests.rb +0 -84
- data/tests/hp/requests/dns/domain_tests.rb +0 -72
- data/tests/hp/requests/dns/records_tests.rb +0 -64
- data/tests/hp/requests/lb/algorithms_tests.rb +0 -14
- data/tests/hp/requests/lb/limits_tests.rb +0 -16
- data/tests/hp/requests/lb/load_balancer_nodes_tests.rb +0 -46
- data/tests/hp/requests/lb/load_balancer_tests.rb +0 -56
- data/tests/hp/requests/lb/protocols_tests.rb +0 -14
- data/tests/hp/requests/lb/versions_tests.rb +0 -16
- data/tests/hp/requests/lb/virtual_ips_tests.rb +0 -34
- data/tests/hp/requests/network/floating_ip_tests.rb +0 -70
- data/tests/hp/requests/network/network_tests.rb +0 -57
- data/tests/hp/requests/network/port_tests.rb +0 -71
- data/tests/hp/requests/network/router_tests.rb +0 -108
- data/tests/hp/requests/network/security_group_rule_tests.rb +0 -58
- data/tests/hp/requests/network/security_group_tests.rb +0 -48
- data/tests/hp/requests/network/subnet_tests.rb +0 -71
- data/tests/hp/requests/storage/container_tests.rb +0 -86
- data/tests/hp/requests/storage/object_tests.rb +0 -121
- data/tests/hp/storage_tests.rb +0 -28
- data/tests/hp/user_agent_tests.rb +0 -13
- data/tests/ninefold/models/storage/file_update_tests.rb +0 -19
- data/tests/ninefold/models/storage/nested_directories_tests.rb +0 -23
- data/tests/ninefold/requests/compute/address_tests.rb +0 -42
- data/tests/ninefold/requests/compute/async_job_tests.rb +0 -33
- data/tests/ninefold/requests/compute/helper.rb +0 -369
- data/tests/ninefold/requests/compute/list_tests.rb +0 -56
- data/tests/ninefold/requests/compute/load_balancer_tests.rb +0 -66
- data/tests/ninefold/requests/compute/nat_tests.rb +0 -91
- data/tests/ninefold/requests/compute/network_tests.rb +0 -21
- data/tests/ninefold/requests/compute/template_tests.rb +0 -21
- data/tests/ninefold/requests/compute/virtual_machine_tests.rb +0 -68
@@ -0,0 +1,197 @@
|
|
1
|
+
<instance_types>
|
2
|
+
<instance_type href="/api/instancetypes/00000009-0009-0009-0009-0000000002fa" id="00000009-0009-0009-0009-0000000002fa">
|
3
|
+
<name>Large</name>
|
4
|
+
<description>Large instance type</description>
|
5
|
+
<link href="/api/instancetypes/00000009-0009-0009-0009-0000000002fa/nics" rel="nics"/>
|
6
|
+
<link href="/api/instancetypes/00000009-0009-0009-0009-0000000002fa/watchdogs" rel="watchdogs"/>
|
7
|
+
<link href="/api/instancetypes/00000009-0009-0009-0009-0000000002fa/graphicsconsoles" rel="graphicsconsoles"/>
|
8
|
+
<memory>8589934592</memory>
|
9
|
+
<cpu>
|
10
|
+
<topology sockets="2" cores="1" threads="1"/>
|
11
|
+
</cpu>
|
12
|
+
<os>
|
13
|
+
<boot dev="hd"/>
|
14
|
+
</os>
|
15
|
+
<creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
|
16
|
+
<high_availability>
|
17
|
+
<enabled>false</enabled>
|
18
|
+
<priority>0</priority>
|
19
|
+
</high_availability>
|
20
|
+
<display>
|
21
|
+
<type>spice</type>
|
22
|
+
<monitors>1</monitors>
|
23
|
+
<single_qxl_pci>false</single_qxl_pci>
|
24
|
+
<smartcard_enabled>false</smartcard_enabled>
|
25
|
+
</display>
|
26
|
+
<usb>
|
27
|
+
<enabled>false</enabled>
|
28
|
+
</usb>
|
29
|
+
<migration_downtime>-1</migration_downtime>
|
30
|
+
<migration>
|
31
|
+
<auto_converge>inherit</auto_converge>
|
32
|
+
<compressed>inherit</compressed>
|
33
|
+
</migration>
|
34
|
+
<io>
|
35
|
+
<threads>0</threads>
|
36
|
+
</io>
|
37
|
+
<memory_policy>
|
38
|
+
<guaranteed>8589934592</guaranteed>
|
39
|
+
</memory_policy>
|
40
|
+
</instance_type>
|
41
|
+
<instance_type href="/api/instancetypes/00000007-0007-0007-0007-000000000210" id="00000007-0007-0007-0007-000000000210">
|
42
|
+
<name>Medium</name>
|
43
|
+
<description>Medium instance type</description>
|
44
|
+
<link href="/api/instancetypes/00000007-0007-0007-0007-000000000210/nics" rel="nics"/>
|
45
|
+
<link href="/api/instancetypes/00000007-0007-0007-0007-000000000210/watchdogs" rel="watchdogs"/>
|
46
|
+
<link href="/api/instancetypes/00000007-0007-0007-0007-000000000210/graphicsconsoles" rel="graphicsconsoles"/>
|
47
|
+
<memory>4294967296</memory>
|
48
|
+
<cpu>
|
49
|
+
<topology sockets="2" cores="1" threads="1"/>
|
50
|
+
</cpu>
|
51
|
+
<os>
|
52
|
+
<boot dev="hd"/>
|
53
|
+
</os>
|
54
|
+
<creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
|
55
|
+
<high_availability>
|
56
|
+
<enabled>false</enabled>
|
57
|
+
<priority>0</priority>
|
58
|
+
</high_availability>
|
59
|
+
<display>
|
60
|
+
<type>spice</type>
|
61
|
+
<monitors>1</monitors>
|
62
|
+
<single_qxl_pci>false</single_qxl_pci>
|
63
|
+
<smartcard_enabled>false</smartcard_enabled>
|
64
|
+
</display>
|
65
|
+
<usb>
|
66
|
+
<enabled>false</enabled>
|
67
|
+
</usb>
|
68
|
+
<migration_downtime>-1</migration_downtime>
|
69
|
+
<migration>
|
70
|
+
<auto_converge>inherit</auto_converge>
|
71
|
+
<compressed>inherit</compressed>
|
72
|
+
</migration>
|
73
|
+
<io>
|
74
|
+
<threads>0</threads>
|
75
|
+
</io>
|
76
|
+
<memory_policy>
|
77
|
+
<guaranteed>4294967296</guaranteed>
|
78
|
+
</memory_policy>
|
79
|
+
</instance_type>
|
80
|
+
<instance_type href="/api/instancetypes/00000005-0005-0005-0005-000000000190" id="00000005-0005-0005-0005-000000000190">
|
81
|
+
<name>Small</name>
|
82
|
+
<description>Small instance type</description>
|
83
|
+
<link href="/api/instancetypes/00000005-0005-0005-0005-000000000190/nics" rel="nics"/>
|
84
|
+
<link href="/api/instancetypes/00000005-0005-0005-0005-000000000190/watchdogs" rel="watchdogs"/>
|
85
|
+
<link href="/api/instancetypes/00000005-0005-0005-0005-000000000190/graphicsconsoles" rel="graphicsconsoles"/>
|
86
|
+
<memory>2147483648</memory>
|
87
|
+
<cpu>
|
88
|
+
<topology sockets="1" cores="1" threads="1"/>
|
89
|
+
</cpu>
|
90
|
+
<os>
|
91
|
+
<boot dev="hd"/>
|
92
|
+
</os>
|
93
|
+
<creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
|
94
|
+
<high_availability>
|
95
|
+
<enabled>false</enabled>
|
96
|
+
<priority>0</priority>
|
97
|
+
</high_availability>
|
98
|
+
<display>
|
99
|
+
<type>spice</type>
|
100
|
+
<monitors>1</monitors>
|
101
|
+
<single_qxl_pci>false</single_qxl_pci>
|
102
|
+
<smartcard_enabled>false</smartcard_enabled>
|
103
|
+
</display>
|
104
|
+
<usb>
|
105
|
+
<enabled>false</enabled>
|
106
|
+
</usb>
|
107
|
+
<migration_downtime>-1</migration_downtime>
|
108
|
+
<migration>
|
109
|
+
<auto_converge>inherit</auto_converge>
|
110
|
+
<compressed>inherit</compressed>
|
111
|
+
</migration>
|
112
|
+
<io>
|
113
|
+
<threads>0</threads>
|
114
|
+
</io>
|
115
|
+
<memory_policy>
|
116
|
+
<guaranteed>2147483648</guaranteed>
|
117
|
+
</memory_policy>
|
118
|
+
</instance_type>
|
119
|
+
<instance_type href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce" id="00000003-0003-0003-0003-0000000000ce">
|
120
|
+
<name>Tiny</name>
|
121
|
+
<description>Tiny instance type</description>
|
122
|
+
<link href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce/nics" rel="nics"/>
|
123
|
+
<link href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce/watchdogs" rel="watchdogs"/>
|
124
|
+
<link href="/api/instancetypes/00000003-0003-0003-0003-0000000000ce/graphicsconsoles" rel="graphicsconsoles"/>
|
125
|
+
<memory>536870912</memory>
|
126
|
+
<cpu>
|
127
|
+
<topology sockets="1" cores="1" threads="1"/>
|
128
|
+
</cpu>
|
129
|
+
<os>
|
130
|
+
<boot dev="hd"/>
|
131
|
+
</os>
|
132
|
+
<creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
|
133
|
+
<high_availability>
|
134
|
+
<enabled>false</enabled>
|
135
|
+
<priority>0</priority>
|
136
|
+
</high_availability>
|
137
|
+
<display>
|
138
|
+
<type>spice</type>
|
139
|
+
<monitors>1</monitors>
|
140
|
+
<single_qxl_pci>false</single_qxl_pci>
|
141
|
+
<smartcard_enabled>false</smartcard_enabled>
|
142
|
+
</display>
|
143
|
+
<usb>
|
144
|
+
<enabled>false</enabled>
|
145
|
+
</usb>
|
146
|
+
<migration_downtime>-1</migration_downtime>
|
147
|
+
<migration>
|
148
|
+
<auto_converge>inherit</auto_converge>
|
149
|
+
<compressed>inherit</compressed>
|
150
|
+
</migration>
|
151
|
+
<io>
|
152
|
+
<threads>0</threads>
|
153
|
+
</io>
|
154
|
+
<memory_policy>
|
155
|
+
<guaranteed>536870912</guaranteed>
|
156
|
+
</memory_policy>
|
157
|
+
</instance_type>
|
158
|
+
<instance_type href="/api/instancetypes/0000000b-000b-000b-000b-000000000082" id="0000000b-000b-000b-000b-000000000082">
|
159
|
+
<name>XLarge</name>
|
160
|
+
<description>Extra Large instance type</description>
|
161
|
+
<link href="/api/instancetypes/0000000b-000b-000b-000b-000000000082/nics" rel="nics"/>
|
162
|
+
<link href="/api/instancetypes/0000000b-000b-000b-000b-000000000082/watchdogs" rel="watchdogs"/>
|
163
|
+
<link href="/api/instancetypes/0000000b-000b-000b-000b-000000000082/graphicsconsoles" rel="graphicsconsoles"/>
|
164
|
+
<memory>17179869184</memory>
|
165
|
+
<cpu>
|
166
|
+
<topology sockets="4" cores="1" threads="1"/>
|
167
|
+
</cpu>
|
168
|
+
<os>
|
169
|
+
<boot dev="hd"/>
|
170
|
+
</os>
|
171
|
+
<creation_time>2014-05-05T02:30:00.000+05:30</creation_time>
|
172
|
+
<high_availability>
|
173
|
+
<enabled>false</enabled>
|
174
|
+
<priority>0</priority>
|
175
|
+
</high_availability>
|
176
|
+
<display>
|
177
|
+
<type>spice</type>
|
178
|
+
<monitors>1</monitors>
|
179
|
+
<single_qxl_pci>false</single_qxl_pci>
|
180
|
+
<smartcard_enabled>false</smartcard_enabled>
|
181
|
+
</display>
|
182
|
+
<usb>
|
183
|
+
<enabled>false</enabled>
|
184
|
+
</usb>
|
185
|
+
<migration_downtime>-1</migration_downtime>
|
186
|
+
<migration>
|
187
|
+
<auto_converge>inherit</auto_converge>
|
188
|
+
<compressed>inherit</compressed>
|
189
|
+
</migration>
|
190
|
+
<io>
|
191
|
+
<threads>0</threads>
|
192
|
+
</io>
|
193
|
+
<memory_policy>
|
194
|
+
<guaranteed>17179869184</guaranteed>
|
195
|
+
</memory_policy>
|
196
|
+
</instance_type>
|
197
|
+
</instance_types>
|
data/lib/fog/rage4/dns.rb
CHANGED
@@ -0,0 +1,38 @@
|
|
1
|
+
module Fog
|
2
|
+
module DNS
|
3
|
+
class Rage4
|
4
|
+
class Real
|
5
|
+
# Updates existing records in bulk
|
6
|
+
# ==== Parameters
|
7
|
+
# * zone_id <~Integer> Need to specify the zone id
|
8
|
+
# * options <~Hash> Options should contain the body for the post
|
9
|
+
# in the following format.
|
10
|
+
# data = [{:id=><record_id>, :priority=>2}, {:id=><record_id>, :priority=>2}]
|
11
|
+
# options => { :body => data.to_json }
|
12
|
+
# ==== Returns
|
13
|
+
# * response<~Excon::Response>:
|
14
|
+
# * body<~Hash>:
|
15
|
+
# * 'status'<~Boolean>
|
16
|
+
# * 'id'<~Integer>
|
17
|
+
# * 'error'<~String>
|
18
|
+
|
19
|
+
# https://secure.rage4.com//rapi/SetRecordState/<zone_id>/
|
20
|
+
|
21
|
+
def bulk_update_records(zone_id, options = {})
|
22
|
+
path = "/rapi/SetRecordState/#{zone_id}"
|
23
|
+
body = options[:body] if options[:body].present?
|
24
|
+
|
25
|
+
request(
|
26
|
+
:expects => 200,
|
27
|
+
:method => 'POST',
|
28
|
+
:body => body,
|
29
|
+
:path => path,
|
30
|
+
:headers => {
|
31
|
+
'Content-Type' => "application/json; charset=UTF-8",
|
32
|
+
},
|
33
|
+
)
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -250,6 +250,7 @@ module Fog
|
|
250
250
|
request :post_upload_disk
|
251
251
|
request :post_upload_media
|
252
252
|
request :post_upload_vapp_template
|
253
|
+
request :post_create_snapshot
|
253
254
|
request :put_catalog_item_metadata_item_metadata
|
254
255
|
request :put_cpu
|
255
256
|
request :put_disk_metadata_item_metadata
|
@@ -29,26 +29,27 @@ module Fog
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def build_vapp_instantiation_params(xml)
|
32
|
-
xml.Description @configuration[:Description]
|
32
|
+
xml.Description @configuration[:Description] if @configuration[:Description]
|
33
33
|
|
34
34
|
vapp = @configuration[:InstantiationParams]
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
35
|
+
if vapp
|
36
|
+
xml.InstantiationParams {
|
37
|
+
xml.DefaultStorageProfileSection {
|
38
|
+
xml.StorageProfile vapp[:DefaultStorageProfile]
|
39
|
+
} if (vapp.key? :DefaultStorageProfile)
|
40
|
+
xml.NetworkConfigSection {
|
41
|
+
xml['ovf'].Info
|
42
|
+
vapp[:NetworkConfig].each do |network|
|
43
|
+
xml.NetworkConfig(:networkName => network[:networkName]) {
|
44
|
+
xml.Configuration {
|
45
|
+
xml.ParentNetwork(:href => network[:networkHref])
|
46
|
+
xml.FenceMode network[:fenceMode]
|
47
|
+
}
|
47
48
|
}
|
48
|
-
|
49
|
-
|
49
|
+
end if vapp[:NetworkConfig]
|
50
|
+
}
|
50
51
|
}
|
51
|
-
|
52
|
+
end
|
52
53
|
end
|
53
54
|
|
54
55
|
def build_source_template(xml)
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module Fog
|
2
|
+
module Generators
|
3
|
+
module Compute
|
4
|
+
module VcloudDirector
|
5
|
+
# @see http://pubs.vmware.com/vcd-56/topic/com.vmware.ICbase/PDF/vcd_56_api_guide.pdf @page 121
|
6
|
+
class CreateSnapshot
|
7
|
+
attr_reader :attrs
|
8
|
+
|
9
|
+
def initialize(attrs={})
|
10
|
+
@attrs = attrs
|
11
|
+
end
|
12
|
+
|
13
|
+
def generate_xml
|
14
|
+
attrs = @attrs
|
15
|
+
Nokogiri::XML::Builder.new do
|
16
|
+
CreateSnapshotParams('xmlns' => 'http://www.vmware.com/vcloud/v1.5', 'memory' => attrs[:memory], 'name' => attrs[:name], 'quiesce' => attrs[:quiesce]) {
|
17
|
+
Description attrs[:Description] if attrs.key?(:Description)
|
18
|
+
}
|
19
|
+
end.to_xml
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class VcloudDirector
|
4
|
+
class Real
|
5
|
+
require 'fog/vcloud_director/generators/compute/create_snapshot'
|
6
|
+
def post_create_snapshot(id, options={})
|
7
|
+
body = Fog::Generators::Compute::VcloudDirector::CreateSnapshot.new(options).generate_xml
|
8
|
+
|
9
|
+
request(
|
10
|
+
:body => body,
|
11
|
+
:expects => 202,
|
12
|
+
:headers => { 'Content-Type' => 'application/vnd.vmware.vcloud.createSnapshotParams+xml' },
|
13
|
+
:method => 'POST',
|
14
|
+
:parser => Fog::ToHashDocument.new,
|
15
|
+
:path => "vApp/#{id}/action/createSnapshot"
|
16
|
+
)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
data/lib/fog/version.rb
CHANGED
data/lib/tasks/changelog_task.rb
CHANGED
@@ -31,7 +31,6 @@ module Fog
|
|
31
31
|
Statistic | Value
|
32
32
|
------------- | --------:
|
33
33
|
Collaborators | #{collaborators}
|
34
|
-
Downloads | #{downloads}
|
35
34
|
Forks | #{forks}
|
36
35
|
Open Issues | #{open_issues}
|
37
36
|
Watchers | #{watchers}
|
@@ -109,6 +108,7 @@ Watchers | #{watchers}
|
|
109
108
|
'Benson Kalahar',
|
110
109
|
'Brian Hartsock',
|
111
110
|
'bryanl',
|
111
|
+
'Cherdancev Evgeni',
|
112
112
|
'Chris Luo',
|
113
113
|
'Chris Roberts',
|
114
114
|
'Christopher Oliver',
|
@@ -184,9 +184,9 @@ Watchers | #{watchers}
|
|
184
184
|
end
|
185
185
|
|
186
186
|
def downloads
|
187
|
-
|
188
|
-
data = Fog::JSON.decode(
|
189
|
-
data['
|
187
|
+
response = Excon.get('https://rubygems.org/api/v1/downloads/fog.json')
|
188
|
+
data = Fog::JSON.decode(response.body)
|
189
|
+
data['total_downloads']
|
190
190
|
end
|
191
191
|
|
192
192
|
def collaborators
|
data/spec/fog/bin_spec.rb
CHANGED
@@ -13,7 +13,7 @@ describe Fog do
|
|
13
13
|
assert_equal "CloudSigma", Fog.providers[:cloudsigma]
|
14
14
|
assert_equal "Cloudstack", Fog.providers[:cloudstack]
|
15
15
|
assert_equal "DigitalOcean", Fog.providers[:digitalocean]
|
16
|
-
assert_equal "
|
16
|
+
assert_equal "Dnsimple", Fog.providers[:dnsimple]
|
17
17
|
assert_equal "DNSMadeEasy", Fog.providers[:dnsmadeeasy]
|
18
18
|
assert_equal "Dreamhost", Fog.providers[:dreamhost]
|
19
19
|
assert_equal "Dynect", Fog.providers[:dynect]
|
@@ -27,7 +27,6 @@ describe Fog do
|
|
27
27
|
assert_equal "Joyent", Fog.providers[:joyent]
|
28
28
|
assert_equal "Linode", Fog.providers[:linode]
|
29
29
|
assert_equal "Local", Fog.providers[:local]
|
30
|
-
assert_equal "Ninefold", Fog.providers[:ninefold]
|
31
30
|
assert_equal "OpenNebula", Fog.providers[:opennebula]
|
32
31
|
assert_equal "OpenStack", Fog.providers[:openstack]
|
33
32
|
assert_equal "Openvz", Fog.providers[:openvz]
|
@@ -62,7 +61,7 @@ describe Fog do
|
|
62
61
|
assert_includes Fog.registered_providers, "CloudSigma"
|
63
62
|
assert_includes Fog.registered_providers, "Cloudstack"
|
64
63
|
assert_includes Fog.registered_providers, "DigitalOcean"
|
65
|
-
assert_includes Fog.registered_providers, "
|
64
|
+
assert_includes Fog.registered_providers, "Dnsimple"
|
66
65
|
assert_includes Fog.registered_providers, "DNSMadeEasy"
|
67
66
|
assert_includes Fog.registered_providers, "Dreamhost"
|
68
67
|
assert_includes Fog.registered_providers, "Dynect"
|
@@ -76,7 +75,6 @@ describe Fog do
|
|
76
75
|
assert_includes Fog.registered_providers, "Joyent"
|
77
76
|
assert_includes Fog.registered_providers, "Linode"
|
78
77
|
assert_includes Fog.registered_providers, "Local"
|
79
|
-
assert_includes Fog.registered_providers, "Ninefold"
|
80
78
|
assert_includes Fog.registered_providers, "OpenNebula"
|
81
79
|
assert_includes Fog.registered_providers, "OpenStack"
|
82
80
|
assert_includes Fog.registered_providers, "Openvz"
|
@@ -111,7 +109,7 @@ describe Fog do
|
|
111
109
|
assert_includes Fog.available_providers, "CloudSigma" if CloudSigma.available?
|
112
110
|
assert_includes Fog.available_providers, "Cloudstack" if Cloudstack.available?
|
113
111
|
assert_includes Fog.available_providers, "DigitalOcean" if DigitalOcean.available?
|
114
|
-
assert_includes Fog.available_providers, "
|
112
|
+
assert_includes Fog.available_providers, "Dnsimple" if Dnsimple.available?
|
115
113
|
assert_includes Fog.available_providers, "DNSMadeEasy" if DNSMadeEasy.available?
|
116
114
|
assert_includes Fog.available_providers, "Dreamhost" if Dreamhost.available?
|
117
115
|
assert_includes Fog.available_providers, "Dynect" if Dynect.available?
|
@@ -125,7 +123,6 @@ describe Fog do
|
|
125
123
|
assert_includes Fog.available_providers, "Joyent" if Joyent.available?
|
126
124
|
assert_includes Fog.available_providers, "Linode" if Linode.available?
|
127
125
|
assert_includes Fog.available_providers, "Local" if Local.available?
|
128
|
-
assert_includes Fog.available_providers, "Ninefold" if Ninefold.available?
|
129
126
|
assert_includes Fog.available_providers, "OpenNebula" if OpenNebula.available?
|
130
127
|
assert_includes Fog.available_providers, "OpenStack" if OpenStack.available?
|
131
128
|
assert_includes Fog.available_providers, "Openvz" if Openvz.available?
|
@@ -0,0 +1,23 @@
|
|
1
|
+
Shindo.tests('Fog::Compute[:cloudsigma] | snapshot model', ['cloudsigma']) do
|
2
|
+
volume = Fog::Compute[:cloudsigma].volumes.create(:name => 'fogmodeltest', :size => 1024**3, :media => :disk)
|
3
|
+
volume.wait_for { available? } unless Fog.mocking?
|
4
|
+
|
5
|
+
snapshots = Fog::Compute[:cloudsigma].snapshots
|
6
|
+
snapshot_create_args = {:name => 'fogtest', :drive => volume.uuid}
|
7
|
+
|
8
|
+
model_tests(snapshots, snapshot_create_args, true) do
|
9
|
+
@instance.wait_for(timeout=60) { available? }
|
10
|
+
|
11
|
+
tests('#update').succeeds do
|
12
|
+
@instance.name = 'fogtest_renamed'
|
13
|
+
@instance.save
|
14
|
+
|
15
|
+
@instance.reload
|
16
|
+
|
17
|
+
returns('fogtest_renamed') { @instance.name }
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
volume.destroy
|
22
|
+
|
23
|
+
end
|