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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d37705fb119feb772954acd5f91b12c187fad47
|
4
|
+
data.tar.gz: d1d84b4b150e03bf3ff9b4169af290c76cdb3159
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ddc0bd597eda4b68802175e1080f57108610457037a9748355f4327a7ecceb3ea14a6458724bb05fca069018299484f374966d6390c09a392afef65b785d9e2
|
7
|
+
data.tar.gz: 69ba7980e425dc344b1d6d47878e803f8b0e9710a03d45d0c1ddb3a7598d5aabd913d29bd1cdca5dc43e481605dacad68eaea3846f62f658a4423bacb7dddf2b
|
data/.travis.yml
CHANGED
@@ -5,12 +5,9 @@ sudo: false
|
|
5
5
|
script: bundle exec rake travis
|
6
6
|
|
7
7
|
rvm:
|
8
|
-
- 1.9
|
9
|
-
- 2.0
|
10
8
|
- 2.1
|
11
9
|
- 2.2
|
12
10
|
- jruby-head
|
13
|
-
- jruby-19mode
|
14
11
|
|
15
12
|
gemfile:
|
16
13
|
- Gemfile
|
@@ -20,6 +17,19 @@ matrix:
|
|
20
17
|
fast_finish: true
|
21
18
|
allow_failures:
|
22
19
|
- rvm: jruby-head
|
20
|
+
include:
|
21
|
+
- rvm: 1.9.3
|
22
|
+
gemfile: gemfiles/Gemfile-1.9
|
23
|
+
- rvm: 1.9.3
|
24
|
+
gemfile: gemfiles/Gemfile-edge-1.9
|
25
|
+
- rvm: jruby-19mode
|
26
|
+
gemfile: gemfiles/Gemfile-1.9
|
27
|
+
- rvm: jruby-19mode
|
28
|
+
gemfile: gemfiles/Gemfile-edge-1.9
|
29
|
+
- rvm: 2.0
|
30
|
+
gemfile: gemfiles/Gemfile-2.0
|
31
|
+
- rvm: 2.0
|
32
|
+
gemfile: gemfiles/Gemfile-edge-2.0
|
23
33
|
|
24
34
|
notifications:
|
25
35
|
email: false
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,69 @@
|
|
1
|
+
## 1.39.0 03/13/2017
|
2
|
+
*Hash* d6c89ea01e747f36e3d384191ac3072e29ddec64
|
3
|
+
|
4
|
+
Statistic | Value
|
5
|
+
------------- | --------:
|
6
|
+
Collaborators | 2
|
7
|
+
Forks | 1556
|
8
|
+
Open Issues | 48
|
9
|
+
Watchers | 3975
|
10
|
+
|
11
|
+
**MVP!** Cherdancev Evgeni
|
12
|
+
|
13
|
+
#### [CloudSigma]
|
14
|
+
* add snapshots (#3491). thanks zephyrean
|
15
|
+
|
16
|
+
#### [digitalocean]
|
17
|
+
* delete leftover spec. thanks geemus
|
18
|
+
|
19
|
+
#### [misc]
|
20
|
+
* Adding postinstall message. thanks Artem Yakimenko
|
21
|
+
* Fixing gemspec conflicts with 1.9. thanks Artem Yakimenko
|
22
|
+
* Add instance_types support to oVirt provider. thanks Baptiste Agasse
|
23
|
+
* Fix filtering for Digital Ocean list_ssh_keys request. thanks Ben Sedat
|
24
|
+
* Allow filtering for Digital Ocean list_flavors request. thanks Ben Sedat
|
25
|
+
* Fix Digital Ocean list_servers mock format. thanks Ben Sedat
|
26
|
+
* Add tests for Digital Ocean list_ssh_keys request. thanks Ben Sedat
|
27
|
+
* Digital Ocean list_* requests pass query params to Excon. thanks Ben Sedat
|
28
|
+
* add suspend&resume support and change tests to fog way. thanks Cherdancev Evgeni
|
29
|
+
* remove execute flag from README.md. thanks Cherdancev Evgeni
|
30
|
+
* retab & remove empty Mock. thanks Cherdancev Evgeni
|
31
|
+
* change tests for using fogtest flavor. thanks Cherdancev Evgeni
|
32
|
+
* add suspend&resume support and change tests to fog way. thanks Cherdancev Evgeni
|
33
|
+
* remove execute flag from README.md. thanks Cherdancev Evgeni
|
34
|
+
* retab & remove empty Mock. thanks Cherdancev Evgeni
|
35
|
+
* change tests for using fogtest flavor. thanks Cherdancev Evgeni
|
36
|
+
* Prevent malformed request with asterisk (*) character. thanks Gavin Lam
|
37
|
+
* Add DigitalOcean provider. thanks Garcia
|
38
|
+
* Removed 'filters' from ssh_key. thanks JJ Asghar
|
39
|
+
* extract DNSimple, require 'fog-dnsimple'. thanks Joshua Lane
|
40
|
+
* remove dnsimple tests. thanks Joshua Lane
|
41
|
+
* remove ninefold. thanks Joshua Lane
|
42
|
+
* Fix default API version for Joyent. thanks Manuel Franco
|
43
|
+
* fix dependency issues when building on 1.9.*. thanks Paulo Ribeiro
|
44
|
+
* Add request to create snapshot. thanks Pierre Tinguely
|
45
|
+
* #3900 Escape VM name in OpenNebula allocator. thanks Sergey Susikov
|
46
|
+
* Remove digitalocean. thanks Suraj Shirvankar
|
47
|
+
* Remove digitalocean bin files. thanks Suraj Shirvankar
|
48
|
+
* Total number of droplets for digital ocean. thanks Tameem
|
49
|
+
* Add more changes. thanks Tameem
|
50
|
+
* Testing. thanks Tameem
|
51
|
+
* Working. thanks Tameem
|
52
|
+
* clean. thanks Tameem
|
53
|
+
* F rage4 bulk update endpoint (#3917). thanks Tameem Iftikhar
|
54
|
+
* Drop 'hp' from compute tests. thanks t Ondruch
|
55
|
+
* Drop 'hp' from storage tests. thanks t Ondruch
|
56
|
+
* Drop 'hp' test cases. thanks t Ondruch
|
57
|
+
* bump fog-core dep. thanks geemus
|
58
|
+
* bump fog-core dependency. thanks geemus
|
59
|
+
* fix fog-core dependency. thanks geemus
|
60
|
+
* bump fog-core dep. thanks geemus
|
61
|
+
* remove require for missing digitalocean bin. thanks geemus
|
62
|
+
* Update licence.md. thanks pieceofcakeresul
|
63
|
+
* Update compose_common.rb. thanks tinguelyp
|
64
|
+
* Update post_create_snapshot.rb. thanks tinguelyp
|
65
|
+
|
66
|
+
|
1
67
|
## 1.38.0 03/28/2016
|
2
68
|
*Hash* 5e4bde2733adc08ba2d92b2d2824e2d3845fc5e5
|
3
69
|
|
data/Gemfile
CHANGED
data/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2009-
|
3
|
+
Copyright (c) 2009-2016 [CONTRIBUTORS.md](https://github.com/fog/fog/blob/master/CONTRIBUTORS.md)
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
data/README.md
CHANGED
@@ -11,6 +11,19 @@ fog is the Ruby cloud services library, top to bottom:
|
|
11
11
|
[![Code Climate](https://codeclimate.com/github/fog/fog/badges/gpa.svg)](https://codeclimate.com/github/fog/fog)
|
12
12
|
[![Gem Version](https://badge.fury.io/rb/fog.svg)](http://badge.fury.io/rb/fog)
|
13
13
|
|
14
|
+
## Dependency Notice
|
15
|
+
|
16
|
+
Currently all fog providers are getting separated into metagems to lower the
|
17
|
+
load time and dependency count.
|
18
|
+
|
19
|
+
If there's a metagem available for your cloud provider, e.g. `fog-aws`,
|
20
|
+
you should be using it instead of requiring the full fog collection to avoid
|
21
|
+
unnecessary dependencies.
|
22
|
+
|
23
|
+
'fog' should be required explicitly only if:
|
24
|
+
- The provider you use doesn't yet have a metagem available.
|
25
|
+
- You require Ruby 1.9.3 support.
|
26
|
+
|
14
27
|
## Getting Started
|
15
28
|
|
16
29
|
The easiest way to learn fog is to install the gem and use the interactive console.
|
data/fog.gemspec
CHANGED
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
|
|
11
11
|
## If your rubyforge_project name is different, then edit it and comment out
|
12
12
|
## the sub! line in the Rakefile
|
13
13
|
s.name = "fog"
|
14
|
-
s.version = "1.
|
15
|
-
s.date = "
|
14
|
+
s.version = "1.39.0"
|
15
|
+
s.date = "2017-03-13"
|
16
16
|
s.rubyforge_project = "fog"
|
17
17
|
|
18
18
|
## Make sure your summary is short. The description may be as long
|
@@ -44,10 +44,12 @@ Gem::Specification.new do |s|
|
|
44
44
|
s.rdoc_options = ["--charset=UTF-8"]
|
45
45
|
s.extra_rdoc_files = %w[README.md]
|
46
46
|
|
47
|
-
s.add_dependency("fog-core", "~> 1.
|
47
|
+
s.add_dependency("fog-core", "~> 1.43")
|
48
48
|
s.add_dependency("fog-json")
|
49
49
|
s.add_dependency("fog-xml", "~> 0.1.1")
|
50
|
-
|
50
|
+
|
51
|
+
# JSON locked for Ruby 1.9, remove once deprecated
|
52
|
+
s.add_dependency("json", ">= 1.8", "< 2.0")
|
51
53
|
s.add_dependency("ipaddress", "~> 0.5")
|
52
54
|
|
53
55
|
# Modular providers (please keep sorted)
|
@@ -56,6 +58,7 @@ Gem::Specification.new do |s|
|
|
56
58
|
s.add_dependency("fog-aws", ">= 0.6.0")
|
57
59
|
s.add_dependency("fog-brightbox", "~> 0.4")
|
58
60
|
s.add_dependency("fog-cloudatcost", "~> 0.1.0")
|
61
|
+
s.add_dependency("fog-dnsimple", "~> 1.0")
|
59
62
|
s.add_dependency("fog-dynect", "~> 0.0.2")
|
60
63
|
s.add_dependency("fog-ecloud", "~> 0.1")
|
61
64
|
s.add_dependency("fog-google", "<= 0.1.0")
|
@@ -75,6 +78,7 @@ Gem::Specification.new do |s|
|
|
75
78
|
s.add_dependency("fog-voxel")
|
76
79
|
s.add_dependency("fog-vsphere", ">= 0.4.0")
|
77
80
|
s.add_dependency("fog-xenserver")
|
81
|
+
s.add_dependency("fog-digitalocean")
|
78
82
|
|
79
83
|
s.add_development_dependency("docker-api", ">= 1.13.6")
|
80
84
|
s.add_development_dependency("fission")
|
@@ -84,9 +88,9 @@ Gem::Specification.new do |s|
|
|
84
88
|
s.add_development_dependency("opennebula")
|
85
89
|
s.add_development_dependency("pry")
|
86
90
|
s.add_development_dependency("rake")
|
87
|
-
s.add_development_dependency("rbovirt", "0.
|
91
|
+
s.add_development_dependency("rbovirt", "0.1.3")
|
88
92
|
s.add_development_dependency("rbvmomi")
|
89
|
-
s.add_development_dependency("rubocop")
|
93
|
+
s.add_development_dependency("rubocop", "0.41.2")
|
90
94
|
s.add_development_dependency("shindo", "~> 0.3.4")
|
91
95
|
s.add_development_dependency("simplecov")
|
92
96
|
s.add_development_dependency("thor")
|
@@ -98,4 +102,21 @@ Gem::Specification.new do |s|
|
|
98
102
|
|
99
103
|
s.files = `git ls-files`.split("\n")
|
100
104
|
s.test_files = `git ls-files -- {spec,tests}/*`.split("\n")
|
105
|
+
|
106
|
+
postinstall_message = <<-POSTINST
|
107
|
+
------------------------------
|
108
|
+
Thank you for installing fog!
|
109
|
+
|
110
|
+
IMPORTANT NOTICE:
|
111
|
+
If there's a metagem available for your cloud provider, e.g. `fog-aws`,
|
112
|
+
you should be using it instead of requiring the full fog collection to avoid
|
113
|
+
unnecessary dependencies.
|
114
|
+
|
115
|
+
'fog' should be required explicitly only if:
|
116
|
+
- The provider you use doesn't yet have a metagem available.
|
117
|
+
- You require Ruby 1.9.3 support.
|
118
|
+
------------------------------
|
119
|
+
POSTINST
|
120
|
+
|
121
|
+
s.post_install_message = postinstall_message
|
101
122
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gem "nokogiri", "1.6.8.1"
|
4
|
+
gem "rake", "10.5.0"
|
5
|
+
gem "rest-client", "1.8.0"
|
6
|
+
gem "term-ansicolor", "1.3.2"
|
7
|
+
gem "tins", "1.6.0"
|
8
|
+
gem "public_suffix", "1.4.6"
|
9
|
+
|
10
|
+
group :development, :test do
|
11
|
+
gem "coveralls", :require => false
|
12
|
+
gem "netrc", :require => false
|
13
|
+
gem "octokit", "4.3.0", :require => false
|
14
|
+
end
|
15
|
+
|
16
|
+
gemspec :path => "../"
|
data/gemfiles/Gemfile-edge
CHANGED
@@ -5,10 +5,10 @@ gem "fog-core", :github => "fog/fog-core"
|
|
5
5
|
gem "fog-json", :github => "fog/fog-json"
|
6
6
|
|
7
7
|
group :development, :test do
|
8
|
-
# This is here because gemspec doesn"t support require: false
|
9
8
|
gem "coveralls", :require => false
|
10
9
|
gem "netrc", :require => false
|
11
10
|
gem "octokit", :require => false
|
11
|
+
gem "term-ansicolor", "1.3.2"
|
12
12
|
end
|
13
13
|
|
14
14
|
gemspec :path => "../"
|
@@ -0,0 +1,20 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
# Shared components
|
4
|
+
gem "fog-core", :github => "fog/fog-core"
|
5
|
+
gem "fog-json", :github => "fog/fog-json"
|
6
|
+
|
7
|
+
group :development, :test do
|
8
|
+
gem "coveralls", :require => false
|
9
|
+
gem "netrc", :require => false
|
10
|
+
gem "octokit", "4.3.0", :require => false
|
11
|
+
end
|
12
|
+
|
13
|
+
gem "nokogiri", "1.6.8.1"
|
14
|
+
gem "rake", "10.5.0"
|
15
|
+
gem "rest-client", "1.8.0"
|
16
|
+
gem "term-ansicolor", "1.3.2"
|
17
|
+
gem "tins", "1.6.0"
|
18
|
+
gem "public_suffix", "1.4.6"
|
19
|
+
|
20
|
+
gemspec :path => "../"
|
@@ -0,0 +1,16 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
# Shared components
|
4
|
+
gem "fog-core", :github => "fog/fog-core"
|
5
|
+
gem "fog-json", :github => "fog/fog-json"
|
6
|
+
|
7
|
+
gem "nokogiri", "1.6.8.1"
|
8
|
+
|
9
|
+
group :development, :test do
|
10
|
+
gem "coveralls", :require => false
|
11
|
+
gem "netrc", :require => false
|
12
|
+
gem "octokit", :require => false
|
13
|
+
gem "term-ansicolor", "1.3.2"
|
14
|
+
end
|
15
|
+
|
16
|
+
gemspec :path => "../"
|
data/lib/fog.rb
CHANGED
data/lib/fog/bin.rb
CHANGED
@@ -18,6 +18,15 @@ module Fog
|
|
18
18
|
request :update_volume
|
19
19
|
request :delete_volume
|
20
20
|
request :clone_volume
|
21
|
+
|
22
|
+
model :snapshot
|
23
|
+
collection :snapshots
|
24
|
+
request :create_snapshot
|
25
|
+
request :get_snapshot
|
26
|
+
request :list_snapshots
|
27
|
+
request :update_snapshot
|
28
|
+
request :delete_snapshot
|
29
|
+
request :clone_snapshot
|
21
30
|
|
22
31
|
model :lib_volume
|
23
32
|
collection :lib_volumes
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'fog/cloudsigma/nested_model'
|
2
|
+
require 'fog/cloudsigma/models/volume'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module Compute
|
6
|
+
class CloudSigma
|
7
|
+
class Snapshot < Fog::CloudSigma::CloudsigmaModel
|
8
|
+
identity :uuid
|
9
|
+
|
10
|
+
attribute :allocated_size, :type => :integer
|
11
|
+
attribute :drive
|
12
|
+
attribute :grantees, :type => :array
|
13
|
+
attribute :meta
|
14
|
+
attribute :name, :type => :string
|
15
|
+
attribute :owner
|
16
|
+
attribute :permissions, :type => :array
|
17
|
+
attribute :resource_uri, :type => :string
|
18
|
+
attribute :status, :type => :string
|
19
|
+
attribute :tags
|
20
|
+
attribute :timestamp, :type => :string
|
21
|
+
|
22
|
+
|
23
|
+
def save
|
24
|
+
if persisted?
|
25
|
+
update
|
26
|
+
else
|
27
|
+
create
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def create
|
32
|
+
requires :name, :drive
|
33
|
+
data = attributes
|
34
|
+
|
35
|
+
response = service.create_snapshot(data)
|
36
|
+
new_attributes = response.body['objects'].first
|
37
|
+
merge_attributes(new_attributes)
|
38
|
+
end
|
39
|
+
|
40
|
+
def update
|
41
|
+
requires :identity, :name
|
42
|
+
|
43
|
+
data = attributes
|
44
|
+
|
45
|
+
response = service.update_snapshot(identity, data)
|
46
|
+
new_attributes = response.body
|
47
|
+
merge_attributes(new_attributes)
|
48
|
+
end
|
49
|
+
|
50
|
+
def destroy
|
51
|
+
requires :identity
|
52
|
+
|
53
|
+
service.delete_snapshot(identity)
|
54
|
+
|
55
|
+
true
|
56
|
+
end
|
57
|
+
|
58
|
+
alias_method :delete, :destroy
|
59
|
+
|
60
|
+
def clone(clone_params={})
|
61
|
+
requires :identity
|
62
|
+
response = service.clone_snapshot(identity, clone_params)
|
63
|
+
|
64
|
+
Volume.new(response.body)
|
65
|
+
end
|
66
|
+
|
67
|
+
alias_method :promote, :clone
|
68
|
+
|
69
|
+
|
70
|
+
def available?
|
71
|
+
status == 'available'
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'fog/core/collection'
|
2
|
+
require 'fog/cloudsigma/models/snapshot'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module Compute
|
6
|
+
class CloudSigma
|
7
|
+
class Snapshots < Fog::Collection
|
8
|
+
model Fog::Compute::CloudSigma::Snapshot
|
9
|
+
|
10
|
+
def all
|
11
|
+
resp = service.list_snapshots
|
12
|
+
data = resp.body['objects']
|
13
|
+
load(data)
|
14
|
+
end
|
15
|
+
|
16
|
+
def get(snap_id)
|
17
|
+
resp = service.get_snapshot(snap_id)
|
18
|
+
data = resp.body
|
19
|
+
new(data)
|
20
|
+
rescue Fog::CloudSigma::Errors::NotFound
|
21
|
+
return nil
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|