fog 1.42.1 → 2.0.0.pre.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +4 -16
- data/CHANGELOG.md +0 -499
- data/CONTRIBUTING.md +1 -1
- data/CONTRIBUTORS.md +1 -3
- data/Gemfile +1 -1
- data/LICENSE.md +1 -1
- data/README.md +12 -24
- data/Rakefile +20 -23
- data/fog.gemspec +11 -35
- data/gemfiles/Gemfile-edge +1 -1
- data/lib/fog.rb +2 -1
- data/lib/fog/bin.rb +2 -1
- data/lib/fog/bin/digitalocean.rb +29 -0
- data/lib/fog/bin/dnsimple.rb +29 -0
- data/lib/fog/bin/hp.rb +60 -0
- data/lib/fog/bin/internet_archive.rb +32 -0
- data/lib/fog/bin/joyent.rb +33 -0
- data/lib/fog/bin/ninefold.rb +34 -0
- data/lib/fog/bin/ovirt.rb +28 -0
- data/lib/fog/bin/vsphere.rb +28 -0
- data/lib/fog/cloudsigma/compute.rb +0 -9
- data/lib/fog/cloudsigma/models/server.rb +0 -5
- data/lib/fog/cloudsigma/models/volume.rb +0 -15
- data/lib/fog/cloudsigma/requests/stop_server.rb +4 -5
- data/lib/fog/cloudstack/core.rb +0 -2
- data/lib/fog/digitalocean.rb +1 -0
- data/lib/fog/digitalocean/CHANGELOG.md +6 -0
- data/lib/fog/digitalocean/compute.rb +130 -0
- data/lib/fog/digitalocean/core.rb +9 -0
- data/lib/fog/digitalocean/examples/getting_started.md +148 -0
- data/lib/fog/digitalocean/models/compute/flavor.rb +12 -0
- data/lib/fog/digitalocean/models/compute/flavors.rb +22 -0
- data/lib/fog/digitalocean/models/compute/image.rb +13 -0
- data/lib/fog/digitalocean/models/compute/images.rb +22 -0
- data/lib/fog/digitalocean/models/compute/region.rb +12 -0
- data/lib/fog/digitalocean/models/compute/regions.rb +22 -0
- data/lib/fog/digitalocean/models/compute/server.rb +203 -0
- data/lib/fog/digitalocean/models/compute/servers.rb +95 -0
- data/lib/fog/digitalocean/models/compute/ssh_key.rb +26 -0
- data/lib/fog/digitalocean/models/compute/ssh_keys.rb +25 -0
- data/lib/fog/digitalocean/requests/compute/create_server.rb +77 -0
- data/lib/fog/digitalocean/requests/compute/create_ssh_key.rb +34 -0
- data/lib/fog/digitalocean/requests/compute/destroy_server.rb +35 -0
- data/lib/fog/digitalocean/requests/compute/destroy_ssh_key.rb +33 -0
- data/lib/fog/digitalocean/requests/compute/get_server_details.rb +31 -0
- data/lib/fog/digitalocean/requests/compute/get_ssh_key.rb +35 -0
- data/lib/fog/digitalocean/requests/compute/list_flavors.rb +34 -0
- data/lib/fog/digitalocean/requests/compute/list_images.rb +45 -0
- data/lib/fog/digitalocean/requests/compute/list_regions.rb +34 -0
- data/lib/fog/digitalocean/requests/compute/list_servers.rb +27 -0
- data/lib/fog/digitalocean/requests/compute/list_ssh_keys.rb +27 -0
- data/lib/fog/digitalocean/requests/compute/power_cycle_server.rb +29 -0
- data/lib/fog/digitalocean/requests/compute/power_off_server.rb +29 -0
- data/lib/fog/digitalocean/requests/compute/power_on_server.rb +29 -0
- data/lib/fog/digitalocean/requests/compute/reboot_server.rb +29 -0
- data/lib/fog/digitalocean/requests/compute/shutdown_server.rb +32 -0
- data/lib/fog/dnsimple.rb +1 -0
- data/lib/fog/dnsimple/core.rb +10 -0
- data/lib/fog/dnsimple/dns.rb +112 -0
- data/lib/fog/dnsimple/models/dns/record.rb +63 -0
- data/lib/fog/dnsimple/models/dns/records.rb +34 -0
- data/lib/fog/dnsimple/models/dns/zone.rb +46 -0
- data/lib/fog/dnsimple/models/dns/zones.rb +25 -0
- data/lib/fog/dnsimple/requests/dns/create_domain.rb +62 -0
- data/lib/fog/dnsimple/requests/dns/create_record.rb +67 -0
- data/lib/fog/dnsimple/requests/dns/delete_domain.rb +35 -0
- data/lib/fog/dnsimple/requests/dns/delete_record.rb +30 -0
- data/lib/fog/dnsimple/requests/dns/get_domain.rb +39 -0
- data/lib/fog/dnsimple/requests/dns/get_record.rb +49 -0
- data/lib/fog/dnsimple/requests/dns/list_domains.rb +34 -0
- data/lib/fog/dnsimple/requests/dns/list_records.rb +34 -0
- data/lib/fog/dnsimple/requests/dns/update_record.rb +53 -0
- data/lib/fog/fogdocker/requests/compute/container_action.rb +2 -2
- data/lib/fog/glesys/models/compute/server.rb +1 -0
- data/lib/fog/hp.rb +9 -0
- data/lib/fog/hp/CHANGELOG.hp +156 -0
- data/lib/fog/hp/README.md +57 -0
- data/lib/fog/hp/articles/auth_caching.md +23 -0
- data/lib/fog/hp/block_storage.rb +170 -0
- data/lib/fog/hp/block_storage_v2.rb +159 -0
- data/lib/fog/hp/cdn.rb +154 -0
- data/lib/fog/hp/compute.rb +252 -0
- data/lib/fog/hp/compute_v2.rb +306 -0
- data/lib/fog/hp/core.rb +353 -0
- data/lib/fog/hp/dns.rb +130 -0
- data/lib/fog/hp/docs/connect.md +152 -0
- data/lib/fog/hp/docs/install.md +133 -0
- data/lib/fog/hp/examples/block_storage.md +296 -0
- data/lib/fog/hp/examples/block_storage_v2.md +446 -0
- data/lib/fog/hp/examples/cdn.md +54 -0
- data/lib/fog/hp/examples/compute.md +794 -0
- data/lib/fog/hp/examples/compute_v2.md +851 -0
- data/lib/fog/hp/examples/getting_started_examples.md +30 -0
- data/lib/fog/hp/examples/networking.md +472 -0
- data/lib/fog/hp/examples/object_storage.md +387 -0
- data/lib/fog/hp/lb.rb +163 -0
- data/lib/fog/hp/models/block_storage/bootable_volumes.rb +24 -0
- data/lib/fog/hp/models/block_storage/snapshot.rb +52 -0
- data/lib/fog/hp/models/block_storage/snapshots.rb +25 -0
- data/lib/fog/hp/models/block_storage/volume.rb +98 -0
- data/lib/fog/hp/models/block_storage/volumes.rb +24 -0
- data/lib/fog/hp/models/block_storage_v2/snapshot.rb +72 -0
- data/lib/fog/hp/models/block_storage_v2/snapshots.rb +39 -0
- data/lib/fog/hp/models/block_storage_v2/volume.rb +135 -0
- data/lib/fog/hp/models/block_storage_v2/volume_backup.rb +54 -0
- data/lib/fog/hp/models/block_storage_v2/volume_backups.rb +38 -0
- data/lib/fog/hp/models/block_storage_v2/volumes.rb +38 -0
- data/lib/fog/hp/models/compute/address.rb +66 -0
- data/lib/fog/hp/models/compute/addresses.rb +25 -0
- data/lib/fog/hp/models/compute/flavor.rb +20 -0
- data/lib/fog/hp/models/compute/flavors.rb +24 -0
- data/lib/fog/hp/models/compute/image.rb +72 -0
- data/lib/fog/hp/models/compute/images.rb +25 -0
- data/lib/fog/hp/models/compute/key_pair.rb +51 -0
- data/lib/fog/hp/models/compute/key_pairs.rb +28 -0
- data/lib/fog/hp/models/compute/meta.rb +27 -0
- data/lib/fog/hp/models/compute/metadata.rb +74 -0
- data/lib/fog/hp/models/compute/security_group.rb +48 -0
- data/lib/fog/hp/models/compute/security_groups.rb +26 -0
- data/lib/fog/hp/models/compute/server.rb +293 -0
- data/lib/fog/hp/models/compute/servers.rb +32 -0
- data/lib/fog/hp/models/compute_v2/address.rb +66 -0
- data/lib/fog/hp/models/compute_v2/addresses.rb +25 -0
- data/lib/fog/hp/models/compute_v2/availability_zone.rb +18 -0
- data/lib/fog/hp/models/compute_v2/availability_zones.rb +25 -0
- data/lib/fog/hp/models/compute_v2/flavor.rb +18 -0
- data/lib/fog/hp/models/compute_v2/flavors.rb +38 -0
- data/lib/fog/hp/models/compute_v2/image.rb +82 -0
- data/lib/fog/hp/models/compute_v2/images.rb +39 -0
- data/lib/fog/hp/models/compute_v2/key_pair.rb +51 -0
- data/lib/fog/hp/models/compute_v2/key_pairs.rb +28 -0
- data/lib/fog/hp/models/compute_v2/meta.rb +27 -0
- data/lib/fog/hp/models/compute_v2/meta_parent.rb +31 -0
- data/lib/fog/hp/models/compute_v2/metadata.rb +74 -0
- data/lib/fog/hp/models/compute_v2/server.rb +334 -0
- data/lib/fog/hp/models/compute_v2/servers.rb +52 -0
- data/lib/fog/hp/models/compute_v2/volume_attachment.rb +41 -0
- data/lib/fog/hp/models/compute_v2/volume_attachments.rb +29 -0
- data/lib/fog/hp/models/dns/domain.rb +53 -0
- data/lib/fog/hp/models/dns/domains.rb +25 -0
- data/lib/fog/hp/models/dns/record.rb +57 -0
- data/lib/fog/hp/models/dns/records.rb +29 -0
- data/lib/fog/hp/models/lb/algorithm.rb +23 -0
- data/lib/fog/hp/models/lb/algorithms.rb +25 -0
- data/lib/fog/hp/models/lb/load_balancer.rb +82 -0
- data/lib/fog/hp/models/lb/load_balancers.rb +25 -0
- data/lib/fog/hp/models/lb/node.rb +51 -0
- data/lib/fog/hp/models/lb/nodes.rb +28 -0
- data/lib/fog/hp/models/lb/protocol.rb +24 -0
- data/lib/fog/hp/models/lb/protocols.rb +25 -0
- data/lib/fog/hp/models/lb/virtual_ip.rb +33 -0
- data/lib/fog/hp/models/lb/virtual_ips.rb +31 -0
- data/lib/fog/hp/models/meta_parent.rb +31 -0
- data/lib/fog/hp/models/network/floating_ip.rb +43 -0
- data/lib/fog/hp/models/network/floating_ips.rb +33 -0
- data/lib/fog/hp/models/network/network.rb +54 -0
- data/lib/fog/hp/models/network/networks.rb +33 -0
- data/lib/fog/hp/models/network/port.rb +51 -0
- data/lib/fog/hp/models/network/ports.rb +33 -0
- data/lib/fog/hp/models/network/router.rb +64 -0
- data/lib/fog/hp/models/network/routers.rb +33 -0
- data/lib/fog/hp/models/network/security_group.rb +28 -0
- data/lib/fog/hp/models/network/security_group_rule.rb +33 -0
- data/lib/fog/hp/models/network/security_group_rules.rb +33 -0
- data/lib/fog/hp/models/network/security_groups.rb +33 -0
- data/lib/fog/hp/models/network/subnet.rb +47 -0
- data/lib/fog/hp/models/network/subnets.rb +33 -0
- data/lib/fog/hp/models/storage/directories.rb +71 -0
- data/lib/fog/hp/models/storage/directory.rb +305 -0
- data/lib/fog/hp/models/storage/file.rb +105 -0
- data/lib/fog/hp/models/storage/files.rb +129 -0
- data/lib/fog/hp/models/storage/meta.rb +27 -0
- data/lib/fog/hp/models/storage/meta_parent.rb +21 -0
- data/lib/fog/hp/models/storage/metadata.rb +77 -0
- data/lib/fog/hp/models/storage/shared_directories.rb +51 -0
- data/lib/fog/hp/models/storage/shared_directory.rb +36 -0
- data/lib/fog/hp/models/storage/shared_file.rb +64 -0
- data/lib/fog/hp/models/storage/shared_files.rb +60 -0
- data/lib/fog/hp/network.rb +200 -0
- data/lib/fog/hp/requests/block_storage/create_snapshot.rb +72 -0
- data/lib/fog/hp/requests/block_storage/create_volume.rb +83 -0
- data/lib/fog/hp/requests/block_storage/delete_snapshot.rb +34 -0
- data/lib/fog/hp/requests/block_storage/delete_volume.rb +34 -0
- data/lib/fog/hp/requests/block_storage/get_bootable_volume_details.rb +54 -0
- data/lib/fog/hp/requests/block_storage/get_snapshot_details.rb +49 -0
- data/lib/fog/hp/requests/block_storage/get_volume_details.rb +53 -0
- data/lib/fog/hp/requests/block_storage/list_bootable_volumes.rb +49 -0
- data/lib/fog/hp/requests/block_storage/list_snapshots.rb +44 -0
- data/lib/fog/hp/requests/block_storage/list_volumes.rb +48 -0
- data/lib/fog/hp/requests/block_storage_v2/create_snapshot.rb +72 -0
- data/lib/fog/hp/requests/block_storage_v2/create_volume.rb +86 -0
- data/lib/fog/hp/requests/block_storage_v2/create_volume_backup.rb +79 -0
- data/lib/fog/hp/requests/block_storage_v2/delete_snapshot.rb +34 -0
- data/lib/fog/hp/requests/block_storage_v2/delete_volume.rb +34 -0
- data/lib/fog/hp/requests/block_storage_v2/delete_volume_backup.rb +34 -0
- data/lib/fog/hp/requests/block_storage_v2/get_snapshot_details.rb +49 -0
- data/lib/fog/hp/requests/block_storage_v2/get_volume_backup_details.rb +50 -0
- data/lib/fog/hp/requests/block_storage_v2/get_volume_details.rb +53 -0
- data/lib/fog/hp/requests/block_storage_v2/list_snapshots.rb +53 -0
- data/lib/fog/hp/requests/block_storage_v2/list_snapshots_detail.rb +50 -0
- data/lib/fog/hp/requests/block_storage_v2/list_volume_backups.rb +48 -0
- data/lib/fog/hp/requests/block_storage_v2/list_volume_backups_detail.rb +54 -0
- data/lib/fog/hp/requests/block_storage_v2/list_volumes.rb +57 -0
- data/lib/fog/hp/requests/block_storage_v2/list_volumes_detail.rb +55 -0
- data/lib/fog/hp/requests/block_storage_v2/restore_volume_backup.rb +93 -0
- data/lib/fog/hp/requests/block_storage_v2/update_snapshot.rb +64 -0
- data/lib/fog/hp/requests/block_storage_v2/update_volume.rb +66 -0
- data/lib/fog/hp/requests/cdn/delete_container.rb +35 -0
- data/lib/fog/hp/requests/cdn/get_containers.rb +39 -0
- data/lib/fog/hp/requests/cdn/head_container.rb +47 -0
- data/lib/fog/hp/requests/cdn/post_container.rb +49 -0
- data/lib/fog/hp/requests/cdn/put_container.rb +50 -0
- data/lib/fog/hp/requests/compute/allocate_address.rb +44 -0
- data/lib/fog/hp/requests/compute/associate_address.rb +38 -0
- data/lib/fog/hp/requests/compute/attach_volume.rb +74 -0
- data/lib/fog/hp/requests/compute/change_password_server.rb +29 -0
- data/lib/fog/hp/requests/compute/confirm_resized_server.rb +30 -0
- data/lib/fog/hp/requests/compute/create_image.rb +55 -0
- data/lib/fog/hp/requests/compute/create_key_pair.rb +76 -0
- data/lib/fog/hp/requests/compute/create_persistent_server.rb +163 -0
- data/lib/fog/hp/requests/compute/create_security_group.rb +78 -0
- data/lib/fog/hp/requests/compute/create_security_group_rule.rb +70 -0
- data/lib/fog/hp/requests/compute/create_server.rb +142 -0
- data/lib/fog/hp/requests/compute/delete_image.rb +40 -0
- data/lib/fog/hp/requests/compute/delete_key_pair.rb +35 -0
- data/lib/fog/hp/requests/compute/delete_meta.rb +50 -0
- data/lib/fog/hp/requests/compute/delete_security_group.rb +37 -0
- data/lib/fog/hp/requests/compute/delete_security_group_rule.rb +44 -0
- data/lib/fog/hp/requests/compute/delete_server.rb +39 -0
- data/lib/fog/hp/requests/compute/detach_volume.rb +43 -0
- data/lib/fog/hp/requests/compute/disassociate_address.rb +35 -0
- data/lib/fog/hp/requests/compute/get_address.rb +41 -0
- data/lib/fog/hp/requests/compute/get_console_output.rb +37 -0
- data/lib/fog/hp/requests/compute/get_flavor_details.rb +47 -0
- data/lib/fog/hp/requests/compute/get_image_details.rb +38 -0
- data/lib/fog/hp/requests/compute/get_meta.rb +52 -0
- data/lib/fog/hp/requests/compute/get_security_group.rb +53 -0
- data/lib/fog/hp/requests/compute/get_server_details.rb +48 -0
- data/lib/fog/hp/requests/compute/get_vnc_console.rb +41 -0
- data/lib/fog/hp/requests/compute/get_windows_password.rb +40 -0
- data/lib/fog/hp/requests/compute/list_addresses.rb +37 -0
- data/lib/fog/hp/requests/compute/list_flavors.rb +40 -0
- data/lib/fog/hp/requests/compute/list_flavors_detail.rb +42 -0
- data/lib/fog/hp/requests/compute/list_images.rb +36 -0
- data/lib/fog/hp/requests/compute/list_images_detail.rb +45 -0
- data/lib/fog/hp/requests/compute/list_key_pairs.rb +40 -0
- data/lib/fog/hp/requests/compute/list_metadata.rb +52 -0
- data/lib/fog/hp/requests/compute/list_security_groups.rb +50 -0
- data/lib/fog/hp/requests/compute/list_server_addresses.rb +38 -0
- data/lib/fog/hp/requests/compute/list_server_private_addresses.rb +54 -0
- data/lib/fog/hp/requests/compute/list_server_public_addresses.rb +54 -0
- data/lib/fog/hp/requests/compute/list_server_volumes.rb +45 -0
- data/lib/fog/hp/requests/compute/list_servers.rb +37 -0
- data/lib/fog/hp/requests/compute/list_servers_detail.rb +52 -0
- data/lib/fog/hp/requests/compute/reboot_server.rb +30 -0
- data/lib/fog/hp/requests/compute/rebuild_server.rb +27 -0
- data/lib/fog/hp/requests/compute/release_address.rb +35 -0
- data/lib/fog/hp/requests/compute/resize_server.rb +35 -0
- data/lib/fog/hp/requests/compute/revert_resized_server.rb +31 -0
- data/lib/fog/hp/requests/compute/server_action.rb +23 -0
- data/lib/fog/hp/requests/compute/set_metadata.rb +53 -0
- data/lib/fog/hp/requests/compute/update_meta.rb +54 -0
- data/lib/fog/hp/requests/compute/update_metadata.rb +53 -0
- data/lib/fog/hp/requests/compute/update_server.rb +38 -0
- data/lib/fog/hp/requests/compute_v2/add_security_group.rb +36 -0
- data/lib/fog/hp/requests/compute_v2/allocate_address.rb +48 -0
- data/lib/fog/hp/requests/compute_v2/associate_address.rb +42 -0
- data/lib/fog/hp/requests/compute_v2/attach_volume.rb +76 -0
- data/lib/fog/hp/requests/compute_v2/create_image.rb +58 -0
- data/lib/fog/hp/requests/compute_v2/create_key_pair.rb +68 -0
- data/lib/fog/hp/requests/compute_v2/create_persistent_server.rb +177 -0
- data/lib/fog/hp/requests/compute_v2/create_server.rb +164 -0
- data/lib/fog/hp/requests/compute_v2/delete_image.rb +39 -0
- data/lib/fog/hp/requests/compute_v2/delete_key_pair.rb +34 -0
- data/lib/fog/hp/requests/compute_v2/delete_meta.rb +50 -0
- data/lib/fog/hp/requests/compute_v2/delete_server.rb +39 -0
- data/lib/fog/hp/requests/compute_v2/detach_volume.rb +43 -0
- data/lib/fog/hp/requests/compute_v2/disassociate_address.rb +35 -0
- data/lib/fog/hp/requests/compute_v2/get_address.rb +44 -0
- data/lib/fog/hp/requests/compute_v2/get_console_output.rb +37 -0
- data/lib/fog/hp/requests/compute_v2/get_flavor_details.rb +53 -0
- data/lib/fog/hp/requests/compute_v2/get_image_details.rb +50 -0
- data/lib/fog/hp/requests/compute_v2/get_key_pair.rb +40 -0
- data/lib/fog/hp/requests/compute_v2/get_meta.rb +52 -0
- data/lib/fog/hp/requests/compute_v2/get_server_details.rb +68 -0
- data/lib/fog/hp/requests/compute_v2/get_server_volume_details.rb +43 -0
- data/lib/fog/hp/requests/compute_v2/get_vnc_console.rb +41 -0
- data/lib/fog/hp/requests/compute_v2/get_windows_password.rb +40 -0
- data/lib/fog/hp/requests/compute_v2/list_addresses.rb +40 -0
- data/lib/fog/hp/requests/compute_v2/list_availability_zones.rb +43 -0
- data/lib/fog/hp/requests/compute_v2/list_flavors.rb +49 -0
- data/lib/fog/hp/requests/compute_v2/list_flavors_detail.rb +49 -0
- data/lib/fog/hp/requests/compute_v2/list_images.rb +48 -0
- data/lib/fog/hp/requests/compute_v2/list_images_detail.rb +62 -0
- data/lib/fog/hp/requests/compute_v2/list_key_pairs.rb +38 -0
- data/lib/fog/hp/requests/compute_v2/list_limits.rb +58 -0
- data/lib/fog/hp/requests/compute_v2/list_metadata.rb +52 -0
- data/lib/fog/hp/requests/compute_v2/list_server_addresses.rb +38 -0
- data/lib/fog/hp/requests/compute_v2/list_server_addresses_by_network.rb +42 -0
- data/lib/fog/hp/requests/compute_v2/list_server_volumes.rb +45 -0
- data/lib/fog/hp/requests/compute_v2/list_servers.rb +49 -0
- data/lib/fog/hp/requests/compute_v2/list_servers_detail.rb +76 -0
- data/lib/fog/hp/requests/compute_v2/reboot_server.rb +30 -0
- data/lib/fog/hp/requests/compute_v2/rebuild_server.rb +77 -0
- data/lib/fog/hp/requests/compute_v2/release_address.rb +34 -0
- data/lib/fog/hp/requests/compute_v2/remove_security_group.rb +33 -0
- data/lib/fog/hp/requests/compute_v2/server_action.rb +23 -0
- data/lib/fog/hp/requests/compute_v2/set_metadata.rb +53 -0
- data/lib/fog/hp/requests/compute_v2/update_meta.rb +54 -0
- data/lib/fog/hp/requests/compute_v2/update_metadata.rb +53 -0
- data/lib/fog/hp/requests/compute_v2/update_server.rb +69 -0
- data/lib/fog/hp/requests/dns/create_domain.rb +65 -0
- data/lib/fog/hp/requests/dns/create_record.rb +76 -0
- data/lib/fog/hp/requests/dns/delete_domain.rb +32 -0
- data/lib/fog/hp/requests/dns/delete_record.rb +34 -0
- data/lib/fog/hp/requests/dns/get_domain.rb +41 -0
- data/lib/fog/hp/requests/dns/get_record.rb +46 -0
- data/lib/fog/hp/requests/dns/get_servers_hosting_domain.rb +60 -0
- data/lib/fog/hp/requests/dns/list_domains.rb +36 -0
- data/lib/fog/hp/requests/dns/list_records_in_a_domain.rb +53 -0
- data/lib/fog/hp/requests/dns/update_domain.rb +61 -0
- data/lib/fog/hp/requests/dns/update_record.rb +66 -0
- data/lib/fog/hp/requests/lb/create_load_balancer.rb +109 -0
- data/lib/fog/hp/requests/lb/create_load_balancer_node.rb +68 -0
- data/lib/fog/hp/requests/lb/delete_load_balancer.rb +32 -0
- data/lib/fog/hp/requests/lb/delete_load_balancer_node.rb +43 -0
- data/lib/fog/hp/requests/lb/get_load_balancer.rb +57 -0
- data/lib/fog/hp/requests/lb/get_load_balancer_node.rb +51 -0
- data/lib/fog/hp/requests/lb/list_algorithms.rb +31 -0
- data/lib/fog/hp/requests/lb/list_limits.rb +36 -0
- data/lib/fog/hp/requests/lb/list_load_balancer_nodes.rb +39 -0
- data/lib/fog/hp/requests/lb/list_load_balancer_virtual_ips.rb +41 -0
- data/lib/fog/hp/requests/lb/list_load_balancers.rb +39 -0
- data/lib/fog/hp/requests/lb/list_protocols.rb +33 -0
- data/lib/fog/hp/requests/lb/list_versions.rb +24 -0
- data/lib/fog/hp/requests/lb/update_load_balancer.rb +45 -0
- data/lib/fog/hp/requests/lb/update_load_balancer_node.rb +55 -0
- data/lib/fog/hp/requests/network/add_router_interface.rb +73 -0
- data/lib/fog/hp/requests/network/associate_floating_ip.rb +69 -0
- data/lib/fog/hp/requests/network/create_floating_ip.rb +67 -0
- data/lib/fog/hp/requests/network/create_network.rb +65 -0
- data/lib/fog/hp/requests/network/create_port.rb +90 -0
- data/lib/fog/hp/requests/network/create_router.rb +62 -0
- data/lib/fog/hp/requests/network/create_security_group.rb +95 -0
- data/lib/fog/hp/requests/network/create_security_group_rule.rb +78 -0
- data/lib/fog/hp/requests/network/create_subnet.rb +95 -0
- data/lib/fog/hp/requests/network/delete_floating_ip.rb +32 -0
- data/lib/fog/hp/requests/network/delete_network.rb +32 -0
- data/lib/fog/hp/requests/network/delete_port.rb +32 -0
- data/lib/fog/hp/requests/network/delete_router.rb +32 -0
- data/lib/fog/hp/requests/network/delete_security_group.rb +32 -0
- data/lib/fog/hp/requests/network/delete_security_group_rule.rb +32 -0
- data/lib/fog/hp/requests/network/delete_subnet.rb +32 -0
- data/lib/fog/hp/requests/network/disassociate_floating_ip.rb +69 -0
- data/lib/fog/hp/requests/network/get_floating_ip.rb +44 -0
- data/lib/fog/hp/requests/network/get_network.rb +46 -0
- data/lib/fog/hp/requests/network/get_port.rb +51 -0
- data/lib/fog/hp/requests/network/get_router.rb +44 -0
- data/lib/fog/hp/requests/network/get_security_group.rb +52 -0
- data/lib/fog/hp/requests/network/get_security_group_rule.rb +47 -0
- data/lib/fog/hp/requests/network/get_subnet.rb +50 -0
- data/lib/fog/hp/requests/network/list_floating_ips.rb +44 -0
- data/lib/fog/hp/requests/network/list_networks.rb +58 -0
- data/lib/fog/hp/requests/network/list_ports.rb +50 -0
- data/lib/fog/hp/requests/network/list_routers.rb +43 -0
- data/lib/fog/hp/requests/network/list_security_group_rules.rb +48 -0
- data/lib/fog/hp/requests/network/list_security_groups.rb +53 -0
- data/lib/fog/hp/requests/network/list_subnets.rb +49 -0
- data/lib/fog/hp/requests/network/remove_router_interface.rb +65 -0
- data/lib/fog/hp/requests/network/update_network.rb +60 -0
- data/lib/fog/hp/requests/network/update_port.rb +73 -0
- data/lib/fog/hp/requests/network/update_router.rb +60 -0
- data/lib/fog/hp/requests/network/update_subnet.rb +70 -0
- data/lib/fog/hp/requests/storage/delete_container.rb +38 -0
- data/lib/fog/hp/requests/storage/delete_object.rb +39 -0
- data/lib/fog/hp/requests/storage/delete_shared_object.rb +33 -0
- data/lib/fog/hp/requests/storage/get_container.rb +87 -0
- data/lib/fog/hp/requests/storage/get_containers.rb +66 -0
- data/lib/fog/hp/requests/storage/get_object.rb +82 -0
- data/lib/fog/hp/requests/storage/get_object_temp_url.rb +26 -0
- data/lib/fog/hp/requests/storage/get_shared_container.rb +69 -0
- data/lib/fog/hp/requests/storage/get_shared_object.rb +61 -0
- data/lib/fog/hp/requests/storage/head_container.rb +36 -0
- data/lib/fog/hp/requests/storage/head_containers.rb +32 -0
- data/lib/fog/hp/requests/storage/head_object.rb +31 -0
- data/lib/fog/hp/requests/storage/head_shared_container.rb +40 -0
- data/lib/fog/hp/requests/storage/head_shared_object.rb +34 -0
- data/lib/fog/hp/requests/storage/post_container.rb +33 -0
- data/lib/fog/hp/requests/storage/post_object.rb +51 -0
- data/lib/fog/hp/requests/storage/put_container.rb +45 -0
- data/lib/fog/hp/requests/storage/put_object.rb +100 -0
- data/lib/fog/hp/requests/storage/put_shared_object.rb +80 -0
- data/lib/fog/hp/simple_http_instrumentor.rb +58 -0
- data/lib/fog/hp/storage.rb +438 -0
- data/lib/fog/internet_archive.rb +1 -0
- data/lib/fog/internet_archive/core.rb +291 -0
- data/lib/fog/internet_archive/models/storage/directories.rb +39 -0
- data/lib/fog/internet_archive/models/storage/directory.rb +105 -0
- data/lib/fog/internet_archive/models/storage/file.rb +254 -0
- data/lib/fog/internet_archive/models/storage/files.rb +119 -0
- data/lib/fog/internet_archive/models/storage/ia_attributes.rb +36 -0
- data/lib/fog/internet_archive/parsers/storage/access_control_list.rb +42 -0
- data/lib/fog/internet_archive/parsers/storage/complete_multipart_upload.rb +20 -0
- data/lib/fog/internet_archive/parsers/storage/copy_object.rb +18 -0
- data/lib/fog/internet_archive/parsers/storage/cors_configuration.rb +38 -0
- data/lib/fog/internet_archive/parsers/storage/delete_multiple_objects.rb +45 -0
- data/lib/fog/internet_archive/parsers/storage/get_bucket.rb +58 -0
- data/lib/fog/internet_archive/parsers/storage/get_bucket_lifecycle.rb +64 -0
- data/lib/fog/internet_archive/parsers/storage/get_bucket_location.rb +16 -0
- data/lib/fog/internet_archive/parsers/storage/get_bucket_logging.rb +36 -0
- data/lib/fog/internet_archive/parsers/storage/get_bucket_website.rb +22 -0
- data/lib/fog/internet_archive/parsers/storage/get_request_payment.rb +16 -0
- data/lib/fog/internet_archive/parsers/storage/get_service.rb +28 -0
- data/lib/fog/internet_archive/parsers/storage/initiate_multipart_upload.rb +20 -0
- data/lib/fog/internet_archive/parsers/storage/list_multipart_uploads.rb +52 -0
- data/lib/fog/internet_archive/parsers/storage/list_parts.rb +36 -0
- data/lib/fog/internet_archive/requests/storage/abort_multipart_upload.rb +27 -0
- data/lib/fog/internet_archive/requests/storage/acl_utils.rb +60 -0
- data/lib/fog/internet_archive/requests/storage/complete_multipart_upload.rb +46 -0
- data/lib/fog/internet_archive/requests/storage/copy_object.rb +77 -0
- data/lib/fog/internet_archive/requests/storage/cors_utils.rb +39 -0
- data/lib/fog/internet_archive/requests/storage/delete_bucket.rb +42 -0
- data/lib/fog/internet_archive/requests/storage/delete_bucket_cors.rb +26 -0
- data/lib/fog/internet_archive/requests/storage/delete_bucket_lifecycle.rb +26 -0
- data/lib/fog/internet_archive/requests/storage/delete_bucket_policy.rb +26 -0
- data/lib/fog/internet_archive/requests/storage/delete_bucket_website.rb +26 -0
- data/lib/fog/internet_archive/requests/storage/delete_multiple_objects.rb +88 -0
- data/lib/fog/internet_archive/requests/storage/delete_object.rb +46 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket.rb +108 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_acl.rb +65 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_cors.rb +61 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_lifecycle.rb +35 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_location.rb +54 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_logging.rb +45 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_policy.rb +31 -0
- data/lib/fog/internet_archive/requests/storage/get_bucket_website.rb +38 -0
- data/lib/fog/internet_archive/requests/storage/get_object.rb +163 -0
- data/lib/fog/internet_archive/requests/storage/get_object_acl.rb +72 -0
- data/lib/fog/internet_archive/requests/storage/get_object_http_url.rb +48 -0
- data/lib/fog/internet_archive/requests/storage/get_object_https_url.rb +30 -0
- data/lib/fog/internet_archive/requests/storage/get_object_torrent.rb +45 -0
- data/lib/fog/internet_archive/requests/storage/get_object_url.rb +49 -0
- data/lib/fog/internet_archive/requests/storage/get_request_payment.rb +45 -0
- data/lib/fog/internet_archive/requests/storage/get_service.rb +50 -0
- data/lib/fog/internet_archive/requests/storage/head_object.rb +57 -0
- data/lib/fog/internet_archive/requests/storage/initiate_multipart_upload.rb +42 -0
- data/lib/fog/internet_archive/requests/storage/list_multipart_uploads.rb +52 -0
- data/lib/fog/internet_archive/requests/storage/list_parts.rb +53 -0
- data/lib/fog/internet_archive/requests/storage/post_object_hidden_fields.rb +36 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket.rb +70 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_acl.rb +69 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_cors.rb +47 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_lifecycle.rb +76 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_logging.rb +79 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_policy.rb +25 -0
- data/lib/fog/internet_archive/requests/storage/put_bucket_website.rb +59 -0
- data/lib/fog/internet_archive/requests/storage/put_object.rb +94 -0
- data/lib/fog/internet_archive/requests/storage/put_object_acl.rb +73 -0
- data/lib/fog/internet_archive/requests/storage/put_object_url.rb +43 -0
- data/lib/fog/internet_archive/requests/storage/put_request_payment.rb +45 -0
- data/lib/fog/internet_archive/requests/storage/sync_clock.rb +24 -0
- data/lib/fog/internet_archive/requests/storage/upload_part.rb +39 -0
- data/lib/fog/internet_archive/signaturev4.rb +71 -0
- data/lib/fog/internet_archive/storage.rb +381 -0
- data/lib/fog/joyent.rb +12 -0
- data/lib/fog/joyent/analytics.rb +310 -0
- data/lib/fog/joyent/compute.rb +279 -0
- data/lib/fog/joyent/core.rb +10 -0
- data/lib/fog/joyent/errors.rb +91 -0
- data/lib/fog/joyent/models/analytics/field.rb +13 -0
- data/lib/fog/joyent/models/analytics/fields.rb +24 -0
- data/lib/fog/joyent/models/analytics/instrumentation.rb +82 -0
- data/lib/fog/joyent/models/analytics/instrumentations.rb +23 -0
- data/lib/fog/joyent/models/analytics/joyent_module.rb +13 -0
- data/lib/fog/joyent/models/analytics/joyent_modules.rb +24 -0
- data/lib/fog/joyent/models/analytics/metric.rb +17 -0
- data/lib/fog/joyent/models/analytics/metrics.rb +16 -0
- data/lib/fog/joyent/models/analytics/transformation.rb +13 -0
- data/lib/fog/joyent/models/analytics/transformations.rb +24 -0
- data/lib/fog/joyent/models/analytics/type.rb +16 -0
- data/lib/fog/joyent/models/analytics/types.rb +24 -0
- data/lib/fog/joyent/models/analytics/value.rb +20 -0
- data/lib/fog/joyent/models/compute/datacenter.rb +11 -0
- data/lib/fog/joyent/models/compute/datacenters.rb +21 -0
- data/lib/fog/joyent/models/compute/flavor.rb +19 -0
- data/lib/fog/joyent/models/compute/flavors.rb +21 -0
- data/lib/fog/joyent/models/compute/image.rb +26 -0
- data/lib/fog/joyent/models/compute/images.rb +30 -0
- data/lib/fog/joyent/models/compute/key.rb +19 -0
- data/lib/fog/joyent/models/compute/keys.rb +32 -0
- data/lib/fog/joyent/models/compute/network.rb +12 -0
- data/lib/fog/joyent/models/compute/networks.rb +14 -0
- data/lib/fog/joyent/models/compute/server.rb +124 -0
- data/lib/fog/joyent/models/compute/servers.rb +35 -0
- data/lib/fog/joyent/models/compute/snapshot.rb +44 -0
- data/lib/fog/joyent/models/compute/snapshots.rb +35 -0
- data/lib/fog/joyent/requests/analytics/create_instrumentation.rb +25 -0
- data/lib/fog/joyent/requests/analytics/delete_instrumentation.rb +23 -0
- data/lib/fog/joyent/requests/analytics/describe_analytics.rb +26 -0
- data/lib/fog/joyent/requests/analytics/get_instrumentation.rb +26 -0
- data/lib/fog/joyent/requests/analytics/get_instrumentation_value.rb +30 -0
- data/lib/fog/joyent/requests/analytics/list_instrumentations.rb +25 -0
- data/lib/fog/joyent/requests/compute/add_machine_tags.rb +19 -0
- data/lib/fog/joyent/requests/compute/create_key.rb +54 -0
- data/lib/fog/joyent/requests/compute/create_machine.rb +16 -0
- data/lib/fog/joyent/requests/compute/create_machine_snapshot.rb +16 -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 +27 -0
- data/lib/fog/joyent/requests/compute/delete_machine.rb +15 -0
- data/lib/fog/joyent/requests/compute/delete_machine_metadata.rb +16 -0
- data/lib/fog/joyent/requests/compute/delete_machine_snapshot.rb +18 -0
- data/lib/fog/joyent/requests/compute/delete_machine_tag.rb +15 -0
- data/lib/fog/joyent/requests/compute/get_dataset.rb +27 -0
- data/lib/fog/joyent/requests/compute/get_image.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 +24 -0
- data/lib/fog/joyent/requests/compute/get_machine_snapshot.rb +15 -0
- data/lib/fog/joyent/requests/compute/get_machine_tag.rb +18 -0
- data/lib/fog/joyent/requests/compute/get_package.rb +32 -0
- data/lib/fog/joyent/requests/compute/list_datacenters.rb +16 -0
- data/lib/fog/joyent/requests/compute/list_datasets.rb +24 -0
- data/lib/fog/joyent/requests/compute/list_images.rb +25 -0
- data/lib/fog/joyent/requests/compute/list_keys.rb +25 -0
- data/lib/fog/joyent/requests/compute/list_machine_snapshots.rb +15 -0
- data/lib/fog/joyent/requests/compute/list_machine_tags.rb +20 -0
- data/lib/fog/joyent/requests/compute/list_machines.rb +26 -0
- data/lib/fog/joyent/requests/compute/list_networks.rb +26 -0
- data/lib/fog/joyent/requests/compute/list_packages.rb +34 -0
- data/lib/fog/joyent/requests/compute/reboot_machine.rb +15 -0
- data/lib/fog/joyent/requests/compute/resize_machine.rb +16 -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/linode/compute.rb +0 -3
- data/lib/fog/linode/models/compute/data_center.rb +0 -1
- data/lib/fog/linode/models/compute/flavor.rb +0 -3
- data/lib/fog/linode/models/compute/flavors.rb +1 -8
- data/lib/fog/linode/models/compute/image.rb +0 -2
- data/lib/fog/linode/models/compute/images.rb +1 -2
- data/lib/fog/linode/models/compute/kernel.rb +0 -3
- data/lib/fog/linode/models/compute/kernels.rb +8 -14
- data/lib/fog/linode/requests/compute/avail_kernels.rb +18 -17
- data/lib/fog/linode/requests/compute/avail_linodeplans.rb +2 -4
- data/lib/fog/linode/requests/compute/avail_stackscripts.rb +11 -6
- data/lib/fog/ninefold.rb +1 -0
- data/lib/fog/ninefold/compute.rb +144 -0
- data/lib/fog/ninefold/core.rb +11 -0
- data/lib/fog/ninefold/models/compute/address.rb +100 -0
- data/lib/fog/ninefold/models/compute/addresses.rb +27 -0
- data/lib/fog/ninefold/models/compute/flavor.rb +24 -0
- data/lib/fog/ninefold/models/compute/flavors.rb +26 -0
- data/lib/fog/ninefold/models/compute/image.rb +38 -0
- data/lib/fog/ninefold/models/compute/images.rb +26 -0
- data/lib/fog/ninefold/models/compute/ip_forwarding_rule.rb +76 -0
- data/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb +27 -0
- data/lib/fog/ninefold/models/compute/server.rb +182 -0
- data/lib/fog/ninefold/models/compute/servers.rb +27 -0
- data/lib/fog/ninefold/requests/compute/assign_to_load_balancer_rule.rb +11 -0
- data/lib/fog/ninefold/requests/compute/associate_ip_address.rb +12 -0
- data/lib/fog/ninefold/requests/compute/change_service_for_virtual_machine.rb +12 -0
- data/lib/fog/ninefold/requests/compute/create_ip_forwarding_rule.rb +12 -0
- data/lib/fog/ninefold/requests/compute/create_load_balancer_rule.rb +11 -0
- data/lib/fog/ninefold/requests/compute/delete_ip_forwarding_rule.rb +12 -0
- data/lib/fog/ninefold/requests/compute/delete_load_balancer_rule.rb +11 -0
- data/lib/fog/ninefold/requests/compute/deploy_virtual_machine.rb +12 -0
- data/lib/fog/ninefold/requests/compute/destroy_virtual_machine.rb +12 -0
- data/lib/fog/ninefold/requests/compute/disable_static_nat.rb +12 -0
- data/lib/fog/ninefold/requests/compute/disassociate_ip_address.rb +12 -0
- data/lib/fog/ninefold/requests/compute/enable_static_nat.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_accounts.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_async_jobs.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_capabilities.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_disk_offerings.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_events.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_hypervisors.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_ip_forwarding_rules.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_load_balancer_rule_instances.rb +11 -0
- data/lib/fog/ninefold/requests/compute/list_load_balancer_rules.rb +11 -0
- data/lib/fog/ninefold/requests/compute/list_network_offerings.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_networks.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_public_ip_addresses.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_resource_limits.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_service_offerings.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_templates.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_virtual_machines.rb +12 -0
- data/lib/fog/ninefold/requests/compute/list_zones.rb +12 -0
- data/lib/fog/ninefold/requests/compute/query_async_job_result.rb +12 -0
- data/lib/fog/ninefold/requests/compute/reboot_virtual_machine.rb +12 -0
- data/lib/fog/ninefold/requests/compute/remove_from_load_balancer_rule.rb +11 -0
- data/lib/fog/ninefold/requests/compute/reset_password_for_virtual_machine.rb +12 -0
- data/lib/fog/ninefold/requests/compute/start_virtual_machine.rb +12 -0
- data/lib/fog/ninefold/requests/compute/stop_virtual_machine.rb +12 -0
- data/lib/fog/ninefold/requests/compute/update_load_balancer_rule.rb +11 -0
- data/lib/fog/ninefold/requests/compute/update_virtual_machine.rb +12 -0
- data/lib/fog/ninefold/storage.rb +53 -0
- data/lib/fog/opennebula/README.md +0 -0
- data/lib/fog/opennebula/compute.rb +19 -90
- data/lib/fog/opennebula/models/compute/flavor.rb +13 -13
- data/lib/fog/opennebula/models/compute/server.rb +1 -9
- data/lib/fog/opennebula/requests/compute/image_pool.rb +1 -0
- data/lib/fog/opennebula/requests/compute/list_vms.rb +26 -8
- data/lib/fog/opennebula/requests/compute/template_pool.rb +38 -20
- data/lib/fog/opennebula/requests/compute/vm_allocate.rb +15 -24
- data/lib/fog/opennebula/requests/compute/vm_destroy.rb +4 -13
- data/lib/fog/opennebula/requests/compute/vm_disk_snapshot.rb +2 -8
- data/lib/fog/opennebula/requests/compute/vm_resume.rb +23 -13
- data/lib/fog/opennebula/requests/compute/vm_shutdown.rb +1 -1
- data/lib/fog/opennebula/requests/compute/vm_stop.rb +10 -3
- data/lib/fog/openstack.rb +11 -0
- data/lib/fog/openstack/CHANGELOG.md +47 -0
- data/lib/fog/openstack/baremetal.rb +308 -0
- data/lib/fog/openstack/compute.rb +393 -0
- data/lib/fog/openstack/core.rb +594 -0
- data/lib/fog/openstack/docs/compute.md +681 -0
- data/lib/fog/openstack/docs/getting_started.md +81 -0
- data/lib/fog/openstack/docs/orchestration.md +318 -0
- data/lib/fog/openstack/docs/planning.md +270 -0
- data/lib/fog/openstack/docs/storage.md +453 -0
- data/lib/fog/openstack/examples/compute/basics.rb +50 -0
- data/lib/fog/openstack/examples/compute/block_device_mapping_v2.rb +32 -0
- data/lib/fog/openstack/examples/identity/basics.rb +68 -0
- data/lib/fog/openstack/examples/image/upload-test-image.rb +77 -0
- data/lib/fog/openstack/examples/network/network_subnets_routers.rb +62 -0
- data/lib/fog/openstack/examples/planning/basics.rb +53 -0
- data/lib/fog/openstack/examples/storage/set-account-quota.rb +66 -0
- data/lib/fog/openstack/identity.rb +63 -0
- data/lib/fog/openstack/identity_v2.rb +194 -0
- data/lib/fog/openstack/identity_v3.rb +172 -0
- data/lib/fog/openstack/image.rb +157 -0
- data/lib/fog/openstack/metering.rb +144 -0
- data/lib/fog/openstack/models/baremetal/chassis.rb +49 -0
- data/lib/fog/openstack/models/baremetal/chassis_collection.rb +44 -0
- data/lib/fog/openstack/models/baremetal/driver.rb +24 -0
- data/lib/fog/openstack/models/baremetal/drivers.rb +21 -0
- data/lib/fog/openstack/models/baremetal/node.rb +96 -0
- data/lib/fog/openstack/models/baremetal/nodes.rb +44 -0
- data/lib/fog/openstack/models/baremetal/port.rb +50 -0
- data/lib/fog/openstack/models/baremetal/ports.rb +44 -0
- data/lib/fog/openstack/models/collection.rb +45 -0
- data/lib/fog/openstack/models/compute/address.rb +67 -0
- data/lib/fog/openstack/models/compute/addresses.rb +28 -0
- data/lib/fog/openstack/models/compute/aggregate.rb +58 -0
- data/lib/fog/openstack/models/compute/aggregates.rb +26 -0
- data/lib/fog/openstack/models/compute/availability_zone.rb +14 -0
- data/lib/fog/openstack/models/compute/availability_zones.rb +22 -0
- data/lib/fog/openstack/models/compute/flavor.rb +52 -0
- data/lib/fog/openstack/models/compute/flavors.rb +29 -0
- data/lib/fog/openstack/models/compute/host.rb +28 -0
- data/lib/fog/openstack/models/compute/hosts.rb +28 -0
- data/lib/fog/openstack/models/compute/image.rb +48 -0
- data/lib/fog/openstack/models/compute/images.rb +38 -0
- data/lib/fog/openstack/models/compute/key_pair.rb +56 -0
- data/lib/fog/openstack/models/compute/key_pairs.rb +29 -0
- data/lib/fog/openstack/models/compute/metadata.rb +65 -0
- data/lib/fog/openstack/models/compute/metadatum.rb +27 -0
- data/lib/fog/openstack/models/compute/network.rb +13 -0
- data/lib/fog/openstack/models/compute/networks.rb +30 -0
- data/lib/fog/openstack/models/compute/security_group.rb +57 -0
- data/lib/fog/openstack/models/compute/security_group_rule.rb +32 -0
- data/lib/fog/openstack/models/compute/security_group_rules.rb +21 -0
- data/lib/fog/openstack/models/compute/security_groups.rb +24 -0
- data/lib/fog/openstack/models/compute/server.rb +395 -0
- data/lib/fog/openstack/models/compute/servers.rb +59 -0
- data/lib/fog/openstack/models/compute/service.rb +42 -0
- data/lib/fog/openstack/models/compute/services.rb +23 -0
- data/lib/fog/openstack/models/compute/snapshot.rb +32 -0
- data/lib/fog/openstack/models/compute/snapshots.rb +37 -0
- data/lib/fog/openstack/models/compute/tenant.rb +24 -0
- data/lib/fog/openstack/models/compute/tenants.rb +25 -0
- data/lib/fog/openstack/models/compute/volume.rb +52 -0
- data/lib/fog/openstack/models/compute/volumes.rb +37 -0
- data/lib/fog/openstack/models/identity_v2/ec2_credential.rb +39 -0
- data/lib/fog/openstack/models/identity_v2/ec2_credentials.rb +56 -0
- data/lib/fog/openstack/models/identity_v2/role.rb +52 -0
- data/lib/fog/openstack/models/identity_v2/roles.rb +22 -0
- data/lib/fog/openstack/models/identity_v2/tenant.rb +60 -0
- data/lib/fog/openstack/models/identity_v2/tenants.rb +31 -0
- data/lib/fog/openstack/models/identity_v2/user.rb +65 -0
- data/lib/fog/openstack/models/identity_v2/users.rb +45 -0
- data/lib/fog/openstack/models/identity_v3/domain.rb +43 -0
- data/lib/fog/openstack/models/identity_v3/domains.rb +35 -0
- data/lib/fog/openstack/models/identity_v3/endpoint.rb +46 -0
- data/lib/fog/openstack/models/identity_v3/endpoints.rb +26 -0
- data/lib/fog/openstack/models/identity_v3/group.rb +92 -0
- data/lib/fog/openstack/models/identity_v3/groups.rb +31 -0
- data/lib/fog/openstack/models/identity_v3/os_credential.rb +73 -0
- data/lib/fog/openstack/models/identity_v3/os_credentials.rb +31 -0
- data/lib/fog/openstack/models/identity_v3/policies.rb +31 -0
- data/lib/fog/openstack/models/identity_v3/policy.rb +42 -0
- data/lib/fog/openstack/models/identity_v3/project.rb +96 -0
- data/lib/fog/openstack/models/identity_v3/projects.rb +44 -0
- data/lib/fog/openstack/models/identity_v3/role.rb +40 -0
- data/lib/fog/openstack/models/identity_v3/role_assignment.rb +22 -0
- data/lib/fog/openstack/models/identity_v3/role_assignments.rb +25 -0
- data/lib/fog/openstack/models/identity_v3/roles.rb +39 -0
- data/lib/fog/openstack/models/identity_v3/service.rb +47 -0
- data/lib/fog/openstack/models/identity_v3/services.rb +31 -0
- data/lib/fog/openstack/models/identity_v3/token.rb +26 -0
- data/lib/fog/openstack/models/identity_v3/tokens.rb +40 -0
- data/lib/fog/openstack/models/identity_v3/user.rb +81 -0
- data/lib/fog/openstack/models/identity_v3/users.rb +35 -0
- data/lib/fog/openstack/models/image/image.rb +76 -0
- data/lib/fog/openstack/models/image/images.rb +67 -0
- data/lib/fog/openstack/models/meta_parent.rb +31 -0
- data/lib/fog/openstack/models/metering/meter.rb +0 -0
- data/lib/fog/openstack/models/metering/meters.rb +0 -0
- data/lib/fog/openstack/models/metering/resource.rb +15 -0
- data/lib/fog/openstack/models/metering/resources.rb +23 -0
- data/lib/fog/openstack/models/model.rb +44 -0
- data/lib/fog/openstack/models/network/floating_ip.rb +40 -0
- data/lib/fog/openstack/models/network/floating_ips.rb +32 -0
- data/lib/fog/openstack/models/network/lb_health_monitor.rb +57 -0
- data/lib/fog/openstack/models/network/lb_health_monitors.rb +32 -0
- data/lib/fog/openstack/models/network/lb_member.rb +42 -0
- data/lib/fog/openstack/models/network/lb_members.rb +32 -0
- data/lib/fog/openstack/models/network/lb_pool.rb +67 -0
- data/lib/fog/openstack/models/network/lb_pools.rb +32 -0
- data/lib/fog/openstack/models/network/lb_vip.rb +48 -0
- data/lib/fog/openstack/models/network/lb_vips.rb +32 -0
- data/lib/fog/openstack/models/network/network.rb +43 -0
- data/lib/fog/openstack/models/network/networks.rb +32 -0
- data/lib/fog/openstack/models/network/port.rb +42 -0
- data/lib/fog/openstack/models/network/ports.rb +32 -0
- data/lib/fog/openstack/models/network/router.rb +61 -0
- data/lib/fog/openstack/models/network/routers.rb +32 -0
- data/lib/fog/openstack/models/network/security_group.rb +32 -0
- data/lib/fog/openstack/models/network/security_group_rule.rb +33 -0
- data/lib/fog/openstack/models/network/security_group_rules.rb +32 -0
- data/lib/fog/openstack/models/network/security_groups.rb +32 -0
- data/lib/fog/openstack/models/network/subnet.rb +44 -0
- data/lib/fog/openstack/models/network/subnets.rb +32 -0
- data/lib/fog/openstack/models/orchestration/event.rb +20 -0
- data/lib/fog/openstack/models/orchestration/events.rb +31 -0
- data/lib/fog/openstack/models/orchestration/resource.rb +32 -0
- data/lib/fog/openstack/models/orchestration/resource_schemas.rb +17 -0
- data/lib/fog/openstack/models/orchestration/resources.rb +36 -0
- data/lib/fog/openstack/models/orchestration/stack.rb +120 -0
- data/lib/fog/openstack/models/orchestration/stacks.rb +64 -0
- data/lib/fog/openstack/models/orchestration/template.rb +15 -0
- data/lib/fog/openstack/models/orchestration/templates.rb +45 -0
- data/lib/fog/openstack/models/planning/plan.rb +70 -0
- data/lib/fog/openstack/models/planning/plans.rb +31 -0
- data/lib/fog/openstack/models/planning/role.rb +23 -0
- data/lib/fog/openstack/models/planning/roles.rb +16 -0
- data/lib/fog/openstack/models/storage/directories.rb +36 -0
- data/lib/fog/openstack/models/storage/directory.rb +50 -0
- data/lib/fog/openstack/models/storage/file.rb +176 -0
- data/lib/fog/openstack/models/storage/files.rb +101 -0
- data/lib/fog/openstack/models/volume/availability_zone.rb +13 -0
- data/lib/fog/openstack/models/volume/availability_zones.rb +17 -0
- data/lib/fog/openstack/models/volume/transfer.rb +36 -0
- data/lib/fog/openstack/models/volume/transfers.rb +38 -0
- data/lib/fog/openstack/models/volume/volume.rb +48 -0
- data/lib/fog/openstack/models/volume/volume_type.rb +39 -0
- data/lib/fog/openstack/models/volume/volume_types.rb +25 -0
- data/lib/fog/openstack/models/volume/volumes.rb +38 -0
- data/lib/fog/openstack/network.rb +292 -0
- data/lib/fog/openstack/orchestration.rb +191 -0
- data/lib/fog/openstack/planning.rb +173 -0
- data/lib/fog/openstack/requests/baremetal/create_chassis.rb +44 -0
- data/lib/fog/openstack/requests/baremetal/create_node.rb +54 -0
- data/lib/fog/openstack/requests/baremetal/create_port.rb +46 -0
- data/lib/fog/openstack/requests/baremetal/delete_chassis.rb +25 -0
- data/lib/fog/openstack/requests/baremetal/delete_node.rb +25 -0
- data/lib/fog/openstack/requests/baremetal/delete_port.rb +25 -0
- data/lib/fog/openstack/requests/baremetal/get_chassis.rb +24 -0
- data/lib/fog/openstack/requests/baremetal/get_driver.rb +24 -0
- data/lib/fog/openstack/requests/baremetal/get_driver_properties.rb +40 -0
- data/lib/fog/openstack/requests/baremetal/get_node.rb +24 -0
- data/lib/fog/openstack/requests/baremetal/get_port.rb +24 -0
- data/lib/fog/openstack/requests/baremetal/list_chassis.rb +42 -0
- data/lib/fog/openstack/requests/baremetal/list_chassis_detailed.rb +25 -0
- data/lib/fog/openstack/requests/baremetal/list_drivers.rb +25 -0
- data/lib/fog/openstack/requests/baremetal/list_nodes.rb +34 -0
- data/lib/fog/openstack/requests/baremetal/list_nodes_detailed.rb +25 -0
- data/lib/fog/openstack/requests/baremetal/list_ports.rb +42 -0
- data/lib/fog/openstack/requests/baremetal/list_ports_detailed.rb +25 -0
- data/lib/fog/openstack/requests/baremetal/patch_chassis.rb +42 -0
- data/lib/fog/openstack/requests/baremetal/patch_node.rb +41 -0
- data/lib/fog/openstack/requests/baremetal/patch_port.rb +41 -0
- data/lib/fog/openstack/requests/baremetal/set_node_maintenance.rb +36 -0
- data/lib/fog/openstack/requests/baremetal/set_node_power_state.rb +35 -0
- data/lib/fog/openstack/requests/baremetal/set_node_provision_state.rb +38 -0
- data/lib/fog/openstack/requests/baremetal/unset_node_maintenance.rb +36 -0
- data/lib/fog/openstack/requests/compute/add_aggregate_host.rb +30 -0
- data/lib/fog/openstack/requests/compute/add_fixed_ip.rb +29 -0
- data/lib/fog/openstack/requests/compute/add_flavor_access.rb +31 -0
- data/lib/fog/openstack/requests/compute/add_security_group.rb +20 -0
- data/lib/fog/openstack/requests/compute/allocate_address.rb +39 -0
- data/lib/fog/openstack/requests/compute/associate_address.rb +30 -0
- data/lib/fog/openstack/requests/compute/attach_volume.rb +38 -0
- data/lib/fog/openstack/requests/compute/boot_from_snapshot.rb +41 -0
- data/lib/fog/openstack/requests/compute/change_server_password.rb +20 -0
- data/lib/fog/openstack/requests/compute/confirm_resize_server.rb +20 -0
- data/lib/fog/openstack/requests/compute/create_aggregate.rb +42 -0
- data/lib/fog/openstack/requests/compute/create_flavor.rb +85 -0
- data/lib/fog/openstack/requests/compute/create_flavor_metadata.rb +38 -0
- data/lib/fog/openstack/requests/compute/create_image.rb +44 -0
- data/lib/fog/openstack/requests/compute/create_key_pair.rb +46 -0
- data/lib/fog/openstack/requests/compute/create_security_group.rb +50 -0
- data/lib/fog/openstack/requests/compute/create_security_group_rule.rb +57 -0
- data/lib/fog/openstack/requests/compute/create_server.rb +185 -0
- data/lib/fog/openstack/requests/compute/create_volume.rb +51 -0
- data/lib/fog/openstack/requests/compute/create_volume_snapshot.rb +44 -0
- data/lib/fog/openstack/requests/compute/delete_aggregate.rb +28 -0
- data/lib/fog/openstack/requests/compute/delete_flavor.rb +28 -0
- data/lib/fog/openstack/requests/compute/delete_image.rb +35 -0
- data/lib/fog/openstack/requests/compute/delete_key_pair.rb +29 -0
- data/lib/fog/openstack/requests/compute/delete_meta.rb +35 -0
- data/lib/fog/openstack/requests/compute/delete_metadata.rb +23 -0
- data/lib/fog/openstack/requests/compute/delete_security_group.rb +31 -0
- data/lib/fog/openstack/requests/compute/delete_security_group_rule.rb +31 -0
- data/lib/fog/openstack/requests/compute/delete_server.rb +34 -0
- data/lib/fog/openstack/requests/compute/delete_service.rb +32 -0
- data/lib/fog/openstack/requests/compute/delete_snapshot.rb +23 -0
- data/lib/fog/openstack/requests/compute/delete_volume.rb +28 -0
- data/lib/fog/openstack/requests/compute/detach_volume.rb +28 -0
- data/lib/fog/openstack/requests/compute/disable_service.rb +37 -0
- data/lib/fog/openstack/requests/compute/disable_service_log_reason.rb +38 -0
- data/lib/fog/openstack/requests/compute/disassociate_address.rb +25 -0
- data/lib/fog/openstack/requests/compute/enable_service.rb +38 -0
- data/lib/fog/openstack/requests/compute/get_address.rb +38 -0
- data/lib/fog/openstack/requests/compute/get_aggregate.rb +26 -0
- data/lib/fog/openstack/requests/compute/get_console_output.rb +24 -0
- data/lib/fog/openstack/requests/compute/get_flavor_details.rb +39 -0
- data/lib/fog/openstack/requests/compute/get_flavor_metadata.rb +27 -0
- data/lib/fog/openstack/requests/compute/get_host_details.rb +66 -0
- data/lib/fog/openstack/requests/compute/get_hypervisor_statistics.rb +39 -0
- data/lib/fog/openstack/requests/compute/get_image_details.rb +28 -0
- data/lib/fog/openstack/requests/compute/get_limits.rb +89 -0
- data/lib/fog/openstack/requests/compute/get_metadata.rb +24 -0
- data/lib/fog/openstack/requests/compute/get_quota.rb +26 -0
- data/lib/fog/openstack/requests/compute/get_quota_defaults.rb +26 -0
- data/lib/fog/openstack/requests/compute/get_security_group.rb +37 -0
- data/lib/fog/openstack/requests/compute/get_security_group_rule.rb +38 -0
- data/lib/fog/openstack/requests/compute/get_server_details.rb +28 -0
- data/lib/fog/openstack/requests/compute/get_server_volumes.rb +27 -0
- data/lib/fog/openstack/requests/compute/get_snapshot_details.rb +34 -0
- data/lib/fog/openstack/requests/compute/get_usage.rb +51 -0
- data/lib/fog/openstack/requests/compute/get_vnc_console.rb +40 -0
- data/lib/fog/openstack/requests/compute/get_volume_details.rb +28 -0
- data/lib/fog/openstack/requests/compute/list_address_pools.rb +28 -0
- data/lib/fog/openstack/requests/compute/list_addresses.rb +28 -0
- data/lib/fog/openstack/requests/compute/list_aggregates.rb +36 -0
- data/lib/fog/openstack/requests/compute/list_all_addresses.rb +62 -0
- data/lib/fog/openstack/requests/compute/list_flavors.rb +35 -0
- data/lib/fog/openstack/requests/compute/list_flavors_detail.rb +35 -0
- data/lib/fog/openstack/requests/compute/list_hosts.rb +28 -0
- data/lib/fog/openstack/requests/compute/list_images.rb +29 -0
- data/lib/fog/openstack/requests/compute/list_images_detail.rb +36 -0
- data/lib/fog/openstack/requests/compute/list_key_pairs.rb +38 -0
- data/lib/fog/openstack/requests/compute/list_metadata.rb +24 -0
- data/lib/fog/openstack/requests/compute/list_private_addresses.rb +28 -0
- data/lib/fog/openstack/requests/compute/list_public_addresses.rb +28 -0
- data/lib/fog/openstack/requests/compute/list_security_groups.rb +69 -0
- data/lib/fog/openstack/requests/compute/list_servers.rb +36 -0
- data/lib/fog/openstack/requests/compute/list_servers_detail.rb +43 -0
- data/lib/fog/openstack/requests/compute/list_services.rb +72 -0
- data/lib/fog/openstack/requests/compute/list_snapshots.rb +41 -0
- data/lib/fog/openstack/requests/compute/list_snapshots_detail.rb +27 -0
- data/lib/fog/openstack/requests/compute/list_tenants.rb +45 -0
- data/lib/fog/openstack/requests/compute/list_tenants_with_flavor_access.rb +26 -0
- data/lib/fog/openstack/requests/compute/list_usages.rb +41 -0
- data/lib/fog/openstack/requests/compute/list_volumes.rb +39 -0
- data/lib/fog/openstack/requests/compute/list_volumes_detail.rb +25 -0
- data/lib/fog/openstack/requests/compute/list_zones.rb +33 -0
- data/lib/fog/openstack/requests/compute/list_zones_detailed.rb +55 -0
- data/lib/fog/openstack/requests/compute/live_migrate_server.rb +26 -0
- data/lib/fog/openstack/requests/compute/migrate_server.rb +20 -0
- data/lib/fog/openstack/requests/compute/pause_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/reboot_server.rb +20 -0
- data/lib/fog/openstack/requests/compute/rebuild_server.rb +34 -0
- data/lib/fog/openstack/requests/compute/release_address.rb +29 -0
- data/lib/fog/openstack/requests/compute/remove_aggregate_host.rb +30 -0
- data/lib/fog/openstack/requests/compute/remove_fixed_ip.rb +29 -0
- data/lib/fog/openstack/requests/compute/remove_flavor_access.rb +31 -0
- data/lib/fog/openstack/requests/compute/remove_security_group.rb +20 -0
- data/lib/fog/openstack/requests/compute/rescue_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/reset_server_state.rb +20 -0
- data/lib/fog/openstack/requests/compute/resize_server.rb +20 -0
- data/lib/fog/openstack/requests/compute/resume_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/revert_resize_server.rb +26 -0
- data/lib/fog/openstack/requests/compute/server_action.rb +16 -0
- data/lib/fog/openstack/requests/compute/server_actions.rb +27 -0
- data/lib/fog/openstack/requests/compute/server_diagnostics.rb +25 -0
- data/lib/fog/openstack/requests/compute/set_metadata.rb +37 -0
- data/lib/fog/openstack/requests/compute/set_tenant.rb +19 -0
- data/lib/fog/openstack/requests/compute/shelve_offload_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/shelve_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/start_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/stop_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/suspend_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/unpause_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/unshelve_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/update_aggregate.rb +37 -0
- data/lib/fog/openstack/requests/compute/update_aggregate_metadata.rb +30 -0
- data/lib/fog/openstack/requests/compute/update_meta.rb +38 -0
- data/lib/fog/openstack/requests/compute/update_metadata.rb +38 -0
- data/lib/fog/openstack/requests/compute/update_quota.rb +28 -0
- data/lib/fog/openstack/requests/compute/update_server.rb +31 -0
- data/lib/fog/openstack/requests/identity_v2/add_user_to_tenant.rb +36 -0
- data/lib/fog/openstack/requests/identity_v2/check_token.rb +22 -0
- data/lib/fog/openstack/requests/identity_v2/create_ec2_credential.rb +59 -0
- data/lib/fog/openstack/requests/identity_v2/create_role.rb +38 -0
- data/lib/fog/openstack/requests/identity_v2/create_tenant.rb +34 -0
- data/lib/fog/openstack/requests/identity_v2/create_user.rb +45 -0
- data/lib/fog/openstack/requests/identity_v2/create_user_role.rb +26 -0
- data/lib/fog/openstack/requests/identity_v2/delete_ec2_credential.rb +43 -0
- data/lib/fog/openstack/requests/identity_v2/delete_role.rb +30 -0
- data/lib/fog/openstack/requests/identity_v2/delete_tenant.rb +33 -0
- data/lib/fog/openstack/requests/identity_v2/delete_user.rb +30 -0
- data/lib/fog/openstack/requests/identity_v2/delete_user_role.rb +25 -0
- data/lib/fog/openstack/requests/identity_v2/get_ec2_credential.rb +50 -0
- data/lib/fog/openstack/requests/identity_v2/get_role.rb +30 -0
- data/lib/fog/openstack/requests/identity_v2/get_tenant.rb +33 -0
- data/lib/fog/openstack/requests/identity_v2/get_tenants_by_id.rb +20 -0
- data/lib/fog/openstack/requests/identity_v2/get_tenants_by_name.rb +20 -0
- data/lib/fog/openstack/requests/identity_v2/get_user_by_id.rb +34 -0
- data/lib/fog/openstack/requests/identity_v2/get_user_by_name.rb +29 -0
- data/lib/fog/openstack/requests/identity_v2/list_ec2_credentials.rb +61 -0
- data/lib/fog/openstack/requests/identity_v2/list_endpoints_for_token.rb +20 -0
- data/lib/fog/openstack/requests/identity_v2/list_roles.rb +34 -0
- data/lib/fog/openstack/requests/identity_v2/list_roles_for_user_on_tenant.rb +32 -0
- data/lib/fog/openstack/requests/identity_v2/list_tenants.rb +53 -0
- data/lib/fog/openstack/requests/identity_v2/list_user_global_roles.rb +20 -0
- data/lib/fog/openstack/requests/identity_v2/list_users.rb +47 -0
- data/lib/fog/openstack/requests/identity_v2/remove_user_from_tenant.rb +22 -0
- data/lib/fog/openstack/requests/identity_v2/set_tenant.rb +21 -0
- data/lib/fog/openstack/requests/identity_v2/update_tenant.rb +30 -0
- data/lib/fog/openstack/requests/identity_v2/update_user.rb +34 -0
- data/lib/fog/openstack/requests/identity_v2/validate_token.rb +22 -0
- data/lib/fog/openstack/requests/identity_v3/add_user_to_group.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/auth_domains.rb +24 -0
- data/lib/fog/openstack/requests/identity_v3/auth_projects.rb +24 -0
- data/lib/fog/openstack/requests/identity_v3/check_domain_group_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/check_domain_user_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/check_project_group_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/check_project_user_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/create_domain.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/create_endpoint.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/create_group.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/create_os_credential.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/create_policy.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/create_project.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/create_role.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/create_service.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/create_user.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/delete_domain.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/delete_endpoint.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/delete_group.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/delete_os_credential.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/delete_policy.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/delete_project.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/delete_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/delete_service.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/delete_user.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/get_domain.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/get_endpoint.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/get_group.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/get_os_credential.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/get_policy.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/get_project.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/get_role.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/get_service.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/get_user.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/grant_domain_group_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/grant_domain_user_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/grant_project_group_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/grant_project_user_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/group_user_check.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/list_domain_group_roles.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/list_domain_user_roles.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/list_domains.rb +24 -0
- data/lib/fog/openstack/requests/identity_v3/list_endpoints.rb +24 -0
- data/lib/fog/openstack/requests/identity_v3/list_group_users.rb +24 -0
- data/lib/fog/openstack/requests/identity_v3/list_groups.rb +32 -0
- data/lib/fog/openstack/requests/identity_v3/list_os_credentials.rb +24 -0
- data/lib/fog/openstack/requests/identity_v3/list_policies.rb +24 -0
- data/lib/fog/openstack/requests/identity_v3/list_project_group_roles.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/list_project_user_roles.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/list_projects.rb +31 -0
- data/lib/fog/openstack/requests/identity_v3/list_role_assignments.rb +39 -0
- data/lib/fog/openstack/requests/identity_v3/list_roles.rb +24 -0
- data/lib/fog/openstack/requests/identity_v3/list_services.rb +24 -0
- data/lib/fog/openstack/requests/identity_v3/list_user_groups.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/list_user_projects.rb +23 -0
- data/lib/fog/openstack/requests/identity_v3/list_users.rb +24 -0
- data/lib/fog/openstack/requests/identity_v3/remove_user_from_group.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/revoke_domain_group_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/revoke_domain_user_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/revoke_project_group_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/revoke_project_user_role.rb +20 -0
- data/lib/fog/openstack/requests/identity_v3/token_authenticate.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/token_check.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/token_revoke.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/token_validate.rb +22 -0
- data/lib/fog/openstack/requests/identity_v3/update_domain.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/update_endpoint.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/update_group.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/update_os_credential.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/update_policy.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/update_project.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/update_role.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/update_service.rb +21 -0
- data/lib/fog/openstack/requests/identity_v3/update_user.rb +21 -0
- data/lib/fog/openstack/requests/image/add_member_to_image.rb +23 -0
- data/lib/fog/openstack/requests/image/create_image.rb +76 -0
- data/lib/fog/openstack/requests/image/delete_image.rb +23 -0
- data/lib/fog/openstack/requests/image/get_image.rb +45 -0
- data/lib/fog/openstack/requests/image/get_image_by_id.rb +32 -0
- data/lib/fog/openstack/requests/image/get_image_members.rb +29 -0
- data/lib/fog/openstack/requests/image/get_shared_images.rb +29 -0
- data/lib/fog/openstack/requests/image/list_public_images.rb +33 -0
- data/lib/fog/openstack/requests/image/list_public_images_detailed.rb +35 -0
- data/lib/fog/openstack/requests/image/remove_member_from_image.rb +23 -0
- data/lib/fog/openstack/requests/image/set_tenant.rb +19 -0
- data/lib/fog/openstack/requests/image/update_image.rb +64 -0
- data/lib/fog/openstack/requests/image/update_image_members.rb +37 -0
- data/lib/fog/openstack/requests/metering/get_resource.rb +28 -0
- data/lib/fog/openstack/requests/metering/get_samples.rb +50 -0
- data/lib/fog/openstack/requests/metering/get_statistics.rb +51 -0
- data/lib/fog/openstack/requests/metering/list_meters.rb +45 -0
- data/lib/fog/openstack/requests/metering/list_resources.rb +28 -0
- data/lib/fog/openstack/requests/network/add_router_interface.rb +54 -0
- data/lib/fog/openstack/requests/network/associate_floating_ip.rb +47 -0
- data/lib/fog/openstack/requests/network/associate_lb_health_monitor.rb +37 -0
- data/lib/fog/openstack/requests/network/create_floating_ip.rb +45 -0
- data/lib/fog/openstack/requests/network/create_lb_health_monitor.rb +54 -0
- data/lib/fog/openstack/requests/network/create_lb_member.rb +51 -0
- data/lib/fog/openstack/requests/network/create_lb_pool.rb +58 -0
- data/lib/fog/openstack/requests/network/create_lb_vip.rb +58 -0
- data/lib/fog/openstack/requests/network/create_network.rb +97 -0
- data/lib/fog/openstack/requests/network/create_port.rb +53 -0
- data/lib/fog/openstack/requests/network/create_router.rb +76 -0
- data/lib/fog/openstack/requests/network/create_security_group.rb +94 -0
- data/lib/fog/openstack/requests/network/create_security_group_rule.rb +79 -0
- data/lib/fog/openstack/requests/network/create_subnet.rb +54 -0
- data/lib/fog/openstack/requests/network/delete_floating_ip.rb +28 -0
- data/lib/fog/openstack/requests/network/delete_lb_health_monitor.rb +28 -0
- data/lib/fog/openstack/requests/network/delete_lb_member.rb +28 -0
- data/lib/fog/openstack/requests/network/delete_lb_pool.rb +28 -0
- data/lib/fog/openstack/requests/network/delete_lb_vip.rb +28 -0
- data/lib/fog/openstack/requests/network/delete_network.rb +28 -0
- data/lib/fog/openstack/requests/network/delete_port.rb +28 -0
- data/lib/fog/openstack/requests/network/delete_quota.rb +23 -0
- data/lib/fog/openstack/requests/network/delete_router.rb +28 -0
- data/lib/fog/openstack/requests/network/delete_security_group.rb +32 -0
- data/lib/fog/openstack/requests/network/delete_security_group_rule.rb +32 -0
- data/lib/fog/openstack/requests/network/delete_subnet.rb +28 -0
- data/lib/fog/openstack/requests/network/disassociate_floating_ip.rb +47 -0
- data/lib/fog/openstack/requests/network/disassociate_lb_health_monitor.rb +29 -0
- data/lib/fog/openstack/requests/network/get_floating_ip.rb +39 -0
- data/lib/fog/openstack/requests/network/get_lb_health_monitor.rb +28 -0
- data/lib/fog/openstack/requests/network/get_lb_member.rb +28 -0
- data/lib/fog/openstack/requests/network/get_lb_pool.rb +28 -0
- data/lib/fog/openstack/requests/network/get_lb_pool_stats.rb +33 -0
- data/lib/fog/openstack/requests/network/get_lb_vip.rb +28 -0
- data/lib/fog/openstack/requests/network/get_network.rb +40 -0
- data/lib/fog/openstack/requests/network/get_port.rb +51 -0
- data/lib/fog/openstack/requests/network/get_quota.rb +26 -0
- data/lib/fog/openstack/requests/network/get_quotas.rb +26 -0
- data/lib/fog/openstack/requests/network/get_router.rb +30 -0
- data/lib/fog/openstack/requests/network/get_security_group.rb +52 -0
- data/lib/fog/openstack/requests/network/get_security_group_rule.rb +47 -0
- data/lib/fog/openstack/requests/network/get_subnet.rb +47 -0
- data/lib/fog/openstack/requests/network/list_floating_ips.rb +25 -0
- data/lib/fog/openstack/requests/network/list_lb_health_monitors.rb +25 -0
- data/lib/fog/openstack/requests/network/list_lb_members.rb +25 -0
- data/lib/fog/openstack/requests/network/list_lb_pools.rb +25 -0
- data/lib/fog/openstack/requests/network/list_lb_vips.rb +25 -0
- data/lib/fog/openstack/requests/network/list_networks.rb +25 -0
- data/lib/fog/openstack/requests/network/list_ports.rb +25 -0
- data/lib/fog/openstack/requests/network/list_routers.rb +25 -0
- data/lib/fog/openstack/requests/network/list_security_group_rules.rb +48 -0
- data/lib/fog/openstack/requests/network/list_security_groups.rb +53 -0
- data/lib/fog/openstack/requests/network/list_subnets.rb +25 -0
- data/lib/fog/openstack/requests/network/remove_router_interface.rb +34 -0
- data/lib/fog/openstack/requests/network/set_tenant.rb +20 -0
- data/lib/fog/openstack/requests/network/update_lb_health_monitor.rb +43 -0
- data/lib/fog/openstack/requests/network/update_lb_member.rb +39 -0
- data/lib/fog/openstack/requests/network/update_lb_pool.rb +40 -0
- data/lib/fog/openstack/requests/network/update_lb_vip.rb +42 -0
- data/lib/fog/openstack/requests/network/update_network.rb +39 -0
- data/lib/fog/openstack/requests/network/update_port.rb +43 -0
- data/lib/fog/openstack/requests/network/update_quota.rb +27 -0
- data/lib/fog/openstack/requests/network/update_router.rb +69 -0
- data/lib/fog/openstack/requests/network/update_subnet.rb +43 -0
- data/lib/fog/openstack/requests/orchestration/abandon_stack.rb +15 -0
- data/lib/fog/openstack/requests/orchestration/build_info.rb +15 -0
- data/lib/fog/openstack/requests/orchestration/create_stack.rb +75 -0
- data/lib/fog/openstack/requests/orchestration/delete_stack.rb +58 -0
- data/lib/fog/openstack/requests/orchestration/get_stack_template.rb +20 -0
- data/lib/fog/openstack/requests/orchestration/list_events.rb +46 -0
- data/lib/fog/openstack/requests/orchestration/list_resource_events.rb +28 -0
- data/lib/fog/openstack/requests/orchestration/list_resource_types.rb +27 -0
- data/lib/fog/openstack/requests/orchestration/list_resources.rb +46 -0
- data/lib/fog/openstack/requests/orchestration/list_stack_data.rb +27 -0
- data/lib/fog/openstack/requests/orchestration/list_stack_data_detailed.rb +49 -0
- data/lib/fog/openstack/requests/orchestration/list_stack_events.rb +27 -0
- data/lib/fog/openstack/requests/orchestration/patch_stack.rb +37 -0
- data/lib/fog/openstack/requests/orchestration/preview_stack.rb +16 -0
- data/lib/fog/openstack/requests/orchestration/show_event_details.rb +26 -0
- data/lib/fog/openstack/requests/orchestration/show_resource_data.rb +26 -0
- data/lib/fog/openstack/requests/orchestration/show_resource_metadata.rb +26 -0
- data/lib/fog/openstack/requests/orchestration/show_resource_schema.rb +15 -0
- data/lib/fog/openstack/requests/orchestration/show_resource_template.rb +20 -0
- data/lib/fog/openstack/requests/orchestration/show_stack_details.rb +26 -0
- data/lib/fog/openstack/requests/orchestration/update_stack.rb +66 -0
- data/lib/fog/openstack/requests/orchestration/validate_template.rb +16 -0
- data/lib/fog/openstack/requests/planning/add_role_to_plan.rb +40 -0
- data/lib/fog/openstack/requests/planning/create_plan.rb +33 -0
- data/lib/fog/openstack/requests/planning/delete_plan.rb +23 -0
- data/lib/fog/openstack/requests/planning/get_plan.rb +58 -0
- data/lib/fog/openstack/requests/planning/get_plan_templates.rb +28 -0
- data/lib/fog/openstack/requests/planning/list_plans.rb +61 -0
- data/lib/fog/openstack/requests/planning/list_roles.rb +32 -0
- data/lib/fog/openstack/requests/planning/patch_plan.rb +51 -0
- data/lib/fog/openstack/requests/planning/remove_role_from_plan.rb +32 -0
- data/lib/fog/openstack/requests/storage/copy_object.rb +25 -0
- data/lib/fog/openstack/requests/storage/delete_container.rb +20 -0
- data/lib/fog/openstack/requests/storage/delete_multiple_objects.rb +65 -0
- data/lib/fog/openstack/requests/storage/delete_object.rb +21 -0
- data/lib/fog/openstack/requests/storage/delete_static_large_object.rb +41 -0
- data/lib/fog/openstack/requests/storage/get_container.rb +42 -0
- data/lib/fog/openstack/requests/storage/get_containers.rb +31 -0
- data/lib/fog/openstack/requests/storage/get_object.rb +27 -0
- data/lib/fog/openstack/requests/storage/get_object_http_url.rb +21 -0
- data/lib/fog/openstack/requests/storage/get_object_https_url.rb +81 -0
- data/lib/fog/openstack/requests/storage/head_container.rb +26 -0
- data/lib/fog/openstack/requests/storage/head_containers.rb +23 -0
- data/lib/fog/openstack/requests/storage/head_object.rb +21 -0
- data/lib/fog/openstack/requests/storage/post_set_meta_temp_url_key.rb +33 -0
- data/lib/fog/openstack/requests/storage/public_url.rb +28 -0
- data/lib/fog/openstack/requests/storage/put_container.rb +24 -0
- data/lib/fog/openstack/requests/storage/put_dynamic_obj_manifest.rb +41 -0
- data/lib/fog/openstack/requests/storage/put_object.rb +41 -0
- data/lib/fog/openstack/requests/storage/put_object_manifest.rb +14 -0
- data/lib/fog/openstack/requests/storage/put_static_obj_manifest.rb +55 -0
- data/lib/fog/openstack/requests/volume/accept_transfer.rb +24 -0
- data/lib/fog/openstack/requests/volume/create_transfer.rb +27 -0
- data/lib/fog/openstack/requests/volume/create_volume.rb +53 -0
- data/lib/fog/openstack/requests/volume/create_volume_snapshot.rb +44 -0
- data/lib/fog/openstack/requests/volume/create_volume_type.rb +41 -0
- data/lib/fog/openstack/requests/volume/delete_snapshot.rb +23 -0
- data/lib/fog/openstack/requests/volume/delete_transfer.rb +17 -0
- data/lib/fog/openstack/requests/volume/delete_volume.rb +23 -0
- data/lib/fog/openstack/requests/volume/delete_volume_type.rb +23 -0
- data/lib/fog/openstack/requests/volume/extend_volume.rb +25 -0
- data/lib/fog/openstack/requests/volume/get_quota.rb +26 -0
- data/lib/fog/openstack/requests/volume/get_quota_defaults.rb +26 -0
- data/lib/fog/openstack/requests/volume/get_snapshot_details.rb +34 -0
- data/lib/fog/openstack/requests/volume/get_transfer_details.rb +17 -0
- data/lib/fog/openstack/requests/volume/get_volume_details.rb +37 -0
- data/lib/fog/openstack/requests/volume/get_volume_type_details.rb +32 -0
- data/lib/fog/openstack/requests/volume/list_snapshots.rb +41 -0
- data/lib/fog/openstack/requests/volume/list_snapshots_detailed.rb +27 -0
- data/lib/fog/openstack/requests/volume/list_transfers.rb +18 -0
- data/lib/fog/openstack/requests/volume/list_transfers_detailed.rb +18 -0
- data/lib/fog/openstack/requests/volume/list_volume_types.rb +41 -0
- data/lib/fog/openstack/requests/volume/list_volumes.rb +63 -0
- data/lib/fog/openstack/requests/volume/list_volumes_detailed.rb +49 -0
- data/lib/fog/openstack/requests/volume/list_zones.rb +32 -0
- data/lib/fog/openstack/requests/volume/set_tenant.rb +19 -0
- data/lib/fog/openstack/requests/volume/update_quota.rb +28 -0
- data/lib/fog/openstack/requests/volume/update_volume_type.rb +41 -0
- data/lib/fog/openstack/storage.rb +181 -0
- data/lib/fog/openstack/volume.rb +184 -0
- data/lib/fog/ovirt.rb +1 -0
- data/lib/fog/ovirt/compute.rb +149 -0
- data/lib/fog/ovirt/core.rb +16 -0
- data/lib/fog/ovirt/models/compute/affinity_group.rb +25 -0
- data/lib/fog/ovirt/models/compute/affinity_groups.rb +20 -0
- data/lib/fog/ovirt/models/compute/cluster.rb +20 -0
- data/lib/fog/ovirt/models/compute/clusters.rb +20 -0
- data/lib/fog/ovirt/models/compute/interface.rb +19 -0
- data/lib/fog/ovirt/models/compute/interfaces.rb +29 -0
- data/lib/fog/ovirt/models/compute/quota.rb +16 -0
- data/lib/fog/ovirt/models/compute/quotas.rb +20 -0
- data/lib/fog/ovirt/models/compute/server.rb +169 -0
- data/lib/fog/ovirt/models/compute/servers.rb +27 -0
- data/lib/fog/ovirt/models/compute/template.rb +58 -0
- data/lib/fog/ovirt/models/compute/templates.rb +20 -0
- data/lib/fog/ovirt/models/compute/volume.rb +36 -0
- data/lib/fog/ovirt/models/compute/volumes.rb +28 -0
- data/lib/fog/ovirt/requests/compute/add_interface.rb +20 -0
- data/lib/fog/ovirt/requests/compute/add_to_affinity_group.rb +21 -0
- data/lib/fog/ovirt/requests/compute/add_volume.rb +21 -0
- data/lib/fog/ovirt/requests/compute/{activate_volume.rb → attach_volume.rb} +5 -5
- data/lib/fog/ovirt/requests/compute/create_affinity_group.rb +18 -0
- data/lib/fog/ovirt/requests/compute/create_vm.rb +18 -0
- data/lib/fog/ovirt/requests/compute/datacenters.rb +20 -0
- data/lib/fog/ovirt/requests/compute/destroy_affinity_group.rb +19 -0
- data/lib/fog/ovirt/requests/compute/destroy_interface.rb +22 -0
- data/lib/fog/ovirt/requests/compute/destroy_vm.rb +19 -0
- data/lib/fog/ovirt/requests/compute/{deactivate_volume.rb → destroy_volume.rb} +5 -5
- data/lib/fog/ovirt/requests/compute/detach_volume.rb +22 -0
- data/lib/fog/ovirt/requests/compute/get_affinity_group.rb +18 -0
- data/lib/fog/ovirt/requests/compute/get_api_version.rb +16 -0
- data/lib/fog/ovirt/requests/compute/get_cluster.rb +17 -0
- data/lib/fog/ovirt/requests/compute/get_quota.rb +17 -0
- data/lib/fog/ovirt/requests/compute/get_template.rb +17 -0
- data/lib/fog/ovirt/requests/compute/get_virtual_machine.rb +17 -0
- data/lib/fog/ovirt/requests/compute/list_affinity_group_vms.rb +22 -0
- data/lib/fog/ovirt/requests/compute/list_affinity_groups.rb +20 -0
- data/lib/fog/ovirt/requests/compute/list_clusters.rb +19 -0
- data/lib/fog/ovirt/requests/compute/list_networks.rb +16 -0
- data/lib/fog/ovirt/requests/compute/list_quotas.rb +19 -0
- data/lib/fog/ovirt/requests/compute/list_template_interfaces.rb +19 -0
- data/lib/fog/ovirt/requests/compute/list_template_volumes.rb +19 -0
- data/lib/fog/ovirt/requests/compute/list_templates.rb +19 -0
- data/lib/fog/ovirt/requests/compute/list_virtual_machines.rb +19 -0
- data/lib/fog/ovirt/requests/compute/list_vm_interfaces.rb +19 -0
- data/lib/fog/ovirt/requests/compute/list_vm_volumes.rb +19 -0
- data/lib/fog/ovirt/requests/compute/list_volumes.rb +19 -0
- data/lib/fog/ovirt/requests/compute/mock_files/affinitygroup.xml +8 -0
- data/lib/fog/ovirt/requests/compute/mock_files/affinitygroup_vms.xml +9 -0
- data/lib/fog/ovirt/requests/compute/mock_files/affinitygroups.xml +17 -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/disks.xml +58 -0
- data/lib/fog/ovirt/requests/compute/mock_files/nics.xml +10 -0
- data/lib/fog/ovirt/requests/compute/mock_files/quotas.xml +7 -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 +52 -0
- data/lib/fog/ovirt/requests/compute/mock_files/vms.xml +152 -0
- data/lib/fog/ovirt/requests/compute/mock_files/volumes.xml +40 -0
- data/lib/fog/ovirt/requests/compute/remove_from_affinity_group.rb +21 -0
- data/lib/fog/ovirt/requests/compute/storage_domains.rb +20 -0
- data/lib/fog/ovirt/requests/compute/update_interface.rb +35 -0
- data/lib/fog/ovirt/requests/compute/update_vm.rb +18 -0
- data/lib/fog/ovirt/requests/compute/update_volume.rb +39 -0
- data/lib/fog/ovirt/requests/compute/vm_action.rb +22 -0
- data/lib/fog/ovirt/requests/compute/vm_start_with_cloudinit.rb +19 -0
- data/lib/fog/ovirt/requests/compute/vm_ticket.rb +17 -0
- data/lib/fog/rackspace.rb +16 -0
- data/lib/fog/rackspace/auto_scale.rb +134 -0
- data/lib/fog/rackspace/block_storage.rb +175 -0
- data/lib/fog/rackspace/cdn.rb +198 -0
- data/lib/fog/rackspace/cdn_v2.rb +123 -0
- data/lib/fog/rackspace/compute.rb +256 -0
- data/lib/fog/rackspace/compute_v2.rb +250 -0
- data/lib/fog/rackspace/core.rb +150 -0
- data/lib/fog/rackspace/databases.rb +164 -0
- data/lib/fog/rackspace/dns.rb +172 -0
- data/lib/fog/rackspace/docs/auto_scale.md +503 -0
- data/lib/fog/rackspace/docs/block_storage.md +417 -0
- data/lib/fog/rackspace/docs/cdn_v2.md +351 -0
- data/lib/fog/rackspace/docs/compute_v2.md +723 -0
- data/lib/fog/rackspace/docs/getting_started.md +88 -0
- data/lib/fog/rackspace/docs/networking_v2.md +422 -0
- data/lib/fog/rackspace/docs/orchestration.md +356 -0
- data/lib/fog/rackspace/docs/queues.md +312 -0
- data/lib/fog/rackspace/docs/storage.md +557 -0
- data/lib/fog/rackspace/errors.rb +33 -0
- data/lib/fog/rackspace/examples/README.md +47 -0
- data/lib/fog/rackspace/examples/auto_scale/add_policy.rb +66 -0
- data/lib/fog/rackspace/examples/auto_scale/add_webhook.rb +74 -0
- data/lib/fog/rackspace/examples/auto_scale/create_scaling_group.rb +111 -0
- data/lib/fog/rackspace/examples/auto_scale/delete_policy.rb +71 -0
- data/lib/fog/rackspace/examples/auto_scale/delete_scaling_group.rb +59 -0
- data/lib/fog/rackspace/examples/auto_scale/delete_webhook.rb +89 -0
- data/lib/fog/rackspace/examples/block_storage/create_snapshot.rb +116 -0
- data/lib/fog/rackspace/examples/block_storage/create_volume.rb +58 -0
- data/lib/fog/rackspace/examples/block_storage/delete_volume.rb +53 -0
- data/lib/fog/rackspace/examples/compute_v2/bootstrap_server.rb +96 -0
- data/lib/fog/rackspace/examples/compute_v2/create_image.rb +59 -0
- data/lib/fog/rackspace/examples/compute_v2/create_network.rb +81 -0
- data/lib/fog/rackspace/examples/compute_v2/create_server.rb +87 -0
- data/lib/fog/rackspace/examples/compute_v2/delete_image.rb +60 -0
- data/lib/fog/rackspace/examples/compute_v2/delete_network.rb +78 -0
- data/lib/fog/rackspace/examples/compute_v2/delete_server.rb +55 -0
- data/lib/fog/rackspace/examples/compute_v2/detach_volume.rb +93 -0
- data/lib/fog/rackspace/examples/compute_v2/resize_server.rb +106 -0
- data/lib/fog/rackspace/examples/compute_v2/server_attachments.rb +68 -0
- data/lib/fog/rackspace/examples/compute_v2/server_metadata.rb +83 -0
- data/lib/fog/rackspace/examples/queues/claim_messages.rb +60 -0
- data/lib/fog/rackspace/examples/queues/create_queue.rb +45 -0
- data/lib/fog/rackspace/examples/queues/delete_message.rb +71 -0
- data/lib/fog/rackspace/examples/queues/delete_queue.rb +53 -0
- data/lib/fog/rackspace/examples/queues/list_messages.rb +64 -0
- data/lib/fog/rackspace/examples/queues/post_message.rb +59 -0
- data/lib/fog/rackspace/examples/storage/create_cdn_directory.rb +43 -0
- data/lib/fog/rackspace/examples/storage/create_private_directory.rb +43 -0
- data/lib/fog/rackspace/examples/storage/delete_directory.rb +62 -0
- data/lib/fog/rackspace/examples/storage/delete_file.rb +70 -0
- data/lib/fog/rackspace/examples/storage/download_file.rb +75 -0
- data/lib/fog/rackspace/examples/storage/lorem.txt +1 -0
- data/lib/fog/rackspace/examples/storage/storage_metadata.rb +76 -0
- data/lib/fog/rackspace/examples/storage/upload_file.rb +44 -0
- data/lib/fog/rackspace/examples/storage/upload_large_files.rb +101 -0
- data/lib/fog/rackspace/identity.rb +83 -0
- data/lib/fog/rackspace/load_balancers.rb +206 -0
- data/lib/fog/rackspace/mock_data.rb +252 -0
- data/lib/fog/rackspace/models/auto_scale/group.rb +214 -0
- data/lib/fog/rackspace/models/auto_scale/group_builder.rb +86 -0
- data/lib/fog/rackspace/models/auto_scale/group_config.rb +76 -0
- data/lib/fog/rackspace/models/auto_scale/groups.rb +45 -0
- data/lib/fog/rackspace/models/auto_scale/launch_config.rb +61 -0
- data/lib/fog/rackspace/models/auto_scale/policies.rb +65 -0
- data/lib/fog/rackspace/models/auto_scale/policy.rb +220 -0
- data/lib/fog/rackspace/models/auto_scale/webhook.rb +116 -0
- data/lib/fog/rackspace/models/auto_scale/webhooks.rb +62 -0
- data/lib/fog/rackspace/models/block_storage/snapshot.rb +93 -0
- data/lib/fog/rackspace/models/block_storage/snapshots.rb +39 -0
- data/lib/fog/rackspace/models/block_storage/volume.rb +134 -0
- data/lib/fog/rackspace/models/block_storage/volume_type.rb +19 -0
- data/lib/fog/rackspace/models/block_storage/volume_types.rb +39 -0
- data/lib/fog/rackspace/models/block_storage/volumes.rb +39 -0
- data/lib/fog/rackspace/models/cdn_v2/flavor.rb +14 -0
- data/lib/fog/rackspace/models/cdn_v2/flavors.rb +24 -0
- data/lib/fog/rackspace/models/cdn_v2/service.rb +66 -0
- data/lib/fog/rackspace/models/cdn_v2/services.rb +24 -0
- data/lib/fog/rackspace/models/compute/flavor.rb +42 -0
- data/lib/fog/rackspace/models/compute/flavors.rb +24 -0
- data/lib/fog/rackspace/models/compute/image.rb +44 -0
- data/lib/fog/rackspace/models/compute/images.rb +31 -0
- data/lib/fog/rackspace/models/compute/server.rb +102 -0
- data/lib/fog/rackspace/models/compute/servers.rb +32 -0
- data/lib/fog/rackspace/models/compute_v2/attachment.rb +61 -0
- data/lib/fog/rackspace/models/compute_v2/attachments.rb +38 -0
- data/lib/fog/rackspace/models/compute_v2/flavor.rb +33 -0
- data/lib/fog/rackspace/models/compute_v2/flavors.rb +39 -0
- data/lib/fog/rackspace/models/compute_v2/image.rb +117 -0
- data/lib/fog/rackspace/models/compute_v2/images.rb +73 -0
- data/lib/fog/rackspace/models/compute_v2/key_pair.rb +54 -0
- data/lib/fog/rackspace/models/compute_v2/key_pairs.rb +40 -0
- data/lib/fog/rackspace/models/compute_v2/meta_parent.rb +40 -0
- data/lib/fog/rackspace/models/compute_v2/metadata.rb +108 -0
- data/lib/fog/rackspace/models/compute_v2/metadatum.rb +39 -0
- data/lib/fog/rackspace/models/compute_v2/network.rb +27 -0
- data/lib/fog/rackspace/models/compute_v2/networks.rb +23 -0
- data/lib/fog/rackspace/models/compute_v2/server.rb +631 -0
- data/lib/fog/rackspace/models/compute_v2/servers.rb +64 -0
- data/lib/fog/rackspace/models/compute_v2/virtual_interface.rb +85 -0
- data/lib/fog/rackspace/models/compute_v2/virtual_interfaces.rb +46 -0
- data/lib/fog/rackspace/models/databases/database.rb +43 -0
- data/lib/fog/rackspace/models/databases/databases.rb +30 -0
- data/lib/fog/rackspace/models/databases/flavor.rb +15 -0
- data/lib/fog/rackspace/models/databases/flavors.rb +24 -0
- data/lib/fog/rackspace/models/databases/instance.rb +104 -0
- data/lib/fog/rackspace/models/databases/instances.rb +24 -0
- data/lib/fog/rackspace/models/databases/user.rb +33 -0
- data/lib/fog/rackspace/models/databases/users.rb +30 -0
- data/lib/fog/rackspace/models/dns/callback.rb +28 -0
- data/lib/fog/rackspace/models/dns/record.rb +98 -0
- data/lib/fog/rackspace/models/dns/records.rb +58 -0
- data/lib/fog/rackspace/models/dns/zone.rb +66 -0
- data/lib/fog/rackspace/models/dns/zones.rb +74 -0
- data/lib/fog/rackspace/models/identity/credential.rb +13 -0
- data/lib/fog/rackspace/models/identity/credentials.rb +32 -0
- data/lib/fog/rackspace/models/identity/role.rb +14 -0
- data/lib/fog/rackspace/models/identity/roles.rb +31 -0
- data/lib/fog/rackspace/models/identity/service_catalog.rb +84 -0
- data/lib/fog/rackspace/models/identity/tenant.rb +15 -0
- data/lib/fog/rackspace/models/identity/tenants.rb +27 -0
- data/lib/fog/rackspace/models/identity/user.rb +53 -0
- data/lib/fog/rackspace/models/identity/users.rb +35 -0
- data/lib/fog/rackspace/models/load_balancers/access_rule.rb +38 -0
- data/lib/fog/rackspace/models/load_balancers/access_rules.rb +29 -0
- data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +286 -0
- data/lib/fog/rackspace/models/load_balancers/load_balancers.rb +25 -0
- data/lib/fog/rackspace/models/load_balancers/node.rb +65 -0
- data/lib/fog/rackspace/models/load_balancers/nodes.rb +29 -0
- data/lib/fog/rackspace/models/load_balancers/virtual_ip.rb +34 -0
- data/lib/fog/rackspace/models/load_balancers/virtual_ips.rb +32 -0
- data/lib/fog/rackspace/models/monitoring/agent_token.rb +38 -0
- data/lib/fog/rackspace/models/monitoring/agent_tokens.rb +29 -0
- data/lib/fog/rackspace/models/monitoring/alarm.rb +58 -0
- data/lib/fog/rackspace/models/monitoring/alarm_example.rb +24 -0
- data/lib/fog/rackspace/models/monitoring/alarm_examples.rb +29 -0
- data/lib/fog/rackspace/models/monitoring/alarms.rb +41 -0
- data/lib/fog/rackspace/models/monitoring/base.rb +29 -0
- data/lib/fog/rackspace/models/monitoring/check.rb +72 -0
- data/lib/fog/rackspace/models/monitoring/check_type.rb +15 -0
- data/lib/fog/rackspace/models/monitoring/check_types.rb +21 -0
- data/lib/fog/rackspace/models/monitoring/checks.rb +41 -0
- data/lib/fog/rackspace/models/monitoring/data_point.rb +18 -0
- data/lib/fog/rackspace/models/monitoring/data_points.rb +47 -0
- data/lib/fog/rackspace/models/monitoring/entities.rb +47 -0
- data/lib/fog/rackspace/models/monitoring/entity.rb +62 -0
- data/lib/fog/rackspace/models/monitoring/metric.rb +22 -0
- data/lib/fog/rackspace/models/monitoring/metrics.rb +25 -0
- data/lib/fog/rackspace/models/monitoring/notification.rb +40 -0
- data/lib/fog/rackspace/models/monitoring/notifications.rb +28 -0
- data/lib/fog/rackspace/models/networking/network.rb +27 -0
- data/lib/fog/rackspace/models/networking/networks.rb +23 -0
- data/lib/fog/rackspace/models/networking/virtual_interface.rb +85 -0
- data/lib/fog/rackspace/models/networking/virtual_interfaces.rb +45 -0
- data/lib/fog/rackspace/models/networking_v2/network.rb +36 -0
- data/lib/fog/rackspace/models/networking_v2/networks.rb +23 -0
- data/lib/fog/rackspace/models/networking_v2/port.rb +39 -0
- data/lib/fog/rackspace/models/networking_v2/ports.rb +23 -0
- data/lib/fog/rackspace/models/networking_v2/security_group.rb +32 -0
- data/lib/fog/rackspace/models/networking_v2/security_group_rule.rb +38 -0
- data/lib/fog/rackspace/models/networking_v2/security_group_rules.rb +23 -0
- data/lib/fog/rackspace/models/networking_v2/security_groups.rb +23 -0
- data/lib/fog/rackspace/models/networking_v2/subnet.rb +38 -0
- data/lib/fog/rackspace/models/networking_v2/subnets.rb +23 -0
- data/lib/fog/rackspace/models/orchestration/event.rb +18 -0
- data/lib/fog/rackspace/models/orchestration/events.rb +28 -0
- data/lib/fog/rackspace/models/orchestration/resource.rb +30 -0
- data/lib/fog/rackspace/models/orchestration/resource_schemas.rb +16 -0
- data/lib/fog/rackspace/models/orchestration/resources.rb +35 -0
- data/lib/fog/rackspace/models/orchestration/stack.rb +48 -0
- data/lib/fog/rackspace/models/orchestration/stacks.rb +40 -0
- data/lib/fog/rackspace/models/orchestration/template.rb +13 -0
- data/lib/fog/rackspace/models/orchestration/templates.rb +31 -0
- data/lib/fog/rackspace/models/queues/claim.rb +139 -0
- data/lib/fog/rackspace/models/queues/claims.rb +64 -0
- data/lib/fog/rackspace/models/queues/message.rb +88 -0
- data/lib/fog/rackspace/models/queues/messages.rb +90 -0
- data/lib/fog/rackspace/models/queues/queue.rb +135 -0
- data/lib/fog/rackspace/models/queues/queues.rb +46 -0
- data/lib/fog/rackspace/models/storage/account.rb +50 -0
- data/lib/fog/rackspace/models/storage/directories.rb +62 -0
- data/lib/fog/rackspace/models/storage/directory.rb +194 -0
- data/lib/fog/rackspace/models/storage/file.rb +286 -0
- data/lib/fog/rackspace/models/storage/files.rb +201 -0
- data/lib/fog/rackspace/models/storage/metadata.rb +165 -0
- data/lib/fog/rackspace/monitoring.rb +184 -0
- data/lib/fog/rackspace/networking.rb +192 -0
- data/lib/fog/rackspace/networking_v2.rb +222 -0
- data/lib/fog/rackspace/orchestration.rb +227 -0
- data/lib/fog/rackspace/queues.rb +406 -0
- data/lib/fog/rackspace/requests/auto_scale/create_group.rb +58 -0
- data/lib/fog/rackspace/requests/auto_scale/create_policy.rb +42 -0
- data/lib/fog/rackspace/requests/auto_scale/create_webhook.rb +54 -0
- data/lib/fog/rackspace/requests/auto_scale/delete_group.rb +22 -0
- data/lib/fog/rackspace/requests/auto_scale/delete_policy.rb +29 -0
- data/lib/fog/rackspace/requests/auto_scale/delete_webhook.rb +33 -0
- data/lib/fog/rackspace/requests/auto_scale/execute_anonymous_webhook.rb +21 -0
- data/lib/fog/rackspace/requests/auto_scale/execute_policy.rb +21 -0
- data/lib/fog/rackspace/requests/auto_scale/get_group.rb +26 -0
- data/lib/fog/rackspace/requests/auto_scale/get_group_config.rb +27 -0
- data/lib/fog/rackspace/requests/auto_scale/get_group_state.rb +58 -0
- data/lib/fog/rackspace/requests/auto_scale/get_launch_config.rb +27 -0
- data/lib/fog/rackspace/requests/auto_scale/get_policy.rb +31 -0
- data/lib/fog/rackspace/requests/auto_scale/get_webhook.rb +36 -0
- data/lib/fog/rackspace/requests/auto_scale/list_groups.rb +34 -0
- data/lib/fog/rackspace/requests/auto_scale/list_policies.rb +22 -0
- data/lib/fog/rackspace/requests/auto_scale/list_webhooks.rb +31 -0
- data/lib/fog/rackspace/requests/auto_scale/pause_group_state.rb +22 -0
- data/lib/fog/rackspace/requests/auto_scale/resume_group_state.rb +21 -0
- data/lib/fog/rackspace/requests/auto_scale/update_group_config.rb +37 -0
- data/lib/fog/rackspace/requests/auto_scale/update_launch_config.rb +34 -0
- data/lib/fog/rackspace/requests/auto_scale/update_policy.rb +31 -0
- data/lib/fog/rackspace/requests/auto_scale/update_webhook.rb +41 -0
- data/lib/fog/rackspace/requests/block_storage/create_snapshot.rb +77 -0
- data/lib/fog/rackspace/requests/block_storage/create_volume.rb +96 -0
- data/lib/fog/rackspace/requests/block_storage/delete_snapshot.rb +31 -0
- data/lib/fog/rackspace/requests/block_storage/delete_volume.rb +42 -0
- data/lib/fog/rackspace/requests/block_storage/get_snapshot.rb +45 -0
- data/lib/fog/rackspace/requests/block_storage/get_volume.rb +55 -0
- data/lib/fog/rackspace/requests/block_storage/get_volume_type.rb +41 -0
- data/lib/fog/rackspace/requests/block_storage/list_snapshots.rb +39 -0
- data/lib/fog/rackspace/requests/block_storage/list_volume_types.rb +34 -0
- data/lib/fog/rackspace/requests/block_storage/list_volumes.rb +42 -0
- data/lib/fog/rackspace/requests/cdn/delete_object.rb +39 -0
- data/lib/fog/rackspace/requests/cdn/get_containers.rb +66 -0
- data/lib/fog/rackspace/requests/cdn/head_container.rb +58 -0
- data/lib/fog/rackspace/requests/cdn/post_container.rb +52 -0
- data/lib/fog/rackspace/requests/cdn/put_container.rb +52 -0
- data/lib/fog/rackspace/requests/cdn_v2/create_service.rb +10 -0
- data/lib/fog/rackspace/requests/cdn_v2/delete_assets.rb +12 -0
- data/lib/fog/rackspace/requests/cdn_v2/delete_service.rb +9 -0
- data/lib/fog/rackspace/requests/cdn_v2/get_flavor.rb +9 -0
- data/lib/fog/rackspace/requests/cdn_v2/get_home_document.rb +9 -0
- data/lib/fog/rackspace/requests/cdn_v2/get_ping.rb +10 -0
- data/lib/fog/rackspace/requests/cdn_v2/get_service.rb +9 -0
- data/lib/fog/rackspace/requests/cdn_v2/list_flavors.rb +9 -0
- data/lib/fog/rackspace/requests/cdn_v2/list_services.rb +9 -0
- data/lib/fog/rackspace/requests/cdn_v2/update_service.rb +13 -0
- data/lib/fog/rackspace/requests/compute/confirm_resized_server.rb +30 -0
- data/lib/fog/rackspace/requests/compute/create_image.rb +56 -0
- data/lib/fog/rackspace/requests/compute/create_server.rb +90 -0
- data/lib/fog/rackspace/requests/compute/delete_image.rb +40 -0
- data/lib/fog/rackspace/requests/compute/delete_server.rb +39 -0
- data/lib/fog/rackspace/requests/compute/get_flavor_details.rb +48 -0
- data/lib/fog/rackspace/requests/compute/get_image_details.rb +25 -0
- data/lib/fog/rackspace/requests/compute/get_server_details.rb +48 -0
- data/lib/fog/rackspace/requests/compute/list_addresses.rb +39 -0
- data/lib/fog/rackspace/requests/compute/list_flavors.rb +41 -0
- data/lib/fog/rackspace/requests/compute/list_flavors_detail.rb +43 -0
- data/lib/fog/rackspace/requests/compute/list_images.rb +36 -0
- data/lib/fog/rackspace/requests/compute/list_images_detail.rb +45 -0
- data/lib/fog/rackspace/requests/compute/list_private_addresses.rb +37 -0
- data/lib/fog/rackspace/requests/compute/list_public_addresses.rb +37 -0
- data/lib/fog/rackspace/requests/compute/list_servers.rb +37 -0
- data/lib/fog/rackspace/requests/compute/list_servers_detail.rb +52 -0
- data/lib/fog/rackspace/requests/compute/reboot_server.rb +26 -0
- data/lib/fog/rackspace/requests/compute/resize_server.rb +35 -0
- data/lib/fog/rackspace/requests/compute/revert_resized_server.rb +31 -0
- data/lib/fog/rackspace/requests/compute/server_action.rb +23 -0
- data/lib/fog/rackspace/requests/compute/update_server.rb +41 -0
- data/lib/fog/rackspace/requests/compute_v2/attach_volume.rb +78 -0
- data/lib/fog/rackspace/requests/compute_v2/change_server_password.rb +38 -0
- data/lib/fog/rackspace/requests/compute_v2/confirm_resize_server.rb +41 -0
- data/lib/fog/rackspace/requests/compute_v2/create_image.rb +97 -0
- data/lib/fog/rackspace/requests/compute_v2/create_keypair.rb +62 -0
- data/lib/fog/rackspace/requests/compute_v2/create_network.rb +36 -0
- data/lib/fog/rackspace/requests/compute_v2/create_server.rb +238 -0
- data/lib/fog/rackspace/requests/compute_v2/create_virtual_interface.rb +30 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_attachment.rb +39 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_image.rb +32 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_keypair.rb +34 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_metadata_item.rb +36 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_network.rb +21 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_server.rb +35 -0
- data/lib/fog/rackspace/requests/compute_v2/delete_virtual_interface.rb +23 -0
- data/lib/fog/rackspace/requests/compute_v2/get_attachment.rb +38 -0
- data/lib/fog/rackspace/requests/compute_v2/get_flavor.rb +43 -0
- data/lib/fog/rackspace/requests/compute_v2/get_image.rb +47 -0
- data/lib/fog/rackspace/requests/compute_v2/get_keypair.rb +39 -0
- data/lib/fog/rackspace/requests/compute_v2/get_metadata_item.rb +38 -0
- data/lib/fog/rackspace/requests/compute_v2/get_network.rb +21 -0
- data/lib/fog/rackspace/requests/compute_v2/get_server.rb +63 -0
- data/lib/fog/rackspace/requests/compute_v2/list_addresses.rb +39 -0
- data/lib/fog/rackspace/requests/compute_v2/list_addresses_by_network.rb +48 -0
- data/lib/fog/rackspace/requests/compute_v2/list_attachments.rb +37 -0
- data/lib/fog/rackspace/requests/compute_v2/list_flavors.rb +35 -0
- data/lib/fog/rackspace/requests/compute_v2/list_flavors_detail.rb +38 -0
- data/lib/fog/rackspace/requests/compute_v2/list_images.rb +45 -0
- data/lib/fog/rackspace/requests/compute_v2/list_images_detail.rb +52 -0
- data/lib/fog/rackspace/requests/compute_v2/list_keypairs.rb +35 -0
- data/lib/fog/rackspace/requests/compute_v2/list_metadata.rb +37 -0
- data/lib/fog/rackspace/requests/compute_v2/list_networks.rb +18 -0
- data/lib/fog/rackspace/requests/compute_v2/list_servers.rb +56 -0
- data/lib/fog/rackspace/requests/compute_v2/list_virtual_interfaces.rb +22 -0
- data/lib/fog/rackspace/requests/compute_v2/reboot_server.rb +44 -0
- data/lib/fog/rackspace/requests/compute_v2/rebuild_server.rb +71 -0
- data/lib/fog/rackspace/requests/compute_v2/rescue_server.rb +43 -0
- data/lib/fog/rackspace/requests/compute_v2/resize_server.rb +44 -0
- data/lib/fog/rackspace/requests/compute_v2/revert_resize_server.rb +42 -0
- data/lib/fog/rackspace/requests/compute_v2/set_metadata.rb +39 -0
- data/lib/fog/rackspace/requests/compute_v2/set_metadata_item.rb +40 -0
- data/lib/fog/rackspace/requests/compute_v2/unrescue_server.rb +40 -0
- data/lib/fog/rackspace/requests/compute_v2/update_metadata.rb +39 -0
- data/lib/fog/rackspace/requests/compute_v2/update_server.rb +44 -0
- data/lib/fog/rackspace/requests/databases/check_root_user.rb +15 -0
- data/lib/fog/rackspace/requests/databases/create_database.rb +24 -0
- data/lib/fog/rackspace/requests/databases/create_instance.rb +28 -0
- data/lib/fog/rackspace/requests/databases/create_user.rb +25 -0
- data/lib/fog/rackspace/requests/databases/delete_database.rb +15 -0
- data/lib/fog/rackspace/requests/databases/delete_instance.rb +15 -0
- data/lib/fog/rackspace/requests/databases/delete_user.rb +15 -0
- data/lib/fog/rackspace/requests/databases/enable_root_user.rb +15 -0
- data/lib/fog/rackspace/requests/databases/get_flavor.rb +15 -0
- data/lib/fog/rackspace/requests/databases/get_instance.rb +15 -0
- data/lib/fog/rackspace/requests/databases/grant_user_access.rb +32 -0
- data/lib/fog/rackspace/requests/databases/list_databases.rb +15 -0
- data/lib/fog/rackspace/requests/databases/list_flavors.rb +15 -0
- data/lib/fog/rackspace/requests/databases/list_instances.rb +15 -0
- data/lib/fog/rackspace/requests/databases/list_users.rb +15 -0
- data/lib/fog/rackspace/requests/databases/resize_instance.rb +22 -0
- data/lib/fog/rackspace/requests/databases/resize_instance_volume.rb +24 -0
- data/lib/fog/rackspace/requests/databases/restart_instance.rb +20 -0
- data/lib/fog/rackspace/requests/databases/revoke_user_access.rb +26 -0
- data/lib/fog/rackspace/requests/dns/add_records.rb +37 -0
- data/lib/fog/rackspace/requests/dns/callback.rb +18 -0
- data/lib/fog/rackspace/requests/dns/create_domains.rb +48 -0
- data/lib/fog/rackspace/requests/dns/list_domain_details.rb +31 -0
- data/lib/fog/rackspace/requests/dns/list_domains.rb +20 -0
- data/lib/fog/rackspace/requests/dns/list_record_details.rb +20 -0
- data/lib/fog/rackspace/requests/dns/list_records.rb +22 -0
- data/lib/fog/rackspace/requests/dns/list_subdomains.rb +22 -0
- data/lib/fog/rackspace/requests/dns/modify_domain.rb +35 -0
- data/lib/fog/rackspace/requests/dns/modify_record.rb +36 -0
- data/lib/fog/rackspace/requests/dns/remove_domain.rb +28 -0
- data/lib/fog/rackspace/requests/dns/remove_domains.rb +26 -0
- data/lib/fog/rackspace/requests/dns/remove_record.rb +20 -0
- data/lib/fog/rackspace/requests/dns/remove_records.rb +19 -0
- data/lib/fog/rackspace/requests/identity/create_token.rb +222 -0
- data/lib/fog/rackspace/requests/identity/create_user.rb +25 -0
- data/lib/fog/rackspace/requests/identity/delete_user.rb +15 -0
- data/lib/fog/rackspace/requests/identity/get_user_by_id.rb +15 -0
- data/lib/fog/rackspace/requests/identity/get_user_by_name.rb +15 -0
- data/lib/fog/rackspace/requests/identity/list_credentials.rb +22 -0
- data/lib/fog/rackspace/requests/identity/list_tenants.rb +45 -0
- data/lib/fog/rackspace/requests/identity/list_user_roles.rb +22 -0
- data/lib/fog/rackspace/requests/identity/list_users.rb +22 -0
- data/lib/fog/rackspace/requests/identity/update_user.rb +24 -0
- data/lib/fog/rackspace/requests/load_balancers/create_access_rule.rb +24 -0
- data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +109 -0
- data/lib/fog/rackspace/requests/load_balancers/create_node.rb +30 -0
- data/lib/fog/rackspace/requests/load_balancers/create_virtual_ip.rb +20 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_access_rule.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_all_access_rules.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_load_balancer.rb +23 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_node.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_nodes.rb +16 -0
- data/lib/fog/rackspace/requests/load_balancers/delete_virtual_ip.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_connection_logging.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_connection_throttling.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_content_caching.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_error_page.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_load_balancer.rb +44 -0
- data/lib/fog/rackspace/requests/load_balancers/get_load_balancer_usage.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/get_monitor.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_node.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_session_persistence.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_ssl_termination.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/get_stats.rb +30 -0
- data/lib/fog/rackspace/requests/load_balancers/get_usage.rb +20 -0
- data/lib/fog/rackspace/requests/load_balancers/list_access_rules.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_algorithms.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_load_balancers.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/list_nodes.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_protocols.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/list_virtual_ips.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_connection_throttling.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_error_page.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_monitor.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_session_persistence.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/remove_ssl_termination.rb +15 -0
- data/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/set_connection_throttling.rb +22 -0
- data/lib/fog/rackspace/requests/load_balancers/set_content_caching.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/set_error_page.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/set_monitor.rb +31 -0
- data/lib/fog/rackspace/requests/load_balancers/set_session_persistence.rb +21 -0
- data/lib/fog/rackspace/requests/load_balancers/set_ssl_termination.rb +31 -0
- data/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb +26 -0
- data/lib/fog/rackspace/requests/load_balancers/update_node.rb +29 -0
- data/lib/fog/rackspace/requests/monitoring/create_agent_token.rb +47 -0
- data/lib/fog/rackspace/requests/monitoring/create_alarm.rb +47 -0
- data/lib/fog/rackspace/requests/monitoring/create_check.rb +47 -0
- data/lib/fog/rackspace/requests/monitoring/create_entity.rb +47 -0
- data/lib/fog/rackspace/requests/monitoring/create_notification.rb +17 -0
- data/lib/fog/rackspace/requests/monitoring/delete_agent_token.rb +45 -0
- data/lib/fog/rackspace/requests/monitoring/delete_alarm.rb +41 -0
- data/lib/fog/rackspace/requests/monitoring/delete_check.rb +40 -0
- data/lib/fog/rackspace/requests/monitoring/delete_entity.rb +40 -0
- data/lib/fog/rackspace/requests/monitoring/delete_notification.rb +15 -0
- data/lib/fog/rackspace/requests/monitoring/evaluate_alarm_example.rb +18 -0
- data/lib/fog/rackspace/requests/monitoring/get_agent.rb +44 -0
- data/lib/fog/rackspace/requests/monitoring/get_agent_token.rb +47 -0
- data/lib/fog/rackspace/requests/monitoring/get_alarm.rb +51 -0
- data/lib/fog/rackspace/requests/monitoring/get_alarm_example.rb +15 -0
- data/lib/fog/rackspace/requests/monitoring/get_check.rb +56 -0
- data/lib/fog/rackspace/requests/monitoring/get_cpus_info.rb +61 -0
- data/lib/fog/rackspace/requests/monitoring/get_disks_info.rb +54 -0
- data/lib/fog/rackspace/requests/monitoring/get_entity.rb +55 -0
- data/lib/fog/rackspace/requests/monitoring/get_filesystems_info.rb +62 -0
- data/lib/fog/rackspace/requests/monitoring/get_logged_in_user_info.rb +56 -0
- data/lib/fog/rackspace/requests/monitoring/get_memory_info.rb +57 -0
- data/lib/fog/rackspace/requests/monitoring/get_monitoring_zone.rb +15 -0
- data/lib/fog/rackspace/requests/monitoring/get_network_interfaces_info.rb +89 -0
- data/lib/fog/rackspace/requests/monitoring/get_notification.rb +46 -0
- data/lib/fog/rackspace/requests/monitoring/get_processes_info.rb +70 -0
- data/lib/fog/rackspace/requests/monitoring/get_system_info.rb +51 -0
- data/lib/fog/rackspace/requests/monitoring/list_agent_tokens.rb +55 -0
- data/lib/fog/rackspace/requests/monitoring/list_agents.rb +61 -0
- data/lib/fog/rackspace/requests/monitoring/list_alarm_examples.rb +15 -0
- data/lib/fog/rackspace/requests/monitoring/list_alarms.rb +64 -0
- data/lib/fog/rackspace/requests/monitoring/list_check_types.rb +86 -0
- data/lib/fog/rackspace/requests/monitoring/list_checks.rb +70 -0
- data/lib/fog/rackspace/requests/monitoring/list_data_points.rb +51 -0
- data/lib/fog/rackspace/requests/monitoring/list_entities.rb +70 -0
- data/lib/fog/rackspace/requests/monitoring/list_metrics.rb +80 -0
- data/lib/fog/rackspace/requests/monitoring/list_monitoring_zones.rb +15 -0
- data/lib/fog/rackspace/requests/monitoring/list_notification_plans.rb +70 -0
- data/lib/fog/rackspace/requests/monitoring/list_notifications.rb +63 -0
- data/lib/fog/rackspace/requests/monitoring/list_overview.rb +111 -0
- data/lib/fog/rackspace/requests/monitoring/update_alarm.rb +45 -0
- data/lib/fog/rackspace/requests/monitoring/update_check.rb +45 -0
- data/lib/fog/rackspace/requests/monitoring/update_entity.rb +45 -0
- data/lib/fog/rackspace/requests/monitoring/update_notification.rb +16 -0
- data/lib/fog/rackspace/requests/networking/create_network.rb +36 -0
- data/lib/fog/rackspace/requests/networking/create_virtual_interface.rb +30 -0
- data/lib/fog/rackspace/requests/networking/delete_network.rb +21 -0
- data/lib/fog/rackspace/requests/networking/delete_virtual_interface.rb +23 -0
- data/lib/fog/rackspace/requests/networking/get_network.rb +21 -0
- data/lib/fog/rackspace/requests/networking/list_networks.rb +18 -0
- data/lib/fog/rackspace/requests/networking/list_virtual_interfaces.rb +22 -0
- data/lib/fog/rackspace/requests/networking_v2/create_network.rb +18 -0
- data/lib/fog/rackspace/requests/networking_v2/create_port.rb +18 -0
- data/lib/fog/rackspace/requests/networking_v2/create_security_group.rb +12 -0
- data/lib/fog/rackspace/requests/networking_v2/create_security_group_rule.rb +12 -0
- data/lib/fog/rackspace/requests/networking_v2/create_subnet.rb +18 -0
- data/lib/fog/rackspace/requests/networking_v2/delete_network.rb +11 -0
- data/lib/fog/rackspace/requests/networking_v2/delete_port.rb +11 -0
- data/lib/fog/rackspace/requests/networking_v2/delete_security_group.rb +5 -0
- data/lib/fog/rackspace/requests/networking_v2/delete_security_group_rule.rb +5 -0
- data/lib/fog/rackspace/requests/networking_v2/delete_subnet.rb +11 -0
- data/lib/fog/rackspace/requests/networking_v2/list_networks.rb +11 -0
- data/lib/fog/rackspace/requests/networking_v2/list_ports.rb +11 -0
- data/lib/fog/rackspace/requests/networking_v2/list_security_group_rules.rb +5 -0
- data/lib/fog/rackspace/requests/networking_v2/list_security_groups.rb +5 -0
- data/lib/fog/rackspace/requests/networking_v2/list_subnets.rb +11 -0
- data/lib/fog/rackspace/requests/networking_v2/show_network.rb +11 -0
- data/lib/fog/rackspace/requests/networking_v2/show_port.rb +11 -0
- data/lib/fog/rackspace/requests/networking_v2/show_security_group.rb +5 -0
- data/lib/fog/rackspace/requests/networking_v2/show_security_group_rule.rb +5 -0
- data/lib/fog/rackspace/requests/networking_v2/show_subnet.rb +11 -0
- data/lib/fog/rackspace/requests/networking_v2/update_network.rb +18 -0
- data/lib/fog/rackspace/requests/networking_v2/update_port.rb +18 -0
- data/lib/fog/rackspace/requests/networking_v2/update_security_group.rb +12 -0
- data/lib/fog/rackspace/requests/networking_v2/update_subnet.rb +23 -0
- data/lib/fog/rackspace/requests/orchestration/abandon_stack.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/build_info.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/create_stack.rb +16 -0
- data/lib/fog/rackspace/requests/orchestration/delete_stack.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/get_stack_template.rb +20 -0
- data/lib/fog/rackspace/requests/orchestration/list_resource_events.rb +19 -0
- data/lib/fog/rackspace/requests/orchestration/list_resource_types.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/list_resources.rb +19 -0
- data/lib/fog/rackspace/requests/orchestration/list_stack_data.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/list_stack_events.rb +19 -0
- data/lib/fog/rackspace/requests/orchestration/preview_stack.rb +16 -0
- data/lib/fog/rackspace/requests/orchestration/show_event_details.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_data.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_metadata.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_schema.rb +15 -0
- data/lib/fog/rackspace/requests/orchestration/show_resource_template.rb +20 -0
- data/lib/fog/rackspace/requests/orchestration/show_stack_details.rb +22 -0
- data/lib/fog/rackspace/requests/orchestration/update_stack.rb +16 -0
- data/lib/fog/rackspace/requests/orchestration/validate_template.rb +16 -0
- data/lib/fog/rackspace/requests/queues/create_claim.rb +72 -0
- data/lib/fog/rackspace/requests/queues/create_message.rb +56 -0
- data/lib/fog/rackspace/requests/queues/create_queue.rb +39 -0
- data/lib/fog/rackspace/requests/queues/delete_claim.rb +42 -0
- data/lib/fog/rackspace/requests/queues/delete_message.rb +62 -0
- data/lib/fog/rackspace/requests/queues/delete_queue.rb +33 -0
- data/lib/fog/rackspace/requests/queues/get_claim.rb +37 -0
- data/lib/fog/rackspace/requests/queues/get_message.rb +41 -0
- data/lib/fog/rackspace/requests/queues/get_queue.rb +36 -0
- data/lib/fog/rackspace/requests/queues/get_queue_stats.rb +57 -0
- data/lib/fog/rackspace/requests/queues/list_messages.rb +73 -0
- data/lib/fog/rackspace/requests/queues/list_queues.rb +62 -0
- data/lib/fog/rackspace/requests/queues/update_claim.rb +39 -0
- data/lib/fog/rackspace/requests/storage/copy_object.rb +29 -0
- data/lib/fog/rackspace/requests/storage/delete_container.rb +36 -0
- data/lib/fog/rackspace/requests/storage/delete_multiple_objects.rb +128 -0
- data/lib/fog/rackspace/requests/storage/delete_object.rb +36 -0
- data/lib/fog/rackspace/requests/storage/delete_static_large_object.rb +78 -0
- data/lib/fog/rackspace/requests/storage/extract_archive.rb +37 -0
- data/lib/fog/rackspace/requests/storage/get_container.rb +69 -0
- data/lib/fog/rackspace/requests/storage/get_containers.rb +51 -0
- data/lib/fog/rackspace/requests/storage/get_object.rb +54 -0
- data/lib/fog/rackspace/requests/storage/get_object_http_url.rb +35 -0
- data/lib/fog/rackspace/requests/storage/get_object_https_url.rb +71 -0
- data/lib/fog/rackspace/requests/storage/head_container.rb +41 -0
- data/lib/fog/rackspace/requests/storage/head_containers.rb +44 -0
- data/lib/fog/rackspace/requests/storage/head_object.rb +48 -0
- data/lib/fog/rackspace/requests/storage/post_set_meta_temp_url_key.rb +46 -0
- data/lib/fog/rackspace/requests/storage/put_container.rb +38 -0
- data/lib/fog/rackspace/requests/storage/put_dynamic_obj_manifest.rb +63 -0
- data/lib/fog/rackspace/requests/storage/put_object.rb +77 -0
- data/lib/fog/rackspace/requests/storage/put_object_manifest.rb +22 -0
- data/lib/fog/rackspace/requests/storage/put_static_obj_manifest.rb +102 -0
- data/lib/fog/rackspace/service.rb +142 -0
- data/lib/fog/rackspace/storage.rb +465 -0
- data/lib/fog/rage4/dns.rb +0 -1
- data/lib/fog/vcloud_director/README.md +0 -3
- data/lib/fog/vcloud_director/compute.rb +2 -29
- data/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +1 -1
- data/lib/fog/vcloud_director/models/compute/catalog_item.rb +0 -7
- data/lib/fog/vcloud_director/models/compute/disks.rb +0 -6
- data/lib/fog/vcloud_director/models/compute/networks.rb +2 -7
- data/lib/fog/vcloud_director/models/compute/vdc.rb +0 -10
- data/lib/fog/vcloud_director/models/compute/vm.rb +1 -28
- data/lib/fog/vcloud_director/parsers/compute/vm.rb +10 -19
- data/lib/fog/vcloud_director/parsers/compute/vm_customization.rb +0 -1
- data/lib/fog/vcloud_director/parsers/compute/vms.rb +38 -15
- data/lib/fog/vcloud_director/requests/compute/delete_vapp.rb +0 -30
- data/lib/fog/vcloud_director/requests/compute/get_catalog.rb +3 -24
- data/lib/fog/vcloud_director/requests/compute/get_catalog_item.rb +0 -23
- data/lib/fog/vcloud_director/requests/compute/get_execute_query.rb +10 -13
- data/lib/fog/vcloud_director/requests/compute/get_metadata.rb +0 -11
- data/lib/fog/vcloud_director/requests/compute/get_vapp.rb +0 -1
- data/lib/fog/vcloud_director/requests/compute/get_vdc.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/get_vm.rb +0 -46
- data/lib/fog/vcloud_director/requests/compute/get_vm_disks.rb +0 -20
- data/lib/fog/vcloud_director/requests/compute/get_vm_network.rb +0 -25
- data/lib/fog/vcloud_director/requests/compute/get_vms.rb +0 -13
- data/lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb +37 -100
- data/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb +0 -35
- data/lib/fog/vcloud_director/requests/compute/post_update_vapp_metadata.rb +0 -34
- data/lib/fog/vcloud_director/requests/compute/put_guest_customization_section_vapp.rb +1 -2
- data/lib/fog/vcloud_director/requests/compute/put_network_connection_system_section_vapp.rb +0 -31
- data/lib/fog/vcloud_director/requests/compute/put_product_sections.rb +1 -4
- data/lib/fog/version.rb +1 -1
- data/lib/fog/vsphere.rb +1 -0
- data/lib/fog/vsphere/compute.rb +466 -0
- data/lib/fog/vsphere/core.rb +39 -0
- data/lib/fog/vsphere/models/compute/cluster.rb +28 -0
- data/lib/fog/vsphere/models/compute/clusters.rb +23 -0
- data/lib/fog/vsphere/models/compute/customfield.rb +16 -0
- data/lib/fog/vsphere/models/compute/customfields.rb +24 -0
- data/lib/fog/vsphere/models/compute/customvalue.rb +14 -0
- data/lib/fog/vsphere/models/compute/customvalues.rb +34 -0
- data/lib/fog/vsphere/models/compute/datacenter.rb +44 -0
- data/lib/fog/vsphere/models/compute/datacenters.rb +20 -0
- data/lib/fog/vsphere/models/compute/datastore.rb +21 -0
- data/lib/fog/vsphere/models/compute/datastores.rb +22 -0
- data/lib/fog/vsphere/models/compute/folder.rb +24 -0
- data/lib/fog/vsphere/models/compute/folders.rb +24 -0
- data/lib/fog/vsphere/models/compute/interface.rb +91 -0
- data/lib/fog/vsphere/models/compute/interfaces.rb +67 -0
- data/lib/fog/vsphere/models/compute/interfacetype.rb +22 -0
- data/lib/fog/vsphere/models/compute/interfacetypes.rb +35 -0
- data/lib/fog/vsphere/models/compute/network.rb +17 -0
- data/lib/fog/vsphere/models/compute/networks.rb +23 -0
- data/lib/fog/vsphere/models/compute/resource_pool.rb +19 -0
- data/lib/fog/vsphere/models/compute/resource_pools.rb +23 -0
- data/lib/fog/vsphere/models/compute/scsicontroller.rb +16 -0
- data/lib/fog/vsphere/models/compute/server.rb +296 -0
- data/lib/fog/vsphere/models/compute/servers.rb +37 -0
- data/lib/fog/vsphere/models/compute/servertype.rb +36 -0
- data/lib/fog/vsphere/models/compute/servertypes.rb +24 -0
- data/lib/fog/vsphere/models/compute/template.rb +11 -0
- data/lib/fog/vsphere/models/compute/templates.rb +20 -0
- data/lib/fog/vsphere/models/compute/volume.rb +99 -0
- data/lib/fog/vsphere/models/compute/volumes.rb +54 -0
- data/lib/fog/vsphere/requests/compute/cloudinit_to_customspec.rb +65 -0
- data/lib/fog/vsphere/requests/compute/create_folder.rb +22 -0
- data/lib/fog/vsphere/requests/compute/create_vm.rb +164 -0
- data/lib/fog/vsphere/requests/compute/current_time.rb +18 -0
- data/lib/fog/vsphere/requests/compute/get_cluster.rb +25 -0
- data/lib/fog/vsphere/requests/compute/get_compute_resource.rb +41 -0
- data/lib/fog/vsphere/requests/compute/get_datacenter.rb +31 -0
- data/lib/fog/vsphere/requests/compute/get_datastore.rb +30 -0
- data/lib/fog/vsphere/requests/compute/get_folder.rb +74 -0
- data/lib/fog/vsphere/requests/compute/get_interface_type.rb +15 -0
- data/lib/fog/vsphere/requests/compute/get_network.rb +59 -0
- data/lib/fog/vsphere/requests/compute/get_resource_pool.rb +26 -0
- data/lib/fog/vsphere/requests/compute/get_server_type.rb +32 -0
- data/lib/fog/vsphere/requests/compute/get_template.rb +16 -0
- data/lib/fog/vsphere/requests/compute/get_virtual_machine.rb +57 -0
- data/lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb +26 -0
- data/lib/fog/vsphere/requests/compute/list_clusters.rb +72 -0
- data/lib/fog/vsphere/requests/compute/list_compute_resources.rb +92 -0
- data/lib/fog/vsphere/requests/compute/list_customfields.rb +21 -0
- data/lib/fog/vsphere/requests/compute/list_datacenters.rb +53 -0
- data/lib/fog/vsphere/requests/compute/list_datastores.rb +40 -0
- data/lib/fog/vsphere/requests/compute/list_folders.rb +44 -0
- data/lib/fog/vsphere/requests/compute/list_interface_types.rb +25 -0
- data/lib/fog/vsphere/requests/compute/list_networks.rb +37 -0
- data/lib/fog/vsphere/requests/compute/list_resource_pools.rb +38 -0
- data/lib/fog/vsphere/requests/compute/list_server_types.rb +54 -0
- data/lib/fog/vsphere/requests/compute/list_templates.rb +48 -0
- data/lib/fog/vsphere/requests/compute/list_virtual_machines.rb +80 -0
- data/lib/fog/vsphere/requests/compute/list_vm_customvalues.rb +20 -0
- data/lib/fog/vsphere/requests/compute/list_vm_interfaces.rb +63 -0
- data/lib/fog/vsphere/requests/compute/list_vm_volumes.rb +52 -0
- data/lib/fog/vsphere/requests/compute/modify_vm_interface.rb +59 -0
- data/lib/fog/vsphere/requests/compute/modify_vm_volume.rb +25 -0
- data/lib/fog/vsphere/requests/compute/set_vm_customvalue.rb +17 -0
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +730 -0
- data/lib/fog/vsphere/requests/compute/vm_config_vnc.rb +45 -0
- data/lib/fog/vsphere/requests/compute/vm_destroy.rb +23 -0
- data/lib/fog/vsphere/requests/compute/vm_execute.rb +47 -0
- data/lib/fog/vsphere/requests/compute/vm_migrate.rb +33 -0
- data/lib/fog/vsphere/requests/compute/vm_power_off.rb +39 -0
- data/lib/fog/vsphere/requests/compute/vm_power_on.rb +26 -0
- data/lib/fog/vsphere/requests/compute/vm_reboot.rb +31 -0
- data/lib/fog/vsphere/requests/compute/vm_reconfig_cpus.rb +23 -0
- data/lib/fog/vsphere/requests/compute/vm_reconfig_hardware.rb +24 -0
- data/lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb +23 -0
- data/lib/tasks/changelog_task.rb +5 -11
- data/lib/tasks/github_release_task.rb +1 -1
- data/spec/fog/bin/digitalocean_spec.rb +9 -0
- data/spec/fog/bin/dnsimple_spec.rb +2 -2
- data/spec/fog/bin/hp_spec.rb +10 -0
- data/spec/fog/bin/internetarchive_spec.rb +10 -0
- data/spec/fog/bin/ninefold_spec.rb +10 -0
- data/spec/fog/bin/ovirt_spec.rb +10 -0
- data/spec/fog/bin_spec.rb +9 -3
- data/spec/fog/openstack/identity_v3/authv3_a.yml +81 -0
- data/spec/fog/openstack/identity_v3/authv3_b.yml +81 -0
- data/spec/fog/openstack/identity_v3/authv3_c.yml +187 -0
- data/spec/fog/openstack/identity_v3/authv3_project.yml +105 -0
- data/spec/fog/openstack/identity_v3/authv3_token.yml +452 -0
- data/spec/fog/openstack/identity_v3/authv3_unscoped.yml +477 -0
- data/spec/fog/openstack/identity_v3/authv3_unscoped_reauth.yml +371 -0
- data/spec/fog/openstack/identity_v3/common_setup.yml +476 -0
- data/spec/fog/openstack/identity_v3/idv3_credential.yml +117 -0
- data/spec/fog/openstack/identity_v3/idv3_credential_crud.yml +561 -0
- data/spec/fog/openstack/identity_v3/idv3_domain.yml +201 -0
- data/spec/fog/openstack/identity_v3/idv3_domain_crud.yml +469 -0
- data/spec/fog/openstack/identity_v3/idv3_domain_group_roles_mutation.yml +804 -0
- data/spec/fog/openstack/identity_v3/idv3_domain_roles_mutation.yml +478 -0
- data/spec/fog/openstack/identity_v3/idv3_endpoint.yml +621 -0
- data/spec/fog/openstack/identity_v3/idv3_endpoints_crud.yml +952 -0
- data/spec/fog/openstack/identity_v3/idv3_group_crud_mutation.yml +1055 -0
- data/spec/fog/openstack/identity_v3/idv3_other_region.yml +187 -0
- data/spec/fog/openstack/identity_v3/idv3_policy.yml +155 -0
- data/spec/fog/openstack/identity_v3/idv3_policy_crud.yml +388 -0
- data/spec/fog/openstack/identity_v3/idv3_project.yml +241 -0
- data/spec/fog/openstack/identity_v3/idv3_project_crud.yml +455 -0
- data/spec/fog/openstack/identity_v3/idv3_project_group_user_roles_mutation.yml +1237 -0
- data/spec/fog/openstack/identity_v3/idv3_project_hier_crud_list.yml +1394 -0
- data/spec/fog/openstack/identity_v3/idv3_role.yml +233 -0
- data/spec/fog/openstack/identity_v3/idv3_role_crud.yml +408 -0
- data/spec/fog/openstack/identity_v3/idv3_service.yml +285 -0
- data/spec/fog/openstack/identity_v3/idv3_services_crud.yml +506 -0
- data/spec/fog/openstack/identity_v3/idv3_token.yml +334 -0
- data/spec/fog/openstack/identity_v3/idv3_user_crud.yml +655 -0
- data/spec/fog/openstack/identity_v3/idv3_users.yml +323 -0
- data/spec/fog/openstack/identity_v3_spec.rb +1016 -0
- data/spec/fog/openstack/network/common_setup.yml +131 -0
- data/spec/fog/openstack/network/subnets_crud.yml +140 -0
- data/spec/fog/openstack/network_spec.rb +43 -0
- data/spec/fog/openstack/shared_context.rb +98 -0
- data/spec/fog/openstack/volume/common_setup.yml +76 -0
- data/spec/fog/openstack/volume/volume_crud.yml +561 -0
- data/spec/fog/openstack/volume/volume_extend.yml +762 -0
- data/spec/fog/openstack/volume/volume_transfer_and_accept.yml +1078 -0
- data/spec/fog/openstack/volume/volume_transfer_and_delete.yml +695 -0
- data/spec/fog/openstack/volume/volume_type_read.yml +120 -0
- data/spec/fog/openstack/volume_spec.rb +335 -0
- data/tests/cloudsigma/models/volume_tests.rb +3 -3
- data/tests/cloudsigma/requests/server_tests.rb +10 -10
- data/tests/cloudsigma/requests/volumes_tests.rb +11 -12
- data/tests/compute/helper.rb +22 -0
- data/tests/digitalocean/helper.rb +56 -0
- data/tests/digitalocean/models/compute/flavor_tests.rb +29 -0
- data/tests/digitalocean/models/compute/image_tests.rb +30 -0
- data/tests/digitalocean/models/compute/region_tests.rb +29 -0
- data/tests/digitalocean/models/compute/server_tests.rb +93 -0
- data/tests/digitalocean/models/compute/servers_tests.rb +39 -0
- data/tests/digitalocean/models/compute/ssh_key_tests.rb +43 -0
- data/tests/digitalocean/models/compute/ssh_keys_tests.rb +32 -0
- data/tests/digitalocean/requests/compute/create_server_tests.rb +32 -0
- data/tests/digitalocean/requests/compute/create_ssh_key_tests.rb +22 -0
- data/tests/digitalocean/requests/compute/destroy_server_tests.rb +14 -0
- data/tests/digitalocean/requests/compute/destroy_ssh_key_tests.rb +23 -0
- data/tests/digitalocean/requests/compute/get_server_details_tests.rb +13 -0
- data/tests/digitalocean/requests/compute/get_ssh_key_tests.rb +25 -0
- data/tests/digitalocean/requests/compute/list_flavors_tests.rb +23 -0
- data/tests/digitalocean/requests/compute/list_images_tests.rb +24 -0
- data/tests/digitalocean/requests/compute/list_regions_tests.rb +23 -0
- data/tests/digitalocean/requests/compute/list_servers_tests.rb +27 -0
- data/tests/digitalocean/requests/compute/list_ssh_keys_tests.rb +24 -0
- data/tests/digitalocean/requests/compute/power_cycle_server_tests.rb +20 -0
- data/tests/digitalocean/requests/compute/power_state_tests.rb +25 -0
- data/tests/digitalocean/requests/compute/reboot_server_tests.rb +14 -0
- data/tests/dnsimple/requests/dns/dns_tests.rb +122 -0
- data/tests/helper.rb +0 -1
- data/tests/helpers/mock_helper.rb +13 -1
- data/tests/hp/block_storage_tests.rb +47 -0
- data/tests/hp/cdn_tests.rb +23 -0
- data/tests/hp/compute_tests.rb +22 -0
- data/tests/hp/models/block_storage/bootable_volume_tests.rb +23 -0
- data/tests/hp/models/block_storage/snapshot_tests.rb +23 -0
- data/tests/hp/models/block_storage/volume_tests.rb +21 -0
- data/tests/hp/models/block_storage_v2/snapshot_tests.rb +22 -0
- data/tests/hp/models/block_storage_v2/snapshots_tests.rb +10 -0
- data/tests/hp/models/block_storage_v2/volume_backup_tests.rb +22 -0
- data/tests/hp/models/block_storage_v2/volume_backups_tests.rb +9 -0
- data/tests/hp/models/block_storage_v2/volume_tests.rb +22 -0
- data/tests/hp/models/block_storage_v2/volumes_tests.rb +5 -0
- data/tests/hp/models/compute/address_tests.rb +18 -0
- data/tests/hp/models/compute/addresses_tests.rb +5 -0
- data/tests/hp/models/compute/key_pair_tests.rb +26 -0
- data/tests/hp/models/compute/key_pairs_tests.rb +5 -0
- data/tests/hp/models/compute/metadata_image_tests.rb +60 -0
- data/tests/hp/models/compute/metadata_server_tests.rb +54 -0
- data/tests/hp/models/compute/security_group_tests.rb +38 -0
- data/tests/hp/models/compute/security_groups_tests.rb +5 -0
- data/tests/hp/models/compute_v2/address_tests.rb +23 -0
- data/tests/hp/models/compute_v2/addresses_tests.rb +7 -0
- data/tests/hp/models/compute_v2/availability_zone_tests.rb +11 -0
- data/tests/hp/models/compute_v2/availability_zones_tests.rb +13 -0
- data/tests/hp/models/compute_v2/key_pair_tests.rb +28 -0
- data/tests/hp/models/compute_v2/key_pairs_tests.rb +7 -0
- data/tests/hp/models/compute_v2/metadata_image_tests.rb +60 -0
- data/tests/hp/models/compute_v2/metadata_server_tests.rb +56 -0
- data/tests/hp/models/compute_v2/server_tests.rb +45 -0
- data/tests/hp/models/compute_v2/servers_tests.rb +9 -0
- data/tests/hp/models/compute_v2/volume_attachment_tests.rb +40 -0
- data/tests/hp/models/compute_v2/volume_attachments_tests.rb +17 -0
- data/tests/hp/models/dns/domain_tests.rb +25 -0
- data/tests/hp/models/dns/domains_tests.rb +14 -0
- data/tests/hp/models/dns/record_tests.rb +29 -0
- data/tests/hp/models/dns/records_tests.rb +9 -0
- data/tests/hp/models/lb/algorithms_tests.rb +15 -0
- data/tests/hp/models/lb/load_balancer_node_tests.rb +9 -0
- data/tests/hp/models/lb/load_balancer_nodes_tests.rb +27 -0
- data/tests/hp/models/lb/load_balancer_tests.rb +6 -0
- data/tests/hp/models/lb/load_balancer_virtual_ips_tests.rb +22 -0
- data/tests/hp/models/lb/load_balancers_tests.rb +22 -0
- data/tests/hp/models/lb/protocols_tests.rb +15 -0
- data/tests/hp/models/network/floating_ip_tests.rb +37 -0
- data/tests/hp/models/network/floating_ips_tests.rb +8 -0
- data/tests/hp/models/network/network_tests.rb +25 -0
- data/tests/hp/models/network/networks_tests.rb +15 -0
- data/tests/hp/models/network/port_tests.rb +30 -0
- data/tests/hp/models/network/ports_tests.rb +21 -0
- data/tests/hp/models/network/router_tests.rb +55 -0
- data/tests/hp/models/network/routers_tests.rb +19 -0
- data/tests/hp/models/network/security_group_rule_tests.rb +25 -0
- data/tests/hp/models/network/security_group_rules_tests.rb +23 -0
- data/tests/hp/models/network/security_group_tests.rb +20 -0
- data/tests/hp/models/network/security_groups_tests.rb +20 -0
- data/tests/hp/models/network/subnet_tests.rb +30 -0
- data/tests/hp/models/network/subnets_tests.rb +22 -0
- data/tests/hp/models/storage/directories_tests.rb +23 -0
- data/tests/hp/models/storage/directory_tests.rb +131 -0
- data/tests/hp/models/storage/file_tests.rb +44 -0
- data/tests/hp/models/storage/files_tests.rb +38 -0
- data/tests/hp/requests/block_storage/bootable_volume_tests.rb +78 -0
- data/tests/hp/requests/block_storage/snapshot_tests.rb +56 -0
- data/tests/hp/requests/block_storage/volume_tests.rb +94 -0
- data/tests/hp/requests/block_storage_v2/snapshot_tests.rb +69 -0
- data/tests/hp/requests/block_storage_v2/volume_backup_tests.rb +117 -0
- data/tests/hp/requests/block_storage_v2/volume_tests.rb +106 -0
- data/tests/hp/requests/cdn/container_tests.rb +56 -0
- data/tests/hp/requests/compute/address_tests.rb +72 -0
- data/tests/hp/requests/compute/flavor_tests.rb +45 -0
- data/tests/hp/requests/compute/image_tests.rb +79 -0
- data/tests/hp/requests/compute/key_pair_tests.rb +65 -0
- data/tests/hp/requests/compute/metadata_tests.rb +70 -0
- data/tests/hp/requests/compute/persistent_server_tests.rb +66 -0
- data/tests/hp/requests/compute/security_group_rule_tests.rb +54 -0
- data/tests/hp/requests/compute/security_group_tests.rb +63 -0
- data/tests/hp/requests/compute/server_address_tests.rb +45 -0
- data/tests/hp/requests/compute/server_tests.rb +126 -0
- data/tests/hp/requests/compute/server_volume_tests.rb +75 -0
- data/tests/hp/requests/compute_v2/address_tests.rb +80 -0
- data/tests/hp/requests/compute_v2/availability_zone_tests.rb +19 -0
- data/tests/hp/requests/compute_v2/flavor_tests.rb +45 -0
- data/tests/hp/requests/compute_v2/image_tests.rb +86 -0
- data/tests/hp/requests/compute_v2/key_pair_tests.rb +66 -0
- data/tests/hp/requests/compute_v2/metadata_tests.rb +101 -0
- data/tests/hp/requests/compute_v2/persistent_server_tests.rb +67 -0
- data/tests/hp/requests/compute_v2/server_address_tests.rb +46 -0
- data/tests/hp/requests/compute_v2/server_security_group_tests.rb +42 -0
- data/tests/hp/requests/compute_v2/server_tests.rb +113 -0
- data/tests/hp/requests/compute_v2/server_volume_tests.rb +84 -0
- data/tests/hp/requests/dns/domain_tests.rb +72 -0
- data/tests/hp/requests/dns/records_tests.rb +64 -0
- data/tests/hp/requests/lb/algorithms_tests.rb +14 -0
- data/tests/hp/requests/lb/limits_tests.rb +16 -0
- data/tests/hp/requests/lb/load_balancer_nodes_tests.rb +46 -0
- data/tests/hp/requests/lb/load_balancer_tests.rb +56 -0
- data/tests/hp/requests/lb/protocols_tests.rb +14 -0
- data/tests/hp/requests/lb/versions_tests.rb +16 -0
- data/tests/hp/requests/lb/virtual_ips_tests.rb +34 -0
- data/tests/hp/requests/network/floating_ip_tests.rb +70 -0
- data/tests/hp/requests/network/network_tests.rb +57 -0
- data/tests/hp/requests/network/port_tests.rb +71 -0
- data/tests/hp/requests/network/router_tests.rb +108 -0
- data/tests/hp/requests/network/security_group_rule_tests.rb +58 -0
- data/tests/hp/requests/network/security_group_tests.rb +48 -0
- data/tests/hp/requests/network/subnet_tests.rb +71 -0
- data/tests/hp/requests/storage/container_tests.rb +86 -0
- data/tests/hp/requests/storage/object_tests.rb +121 -0
- data/tests/hp/storage_tests.rb +28 -0
- data/tests/hp/user_agent_tests.rb +13 -0
- data/tests/internet_archive/models/storage/directory_tests.rb +42 -0
- data/tests/internet_archive/models/storage/file_tests.rb +61 -0
- data/tests/internet_archive/models/storage/files_tests.rb +58 -0
- data/tests/internet_archive/models/storage/url_tests.rb +28 -0
- data/tests/internet_archive/requests/storage/acl_utils_tests.rb +209 -0
- data/tests/internet_archive/requests/storage/bucket_tests.rb +324 -0
- data/tests/internet_archive/requests/storage/cors_utils_tests.rb +108 -0
- data/tests/internet_archive/requests/storage/multipart_upload_tests.rb +132 -0
- data/tests/internet_archive/requests/storage/object_tests.rb +166 -0
- data/tests/internet_archive/signaturev4_tests.rb +41 -0
- data/tests/internet_archive/signed_params_tests.rb +5 -0
- data/tests/joyent/models/analytics/field_tests.rb +10 -0
- data/tests/joyent/models/analytics/fields_tests.rb +13 -0
- data/tests/joyent/models/analytics/instrumentation_tests.rb +13 -0
- data/tests/joyent/models/analytics/instrumentations_tests.rb +3 -0
- data/tests/joyent/models/analytics/joyent_module_tests.rb +10 -0
- data/tests/joyent/models/analytics/joyent_modules_tests.rb +13 -0
- data/tests/joyent/models/analytics/metric_tests.rb +10 -0
- data/tests/joyent/models/analytics/metrics_tests.rb +20 -0
- data/tests/joyent/models/analytics/transformation_tests.rb +10 -0
- data/tests/joyent/models/analytics/transformations_tests.rb +13 -0
- data/tests/joyent/models/analytics/type_tests.rb +10 -0
- data/tests/joyent/models/analytics/types_tests.rb +13 -0
- data/tests/joyent/requests/analytics/instrumentation_tests.rb +44 -0
- data/tests/joyent/requests/compute/datasets_tests.rb +58 -0
- data/tests/joyent/requests/compute/keys_tests.rb +47 -0
- data/tests/joyent/requests/compute/machines_tests.rb +66 -0
- data/tests/joyent/requests/compute/networks_tests.rb +39 -0
- data/tests/joyent/requests/compute/packages_tests.rb +68 -0
- data/tests/linode/requests/compute/datacenter_tests.rb +1 -2
- data/tests/linode/requests/compute/kernel_tests.rb +10 -2
- data/tests/linode/requests/compute/linodeplans_tests.rb +7 -10
- data/tests/ninefold/models/storage/file_update_tests.rb +19 -0
- data/tests/ninefold/models/storage/nested_directories_tests.rb +23 -0
- data/tests/ninefold/requests/compute/address_tests.rb +42 -0
- data/tests/ninefold/requests/compute/async_job_tests.rb +33 -0
- data/tests/ninefold/requests/compute/helper.rb +369 -0
- data/tests/ninefold/requests/compute/list_tests.rb +56 -0
- data/tests/ninefold/requests/compute/load_balancer_tests.rb +66 -0
- data/tests/ninefold/requests/compute/nat_tests.rb +91 -0
- data/tests/ninefold/requests/compute/network_tests.rb +21 -0
- data/tests/ninefold/requests/compute/template_tests.rb +21 -0
- data/tests/ninefold/requests/compute/virtual_machine_tests.rb +68 -0
- data/tests/opennebula/models/compute/flavor_tests.rb +3 -3
- data/tests/opennebula/models/compute/network_tests.rb +2 -1
- data/tests/opennebula/requests/compute/vm_allocate_tests.rb +3 -20
- data/tests/openstack/authenticate_tests.rb +193 -0
- data/tests/openstack/models/compute/images_tests.rb +13 -0
- data/tests/openstack/models/compute/security_group_tests.rb +54 -0
- data/tests/openstack/models/compute/server_tests.rb +220 -0
- data/tests/openstack/models/identity/ec2_credential_tests.rb +41 -0
- data/tests/openstack/models/identity/ec2_credentials_tests.rb +58 -0
- data/tests/openstack/models/identity/role_tests.rb +26 -0
- data/tests/openstack/models/identity/roles_tests.rb +20 -0
- data/tests/openstack/models/identity/tenant_tests.rb +30 -0
- data/tests/openstack/models/identity/tenants_tests.rb +26 -0
- data/tests/openstack/models/identity/user_tests.rb +46 -0
- data/tests/openstack/models/identity/users_tests.rb +42 -0
- data/tests/openstack/models/image/image_tests.rb +36 -0
- data/tests/openstack/models/image/images_tests.rb +19 -0
- data/tests/openstack/models/network/floating_ip_tests.rb +22 -0
- data/tests/openstack/models/network/floating_ips_tests.rb +19 -0
- data/tests/openstack/models/network/lb_health_monitor_tests.rb +52 -0
- data/tests/openstack/models/network/lb_health_monitors_tests.rb +21 -0
- data/tests/openstack/models/network/lb_member_tests.rb +28 -0
- data/tests/openstack/models/network/lb_members_tests.rb +21 -0
- data/tests/openstack/models/network/lb_pool_tests.rb +53 -0
- data/tests/openstack/models/network/lb_pools_tests.rb +20 -0
- data/tests/openstack/models/network/lb_vip_tests.rb +39 -0
- data/tests/openstack/models/network/lb_vips_tests.rb +21 -0
- data/tests/openstack/models/network/network_tests.rb +61 -0
- data/tests/openstack/models/network/networks_tests.rb +21 -0
- data/tests/openstack/models/network/port_tests.rb +28 -0
- data/tests/openstack/models/network/ports_tests.rb +25 -0
- data/tests/openstack/models/network/router_tests.rb +39 -0
- data/tests/openstack/models/network/routers_tests.rb +21 -0
- data/tests/openstack/models/network/security_group_rule_tests.rb +27 -0
- data/tests/openstack/models/network/security_group_rules_tests.rb +25 -0
- data/tests/openstack/models/network/security_group_tests.rb +17 -0
- data/tests/openstack/models/network/security_groups_tests.rb +16 -0
- data/tests/openstack/models/network/subnet_tests.rb +30 -0
- data/tests/openstack/models/network/subnets_tests.rb +27 -0
- data/tests/openstack/models/planning/.gitkeep +0 -0
- data/tests/openstack/models/planning/plan_tests.rb +51 -0
- data/tests/openstack/models/planning/plans_tests.rb +18 -0
- data/tests/openstack/models/planning/role_tests.rb +14 -0
- data/tests/openstack/models/storage/file_tests.rb +222 -0
- data/tests/openstack/requests/baremetal/chassis_tests.rb +48 -0
- data/tests/openstack/requests/baremetal/driver_tests.rb +40 -0
- data/tests/openstack/requests/baremetal/node_tests.rb +83 -0
- data/tests/openstack/requests/baremetal/port_tests.rb +56 -0
- data/tests/openstack/requests/compute/address_tests.rb +58 -0
- data/tests/openstack/requests/compute/aggregate_tests.rb +59 -0
- data/tests/openstack/requests/compute/availability_zone_tests.rb +18 -0
- data/tests/openstack/requests/compute/flavor_tests.rb +95 -0
- data/tests/openstack/requests/compute/helper.rb +41 -0
- data/tests/openstack/requests/compute/image_tests.rb +58 -0
- data/tests/openstack/requests/compute/keypair_tests.rb +30 -0
- data/tests/openstack/requests/compute/limit_tests.rb +59 -0
- data/tests/openstack/requests/compute/quota_tests.rb +60 -0
- data/tests/openstack/requests/compute/security_group_tests.rb +61 -0
- data/tests/openstack/requests/compute/server_tests.rb +289 -0
- data/tests/openstack/requests/compute/service_tests.rb +33 -0
- data/tests/openstack/requests/compute/tenant_tests.rb +19 -0
- data/tests/openstack/requests/compute/volume_tests.rb +38 -0
- data/tests/openstack/requests/identity/ec2_credentials_tests.rb +44 -0
- data/tests/openstack/requests/identity/helper.rb +13 -0
- data/tests/openstack/requests/identity/role_tests.rb +45 -0
- data/tests/openstack/requests/identity/tenant_tests.rb +56 -0
- data/tests/openstack/requests/identity/user_tests.rb +41 -0
- data/tests/openstack/requests/image/image_tests.rb +134 -0
- data/tests/openstack/requests/metering/meter_tests.rb +52 -0
- data/tests/openstack/requests/metering/resource_tests.rb +19 -0
- data/tests/openstack/requests/network/lb_health_monitor_tests.rb +93 -0
- data/tests/openstack/requests/network/lb_member_tests.rb +60 -0
- data/tests/openstack/requests/network/lb_pool_tests.rb +80 -0
- data/tests/openstack/requests/network/lb_vip_tests.rb +71 -0
- data/tests/openstack/requests/network/network_tests.rb +107 -0
- data/tests/openstack/requests/network/port_tests.rb +66 -0
- data/tests/openstack/requests/network/quota_tests.rb +65 -0
- data/tests/openstack/requests/network/router_tests.rb +73 -0
- data/tests/openstack/requests/network/security_group_rule_tests.rb +58 -0
- data/tests/openstack/requests/network/security_group_tests.rb +43 -0
- data/tests/openstack/requests/network/subnet_tests.rb +66 -0
- data/tests/openstack/requests/orchestration/stack_tests.rb +64 -0
- data/tests/openstack/requests/planning/.gitkeep +0 -0
- data/tests/openstack/requests/planning/plan_tests.rb +65 -0
- data/tests/openstack/requests/planning/role_tests.rb +16 -0
- data/tests/openstack/requests/storage/container_tests.rb +64 -0
- data/tests/openstack/requests/storage/large_object_tests.rb +372 -0
- data/tests/openstack/requests/storage/object_tests.rb +208 -0
- data/tests/openstack/requests/volume/availability_zone_tests.rb +13 -0
- data/tests/openstack/requests/volume/quota_tests.rb +50 -0
- data/tests/openstack/requests/volume/volume_type_tests.rb +32 -0
- data/tests/openstack/storage_tests.rb +18 -0
- data/tests/openstack/version_tests.rb +55 -0
- data/tests/openstack/volume_tests.rb +14 -0
- data/tests/ovirt/compute_tests.rb +25 -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_quotas_tests.rb +12 -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/ovirt/requests/compute/update_volume_tests.rb +20 -0
- data/tests/rackspace/auto_scale_tests.rb +83 -0
- data/tests/rackspace/block_storage_tests.rb +119 -0
- data/tests/rackspace/cdn_tests.rb +186 -0
- data/tests/rackspace/compute_tests.rb +100 -0
- data/tests/rackspace/compute_v2_tests.rb +118 -0
- data/tests/rackspace/databases_tests.rb +140 -0
- data/tests/rackspace/dns_tests.rb +110 -0
- data/tests/rackspace/helper.rb +106 -0
- data/tests/rackspace/identity_tests.rb +26 -0
- data/tests/rackspace/load_balancer_tests.rb +135 -0
- data/tests/rackspace/models/auto_scale/group_builder_tests.rb +145 -0
- data/tests/rackspace/models/auto_scale/group_tests.rb +35 -0
- data/tests/rackspace/models/auto_scale/groups_tests.rb +17 -0
- data/tests/rackspace/models/auto_scale/policies_tests.rb +24 -0
- data/tests/rackspace/models/auto_scale/policy_tests.rb +35 -0
- data/tests/rackspace/models/auto_scale/webhook_tests.rb +42 -0
- data/tests/rackspace/models/auto_scale/webhooks_tests.rb +28 -0
- data/tests/rackspace/models/block_storage/snapshot_tests.rb +25 -0
- data/tests/rackspace/models/block_storage/snapshots_tests.rb +18 -0
- data/tests/rackspace/models/block_storage/volume_tests.rb +31 -0
- data/tests/rackspace/models/block_storage/volume_types_tests.rb +18 -0
- data/tests/rackspace/models/block_storage/volumes_tests.rb +9 -0
- data/tests/rackspace/models/compute_v2/flavors_tests.rb +17 -0
- data/tests/rackspace/models/compute_v2/image_tests.rb +74 -0
- data/tests/rackspace/models/compute_v2/images_tests.rb +20 -0
- data/tests/rackspace/models/compute_v2/keypairs_tests.rb +47 -0
- data/tests/rackspace/models/compute_v2/metadata_tests.rb +44 -0
- data/tests/rackspace/models/compute_v2/network_tests.rb +10 -0
- data/tests/rackspace/models/compute_v2/networks_tests.rb +10 -0
- data/tests/rackspace/models/compute_v2/server_tests.rb +274 -0
- data/tests/rackspace/models/compute_v2/servers_tests.rb +22 -0
- data/tests/rackspace/models/compute_v2/virtual_interface_tests.rb +33 -0
- data/tests/rackspace/models/compute_v2/virtual_interfaces_tests.rb +24 -0
- data/tests/rackspace/models/databases/database_tests.rb +29 -0
- data/tests/rackspace/models/databases/databases_tests.rb +17 -0
- data/tests/rackspace/models/databases/flavors_tests.rb +20 -0
- data/tests/rackspace/models/databases/instance_tests.rb +43 -0
- data/tests/rackspace/models/databases/instances_tests.rb +14 -0
- data/tests/rackspace/models/databases/user_tests.rb +21 -0
- data/tests/rackspace/models/databases/users_tests.rb +21 -0
- data/tests/rackspace/models/dns/zone_tests.rb +14 -0
- data/tests/rackspace/models/dns/zones_tests.rb +36 -0
- data/tests/rackspace/models/identity/credentials_tests.rb +25 -0
- data/tests/rackspace/models/identity/roles_tests.rb +16 -0
- data/tests/rackspace/models/identity/service_catalog_tests.rb +154 -0
- data/tests/rackspace/models/identity/tenants_tests.rb +21 -0
- data/tests/rackspace/models/identity/user_tests.rb +17 -0
- data/tests/rackspace/models/identity/users_tests.rb +17 -0
- data/tests/rackspace/models/load_balancers/access_list_tests.rb +12 -0
- data/tests/rackspace/models/load_balancers/access_lists_tests.rb +12 -0
- data/tests/rackspace/models/load_balancers/load_balancer_tests.rb +229 -0
- data/tests/rackspace/models/load_balancers/load_balancers_tests.rb +19 -0
- data/tests/rackspace/models/load_balancers/node_tests.rb +19 -0
- data/tests/rackspace/models/load_balancers/nodes_tests.rb +12 -0
- data/tests/rackspace/models/load_balancers/virtual_ip_tests.rb +16 -0
- data/tests/rackspace/models/load_balancers/virtual_ips_tests.rb +12 -0
- data/tests/rackspace/models/monitoring/agent_token_tests.rb +9 -0
- data/tests/rackspace/models/monitoring/agent_tokens_tests.rb +9 -0
- data/tests/rackspace/models/monitoring/alarm_example_tests.rb +18 -0
- data/tests/rackspace/models/monitoring/alarm_examples_tests.rb +19 -0
- data/tests/rackspace/models/monitoring/alarm_tests.rb +59 -0
- data/tests/rackspace/models/monitoring/alarms_tests.rb +25 -0
- data/tests/rackspace/models/monitoring/check_tests.rb +49 -0
- data/tests/rackspace/models/monitoring/check_types_tests.rb +14 -0
- data/tests/rackspace/models/monitoring/checks_tests.rb +16 -0
- data/tests/rackspace/models/monitoring/data_points_tests.rb +19 -0
- data/tests/rackspace/models/monitoring/entities_tests.rb +14 -0
- data/tests/rackspace/models/monitoring/entity_tests.rb +26 -0
- data/tests/rackspace/models/monitoring/metric_tests.rb +19 -0
- data/tests/rackspace/models/monitoring/metrics_tests.rb +17 -0
- data/tests/rackspace/models/monitoring/notification_tests.rb +19 -0
- data/tests/rackspace/models/monitoring/notifications_tests.rb +10 -0
- data/tests/rackspace/models/networking/network_tests.rb +10 -0
- data/tests/rackspace/models/networking/networks_tests.rb +10 -0
- data/tests/rackspace/models/networking/virtual_interface_tests.rb +33 -0
- data/tests/rackspace/models/networking/virtual_interfaces_tests.rb +24 -0
- data/tests/rackspace/models/queues/claim_tests.rb +41 -0
- data/tests/rackspace/models/queues/claims_tests.rb +53 -0
- data/tests/rackspace/models/queues/message_tests.rb +49 -0
- data/tests/rackspace/models/queues/messages_tests.rb +16 -0
- data/tests/rackspace/models/queues/queue_tests.rb +37 -0
- data/tests/rackspace/models/queues/queues_tests.rb +8 -0
- data/tests/rackspace/models/storage/account_tests.rb +26 -0
- data/tests/rackspace/models/storage/directories_tests.rb +26 -0
- data/tests/rackspace/models/storage/directory_tests.rb +138 -0
- data/tests/rackspace/models/storage/file_tests.rb +400 -0
- data/tests/rackspace/models/storage/files_tests.rb +39 -0
- data/tests/rackspace/models/storage/metadata_tests.rb +208 -0
- data/tests/rackspace/monitoring_tests.rb +76 -0
- data/tests/rackspace/networking_tests.rb +118 -0
- data/tests/rackspace/queues_tests.rb +105 -0
- data/tests/rackspace/rackspace_tests.rb +56 -0
- data/tests/rackspace/requests/auto_scale/config_tests.rb +97 -0
- data/tests/rackspace/requests/auto_scale/group_tests.rb +50 -0
- data/tests/rackspace/requests/auto_scale/helper.rb +224 -0
- data/tests/rackspace/requests/auto_scale/policy_tests.rb +71 -0
- data/tests/rackspace/requests/auto_scale/webhook_tests.rb +58 -0
- data/tests/rackspace/requests/block_storage/snapshot_tests.rb +80 -0
- data/tests/rackspace/requests/block_storage/volume_tests.rb +75 -0
- data/tests/rackspace/requests/block_storage/volume_type_tests.rb +21 -0
- data/tests/rackspace/requests/cdn/cdn_tests.rb +75 -0
- data/tests/rackspace/requests/compute/address_tests.rb +42 -0
- data/tests/rackspace/requests/compute/flavor_tests.rb +39 -0
- data/tests/rackspace/requests/compute/helper.rb +10 -0
- data/tests/rackspace/requests/compute/image_tests.rb +70 -0
- data/tests/rackspace/requests/compute/resize_tests.rb +35 -0
- data/tests/rackspace/requests/compute/server_tests.rb +94 -0
- data/tests/rackspace/requests/compute_v2/address_tests.rb +45 -0
- data/tests/rackspace/requests/compute_v2/attachment_tests.rb +66 -0
- data/tests/rackspace/requests/compute_v2/flavor_tests.rb +47 -0
- data/tests/rackspace/requests/compute_v2/image_tests.rb +77 -0
- data/tests/rackspace/requests/compute_v2/keypair_tests.rb +55 -0
- data/tests/rackspace/requests/compute_v2/metadata_tests.rb +104 -0
- data/tests/rackspace/requests/compute_v2/network_tests.rb +49 -0
- data/tests/rackspace/requests/compute_v2/server_tests.rb +168 -0
- data/tests/rackspace/requests/compute_v2/virtual_interface_tests.rb +49 -0
- data/tests/rackspace/requests/databases/database_tests.rb +39 -0
- data/tests/rackspace/requests/databases/flavor_tests.rb +16 -0
- data/tests/rackspace/requests/databases/helper.rb +79 -0
- data/tests/rackspace/requests/databases/instance_tests.rb +77 -0
- data/tests/rackspace/requests/databases/user_tests.rb +37 -0
- data/tests/rackspace/requests/dns/dns_tests.rb +125 -0
- data/tests/rackspace/requests/dns/helper.rb +124 -0
- data/tests/rackspace/requests/dns/records_tests.rb +83 -0
- data/tests/rackspace/requests/identity/tenants_tests.rb +21 -0
- data/tests/rackspace/requests/identity/token_tests.rb +70 -0
- data/tests/rackspace/requests/identity/user_tests.rb +106 -0
- data/tests/rackspace/requests/load_balancers/access_list_tests.rb +56 -0
- data/tests/rackspace/requests/load_balancers/algorithm_tests.rb +19 -0
- data/tests/rackspace/requests/load_balancers/connection_logging_tests.rb +25 -0
- data/tests/rackspace/requests/load_balancers/connection_throttling_tests.rb +37 -0
- data/tests/rackspace/requests/load_balancers/content_caching_tests.rb +25 -0
- data/tests/rackspace/requests/load_balancers/error_page_tests.rb +31 -0
- data/tests/rackspace/requests/load_balancers/get_stats_tests.rb +13 -0
- data/tests/rackspace/requests/load_balancers/helper.rb +229 -0
- data/tests/rackspace/requests/load_balancers/load_balancer_tests.rb +86 -0
- data/tests/rackspace/requests/load_balancers/load_balancer_usage_tests.rb +19 -0
- data/tests/rackspace/requests/load_balancers/monitor_tests.rb +46 -0
- data/tests/rackspace/requests/load_balancers/node_tests.rb +86 -0
- data/tests/rackspace/requests/load_balancers/protocol_tests.rb +21 -0
- data/tests/rackspace/requests/load_balancers/session_persistence_tests.rb +33 -0
- data/tests/rackspace/requests/load_balancers/ssl_termination_tests.rb +38 -0
- data/tests/rackspace/requests/load_balancers/usage_tests.rb +19 -0
- data/tests/rackspace/requests/load_balancers/virtual_ip_tests.rb +40 -0
- data/tests/rackspace/requests/monitoring/agent_tests.rb +74 -0
- data/tests/rackspace/requests/monitoring/alarm_example_tests.rb +30 -0
- data/tests/rackspace/requests/monitoring/alarm_tests.rb +55 -0
- data/tests/rackspace/requests/monitoring/check_tests.rb +39 -0
- data/tests/rackspace/requests/monitoring/entity_tests.rb +36 -0
- data/tests/rackspace/requests/monitoring/helper.rb +139 -0
- data/tests/rackspace/requests/monitoring/list_tests.rb +83 -0
- data/tests/rackspace/requests/monitoring/notification_tests.rb +46 -0
- data/tests/rackspace/requests/networking/network_tests.rb +49 -0
- data/tests/rackspace/requests/networking/virtual_interface_tests.rb +49 -0
- data/tests/rackspace/requests/queues/claim_tests.rb +60 -0
- data/tests/rackspace/requests/queues/helper.rb +50 -0
- data/tests/rackspace/requests/queues/messages_tests.rb +54 -0
- data/tests/rackspace/requests/queues/queues_tests.rb +38 -0
- data/tests/rackspace/requests/storage/account_tests.rb +15 -0
- data/tests/rackspace/requests/storage/container_tests.rb +67 -0
- data/tests/rackspace/requests/storage/large_object_tests.rb +355 -0
- data/tests/rackspace/requests/storage/object_tests.rb +230 -0
- data/tests/rackspace/service_tests.rb +82 -0
- data/tests/rackspace/storage_tests.rb +128 -0
- data/tests/rackspace/url_encoding_tests.rb +5 -0
- data/tests/rage4/requests/dns/dns_tests.rb +0 -12
- data/tests/storage/helper.rb +9 -0
- data/tests/vcloud_director/models/compute/catalog_items_tests.rb +0 -1
- data/tests/vcloud_director/models/compute/vms_tests.rb +0 -2
- data/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +1 -1
- data/tests/vsphere/compute_tests.rb +53 -0
- data/tests/vsphere/models/compute/server_tests.rb +44 -0
- data/tests/vsphere/models/compute/servers_tests.rb +15 -0
- data/tests/vsphere/requests/compute/current_time_tests.rb +12 -0
- data/tests/vsphere/requests/compute/get_network_tests.rb +48 -0
- data/tests/vsphere/requests/compute/list_clusters_tests.rb +11 -0
- data/tests/vsphere/requests/compute/list_virtual_machines_tests.rb +38 -0
- data/tests/vsphere/requests/compute/set_vm_customvalue_tests.rb +20 -0
- data/tests/vsphere/requests/compute/vm_clone_tests.rb +50 -0
- data/tests/vsphere/requests/compute/vm_config_vnc_tests.rb +19 -0
- data/tests/vsphere/requests/compute/vm_destroy_tests.rb +17 -0
- data/tests/vsphere/requests/compute/vm_migrate_tests.rb +16 -0
- data/tests/vsphere/requests/compute/vm_power_off_tests.rb +26 -0
- data/tests/vsphere/requests/compute/vm_power_on_tests.rb +17 -0
- data/tests/vsphere/requests/compute/vm_reboot_tests.rb +26 -0
- data/tests/vsphere/requests/compute/vm_reconfig_cpus_tests.rb +19 -0
- data/tests/vsphere/requests/compute/vm_reconfig_hardware_tests.rb +19 -0
- data/tests/vsphere/requests/compute/vm_reconfig_memory_tests.rb +19 -0
- metadata +2851 -247
- data/gemfiles/Gemfile-1.9 +0 -16
- data/gemfiles/Gemfile-2.0 +0 -11
- data/gemfiles/Gemfile-edge-1.9 +0 -20
- data/gemfiles/Gemfile-edge-2.0 +0 -16
- data/lib/fog/cloudsigma/models/snapshot.rb +0 -77
- data/lib/fog/cloudsigma/models/snapshots.rb +0 -26
- data/lib/fog/cloudsigma/requests/clone_snapshot.rb +0 -31
- data/lib/fog/cloudsigma/requests/create_snapshot.rb +0 -27
- data/lib/fog/cloudsigma/requests/delete_snapshot.rb +0 -17
- data/lib/fog/cloudsigma/requests/get_snapshot.rb +0 -17
- data/lib/fog/cloudsigma/requests/list_snapshots.rb +0 -17
- data/lib/fog/cloudsigma/requests/update_snapshot.rb +0 -17
- data/lib/fog/linode/models/compute/node_balancer_flavor.rb +0 -13
- data/lib/fog/linode/models/compute/node_balancer_flavors.rb +0 -27
- data/lib/fog/linode/requests/compute/avail_nodebalancers.rb +0 -42
- data/lib/fog/opennebula/requests/compute/vm_suspend.rb +0 -31
- data/lib/fog/rage4/requests/dns/bulk_update_records.rb +0 -38
- data/lib/fog/vcloud_director/generators/compute/compose_common.rb +0 -122
- data/lib/fog/vcloud_director/generators/compute/compose_vapp.rb +0 -25
- data/lib/fog/vcloud_director/generators/compute/create_snapshot.rb +0 -25
- data/lib/fog/vcloud_director/generators/compute/instantiate_vapp_template_params.rb +0 -30
- data/lib/fog/vcloud_director/generators/compute/recompose_vapp.rb +0 -34
- data/lib/fog/vcloud_director/models/compute/template_vm.rb +0 -52
- data/lib/fog/vcloud_director/models/compute/template_vms.rb +0 -41
- data/lib/fog/vcloud_director/models/compute/vapp_template.rb +0 -26
- data/lib/fog/vcloud_director/models/compute/vapp_templates.rb +0 -40
- data/lib/fog/vcloud_director/parsers/compute/vm_parser_helper.rb +0 -62
- data/lib/fog/vcloud_director/requests/compute/get_template_vm.rb +0 -74
- data/lib/fog/vcloud_director/requests/compute/get_template_vms.rb +0 -41
- data/lib/fog/vcloud_director/requests/compute/post_compose_vapp.rb +0 -45
- data/lib/fog/vcloud_director/requests/compute/post_create_snapshot.rb +0 -21
- data/lib/fog/vcloud_director/requests/compute/post_recompose_vapp.rb +0 -21
- data/lib/fog/vcloud_director/requests/compute/post_reconfigure_vm.rb +0 -118
- data/spec/vcloud_director/generators/compute/instantiate_vapp_template_params_spec.rb +0 -68
- data/spec/vcloud_director/requests/compute/instantiate_vapp_template_spec.rb +0 -78
- data/spec/vcloud_director/spec_helper.rb +0 -11
- data/tests/cloudsigma/models/snapshot_tests.rb +0 -23
- data/tests/cloudsigma/models/snapshots_tests.rb +0 -15
- data/tests/cloudsigma/requests/snapshots_tests.rb +0 -83
- data/tests/linode/requests/compute/nodebalancers_tests.rb +0 -20
- data/tests/opennebula/requests/compute/vm_suspend_resume_tests.rb +0 -52
- data/tests/vcloud_director/fixtures/vapp.xml +0 -532
- data/tests/vcloud_director/fixtures/vm.xml +0 -213
- data/tests/vcloud_director/generators/compute/compose_vapp_tests.rb +0 -108
- data/tests/vcloud_director/models/compute/vapp_template_tests.rb +0 -29
@@ -0,0 +1,323 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://devstack.openstack.stack:35357/v3/users
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- fog/1.31.0 fog-core/1.31.1
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
X-Auth-Token:
|
17
|
+
- 0c4458de5ba5446885c65b1dedfb2404
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: ''
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Tue, 23 Jun 2015 15:09:17 GMT
|
25
|
+
Server:
|
26
|
+
- Apache/2.4.7 (Ubuntu)
|
27
|
+
Vary:
|
28
|
+
- X-Auth-Token
|
29
|
+
X-Openstack-Request-Id:
|
30
|
+
- req-57c3e3ec-4865-4e4b-91f5-707c94f23ea4
|
31
|
+
Content-Length:
|
32
|
+
- '1389'
|
33
|
+
Content-Type:
|
34
|
+
- application/json
|
35
|
+
body:
|
36
|
+
encoding: US-ASCII
|
37
|
+
string: ! '{"users": [{"name": "glance", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/07cfb841cddd46819e3dcd5df238ae04"},
|
38
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "07cfb841cddd46819e3dcd5df238ae04"},
|
39
|
+
{"name": "demo", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/11ba3db90590446fb6d7e0efe6c1f46a"},
|
40
|
+
"domain_id": "default", "enabled": true, "email": "demo@example.com", "id":
|
41
|
+
"11ba3db90590446fb6d7e0efe6c1f46a"}, {"name": "cinder", "links": {"self":
|
42
|
+
"http://devstack.openstack.stack:35357/v3/users/1523e8606bd1400cae36a40e0f3f817e"},
|
43
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "1523e8606bd1400cae36a40e0f3f817e"},
|
44
|
+
{"name": "nova", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/7afec08993c24bb09df141e513738030"},
|
45
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "7afec08993c24bb09df141e513738030"},
|
46
|
+
{"name": "u-foobar", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/938bd5585fd145efaadb4a7e588078c1"},
|
47
|
+
"domain_id": "default", "enabled": true, "email": "foobar@example.com", "id":
|
48
|
+
"938bd5585fd145efaadb4a7e588078c1"}, {"name": "admin", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/aa9f25defa6d4cafb48466df83106065"},
|
49
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "aa9f25defa6d4cafb48466df83106065"}],
|
50
|
+
"links": {"self": "http://devstack.openstack.stack:35357/v3/users", "previous": null,
|
51
|
+
"next": null}}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Tue, 23 Jun 2015 15:09:18 GMT
|
54
|
+
- request:
|
55
|
+
method: get
|
56
|
+
uri: http://devstack.openstack.stack:35357/v3/users/u-random-blah
|
57
|
+
body:
|
58
|
+
encoding: US-ASCII
|
59
|
+
string: ''
|
60
|
+
headers:
|
61
|
+
User-Agent:
|
62
|
+
- fog/1.31.0 fog-core/1.31.1
|
63
|
+
Content-Type:
|
64
|
+
- application/json
|
65
|
+
Accept:
|
66
|
+
- application/json
|
67
|
+
X-Auth-Token:
|
68
|
+
- 0c4458de5ba5446885c65b1dedfb2404
|
69
|
+
response:
|
70
|
+
status:
|
71
|
+
code: 404
|
72
|
+
message: ''
|
73
|
+
headers:
|
74
|
+
Date:
|
75
|
+
- Tue, 23 Jun 2015 15:09:18 GMT
|
76
|
+
Server:
|
77
|
+
- Apache/2.4.7 (Ubuntu)
|
78
|
+
Vary:
|
79
|
+
- X-Auth-Token
|
80
|
+
X-Openstack-Request-Id:
|
81
|
+
- req-65913a1e-fbfa-41d4-8270-c54676d18a82
|
82
|
+
Content-Length:
|
83
|
+
- '95'
|
84
|
+
Content-Type:
|
85
|
+
- application/json
|
86
|
+
body:
|
87
|
+
encoding: US-ASCII
|
88
|
+
string: ! '{"error": {"message": "Could not find user: u-random-blah", "code":
|
89
|
+
404, "title": "Not Found"}}'
|
90
|
+
http_version:
|
91
|
+
recorded_at: Tue, 23 Jun 2015 15:09:18 GMT
|
92
|
+
- request:
|
93
|
+
method: get
|
94
|
+
uri: http://devstack.openstack.stack:35357/v3/users?name=admin
|
95
|
+
body:
|
96
|
+
encoding: US-ASCII
|
97
|
+
string: ''
|
98
|
+
headers:
|
99
|
+
User-Agent:
|
100
|
+
- fog/1.31.0 fog-core/1.31.1
|
101
|
+
Content-Type:
|
102
|
+
- application/json
|
103
|
+
Accept:
|
104
|
+
- application/json
|
105
|
+
X-Auth-Token:
|
106
|
+
- 0c4458de5ba5446885c65b1dedfb2404
|
107
|
+
response:
|
108
|
+
status:
|
109
|
+
code: 200
|
110
|
+
message: ''
|
111
|
+
headers:
|
112
|
+
Date:
|
113
|
+
- Tue, 23 Jun 2015 15:09:18 GMT
|
114
|
+
Server:
|
115
|
+
- Apache/2.4.7 (Ubuntu)
|
116
|
+
Vary:
|
117
|
+
- X-Auth-Token
|
118
|
+
X-Openstack-Request-Id:
|
119
|
+
- req-10e51424-57f8-4986-b6e9-e9004abf7e27
|
120
|
+
Content-Length:
|
121
|
+
- '322'
|
122
|
+
Content-Type:
|
123
|
+
- application/json
|
124
|
+
body:
|
125
|
+
encoding: US-ASCII
|
126
|
+
string: ! '{"users": [{"name": "admin", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/aa9f25defa6d4cafb48466df83106065"},
|
127
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "aa9f25defa6d4cafb48466df83106065"}],
|
128
|
+
"links": {"self": "http://devstack.openstack.stack:35357/v3/users?name=admin", "previous":
|
129
|
+
null, "next": null}}'
|
130
|
+
http_version:
|
131
|
+
recorded_at: Tue, 23 Jun 2015 15:09:18 GMT
|
132
|
+
- request:
|
133
|
+
method: get
|
134
|
+
uri: http://devstack.openstack.stack:35357/v3/users
|
135
|
+
body:
|
136
|
+
encoding: US-ASCII
|
137
|
+
string: ''
|
138
|
+
headers:
|
139
|
+
User-Agent:
|
140
|
+
- fog/1.31.0 fog-core/1.31.1
|
141
|
+
Content-Type:
|
142
|
+
- application/json
|
143
|
+
Accept:
|
144
|
+
- application/json
|
145
|
+
X-Auth-Token:
|
146
|
+
- 0c4458de5ba5446885c65b1dedfb2404
|
147
|
+
response:
|
148
|
+
status:
|
149
|
+
code: 200
|
150
|
+
message: ''
|
151
|
+
headers:
|
152
|
+
Date:
|
153
|
+
- Tue, 23 Jun 2015 15:09:18 GMT
|
154
|
+
Server:
|
155
|
+
- Apache/2.4.7 (Ubuntu)
|
156
|
+
Vary:
|
157
|
+
- X-Auth-Token
|
158
|
+
X-Openstack-Request-Id:
|
159
|
+
- req-8d172234-2fa6-4a23-acd9-0626c87179ce
|
160
|
+
Content-Length:
|
161
|
+
- '1389'
|
162
|
+
Content-Type:
|
163
|
+
- application/json
|
164
|
+
body:
|
165
|
+
encoding: US-ASCII
|
166
|
+
string: ! '{"users": [{"name": "glance", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/07cfb841cddd46819e3dcd5df238ae04"},
|
167
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "07cfb841cddd46819e3dcd5df238ae04"},
|
168
|
+
{"name": "demo", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/11ba3db90590446fb6d7e0efe6c1f46a"},
|
169
|
+
"domain_id": "default", "enabled": true, "email": "demo@example.com", "id":
|
170
|
+
"11ba3db90590446fb6d7e0efe6c1f46a"}, {"name": "cinder", "links": {"self":
|
171
|
+
"http://devstack.openstack.stack:35357/v3/users/1523e8606bd1400cae36a40e0f3f817e"},
|
172
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "1523e8606bd1400cae36a40e0f3f817e"},
|
173
|
+
{"name": "nova", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/7afec08993c24bb09df141e513738030"},
|
174
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "7afec08993c24bb09df141e513738030"},
|
175
|
+
{"name": "u-foobar", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/938bd5585fd145efaadb4a7e588078c1"},
|
176
|
+
"domain_id": "default", "enabled": true, "email": "foobar@example.com", "id":
|
177
|
+
"938bd5585fd145efaadb4a7e588078c1"}, {"name": "admin", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/aa9f25defa6d4cafb48466df83106065"},
|
178
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "aa9f25defa6d4cafb48466df83106065"}],
|
179
|
+
"links": {"self": "http://devstack.openstack.stack:35357/v3/users", "previous": null,
|
180
|
+
"next": null}}'
|
181
|
+
http_version:
|
182
|
+
recorded_at: Tue, 23 Jun 2015 15:09:18 GMT
|
183
|
+
- request:
|
184
|
+
method: get
|
185
|
+
uri: http://devstack.openstack.stack:35357/v3/users
|
186
|
+
body:
|
187
|
+
encoding: US-ASCII
|
188
|
+
string: ''
|
189
|
+
headers:
|
190
|
+
User-Agent:
|
191
|
+
- fog/1.31.0 fog-core/1.31.1
|
192
|
+
Content-Type:
|
193
|
+
- application/json
|
194
|
+
Accept:
|
195
|
+
- application/json
|
196
|
+
X-Auth-Token:
|
197
|
+
- 0c4458de5ba5446885c65b1dedfb2404
|
198
|
+
response:
|
199
|
+
status:
|
200
|
+
code: 200
|
201
|
+
message: ''
|
202
|
+
headers:
|
203
|
+
Date:
|
204
|
+
- Tue, 23 Jun 2015 15:09:18 GMT
|
205
|
+
Server:
|
206
|
+
- Apache/2.4.7 (Ubuntu)
|
207
|
+
Vary:
|
208
|
+
- X-Auth-Token
|
209
|
+
X-Openstack-Request-Id:
|
210
|
+
- req-adcc2928-2293-4894-9063-10a079028e81
|
211
|
+
Content-Length:
|
212
|
+
- '1389'
|
213
|
+
Content-Type:
|
214
|
+
- application/json
|
215
|
+
body:
|
216
|
+
encoding: US-ASCII
|
217
|
+
string: ! '{"users": [{"name": "glance", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/07cfb841cddd46819e3dcd5df238ae04"},
|
218
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "07cfb841cddd46819e3dcd5df238ae04"},
|
219
|
+
{"name": "demo", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/11ba3db90590446fb6d7e0efe6c1f46a"},
|
220
|
+
"domain_id": "default", "enabled": true, "email": "demo@example.com", "id":
|
221
|
+
"11ba3db90590446fb6d7e0efe6c1f46a"}, {"name": "cinder", "links": {"self":
|
222
|
+
"http://devstack.openstack.stack:35357/v3/users/1523e8606bd1400cae36a40e0f3f817e"},
|
223
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "1523e8606bd1400cae36a40e0f3f817e"},
|
224
|
+
{"name": "nova", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/7afec08993c24bb09df141e513738030"},
|
225
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "7afec08993c24bb09df141e513738030"},
|
226
|
+
{"name": "u-foobar", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/938bd5585fd145efaadb4a7e588078c1"},
|
227
|
+
"domain_id": "default", "enabled": true, "email": "foobar@example.com", "id":
|
228
|
+
"938bd5585fd145efaadb4a7e588078c1"}, {"name": "admin", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/aa9f25defa6d4cafb48466df83106065"},
|
229
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "aa9f25defa6d4cafb48466df83106065"}],
|
230
|
+
"links": {"self": "http://devstack.openstack.stack:35357/v3/users", "previous": null,
|
231
|
+
"next": null}}'
|
232
|
+
http_version:
|
233
|
+
recorded_at: Tue, 23 Jun 2015 15:09:18 GMT
|
234
|
+
- request:
|
235
|
+
method: get
|
236
|
+
uri: http://devstack.openstack.stack:35357/v3/users
|
237
|
+
body:
|
238
|
+
encoding: US-ASCII
|
239
|
+
string: ''
|
240
|
+
headers:
|
241
|
+
User-Agent:
|
242
|
+
- fog/1.31.0 fog-core/1.31.1
|
243
|
+
Content-Type:
|
244
|
+
- application/json
|
245
|
+
Accept:
|
246
|
+
- application/json
|
247
|
+
X-Auth-Token:
|
248
|
+
- 0c4458de5ba5446885c65b1dedfb2404
|
249
|
+
response:
|
250
|
+
status:
|
251
|
+
code: 200
|
252
|
+
message: ''
|
253
|
+
headers:
|
254
|
+
Date:
|
255
|
+
- Tue, 23 Jun 2015 15:09:18 GMT
|
256
|
+
Server:
|
257
|
+
- Apache/2.4.7 (Ubuntu)
|
258
|
+
Vary:
|
259
|
+
- X-Auth-Token
|
260
|
+
X-Openstack-Request-Id:
|
261
|
+
- req-fc5ff8d3-1e0d-4575-b17d-8252c1b9373f
|
262
|
+
Content-Length:
|
263
|
+
- '1389'
|
264
|
+
Content-Type:
|
265
|
+
- application/json
|
266
|
+
body:
|
267
|
+
encoding: US-ASCII
|
268
|
+
string: ! '{"users": [{"name": "glance", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/07cfb841cddd46819e3dcd5df238ae04"},
|
269
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "07cfb841cddd46819e3dcd5df238ae04"},
|
270
|
+
{"name": "demo", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/11ba3db90590446fb6d7e0efe6c1f46a"},
|
271
|
+
"domain_id": "default", "enabled": true, "email": "demo@example.com", "id":
|
272
|
+
"11ba3db90590446fb6d7e0efe6c1f46a"}, {"name": "cinder", "links": {"self":
|
273
|
+
"http://devstack.openstack.stack:35357/v3/users/1523e8606bd1400cae36a40e0f3f817e"},
|
274
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "1523e8606bd1400cae36a40e0f3f817e"},
|
275
|
+
{"name": "nova", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/7afec08993c24bb09df141e513738030"},
|
276
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "7afec08993c24bb09df141e513738030"},
|
277
|
+
{"name": "u-foobar", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/938bd5585fd145efaadb4a7e588078c1"},
|
278
|
+
"domain_id": "default", "enabled": true, "email": "foobar@example.com", "id":
|
279
|
+
"938bd5585fd145efaadb4a7e588078c1"}, {"name": "admin", "links": {"self": "http://devstack.openstack.stack:35357/v3/users/aa9f25defa6d4cafb48466df83106065"},
|
280
|
+
"domain_id": "default", "enabled": true, "email": null, "id": "aa9f25defa6d4cafb48466df83106065"}],
|
281
|
+
"links": {"self": "http://devstack.openstack.stack:35357/v3/users", "previous": null,
|
282
|
+
"next": null}}'
|
283
|
+
http_version:
|
284
|
+
recorded_at: Tue, 23 Jun 2015 15:09:19 GMT
|
285
|
+
- request:
|
286
|
+
method: get
|
287
|
+
uri: http://devstack.openstack.stack:35357/v3/users?name=pimpernel
|
288
|
+
body:
|
289
|
+
encoding: US-ASCII
|
290
|
+
string: ''
|
291
|
+
headers:
|
292
|
+
User-Agent:
|
293
|
+
- fog/1.31.0 fog-core/1.31.1
|
294
|
+
Content-Type:
|
295
|
+
- application/json
|
296
|
+
Accept:
|
297
|
+
- application/json
|
298
|
+
X-Auth-Token:
|
299
|
+
- 0c4458de5ba5446885c65b1dedfb2404
|
300
|
+
response:
|
301
|
+
status:
|
302
|
+
code: 200
|
303
|
+
message: ''
|
304
|
+
headers:
|
305
|
+
Date:
|
306
|
+
- Tue, 23 Jun 2015 15:09:18 GMT
|
307
|
+
Server:
|
308
|
+
- Apache/2.4.7 (Ubuntu)
|
309
|
+
Vary:
|
310
|
+
- X-Auth-Token
|
311
|
+
X-Openstack-Request-Id:
|
312
|
+
- req-f7802cb3-9a40-40f3-a301-f73e6298fd9d
|
313
|
+
Content-Length:
|
314
|
+
- '119'
|
315
|
+
Content-Type:
|
316
|
+
- application/json
|
317
|
+
body:
|
318
|
+
encoding: US-ASCII
|
319
|
+
string: ! '{"users": [], "links": {"self": "http://devstack.openstack.stack:35357/v3/users?name=pimpernel",
|
320
|
+
"previous": null, "next": null}}'
|
321
|
+
http_version:
|
322
|
+
recorded_at: Tue, 23 Jun 2015 15:09:19 GMT
|
323
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,1016 @@
|
|
1
|
+
require 'fog/openstack/identity'
|
2
|
+
require 'fog/openstack/identity_v3'
|
3
|
+
|
4
|
+
if RUBY_VERSION =~ /1.8/
|
5
|
+
require File.expand_path('../shared_context', __FILE__)
|
6
|
+
else
|
7
|
+
require_relative './shared_context'
|
8
|
+
end
|
9
|
+
|
10
|
+
RSpec.describe Fog::Identity::OpenStack::V3 do
|
11
|
+
|
12
|
+
include_context 'OpenStack specs with VCR'
|
13
|
+
before :all do
|
14
|
+
setup_vcr_and_service(
|
15
|
+
:vcr_directory => 'spec/fog/openstack/identity_v3',
|
16
|
+
:service_class => Fog::Identity::OpenStack::V3
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'authenticates with password, userid and domain_id' do
|
21
|
+
VCR.use_cassette('authv3_a') do
|
22
|
+
Fog::Identity::OpenStack::V3.new(
|
23
|
+
:openstack_domain_id => ENV['OS_USER_DOMAIN_ID'] || 'default',
|
24
|
+
:openstack_api_key => ENV['OS_PASSWORD'] || 'password',
|
25
|
+
:openstack_userid => ENV['OS_USER_ID'] || 'aa9f25defa6d4cafb48466df83106065',
|
26
|
+
:openstack_region => ENV['OS_REGION_NAME'] || 'RegionOne',
|
27
|
+
:openstack_auth_url => "#{@os_auth_url}/auth/tokens")
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
it 'authenticates with password, username and domain_id' do
|
32
|
+
VCR.use_cassette('authv3_b') do
|
33
|
+
Fog::Identity::OpenStack::V3.new(
|
34
|
+
:openstack_domain_id => ENV['OS_USER_DOMAIN_ID'] || 'default',
|
35
|
+
:openstack_api_key => ENV['OS_PASSWORD'] || 'password',
|
36
|
+
:openstack_username => ENV['OS_USERNAME'] || 'admin',
|
37
|
+
:openstack_region => ENV['OS_REGION_NAME'] || 'RegionOne',
|
38
|
+
:openstack_auth_url => "#{@os_auth_url}/auth/tokens")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
it 'authenticates with password, username and domain_name' do
|
43
|
+
VCR.use_cassette('authv3_c') do
|
44
|
+
Fog::Identity::OpenStack::V3.new(
|
45
|
+
:openstack_user_domain => ENV['OS_USER_DOMAIN_NAME'] || 'Default',
|
46
|
+
:openstack_api_key => ENV['OS_PASSWORD'] || 'password',
|
47
|
+
:openstack_username => ENV['OS_USERNAME'] || 'admin',
|
48
|
+
:openstack_region => ENV['OS_REGION_NAME'] || 'RegionOne',
|
49
|
+
:openstack_auth_url => "#{@os_auth_url}/auth/tokens")
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
it 'authenticates in another region' do
|
54
|
+
VCR.use_cassette('idv3_endpoint') do
|
55
|
+
@endpoints_all = @service.endpoints.all
|
56
|
+
end
|
57
|
+
endpoints_in_region = @endpoints_all.select { |endpoint| endpoint.region == (ENV['OS_REGION_OTHER']||'europe') }
|
58
|
+
|
59
|
+
VCR.use_cassette('idv3_other_region') do
|
60
|
+
@fog = Fog::Identity::OpenStack::V3.new({
|
61
|
+
:openstack_region => ENV['OS_REGION_OTHER']||'europe',
|
62
|
+
:openstack_auth_url => "#{@os_auth_url}/auth/tokens",
|
63
|
+
:openstack_userid => ENV['OS_USER_ID'] || 'aa9f25defa6d4cafb48466df83106065',
|
64
|
+
:openstack_api_key => ENV['OS_PASSWORD'] || "password"
|
65
|
+
})
|
66
|
+
expect(@fog).to_not be_nil
|
67
|
+
end unless endpoints_in_region.empty?
|
68
|
+
end
|
69
|
+
|
70
|
+
it 'get an unscoped token, then reauthenticate with it' do
|
71
|
+
VCR.use_cassette('authv3_unscoped_reauth') do
|
72
|
+
|
73
|
+
id_v3 = Fog::Identity::OpenStack::V3.new(
|
74
|
+
:openstack_api_key => ENV['OS_PASSWORD'] || 'password',
|
75
|
+
:openstack_userid => ENV['OS_USER_ID'] || 'aa9f25defa6d4cafb48466df83106065',
|
76
|
+
:openstack_region => ENV['OS_REGION_NAME'] || 'RegionOne',
|
77
|
+
:openstack_auth_url => "#{@os_auth_url}/auth/tokens")
|
78
|
+
|
79
|
+
auth_params = {:provider => "openstack",
|
80
|
+
:openstack_auth_token => id_v3.credentials[:openstack_auth_token],
|
81
|
+
:openstack_auth_url => "#{@os_auth_url}/auth/tokens",
|
82
|
+
:openstack_region => ENV['OS_REGION_NAME'] || 'RegionOne'}
|
83
|
+
@fog2 = Fog::Identity::OpenStack::V3.new(auth_params)
|
84
|
+
|
85
|
+
expect(@fog2).to_not be_nil
|
86
|
+
token = @fog2.credentials[:openstack_auth_token]
|
87
|
+
expect(token).to_not be_nil
|
88
|
+
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
it 'authenticates with project scope' do
|
93
|
+
VCR.use_cassette('authv3_project') do
|
94
|
+
Fog::Identity::OpenStack::V3.new(
|
95
|
+
:openstack_project_name => ENV['OS_PROJECT_NAME'] || 'admin',
|
96
|
+
:openstack_domain_name => ENV['OS_USER_DOMAIN_NAME'] || 'Default',
|
97
|
+
:openstack_api_key => ENV['OS_PASSWORD'] || 'password',
|
98
|
+
:openstack_username => ENV['OS_USERNAME'] || 'admin',
|
99
|
+
:openstack_region => ENV['OS_REGION_NAME'] || 'RegionOne',
|
100
|
+
:openstack_auth_url => "#{@os_auth_url}/auth/tokens")
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
it 'get an unscoped token, then use it to get a scoped token' do
|
105
|
+
VCR.use_cassette('authv3_unscoped') do
|
106
|
+
|
107
|
+
id_v3 = Fog::Identity::OpenStack::V3.new(
|
108
|
+
:openstack_api_key => ENV['OS_PASSWORD'] || 'password',
|
109
|
+
:openstack_userid => ENV['OS_USER_ID']||'aa9f25defa6d4cafb48466df83106065',
|
110
|
+
:openstack_region => ENV['OS_REGION_NAME'] || 'RegionOne',
|
111
|
+
:openstack_auth_url => "#{@os_auth_url}/auth/tokens")
|
112
|
+
|
113
|
+
# Exchange it for a project-scoped token
|
114
|
+
auth = Fog::Identity::OpenStack::V3.new(
|
115
|
+
:openstack_project_name => ENV['OS_PROJECT_NAME'] || 'admin',
|
116
|
+
:openstack_domain_name => ENV['OS_USER_DOMAIN_NAME'] || 'Default',
|
117
|
+
:openstack_tenant => ENV['OS_USERNAME'] || 'admin',
|
118
|
+
:openstack_auth_token => id_v3.credentials[:openstack_auth_token],
|
119
|
+
:openstack_region => ENV['OS_REGION_NAME'] || 'RegionOne',
|
120
|
+
:openstack_auth_url => "#{@os_auth_url}/auth/tokens")
|
121
|
+
|
122
|
+
token = auth.credentials[:openstack_auth_token]
|
123
|
+
|
124
|
+
# We can use the unscoped token to validate the scoped token
|
125
|
+
validated_token = id_v3.tokens.validate(token)
|
126
|
+
expect(validated_token).to_not be_nil
|
127
|
+
|
128
|
+
id_v3.tokens.check(token)
|
129
|
+
expect { id_v3.tokens.check('random-token') }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
it "find specific user, lists users" do
|
134
|
+
VCR.use_cassette('idv3_users') do
|
135
|
+
|
136
|
+
expect { nonexistent_user = @service.users.find_by_id 'u-random-blah' }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
137
|
+
|
138
|
+
admin_user = @service.users.find_by_name ENV['OS_USERNAME'] || 'admin'
|
139
|
+
expect(admin_user.length).to be 1
|
140
|
+
|
141
|
+
users = @service.users
|
142
|
+
expect(users).to_not be_nil
|
143
|
+
expect(users.length).to_not be 0
|
144
|
+
|
145
|
+
users_all = @service.users.all
|
146
|
+
expect(users_all).to_not be_nil
|
147
|
+
expect(users_all.length).to_not be 0
|
148
|
+
|
149
|
+
admin_by_id = @service.users.find_by_id admin_user.first.id
|
150
|
+
expect(admin_by_id).to_not be_nil
|
151
|
+
|
152
|
+
expect(@service.users.find_by_name('pimpernel').length).to be 0
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
it 'CRUD users' do
|
157
|
+
VCR.use_cassette('idv3_user_crud') do
|
158
|
+
|
159
|
+
# Make sure there are no existing users called foobar or baz
|
160
|
+
['foobar', 'baz'].each do |username|
|
161
|
+
user = @service.users.find_by_name(username).first
|
162
|
+
user.update(:enabled => false) if user
|
163
|
+
user.destroy if user
|
164
|
+
end
|
165
|
+
expect(@service.users.find_by_name('foobar').length).to be 0
|
166
|
+
expect(@service.users.find_by_name('baz').length).to be 0
|
167
|
+
|
168
|
+
# Create a user called foobar
|
169
|
+
foobar_user = @service.users.create(:name => 'foobar',
|
170
|
+
:email => 'foobar@example.com',
|
171
|
+
:password => 's3cret!')
|
172
|
+
foobar_id = foobar_user.id
|
173
|
+
expect(@service.users.find_by_name('foobar').length).to be 1
|
174
|
+
|
175
|
+
# Rename it to baz and disable it (required so we can delete it)
|
176
|
+
foobar_user.update(:name => 'baz', :enabled => false)
|
177
|
+
expect(foobar_user.name).to eq 'baz'
|
178
|
+
|
179
|
+
# Read the user freshly and check the name & enabled state
|
180
|
+
expect(@service.users.find_by_name('baz').length).to be 1
|
181
|
+
baz_user = @service.users.find_by_id foobar_id
|
182
|
+
expect(baz_user).to_not be_nil
|
183
|
+
expect(baz_user.name).to eq 'baz'
|
184
|
+
expect(baz_user.email).to eq 'foobar@example.com'
|
185
|
+
expect(baz_user.enabled).to be false
|
186
|
+
|
187
|
+
# Try to create the user again
|
188
|
+
expect { @service.users.create(:name => 'baz',
|
189
|
+
:email => 'foobar@example.com',
|
190
|
+
:password => 's3cret!') }.to raise_error(Excon::Errors::Conflict)
|
191
|
+
|
192
|
+
# Delete the user
|
193
|
+
baz_user.destroy
|
194
|
+
# Check that the deletion worked
|
195
|
+
expect { @service.users.find_by_id foobar_id }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
196
|
+
expect(@service.users.all.select { |user| ['foobar', 'baz'].include? user.name }.length).to be 0
|
197
|
+
expect(@service.users.find_by_name('foobar').length).to be 0
|
198
|
+
expect(@service.users.find_by_name('baz').length).to be 0
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
it "CRUD & manipulate groups" do
|
203
|
+
VCR.use_cassette('idv3_group_crud_mutation') do
|
204
|
+
|
205
|
+
# Make sure there are no existing groups called foobar or baz
|
206
|
+
@service.groups.all.select { |group| ['foobar', 'baz'].include? group.name }.each do |group|
|
207
|
+
group.destroy
|
208
|
+
end
|
209
|
+
expect(@service.groups.all.select { |group| ['foobar', 'baz'].include? group.name }.length).to be 0
|
210
|
+
|
211
|
+
# Create a group called foobar
|
212
|
+
foobar_group = @service.groups.create(:name => 'foobar', :description => "Group of Foobar users")
|
213
|
+
foobar_id = foobar_group.id
|
214
|
+
expect(@service.groups.all.select { |group| group.name == 'foobar' }.length).to be 1
|
215
|
+
|
216
|
+
# Rename it to baz
|
217
|
+
foobar_group.update(:name => 'baz', :description => "Group of Baz users")
|
218
|
+
expect(foobar_group.name).to eq 'baz'
|
219
|
+
|
220
|
+
# Read the group freshly and check the name
|
221
|
+
expect(@service.groups.all.select { |group| group.name == 'baz' }.length).to be 1
|
222
|
+
baz_group = @service.groups.find_by_id foobar_id
|
223
|
+
expect(baz_group).to_not be_nil
|
224
|
+
expect(baz_group.name).to eq 'baz'
|
225
|
+
|
226
|
+
# Add users to the group
|
227
|
+
#foobar_user1 = @service.users.find_by_name('foobar1').first
|
228
|
+
#foobar_user1.destroy if foobar_user1
|
229
|
+
foobar_user1 = @service.users.create(:name => 'foobar1',
|
230
|
+
:email => 'foobar1@example.com',
|
231
|
+
:password => 's3cret!1')
|
232
|
+
#foobar_user2 = @service.users.find_by_name('foobar2').first
|
233
|
+
#foobar_user2.destroy if foobar_user2
|
234
|
+
foobar_user2 = @service.users.create(:name => 'foobar2',
|
235
|
+
:email => 'foobar2@example.com',
|
236
|
+
:password => 's3cret!2')
|
237
|
+
|
238
|
+
expect(foobar_user1.groups.length).to be 0
|
239
|
+
expect(baz_group.users.length).to be 0
|
240
|
+
|
241
|
+
baz_group.add_user(foobar_user1.id)
|
242
|
+
|
243
|
+
# Check that a user is in the group
|
244
|
+
expect(foobar_user1.groups.length).to be 1
|
245
|
+
expect(baz_group.contains_user? foobar_user1.id).to be true
|
246
|
+
|
247
|
+
baz_group.add_user(foobar_user2.id)
|
248
|
+
|
249
|
+
# List users in the group
|
250
|
+
expect(baz_group.users.length).to be 2
|
251
|
+
|
252
|
+
|
253
|
+
# Remove a user from the group
|
254
|
+
baz_group.remove_user(foobar_user1.id)
|
255
|
+
expect(baz_group.contains_user? foobar_user1.id).to be false
|
256
|
+
expect(baz_group.users.length).to be 1
|
257
|
+
|
258
|
+
# Delete the users and make sure they are no longer in the group
|
259
|
+
foobar_user1.destroy
|
260
|
+
foobar_user2.destroy
|
261
|
+
expect(baz_group.contains_user? foobar_user2.id).to be false
|
262
|
+
expect(baz_group.users.length).to be 0
|
263
|
+
|
264
|
+
# Delete the group
|
265
|
+
baz_group.destroy
|
266
|
+
expect { @service.groups.find_by_id foobar_id }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
267
|
+
expect(@service.groups.all.select { |group| ['foobar', 'baz'].include? group.name }.length).to be 0
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
it "gets a token, checks it and then revokes it" do
|
272
|
+
VCR.use_cassette('idv3_token') do
|
273
|
+
auth = {:auth => {:identity => {:methods => %w{password},
|
274
|
+
:password => {:user => {:id => ENV['OS_USER_ID']||'aa9f25defa6d4cafb48466df83106065',
|
275
|
+
:password => ENV['OS_PASSWORD']||'password'}}},
|
276
|
+
:scope => {:project => {:domain => {:name => ENV['OS_USER_DOMAIN_NAME']||'Default'},
|
277
|
+
:name => ENV['OS_PROJECT_NAME']||'admin'}}}}
|
278
|
+
|
279
|
+
token = @service.tokens.authenticate(auth)
|
280
|
+
expect(token).to_not be_nil
|
281
|
+
|
282
|
+
validated_token = @service.tokens.validate token.value
|
283
|
+
expect(validated_token).to_not be_nil
|
284
|
+
|
285
|
+
@service.tokens.check(token.value)
|
286
|
+
@service.tokens.revoke(token.value)
|
287
|
+
|
288
|
+
expect { @service.tokens.check(token.value) }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
it 'authenticates with a token' do
|
293
|
+
VCR.use_cassette('authv3_token') do
|
294
|
+
# Setup - get a non-admin token to check by using username/password authentication to start with
|
295
|
+
auth_url = "#{@os_auth_url}/auth/tokens"
|
296
|
+
|
297
|
+
begin
|
298
|
+
|
299
|
+
foobar_user = @service.users.create(:name => 'foobar_385',
|
300
|
+
:email => 'foobar_demo@example.com',
|
301
|
+
:domain_id => ENV['OS_USER_DOMAIN_ID'] || 'default',
|
302
|
+
:password => 's3cret!')
|
303
|
+
|
304
|
+
foobar_role = @service.roles.create(:name => 'foobar_role390')
|
305
|
+
foobar_user.grant_role(foobar_role.id)
|
306
|
+
|
307
|
+
nonadmin_v3 = Fog::Identity::OpenStack::V3.new(
|
308
|
+
:openstack_domain_id => foobar_user.domain_id,
|
309
|
+
:openstack_api_key => 's3cret!',
|
310
|
+
:openstack_username => 'foobar_385',
|
311
|
+
:openstack_region => ENV['OS_REGION_NAME']||'europe',
|
312
|
+
:openstack_auth_url => auth_url)
|
313
|
+
|
314
|
+
# Test - check the token validity by using it to create a new Fog::Identity::OpenStack::V3 instance
|
315
|
+
token_check = Fog::Identity::OpenStack::V3.new(
|
316
|
+
:openstack_auth_token => nonadmin_v3.auth_token,
|
317
|
+
:openstack_region => ENV['OS_REGION_NAME']||'europe',
|
318
|
+
:openstack_auth_url => auth_url)
|
319
|
+
|
320
|
+
expect(token_check).to_not be_nil
|
321
|
+
|
322
|
+
expect { Fog::Identity::OpenStack::V3.new(
|
323
|
+
:openstack_auth_token => 'blahblahblah',
|
324
|
+
:openstack_region => ENV['OS_REGION_NAME']||'europe',
|
325
|
+
:openstack_auth_url => auth_url) }.to raise_error(Excon::Errors::NotFound)
|
326
|
+
ensure
|
327
|
+
# Clean up
|
328
|
+
foobar_user = @service.users.find_by_name('foobar_385').first unless foobar_user
|
329
|
+
foobar_user.destroy if foobar_user
|
330
|
+
foobar_role = @service.roles.all.select { |role| role.name == 'foobar_role390' }.first unless foobar_role
|
331
|
+
foobar_role.destroy if foobar_role
|
332
|
+
end
|
333
|
+
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
it "lists domains" do
|
338
|
+
VCR.use_cassette('idv3_domain') do
|
339
|
+
|
340
|
+
domains = @service.domains
|
341
|
+
expect(domains).to_not be_nil
|
342
|
+
expect(domains.length).to_not be 0
|
343
|
+
|
344
|
+
domains_all = @service.domains.all
|
345
|
+
expect(domains_all).to_not be_nil
|
346
|
+
expect(domains_all.length).to_not be 0
|
347
|
+
|
348
|
+
default_domain = @service.domains.find_by_id ENV['OS_USER_DOMAIN_ID']||'default'
|
349
|
+
expect(default_domain).to_not be_nil
|
350
|
+
|
351
|
+
expect { @service.domains.find_by_id 'atlantis' }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
352
|
+
end
|
353
|
+
end
|
354
|
+
|
355
|
+
it "CRUD domains" do
|
356
|
+
VCR.use_cassette('idv3_domain_crud') do
|
357
|
+
|
358
|
+
begin
|
359
|
+
# Create a domain called foobar
|
360
|
+
foobar_domain = @service.domains.create(:name => 'foobar')
|
361
|
+
foobar_id = foobar_domain.id
|
362
|
+
expect(@service.domains.all(:name => 'foobar').length).to be 1
|
363
|
+
|
364
|
+
# Rename it to baz and disable it (required so we can delete it)
|
365
|
+
foobar_domain.update(:name => 'baz', :enabled => false)
|
366
|
+
expect(foobar_domain.name).to eq 'baz'
|
367
|
+
|
368
|
+
# Read the domain freshly and check the name & enabled state
|
369
|
+
expect(@service.domains.all(:name => 'baz').length).to be 1
|
370
|
+
baz_domain = @service.domains.find_by_id foobar_id
|
371
|
+
expect(baz_domain).to_not be_nil
|
372
|
+
expect(baz_domain.name).to eq 'baz'
|
373
|
+
expect(baz_domain.enabled).to be false
|
374
|
+
ensure
|
375
|
+
# Delete the domains
|
376
|
+
begin
|
377
|
+
baz_domain.update(:enabled => false) if baz_domain
|
378
|
+
baz_domain.destroy if baz_domain
|
379
|
+
foobar_domain.update(:enabled => false) if foobar_domain
|
380
|
+
foobar_domain.destroy if foobar_domain
|
381
|
+
rescue
|
382
|
+
end
|
383
|
+
# Check that the deletion worked
|
384
|
+
expect { @service.domains.find_by_id foobar_id }.to raise_error(Fog::Identity::OpenStack::NotFound) if foobar_id
|
385
|
+
['foobar', 'baz'].each do |domain_name|
|
386
|
+
expect(@service.domains.all(:name => domain_name).length).to be 0
|
387
|
+
end
|
388
|
+
end
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
it "Manipulates roles on domains" do
|
393
|
+
# Note that the domain is implicit in the user operations here
|
394
|
+
|
395
|
+
VCR.use_cassette('idv3_domain_roles_mutation') do
|
396
|
+
begin
|
397
|
+
foobar_user = @service.users.create(:name => 'foobar_role_user',
|
398
|
+
:email => 'foobar@example.com',
|
399
|
+
:password => 's3cret!')
|
400
|
+
|
401
|
+
# User has no roles initially
|
402
|
+
expect(foobar_user.roles.length).to be 0
|
403
|
+
|
404
|
+
# Create a role and add it to the user in the user's domain
|
405
|
+
foobar_role = @service.roles.create(:name => 'foobar_role')
|
406
|
+
foobar_user.grant_role(foobar_role.id)
|
407
|
+
expect(foobar_user.roles.length).to be 1
|
408
|
+
assignments = @service.role_assignments.all(:user_id => foobar_user.id)
|
409
|
+
expect(assignments.length).to be 1
|
410
|
+
expect(assignments.first.role['id']).to eq foobar_role.id
|
411
|
+
expect(assignments.first.user['id']).to eq foobar_user.id
|
412
|
+
expect(assignments.first.scope['domain']['id']).to eq foobar_user.domain_id
|
413
|
+
expect(assignments.first.links['assignment'].end_with? "/v3/domains/#{foobar_user.domain_id}/users/#{foobar_user.id}/roles/#{foobar_role.id}").to be true
|
414
|
+
|
415
|
+
# Quick test of @service.role_assignments.all while we're at it
|
416
|
+
all_assignments = @service.role_assignments.all
|
417
|
+
expect(all_assignments.length).to be >= 1
|
418
|
+
|
419
|
+
# Check that the user has the role
|
420
|
+
expect(foobar_user.check_role(foobar_role.id)).to be true
|
421
|
+
|
422
|
+
# Revoke the role from the user
|
423
|
+
foobar_user.revoke_role(foobar_role.id)
|
424
|
+
expect(foobar_user.check_role(foobar_role.id)).to be false
|
425
|
+
ensure
|
426
|
+
foobar_user = @service.users.find_by_name('u-foobar_role_user').first unless foobar_user
|
427
|
+
foobar_user.destroy if foobar_user
|
428
|
+
foobar_role = @service.roles.all.select { |role| role.name == 'foobar_role' }.first unless foobar_role
|
429
|
+
foobar_role.destroy if foobar_role
|
430
|
+
end
|
431
|
+
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
it "Manipulates roles on domain groups" do
|
436
|
+
VCR.use_cassette('idv3_domain_group_roles_mutation') do
|
437
|
+
|
438
|
+
begin
|
439
|
+
# Create a domain called foobar
|
440
|
+
foobar_domain = @service.domains.create(:name => 'd-foobar')
|
441
|
+
|
442
|
+
# Create a group in this domain
|
443
|
+
foobar_group = @service.groups.create(:name => 'g-foobar',
|
444
|
+
:description => "Group of Foobar users",
|
445
|
+
:domain_id => foobar_domain.id)
|
446
|
+
|
447
|
+
# Create a user in the domain
|
448
|
+
foobar_user = @service.users.create(:name => 'u-foobar_foobar',
|
449
|
+
:email => 'foobar@example.com',
|
450
|
+
:password => 's3cret!',
|
451
|
+
:domain_id => foobar_domain.id)
|
452
|
+
|
453
|
+
# User has no roles initially
|
454
|
+
expect(foobar_user.roles.length).to be 0
|
455
|
+
|
456
|
+
# Create a role and add it to the domain group
|
457
|
+
foobar_role = @service.roles.all.select { |role| role.name == 'foobar_role' }.first
|
458
|
+
foobar_role.destroy if foobar_role
|
459
|
+
foobar_role = @service.roles.create(:name => 'foobar_role')
|
460
|
+
|
461
|
+
foobar_group.grant_role foobar_role.id
|
462
|
+
expect(foobar_group.roles.length).to be 1
|
463
|
+
|
464
|
+
# Add user to the group and check that it inherits the role
|
465
|
+
expect(foobar_user.check_role foobar_role.id).to be false
|
466
|
+
expect(@service.role_assignments.all(:user_id => foobar_user.id, :effective => true).length).to be 0
|
467
|
+
foobar_group.add_user foobar_user.id
|
468
|
+
expect(foobar_user.check_role foobar_role.id).to be false # Still false in absolute assignment terms
|
469
|
+
assignments = @service.role_assignments.all(:user_id => foobar_user.id, :effective => true)
|
470
|
+
expect(assignments.length).to be 1
|
471
|
+
expect(assignments.first.role['id']).to eq foobar_role.id
|
472
|
+
expect(assignments.first.user['id']).to eq foobar_user.id
|
473
|
+
expect(assignments.first.scope['domain']['id']).to eq foobar_user.domain_id
|
474
|
+
expect(assignments.first.links['assignment'].end_with? "/v3/domains/#{foobar_domain.id}/groups/#{foobar_group.id}/roles/#{foobar_role.id}").to be true
|
475
|
+
expect(assignments.first.links['membership'].end_with? "/v3/groups/#{foobar_group.id}/users/#{foobar_user.id}").to be true
|
476
|
+
|
477
|
+
group_assignments = @service.role_assignments.all(:group_id => foobar_group.id)
|
478
|
+
expect(group_assignments.length).to be 1
|
479
|
+
expect(group_assignments.first.role['id']).to eq foobar_role.id
|
480
|
+
expect(group_assignments.first.group['id']).to eq foobar_group.id
|
481
|
+
expect(group_assignments.first.scope['domain']['id']).to eq foobar_user.domain_id
|
482
|
+
expect(group_assignments.first.links['assignment'].end_with? "/v3/domains/#{foobar_domain.id}/groups/#{foobar_group.id}/roles/#{foobar_role.id}").to be true
|
483
|
+
|
484
|
+
# Revoke the role from the group and check the user no longer has it
|
485
|
+
foobar_group.revoke_role foobar_role.id
|
486
|
+
expect(@service.role_assignments.all(:user_id => foobar_user.id, :effective => true).length).to be 0
|
487
|
+
ensure
|
488
|
+
# Clean up
|
489
|
+
foobar_user = @service.users.find_by_name('u-foobar_foobar').first unless foobar_user
|
490
|
+
foobar_user.destroy if foobar_user
|
491
|
+
foobar_group = @service.groups.all.select { |group| group.name == 'g-foobar' }.first unless foobar_group
|
492
|
+
foobar_group.destroy if foobar_group
|
493
|
+
foobar_role = @service.roles.all.select { |role| role.name == 'foobar_role' }.first unless foobar_role
|
494
|
+
foobar_role.destroy if foobar_role
|
495
|
+
foobar_domain = @service.domains.all.select { |domain| domain.name == 'd-foobar' }.first unless foobar_domain
|
496
|
+
foobar_domain.update(:enabled => false) if foobar_domain
|
497
|
+
foobar_domain.destroy if foobar_domain
|
498
|
+
end
|
499
|
+
end
|
500
|
+
end
|
501
|
+
|
502
|
+
it "lists roles" do
|
503
|
+
VCR.use_cassette('idv3_role') do
|
504
|
+
|
505
|
+
roles = @service.roles
|
506
|
+
expect(roles).to_not be_nil
|
507
|
+
expect(roles.length).to_not be 0
|
508
|
+
|
509
|
+
roles_all = @service.roles.all
|
510
|
+
expect(roles_all).to_not be_nil
|
511
|
+
expect(roles_all.length).to_not be 0
|
512
|
+
|
513
|
+
role_by_id = @service.roles.find_by_id roles_all.first.id
|
514
|
+
expect(role_by_id).to_not be_nil
|
515
|
+
|
516
|
+
expect { @service.roles.find_by_id 'atlantis' }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
517
|
+
end
|
518
|
+
end
|
519
|
+
|
520
|
+
it "CRUD roles" do
|
521
|
+
VCR.use_cassette('idv3_role_crud') do
|
522
|
+
|
523
|
+
begin
|
524
|
+
# Create a role called foobar
|
525
|
+
foobar_role = @service.roles.create(:name => 'foobar23')
|
526
|
+
foobar_id = foobar_role.id
|
527
|
+
expect(@service.roles.all(:name => 'foobar23').length).to be 1
|
528
|
+
|
529
|
+
# Rename it to baz
|
530
|
+
foobar_role.update(:name => 'baz23')
|
531
|
+
expect(foobar_role.name).to eq 'baz23'
|
532
|
+
|
533
|
+
# Read the role freshly and check the name & enabled state
|
534
|
+
expect(@service.roles.all(:name => 'baz23').length).to be 1
|
535
|
+
baz_role = @service.roles.find_by_id foobar_id
|
536
|
+
expect(baz_role).to_not be_nil
|
537
|
+
expect(baz_role.name).to eq 'baz23'
|
538
|
+
ensure
|
539
|
+
# Delete the role
|
540
|
+
baz_role.destroy if baz_role
|
541
|
+
# Check that the deletion worked
|
542
|
+
expect { @service.roles.find_by_id foobar_id }.to raise_error(Fog::Identity::OpenStack::NotFound) if foobar_id
|
543
|
+
['foobar23', 'baz23'].each do |role_name|
|
544
|
+
expect(@service.roles.all(:name => role_name).length).to be 0
|
545
|
+
end
|
546
|
+
end
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
550
|
+
it "lists projects" do
|
551
|
+
VCR.use_cassette('idv3_project') do
|
552
|
+
|
553
|
+
projects = @service.projects
|
554
|
+
expect(projects).to_not be_nil
|
555
|
+
expect(projects.length).to_not be 0
|
556
|
+
|
557
|
+
projects_all = @service.projects.all
|
558
|
+
expect(projects_all).to_not be_nil
|
559
|
+
expect(projects_all.length).to_not be 0
|
560
|
+
project_byid = @service.projects.find_by_id projects_all.first.id
|
561
|
+
expect(project_byid).to_not be_nil
|
562
|
+
|
563
|
+
expect { @service.projects.find_by_id 'atlantis' }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
564
|
+
end
|
565
|
+
end
|
566
|
+
|
567
|
+
it "CRUD projects" do
|
568
|
+
VCR.use_cassette('idv3_project_crud') do
|
569
|
+
|
570
|
+
default_domain = @service.domains.find_by_id ENV['OS_USER_DOMAIN_ID']||'default'
|
571
|
+
|
572
|
+
begin
|
573
|
+
# Create a project called foobar - should not work without domain id?
|
574
|
+
foobar_project = @service.projects.create(:name => 'p-foobar46')
|
575
|
+
foobar_id = foobar_project.id
|
576
|
+
expect(@service.projects.all(:name => 'p-foobar46').length).to be 1
|
577
|
+
expect(foobar_project.domain_id).to eq default_domain.id
|
578
|
+
|
579
|
+
# Rename it to baz and disable it (required so we can delete it)
|
580
|
+
foobar_project.update(:name => 'p-baz46', :enabled => false)
|
581
|
+
expect(foobar_project.name).to eq 'p-baz46'
|
582
|
+
|
583
|
+
# Read the project freshly and check the name & enabled state
|
584
|
+
expect(@service.projects.all(:name => 'p-baz46').length).to be 1
|
585
|
+
baz_project = @service.projects.find_by_id foobar_id
|
586
|
+
expect(baz_project).to_not be_nil
|
587
|
+
expect(baz_project.name).to eq 'p-baz46'
|
588
|
+
expect(baz_project.enabled).to be false
|
589
|
+
ensure
|
590
|
+
# Delete the project
|
591
|
+
baz_project.destroy
|
592
|
+
|
593
|
+
# Check that the deletion worked
|
594
|
+
expect { @service.projects.find_by_id foobar_id }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
595
|
+
['p-foobar46', 'p-baz46'].each do |project_name|
|
596
|
+
expect(@service.projects.all(:name => project_name).length).to be 0
|
597
|
+
end
|
598
|
+
end
|
599
|
+
end
|
600
|
+
end
|
601
|
+
|
602
|
+
it "CRUD & list hierarchical projects" do
|
603
|
+
VCR.use_cassette('idv3_project_hier_crud_list') do
|
604
|
+
|
605
|
+
default_domain = @service.domains.find_by_id ENV['OS_USER_DOMAIN_ID']||'default'
|
606
|
+
|
607
|
+
begin
|
608
|
+
# Create a project called foobar
|
609
|
+
foobar_project = @service.projects.create(:name => 'p-foobar67')
|
610
|
+
foobar_id = foobar_project.id
|
611
|
+
|
612
|
+
# Create a sub-project called baz
|
613
|
+
baz_project = @service.projects.create(:name => 'p-baz67', :parent_id => foobar_id)
|
614
|
+
baz_id = baz_project.id
|
615
|
+
|
616
|
+
expect(baz_project.parent_id).to eq foobar_id
|
617
|
+
|
618
|
+
# Read the project freshly and check the parent_id
|
619
|
+
fresh_baz_project = @service.projects.all(:name => 'p-baz67').first
|
620
|
+
expect(fresh_baz_project).to_not be_nil
|
621
|
+
expect(fresh_baz_project.parent_id).to eq foobar_id
|
622
|
+
|
623
|
+
# Create another sub-project called boo
|
624
|
+
boo_project = @service.projects.create(:name => 'p-boo67', :parent_id => foobar_id)
|
625
|
+
boo_id = boo_project.id
|
626
|
+
|
627
|
+
# Create a sub-project of boo called booboo
|
628
|
+
booboo_project = @service.projects.create(:name => 'p-booboo67', :parent_id => boo_id)
|
629
|
+
booboo_id = booboo_project.id
|
630
|
+
|
631
|
+
# Make sure we have a role on all these projects (needed for subtree_as_list and parents_as_list)
|
632
|
+
prj_role = @service.roles.create(:name => 'r-project67')
|
633
|
+
[foobar_project, baz_project, boo_project, booboo_project].each do |project|
|
634
|
+
project.grant_role_to_user(prj_role.id, @service.current_user_id)
|
635
|
+
end
|
636
|
+
|
637
|
+
# Get the children of foobar, as a tree of IDs
|
638
|
+
foobar_kids = @service.projects.find_by_id(foobar_id, :subtree_as_ids).subtree
|
639
|
+
expect(foobar_kids.keys.length).to eq 2
|
640
|
+
|
641
|
+
boo_index = foobar_kids.keys.index boo_id
|
642
|
+
expect(boo_index).to_not be_nil
|
643
|
+
|
644
|
+
foobar_child_id = foobar_kids.keys[boo_index]
|
645
|
+
expect(foobar_kids[foobar_child_id].length).to eq 1
|
646
|
+
foobar_grandchild_id = foobar_kids[foobar_child_id].keys.first
|
647
|
+
expect(foobar_grandchild_id).to eq booboo_id
|
648
|
+
|
649
|
+
# Get the children of foobar, as a list of objects
|
650
|
+
foobar_kids = @service.projects.find_by_id(foobar_id, :subtree_as_list).subtree
|
651
|
+
expect(foobar_kids.length).to eq 3
|
652
|
+
expect([foobar_kids[0].id,foobar_kids[1].id,foobar_kids[2].id].sort
|
653
|
+
).to eq [baz_id, boo_id, booboo_id].sort
|
654
|
+
|
655
|
+
# Create a another sub-project of boo called fooboo and check that it appears in the parent's subtree
|
656
|
+
fooboo_project = @service.projects.create(:name => 'p-fooboo67', :parent_id => boo_id)
|
657
|
+
fooboo_id = fooboo_project.id
|
658
|
+
fooboo_project.grant_role_to_user(prj_role.id, @service.current_user_id)
|
659
|
+
foobar_new_kids = @service.projects.find_by_id(foobar_id, :subtree_as_list).subtree
|
660
|
+
expect(foobar_new_kids.length).to eq 4
|
661
|
+
|
662
|
+
# Get the parents of booboo, as a tree of IDs
|
663
|
+
booboo_parents = @service.projects.find_by_id(booboo_id, :parents_as_ids).parents
|
664
|
+
expect(booboo_parents.keys.length).to eq 1
|
665
|
+
booboo_parent_id = booboo_parents.keys.first
|
666
|
+
expect(booboo_parents[booboo_parent_id].length).to eq 1
|
667
|
+
booboo_grandparent_id = booboo_parents[booboo_parent_id].keys.first
|
668
|
+
expect(booboo_grandparent_id).to eq foobar_id
|
669
|
+
expect(booboo_parents[booboo_parent_id][booboo_grandparent_id]).to be_nil
|
670
|
+
|
671
|
+
# Get the parents of booboo, as a list of objects
|
672
|
+
booboo_parents = @service.projects.find_by_id(booboo_id, :parents_as_list).parents
|
673
|
+
expect(booboo_parents.length).to eq 2
|
674
|
+
expect([booboo_parents[0].id,booboo_parents[1].id].sort).to eq [foobar_id, boo_id].sort
|
675
|
+
ensure
|
676
|
+
# Delete the projects
|
677
|
+
fooboo_project.destroy if fooboo_project
|
678
|
+
booboo_project.destroy if booboo_project
|
679
|
+
boo_project.destroy if boo_project
|
680
|
+
baz_project.destroy if baz_project
|
681
|
+
foobar_project.destroy if foobar_project
|
682
|
+
prj_role = @service.roles.all(:name => 'r-project67').first unless prj_role
|
683
|
+
prj_role.destroy if prj_role
|
684
|
+
# Check that the deletion worked
|
685
|
+
expect { @service.projects.find_by_id foobar_id }.to raise_error(Fog::Identity::OpenStack::NotFound) if foobar_id
|
686
|
+
['p-booboo67', 'p-fooboo67', 'p-boo67', 'p-baz67', 'p-foobar67'].each do |project_name|
|
687
|
+
prj = @service.projects.all(:name => project_name).first
|
688
|
+
prj.destroy if prj
|
689
|
+
expect(@service.projects.all(:name => project_name).length).to be 0
|
690
|
+
end
|
691
|
+
end
|
692
|
+
end
|
693
|
+
end
|
694
|
+
|
695
|
+
it "Manipulates projects - add/remove users/groups via role assignment/revocation" do
|
696
|
+
VCR.use_cassette('idv3_project_group_user_roles_mutation') do
|
697
|
+
|
698
|
+
# Make sure there is no existing project called foobar
|
699
|
+
@service.projects.all(:name => 'p-foobar69').each do |project|
|
700
|
+
project.update(:enabled => false)
|
701
|
+
project.destroy
|
702
|
+
end
|
703
|
+
expect(@service.projects.all(:name => 'p-foobar69').length).to be 0
|
704
|
+
|
705
|
+
begin
|
706
|
+
# Create a project called foobar
|
707
|
+
foobar_project = @service.projects.create(:name => 'p-foobar69')
|
708
|
+
# Create a role called baz
|
709
|
+
@service.roles.all(:name => 'baz').each do |role|
|
710
|
+
role.update(:enabled => false)
|
711
|
+
role.destroy
|
712
|
+
end
|
713
|
+
baz_role = @service.roles.create(:name => 'baz69')
|
714
|
+
|
715
|
+
# Create a user
|
716
|
+
foobar_user = @service.users.create(:name => 'u-foobar69',
|
717
|
+
:email => 'foobar@example.com',
|
718
|
+
:password => 's3cret!')
|
719
|
+
|
720
|
+
# Create a group and add the user to it
|
721
|
+
foobar_group = @service.groups.create(:name => 'g-foobar69',
|
722
|
+
:description => "Group of Foobar users")
|
723
|
+
foobar_group.add_user foobar_user.id
|
724
|
+
|
725
|
+
# User has no projects initially
|
726
|
+
expect(foobar_user.projects.length).to be 0
|
727
|
+
expect(@service.role_assignments.all(:user_id => foobar_user.id,
|
728
|
+
:project_id => foobar_project.id,
|
729
|
+
:effective => true).length).to be 0
|
730
|
+
expect(foobar_project.user_roles(foobar_user.id).length).to be 0
|
731
|
+
|
732
|
+
# Grant role to the user in the new project - this assigns the project to the user
|
733
|
+
foobar_project.grant_role_to_user(baz_role.id, foobar_user.id)
|
734
|
+
expect(foobar_user.projects.length).to be 1
|
735
|
+
expect(foobar_project.check_user_role(foobar_user.id, baz_role.id)).to be true
|
736
|
+
expect(foobar_project.user_roles(foobar_user.id).length).to be 1
|
737
|
+
|
738
|
+
# Revoke role from the user in the new project - this removes the user from the project
|
739
|
+
foobar_project.revoke_role_from_user(baz_role.id, foobar_user.id)
|
740
|
+
expect(foobar_user.projects.length).to be 0
|
741
|
+
expect(foobar_project.check_user_role(foobar_user.id, baz_role.id)).to be false
|
742
|
+
|
743
|
+
# Group initially has no roles in project
|
744
|
+
expect(foobar_project.group_roles(foobar_group.id).length).to be 0
|
745
|
+
|
746
|
+
expect(@service.role_assignments.all(:user_id => foobar_user.id,
|
747
|
+
:project_id => foobar_project.id,
|
748
|
+
:effective => true).length).to be 0
|
749
|
+
|
750
|
+
# Grant role to the group in the new project - this assigns the project to the group
|
751
|
+
foobar_project.grant_role_to_group(baz_role.id, foobar_group.id)
|
752
|
+
expect(foobar_project.check_group_role(foobar_group.id, baz_role.id)).to be true
|
753
|
+
expect(foobar_project.group_roles(foobar_group.id).length).to be 1
|
754
|
+
|
755
|
+
# Now we check that a user has the role in that project
|
756
|
+
assignments = @service.role_assignments.all(:user_id => foobar_user.id,
|
757
|
+
:project_id => foobar_project.id,
|
758
|
+
:effective => true)
|
759
|
+
expect(assignments.length).to be 1
|
760
|
+
expect(assignments.first.role['id']).to eq baz_role.id
|
761
|
+
expect(assignments.first.user['id']).to eq foobar_user.id
|
762
|
+
expect(assignments.first.scope['project']['id']).to eq foobar_project.id
|
763
|
+
expect(assignments.first.links['assignment'].end_with? "/v3/projects/#{foobar_project.id}/groups/#{foobar_group.id}/roles/#{baz_role.id}").to be true
|
764
|
+
expect(assignments.first.links['membership'].end_with? "/v3/groups/#{foobar_group.id}/users/#{foobar_user.id}").to be true
|
765
|
+
|
766
|
+
# and we check that the user is in the project because of group membership
|
767
|
+
expect(foobar_user.projects.length).to be 1
|
768
|
+
|
769
|
+
# Revoke role from the group in the new project - this removes the group from the project
|
770
|
+
foobar_project.revoke_role_from_group(baz_role.id, foobar_group.id)
|
771
|
+
expect(foobar_user.projects.length).to be 0
|
772
|
+
expect(foobar_project.check_group_role(foobar_group.id, baz_role.id)).to be false
|
773
|
+
|
774
|
+
ensure
|
775
|
+
# Clean up
|
776
|
+
foobar_user.destroy if foobar_user
|
777
|
+
foobar_group.destroy if foobar_group
|
778
|
+
baz_role.destroy if baz_role
|
779
|
+
foobar_project.update(:enabled => false) if foobar_project
|
780
|
+
foobar_project.destroy if foobar_project
|
781
|
+
end
|
782
|
+
end
|
783
|
+
end
|
784
|
+
|
785
|
+
it "lists services" do
|
786
|
+
VCR.use_cassette('idv3_service') do
|
787
|
+
|
788
|
+
services = @service.services
|
789
|
+
expect(services).to_not be_nil
|
790
|
+
expect(services.length).to_not be 0
|
791
|
+
|
792
|
+
services_all = @service.services.all
|
793
|
+
expect(services_all).to_not be_nil
|
794
|
+
expect(services_all.length).to_not be 0
|
795
|
+
|
796
|
+
some_service = @service.services.find_by_id services_all.first.id
|
797
|
+
expect(some_service).to_not be_nil
|
798
|
+
|
799
|
+
expect { @service.services.find_by_id 'atlantis' }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
800
|
+
end
|
801
|
+
end
|
802
|
+
|
803
|
+
it "CRUD services" do
|
804
|
+
VCR.use_cassette('idv3_services_crud') do
|
805
|
+
|
806
|
+
all_services = @service.services.all
|
807
|
+
|
808
|
+
begin
|
809
|
+
# Create a service called foobar
|
810
|
+
foobar_service = @service.services.create(:type => 'volume', :name => 'foobar')
|
811
|
+
foobar_id = foobar_service.id
|
812
|
+
expect(@service.services.all(:type => 'volume').select { |service| service.name == 'foobar' }.length).to be 1
|
813
|
+
|
814
|
+
# Rename it to baz
|
815
|
+
foobar_service.update(:name => 'baz')
|
816
|
+
expect(foobar_service.name).to eq 'baz'
|
817
|
+
|
818
|
+
# Read the service freshly and check the name
|
819
|
+
expect(@service.services.all.select { |service| service.name == 'baz' }.length).to be 1
|
820
|
+
baz_service = @service.services.find_by_id foobar_id
|
821
|
+
expect(baz_service).to_not be_nil
|
822
|
+
expect(baz_service.name).to eq 'baz'
|
823
|
+
expect(baz_service.type).to eq 'volume'
|
824
|
+
ensure
|
825
|
+
# Delete the service
|
826
|
+
baz_service.destroy if baz_service
|
827
|
+
|
828
|
+
# Check that the deletion worked
|
829
|
+
expect { @service.services.find_by_id foobar_id }.to raise_error(Fog::Identity::OpenStack::NotFound) if foobar_id
|
830
|
+
expect(@service.services.all.select { |service| ['foobar', 'baz'].include? service.name }.length).to be 0
|
831
|
+
end
|
832
|
+
end
|
833
|
+
end
|
834
|
+
|
835
|
+
it "lists endpoints" do
|
836
|
+
VCR.use_cassette('idv3_endpoint') do
|
837
|
+
|
838
|
+
endpoints = @service.endpoints
|
839
|
+
expect(endpoints).to_not be_nil
|
840
|
+
expect(endpoints.length).to_not be 0
|
841
|
+
|
842
|
+
endpoints_all = @service.endpoints.all
|
843
|
+
expect(endpoints_all).to_not be_nil
|
844
|
+
expect(endpoints_all.length).to_not be 0
|
845
|
+
|
846
|
+
some_endpoint = @service.endpoints.find_by_id endpoints_all.first.id
|
847
|
+
expect(some_endpoint).to_not be_nil
|
848
|
+
|
849
|
+
expect { @service.endpoints.find_by_id 'atlantis' }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
850
|
+
end
|
851
|
+
end
|
852
|
+
|
853
|
+
it "CRUD endpoints" do
|
854
|
+
VCR.use_cassette('idv3_endpoints_crud') do
|
855
|
+
|
856
|
+
service = @service.services.all.first
|
857
|
+
all_endpoints = @service.endpoints.all
|
858
|
+
|
859
|
+
begin
|
860
|
+
# Create a endpoint called foobar
|
861
|
+
foobar_endpoint = @service.endpoints.create(:service_id => service.id,
|
862
|
+
:interface => 'internal',
|
863
|
+
:name => 'foobar',
|
864
|
+
:url => 'http://example.com/foobar',
|
865
|
+
:enabled => false)
|
866
|
+
foobar_id = foobar_endpoint.id
|
867
|
+
expect(@service.endpoints.all(:interface => 'internal').select { |endpoint| endpoint.name == 'foobar' }.length).to be 1
|
868
|
+
|
869
|
+
# Rename it to baz
|
870
|
+
foobar_endpoint.update(:name => 'baz', :url => 'http://example.com/baz')
|
871
|
+
expect(foobar_endpoint.name).to eq 'baz'
|
872
|
+
expect(foobar_endpoint.url).to eq 'http://example.com/baz'
|
873
|
+
|
874
|
+
# Read the endpoint freshly and check the name
|
875
|
+
expect(@service.endpoints.all(:interface => 'internal').select { |endpoint| endpoint.name == 'baz' }.length).to be 1
|
876
|
+
baz_endpoint = @service.endpoints.find_by_id foobar_id
|
877
|
+
expect(baz_endpoint).to_not be_nil
|
878
|
+
expect(baz_endpoint.name).to eq 'baz'
|
879
|
+
expect(baz_endpoint.url).to eq 'http://example.com/baz'
|
880
|
+
expect(baz_endpoint.interface).to eq 'internal'
|
881
|
+
ensure
|
882
|
+
# Delete the endpoint
|
883
|
+
baz_endpoint.destroy
|
884
|
+
|
885
|
+
# Check that the deletion worked
|
886
|
+
expect { @service.endpoints.find_by_id foobar_id }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
887
|
+
expect(@service.endpoints.all.select { |endpoint| ['foobar', 'baz'].include? endpoint.name }.length).to be 0
|
888
|
+
end
|
889
|
+
end
|
890
|
+
end
|
891
|
+
|
892
|
+
it "lists OS credentials" do
|
893
|
+
VCR.use_cassette('idv3_credential') do
|
894
|
+
credentials = @service.os_credentials
|
895
|
+
expect(credentials).to_not be_nil
|
896
|
+
|
897
|
+
credentials_all = @service.os_credentials.all
|
898
|
+
expect(credentials_all).to_not be_nil
|
899
|
+
|
900
|
+
expect { @service.os_credentials.find_by_id 'atlantis' }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
901
|
+
end
|
902
|
+
end
|
903
|
+
|
904
|
+
it "CRUD OS credentials" do
|
905
|
+
VCR.use_cassette('idv3_credential_crud') do
|
906
|
+
|
907
|
+
begin
|
908
|
+
# Create a user
|
909
|
+
foobar_user = @service.users.create(:name => 'u-foobar_cred',
|
910
|
+
:email => 'foobar@example.com',
|
911
|
+
:password => 's3cret!')
|
912
|
+
project = @service.projects.all.first
|
913
|
+
|
914
|
+
access_key = '9c4e774a-f644-498f-90c4-970b3f817fc5'
|
915
|
+
secret_key = '7e084117-b13d-4656-9eca-85376b690897'
|
916
|
+
|
917
|
+
# OpenStack Keystone requires the blob to be a JSON string - i.e. not JSON, but a string containing JSON :-/
|
918
|
+
blob_json = {:access => access_key,
|
919
|
+
:secret => secret_key}.to_json
|
920
|
+
|
921
|
+
# Make sure there are no existing ec2 credentials
|
922
|
+
@service.os_credentials.all.select { |credential| credential.type == 'foo' || credential.type == 'ec2' }.each do |credential|
|
923
|
+
credential.destroy
|
924
|
+
end
|
925
|
+
expect(@service.os_credentials.all.select { |credential| credential.type == 'ec2' }.length).to be 0
|
926
|
+
|
927
|
+
# Create a credential
|
928
|
+
foo_credential = @service.os_credentials.create(:type => 'ec2',
|
929
|
+
:project_id => project.id,
|
930
|
+
:user_id => foobar_user.id,
|
931
|
+
:blob => blob_json)
|
932
|
+
credential_id = foo_credential.id
|
933
|
+
expect(@service.os_credentials.all.select { |credential| credential.type == 'ec2' }.length).to be 1
|
934
|
+
|
935
|
+
# Update secret key
|
936
|
+
new_secret_key = '62307bcd-ca3c-47ae-a114-27a6cadb5bc9'
|
937
|
+
new_blob_json = {:access => access_key,
|
938
|
+
:secret => new_secret_key}.to_json
|
939
|
+
foo_credential.update(:blob => new_blob_json)
|
940
|
+
expect(JSON.parse(foo_credential.blob)['secret']).to eq new_secret_key
|
941
|
+
|
942
|
+
# Read the credential freshly and check the secret key
|
943
|
+
expect(@service.os_credentials.all.select { |credential| credential.type == 'ec2' }.length).to be 1
|
944
|
+
updated_credential = @service.os_credentials.find_by_id credential_id
|
945
|
+
expect(updated_credential).to_not be_nil
|
946
|
+
expect(updated_credential.type).to eq 'ec2'
|
947
|
+
expect(JSON.parse(updated_credential.blob)['secret']).to eq new_secret_key
|
948
|
+
|
949
|
+
ensure
|
950
|
+
foobar_user = @service.users.find_by_name('u-foobar_cred').first unless foobar_user
|
951
|
+
foobar_user.destroy if foobar_user
|
952
|
+
# Delete the credential
|
953
|
+
begin
|
954
|
+
updated_credential.destroy if updated_credential
|
955
|
+
foo_credential.destroy if foo_credential
|
956
|
+
rescue
|
957
|
+
false
|
958
|
+
end
|
959
|
+
|
960
|
+
# Check that the deletion worked
|
961
|
+
expect { @service.os_credentials.find_by_id credential_id }.to raise_error(Fog::Identity::OpenStack::NotFound) if credential_id
|
962
|
+
expect(@service.os_credentials.all.select { |credential| credential.type == 'ec2' }.length).to be 0
|
963
|
+
end
|
964
|
+
end
|
965
|
+
end
|
966
|
+
|
967
|
+
it "lists policies" do
|
968
|
+
VCR.use_cassette('idv3_policy') do
|
969
|
+
policies = @service.policies
|
970
|
+
expect(policies).to_not be_nil
|
971
|
+
expect(policies.length).to be 0
|
972
|
+
|
973
|
+
policies_all = @service.policies.all
|
974
|
+
expect(policies_all).to_not be_nil
|
975
|
+
expect(policies_all.length).to be 0
|
976
|
+
|
977
|
+
expect { @service.policies.find_by_id 'atlantis' }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
978
|
+
end
|
979
|
+
end
|
980
|
+
|
981
|
+
it "CRUD policies" do
|
982
|
+
VCR.use_cassette('idv3_policy_crud') do
|
983
|
+
|
984
|
+
blob = {'foobar_user' => ['role:compute-user']}.to_json
|
985
|
+
|
986
|
+
# Make sure there are no existing policies
|
987
|
+
expect(@service.policies.all.select { |policy| policy.type == 'application/json' }.length).to be 0
|
988
|
+
|
989
|
+
# Create a policy
|
990
|
+
foo_policy = @service.policies.create(:type => 'application/json',
|
991
|
+
:blob => blob)
|
992
|
+
policy_id = foo_policy.id
|
993
|
+
expect(@service.policies.all.select { |policy| policy.type == 'application/json' }.length).to be 1
|
994
|
+
|
995
|
+
# Update policy blob
|
996
|
+
new_blob = {'baz_user' => ['role:compute-user']}.to_json
|
997
|
+
foo_policy.update(:blob => new_blob)
|
998
|
+
expect(foo_policy.blob).to eq new_blob
|
999
|
+
|
1000
|
+
# Read the policy freshly and check the secret key
|
1001
|
+
expect(@service.policies.all.select { |policy| policy.type == 'application/json' }.length).to be 1
|
1002
|
+
updated_policy = @service.policies.find_by_id policy_id
|
1003
|
+
expect(updated_policy).to_not be_nil
|
1004
|
+
expect(updated_policy.type).to eq 'application/json'
|
1005
|
+
expect(updated_policy.blob).to eq new_blob
|
1006
|
+
|
1007
|
+
# Delete the policy
|
1008
|
+
updated_policy.destroy
|
1009
|
+
|
1010
|
+
# Check that the deletion worked
|
1011
|
+
expect { @service.policies.find_by_id policy_id }.to raise_error(Fog::Identity::OpenStack::NotFound)
|
1012
|
+
expect(@service.policies.all.select { |policy| policy.type == 'application/json' }.length).to be 0
|
1013
|
+
end
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
end
|