fog-maestrodev 1.15.0.20130927082724 → 1.18.0.20131111203459
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +0 -1
- data/.travis.yml +6 -0
- data/Gemfile.1.8.7 +1 -0
- data/README.md +27 -1
- data/Rakefile +18 -0
- data/changelog.txt +1112 -0
- data/fog.gemspec +8 -8
- data/lib/fog/atmos/models/storage/file.rb +10 -8
- data/lib/fog/atmos/models/storage/files.rb +5 -0
- data/lib/fog/atmos/storage.rb +5 -1
- data/lib/fog/aws/auto_scaling.rb +0 -1
- data/lib/fog/aws/cloud_formation.rb +0 -1
- data/lib/fog/aws/cloud_watch.rb +0 -1
- data/lib/fog/aws/compute.rb +1 -3
- data/lib/fog/aws/data_pipeline.rb +0 -1
- data/lib/fog/aws/elb.rb +2 -1
- data/lib/fog/aws/iam.rb +7 -2
- data/lib/fog/aws/models/auto_scaling/group.rb +2 -2
- data/lib/fog/aws/models/compute/route_table.rb +1 -1
- data/lib/fog/aws/models/compute/server.rb +16 -1
- data/lib/fog/aws/models/compute/spot_request.rb +1 -1
- data/lib/fog/aws/models/elb/load_balancer.rb +10 -0
- data/lib/fog/aws/models/iam/access_key.rb +5 -1
- data/lib/fog/aws/models/iam/access_keys.rb +0 -1
- data/lib/fog/aws/parsers/compute/describe_internet_gateways.rb +1 -1
- data/lib/fog/aws/parsers/compute/describe_reserved_instances.rb +2 -1
- data/lib/fog/aws/parsers/compute/run_instances.rb +2 -0
- data/lib/fog/aws/parsers/elb/describe_load_balancer_attributes.rb +40 -0
- data/lib/fog/aws/parsers/iam/get_group_policy.rb +10 -4
- data/lib/fog/aws/parsers/storage/get_bucket_tagging.rb +37 -0
- data/lib/fog/aws/rds.rb +0 -1
- data/lib/fog/aws/requests/auto_scaling/create_auto_scaling_group.rb +5 -4
- data/lib/fog/aws/requests/compute/copy_image.rb +1 -1
- data/lib/fog/aws/requests/compute/create_internet_gateway.rb +5 -4
- data/lib/fog/aws/requests/compute/create_tags.rb +2 -0
- data/lib/fog/aws/requests/compute/create_volume.rb +1 -1
- data/lib/fog/aws/requests/compute/delete_internet_gateway.rb +1 -1
- data/lib/fog/aws/requests/compute/describe_internet_gateways.rb +1 -1
- data/lib/fog/aws/requests/compute/describe_reserved_instances.rb +1 -0
- data/lib/fog/aws/requests/compute/purchase_reserved_instances_offering.rb +1 -0
- data/lib/fog/aws/requests/compute/run_instances.rb +2 -1
- data/lib/fog/aws/requests/elb/create_load_balancer.rb +1 -0
- data/lib/fog/aws/requests/elb/describe_load_balancer_attributes.rb +54 -0
- data/lib/fog/aws/requests/elb/modify_load_balancer_attributes.rb +59 -0
- data/lib/fog/aws/requests/iam/create_access_key.rb +22 -15
- data/lib/fog/aws/requests/iam/get_group_policy.rb +18 -1
- data/lib/fog/aws/requests/iam/get_user_policy.rb +4 -4
- data/lib/fog/aws/requests/iam/list_access_keys.rb +15 -11
- data/lib/fog/aws/requests/iam/put_group_policy.rb +17 -1
- data/lib/fog/aws/requests/iam/put_user_policy.rb +1 -1
- data/lib/fog/aws/requests/iam/update_access_key.rb +22 -0
- data/lib/fog/aws/requests/storage/delete_bucket_tagging.rb +46 -0
- data/lib/fog/aws/requests/storage/get_bucket_tagging.rb +53 -0
- data/lib/fog/aws/requests/storage/post_object_restore.rb +1 -1
- data/lib/fog/aws/requests/storage/put_bucket_tagging.rb +60 -0
- data/lib/fog/aws/simpledb.rb +0 -1
- data/lib/fog/aws/sqs.rb +2 -0
- data/lib/fog/aws/storage.rb +41 -20
- data/lib/fog/aws.rb +11 -3
- data/lib/fog/bin/hp.rb +17 -0
- data/lib/fog/bin/rackspace.rb +4 -0
- data/lib/fog/brightbox/models/compute/load_balancer.rb +53 -2
- data/lib/fog/cloudstack/models/compute/server.rb +1 -0
- data/lib/fog/compute.rb +13 -2
- data/lib/fog/core/class_from_string.rb +26 -0
- data/lib/fog/core/logger.rb +4 -5
- data/lib/fog/core/service.rb +1 -1
- data/lib/fog/core/uuid.rb +23 -0
- data/lib/fog/core.rb +2 -0
- data/lib/fog/dynect/dns.rb +1 -1
- data/lib/fog/ecloud/compute.rb +8 -3
- data/lib/fog/ecloud/models/compute/admin_organization.rb +4 -4
- data/lib/fog/ecloud/models/compute/catalog_item.rb +1 -1
- data/lib/fog/ecloud/models/compute/compute_pool.rb +8 -8
- data/lib/fog/ecloud/models/compute/environment.rb +15 -15
- data/lib/fog/ecloud/models/compute/firewall_acl.rb +1 -1
- data/lib/fog/ecloud/models/compute/internet_service.rb +1 -1
- data/lib/fog/ecloud/models/compute/internet_services.rb +1 -1
- data/lib/fog/ecloud/models/compute/location.rb +1 -1
- data/lib/fog/ecloud/models/compute/monitor.rb +1 -1
- data/lib/fog/ecloud/models/compute/network.rb +1 -1
- data/lib/fog/ecloud/models/compute/node.rb +1 -1
- data/lib/fog/ecloud/models/compute/nodes.rb +1 -1
- data/lib/fog/ecloud/models/compute/organization.rb +10 -10
- data/lib/fog/ecloud/models/compute/row.rb +1 -1
- data/lib/fog/ecloud/models/compute/rows.rb +1 -1
- data/lib/fog/ecloud/models/compute/server.rb +9 -9
- data/lib/fog/ecloud/models/compute/templates.rb +3 -1
- data/lib/fog/ecloud/models/compute/user.rb +2 -2
- data/lib/fog/ecloud/models/compute/virtual_machine_assigned_ip.rb +1 -1
- data/lib/fog/ecloud/requests/compute/get_virtual_machine_assigned_ips.rb +1 -1
- data/lib/fog/google/README.md +2 -2
- data/lib/fog/google/compute.rb +695 -45
- data/lib/fog/google/examples/bootstrap.rb +1 -1
- data/lib/fog/google/examples/create.rb +1 -0
- data/lib/fog/google/examples/get_list_images.rb +1 -2
- data/lib/fog/google/examples/network.rb +2 -0
- data/lib/fog/google/models/compute/disk.rb +25 -1
- data/lib/fog/google/models/compute/disks.rb +9 -2
- data/lib/fog/google/models/compute/server.rb +8 -2
- data/lib/fog/google/models/compute/servers.rb +1 -1
- data/lib/fog/google/models/compute/snapshot.rb +1 -0
- data/lib/fog/google/models/compute/zone.rb +25 -0
- data/lib/fog/google/models/compute/zones.rb +27 -0
- data/lib/fog/google/requests/compute/delete_server.rb +40 -13
- data/lib/fog/google/requests/compute/get_image.rb +15 -2
- data/lib/fog/google/requests/compute/get_machine_type.rb +16 -1
- data/lib/fog/google/requests/compute/get_server.rb +46 -2
- data/lib/fog/google/requests/compute/get_zone.rb +14 -1
- data/lib/fog/google/requests/compute/insert_server.rb +80 -8
- data/lib/fog/google/requests/compute/insert_snapshot.rb +49 -0
- data/lib/fog/google/requests/compute/list_images.rb +8 -2
- data/lib/fog/google/requests/compute/list_machine_types.rb +9 -2
- data/lib/fog/google/requests/compute/list_servers.rb +10 -2
- data/lib/fog/google/requests/compute/list_zones.rb +7 -1
- data/lib/fog/google/storage.rb +54 -29
- data/lib/fog/hp/CHANGELOG.hp +33 -0
- data/lib/fog/hp/block_storage.rb +9 -4
- data/lib/fog/hp/block_storage_v2.rb +164 -0
- data/lib/fog/hp/cdn.rb +7 -3
- data/lib/fog/hp/compute.rb +9 -5
- data/lib/fog/hp/compute_v2.rb +312 -0
- data/lib/fog/hp/dns.rb +135 -0
- data/lib/fog/hp/lb.rb +170 -0
- data/lib/fog/hp/models/block_storage_v2/snapshot.rb +76 -0
- data/lib/fog/hp/models/block_storage_v2/snapshots.rb +43 -0
- data/lib/fog/hp/models/block_storage_v2/volume.rb +139 -0
- data/lib/fog/hp/models/block_storage_v2/volume_backup.rb +58 -0
- data/lib/fog/hp/models/block_storage_v2/volume_backups.rb +42 -0
- data/lib/fog/hp/models/block_storage_v2/volumes.rb +42 -0
- data/lib/fog/hp/models/compute/image.rb +1 -1
- data/lib/fog/hp/models/compute/server.rb +41 -20
- data/lib/fog/hp/models/compute_v2/address.rb +70 -0
- data/lib/fog/hp/models/compute_v2/addresses.rb +29 -0
- data/lib/fog/hp/models/compute_v2/availability_zone.rb +22 -0
- data/lib/fog/hp/models/compute_v2/availability_zones.rb +29 -0
- data/lib/fog/hp/models/compute_v2/flavor.rb +22 -0
- data/lib/fog/hp/models/compute_v2/flavors.rb +42 -0
- data/lib/fog/hp/models/compute_v2/image.rb +87 -0
- data/lib/fog/hp/models/compute_v2/images.rb +43 -0
- data/lib/fog/hp/models/compute_v2/key_pair.rb +54 -0
- data/lib/fog/hp/models/compute_v2/key_pairs.rb +31 -0
- data/lib/fog/hp/models/compute_v2/meta.rb +29 -0
- data/lib/fog/hp/models/compute_v2/meta_parent.rb +33 -0
- data/lib/fog/hp/models/compute_v2/metadata.rb +79 -0
- data/lib/fog/hp/models/compute_v2/server.rb +339 -0
- data/lib/fog/hp/models/compute_v2/servers.rb +56 -0
- data/lib/fog/hp/models/compute_v2/volume_attachment.rb +42 -0
- data/lib/fog/hp/models/compute_v2/volume_attachments.rb +30 -0
- data/lib/fog/hp/models/dns/domain.rb +55 -0
- data/lib/fog/hp/models/dns/domains.rb +28 -0
- data/lib/fog/hp/models/dns/record.rb +59 -0
- data/lib/fog/hp/models/dns/records.rb +32 -0
- data/lib/fog/hp/models/lb/algorithm.rb +24 -0
- data/lib/fog/hp/models/lb/algorithms.rb +26 -0
- data/lib/fog/hp/models/lb/load_balancer.rb +83 -0
- data/lib/fog/hp/models/lb/load_balancers.rb +26 -0
- data/lib/fog/hp/models/lb/node.rb +53 -0
- data/lib/fog/hp/models/lb/nodes.rb +30 -0
- data/lib/fog/hp/models/lb/protocol.rb +25 -0
- data/lib/fog/hp/models/lb/protocols.rb +26 -0
- data/lib/fog/hp/models/lb/virtual_ip.rb +34 -0
- data/lib/fog/hp/models/lb/virtual_ips.rb +33 -0
- data/lib/fog/hp/models/network/floating_ip.rb +45 -0
- data/lib/fog/hp/models/network/floating_ips.rb +36 -0
- data/lib/fog/hp/models/network/network.rb +56 -0
- data/lib/fog/hp/models/network/networks.rb +36 -0
- data/lib/fog/hp/models/network/port.rb +54 -0
- data/lib/fog/hp/models/network/ports.rb +36 -0
- data/lib/fog/hp/models/network/router.rb +66 -0
- data/lib/fog/hp/models/network/routers.rb +36 -0
- data/lib/fog/hp/models/network/security_group.rb +30 -0
- data/lib/fog/hp/models/network/security_group_rule.rb +35 -0
- data/lib/fog/hp/models/network/security_group_rules.rb +36 -0
- data/lib/fog/hp/models/network/security_groups.rb +36 -0
- data/lib/fog/hp/models/network/subnet.rb +49 -0
- data/lib/fog/hp/models/network/subnets.rb +36 -0
- data/lib/fog/hp/models/storage/directories.rb +1 -1
- data/lib/fog/hp/models/storage/directory.rb +41 -8
- data/lib/fog/hp/models/storage/file.rb +12 -0
- data/lib/fog/hp/models/storage/files.rb +23 -1
- data/lib/fog/hp/models/storage/meta.rb +29 -0
- data/lib/fog/hp/models/storage/meta_parent.rb +23 -0
- data/lib/fog/hp/models/storage/metadata.rb +82 -0
- data/lib/fog/hp/network.rb +198 -0
- data/lib/fog/hp/requests/block_storage_v2/create_snapshot.rb +76 -0
- data/lib/fog/hp/requests/block_storage_v2/create_volume.rb +90 -0
- data/lib/fog/hp/requests/block_storage_v2/create_volume_backup.rb +83 -0
- data/lib/fog/hp/requests/block_storage_v2/delete_snapshot.rb +38 -0
- data/lib/fog/hp/requests/block_storage_v2/delete_volume.rb +38 -0
- data/lib/fog/hp/requests/block_storage_v2/delete_volume_backup.rb +38 -0
- data/lib/fog/hp/requests/block_storage_v2/get_snapshot_details.rb +54 -0
- data/lib/fog/hp/requests/block_storage_v2/get_volume_backup_details.rb +55 -0
- data/lib/fog/hp/requests/block_storage_v2/get_volume_details.rb +58 -0
- data/lib/fog/hp/requests/block_storage_v2/list_snapshots.rb +57 -0
- data/lib/fog/hp/requests/block_storage_v2/list_snapshots_detail.rb +54 -0
- data/lib/fog/hp/requests/block_storage_v2/list_volume_backups.rb +52 -0
- data/lib/fog/hp/requests/block_storage_v2/list_volume_backups_detail.rb +58 -0
- data/lib/fog/hp/requests/block_storage_v2/list_volumes.rb +61 -0
- data/lib/fog/hp/requests/block_storage_v2/list_volumes_detail.rb +59 -0
- data/lib/fog/hp/requests/block_storage_v2/restore_volume_backup.rb +97 -0
- data/lib/fog/hp/requests/block_storage_v2/update_snapshot.rb +69 -0
- data/lib/fog/hp/requests/block_storage_v2/update_volume.rb +70 -0
- data/lib/fog/hp/requests/compute/get_console_output.rb +0 -2
- data/lib/fog/hp/requests/compute/get_vnc_console.rb +45 -0
- data/lib/fog/hp/requests/compute_v2/add_security_group.rb +40 -0
- data/lib/fog/hp/requests/compute_v2/allocate_address.rb +53 -0
- data/lib/fog/hp/requests/compute_v2/associate_address.rb +46 -0
- data/lib/fog/hp/requests/compute_v2/attach_volume.rb +80 -0
- data/lib/fog/hp/requests/compute_v2/create_image.rb +63 -0
- data/lib/fog/hp/requests/compute_v2/create_key_pair.rb +73 -0
- data/lib/fog/hp/requests/compute_v2/create_persistent_server.rb +183 -0
- data/lib/fog/hp/requests/compute_v2/create_server.rb +168 -0
- data/lib/fog/hp/requests/compute_v2/delete_image.rb +44 -0
- data/lib/fog/hp/requests/compute_v2/delete_key_pair.rb +38 -0
- data/lib/fog/hp/requests/compute_v2/delete_meta.rb +55 -0
- data/lib/fog/hp/requests/compute_v2/delete_server.rb +43 -0
- data/lib/fog/hp/requests/compute_v2/detach_volume.rb +47 -0
- data/lib/fog/hp/requests/compute_v2/disassociate_address.rb +39 -0
- data/lib/fog/hp/requests/compute_v2/get_address.rb +48 -0
- data/lib/fog/hp/requests/compute_v2/get_console_output.rb +41 -0
- data/lib/fog/hp/requests/compute_v2/get_flavor_details.rb +57 -0
- data/lib/fog/hp/requests/compute_v2/get_image_details.rb +55 -0
- data/lib/fog/hp/requests/compute_v2/get_key_pair.rb +44 -0
- data/lib/fog/hp/requests/compute_v2/get_meta.rb +57 -0
- data/lib/fog/hp/requests/compute_v2/get_server_details.rb +72 -0
- data/lib/fog/hp/requests/compute_v2/get_server_volume_details.rb +47 -0
- data/lib/fog/hp/requests/compute_v2/get_vnc_console.rb +45 -0
- data/lib/fog/hp/requests/compute_v2/get_windows_password.rb +43 -0
- data/lib/fog/hp/requests/compute_v2/list_addresses.rb +44 -0
- data/lib/fog/hp/requests/compute_v2/list_availability_zones.rb +47 -0
- data/lib/fog/hp/requests/compute_v2/list_flavors.rb +53 -0
- data/lib/fog/hp/requests/compute_v2/list_flavors_detail.rb +53 -0
- data/lib/fog/hp/requests/compute_v2/list_images.rb +52 -0
- data/lib/fog/hp/requests/compute_v2/list_images_detail.rb +66 -0
- data/lib/fog/hp/requests/compute_v2/list_key_pairs.rb +42 -0
- data/lib/fog/hp/requests/compute_v2/list_limits.rb +62 -0
- data/lib/fog/hp/requests/compute_v2/list_metadata.rb +56 -0
- data/lib/fog/hp/requests/compute_v2/list_server_addresses.rb +42 -0
- data/lib/fog/hp/requests/compute_v2/list_server_addresses_by_network.rb +46 -0
- data/lib/fog/hp/requests/compute_v2/list_server_volumes.rb +49 -0
- data/lib/fog/hp/requests/compute_v2/list_servers.rb +53 -0
- data/lib/fog/hp/requests/compute_v2/list_servers_detail.rb +80 -0
- data/lib/fog/hp/requests/compute_v2/reboot_server.rb +34 -0
- data/lib/fog/hp/requests/compute_v2/rebuild_server.rb +82 -0
- data/lib/fog/hp/requests/compute_v2/release_address.rb +38 -0
- data/lib/fog/hp/requests/compute_v2/remove_security_group.rb +37 -0
- data/lib/fog/hp/requests/compute_v2/server_action.rb +25 -0
- data/lib/fog/hp/requests/compute_v2/set_metadata.rb +60 -0
- data/lib/fog/hp/requests/compute_v2/update_meta.rb +61 -0
- data/lib/fog/hp/requests/compute_v2/update_metadata.rb +60 -0
- data/lib/fog/hp/requests/compute_v2/update_server.rb +73 -0
- data/lib/fog/hp/requests/dns/create_domain.rb +66 -0
- data/lib/fog/hp/requests/dns/create_record.rb +79 -0
- data/lib/fog/hp/requests/dns/delete_domain.rb +37 -0
- data/lib/fog/hp/requests/dns/delete_record.rb +36 -0
- data/lib/fog/hp/requests/dns/get_domain.rb +43 -0
- data/lib/fog/hp/requests/dns/get_record.rb +47 -0
- data/lib/fog/hp/requests/dns/get_servers_hosting_domain.rb +62 -0
- data/lib/fog/hp/requests/dns/list_domains.rb +38 -0
- data/lib/fog/hp/requests/dns/list_records_in_a_domain.rb +55 -0
- data/lib/fog/hp/requests/dns/update_domain.rb +62 -0
- data/lib/fog/hp/requests/dns/update_record.rb +70 -0
- data/lib/fog/hp/requests/lb/create_load_balancer.rb +110 -0
- data/lib/fog/hp/requests/lb/create_load_balancer_node.rb +72 -0
- data/lib/fog/hp/requests/lb/delete_load_balancer.rb +36 -0
- data/lib/fog/hp/requests/lb/delete_load_balancer_node.rb +47 -0
- data/lib/fog/hp/requests/lb/get_load_balancer.rb +60 -0
- data/lib/fog/hp/requests/lb/get_load_balancer_node.rb +54 -0
- data/lib/fog/hp/requests/lb/list_algorithms.rb +32 -0
- data/lib/fog/hp/requests/lb/list_limits.rb +40 -0
- data/lib/fog/hp/requests/lb/list_load_balancer_nodes.rb +41 -0
- data/lib/fog/hp/requests/lb/list_load_balancer_virtual_ips.rb +44 -0
- data/lib/fog/hp/requests/lb/list_load_balancers.rb +41 -0
- data/lib/fog/hp/requests/lb/list_protocols.rb +34 -0
- data/lib/fog/hp/requests/lb/list_versions.rb +27 -0
- data/lib/fog/hp/requests/lb/update_load_balancer.rb +47 -0
- data/lib/fog/hp/requests/lb/update_load_balancer_node.rb +59 -0
- data/lib/fog/hp/requests/network/add_router_interface.rb +75 -0
- data/lib/fog/hp/requests/network/associate_floating_ip.rb +71 -0
- data/lib/fog/hp/requests/network/create_floating_ip.rb +69 -0
- data/lib/fog/hp/requests/network/create_network.rb +68 -0
- data/lib/fog/hp/requests/network/create_port.rb +92 -0
- data/lib/fog/hp/requests/network/create_router.rb +64 -0
- data/lib/fog/hp/requests/network/create_security_group.rb +100 -0
- data/lib/fog/hp/requests/network/create_security_group_rule.rb +83 -0
- data/lib/fog/hp/requests/network/create_subnet.rb +97 -0
- data/lib/fog/hp/requests/network/delete_floating_ip.rb +34 -0
- data/lib/fog/hp/requests/network/delete_network.rb +34 -0
- data/lib/fog/hp/requests/network/delete_port.rb +34 -0
- data/lib/fog/hp/requests/network/delete_router.rb +34 -0
- data/lib/fog/hp/requests/network/delete_security_group.rb +36 -0
- data/lib/fog/hp/requests/network/delete_security_group_rule.rb +36 -0
- data/lib/fog/hp/requests/network/delete_subnet.rb +34 -0
- data/lib/fog/hp/requests/network/disassociate_floating_ip.rb +71 -0
- data/lib/fog/hp/requests/network/get_floating_ip.rb +47 -0
- data/lib/fog/hp/requests/network/get_network.rb +49 -0
- data/lib/fog/hp/requests/network/get_port.rb +53 -0
- data/lib/fog/hp/requests/network/get_router.rb +46 -0
- data/lib/fog/hp/requests/network/get_security_group.rb +56 -0
- data/lib/fog/hp/requests/network/get_security_group_rule.rb +51 -0
- data/lib/fog/hp/requests/network/get_subnet.rb +52 -0
- data/lib/fog/hp/requests/network/list_floating_ips.rb +46 -0
- data/lib/fog/hp/requests/network/list_networks.rb +48 -0
- data/lib/fog/hp/requests/network/list_ports.rb +52 -0
- data/lib/fog/hp/requests/network/list_routers.rb +45 -0
- data/lib/fog/hp/requests/network/list_security_group_rules.rb +52 -0
- data/lib/fog/hp/requests/network/list_security_groups.rb +57 -0
- data/lib/fog/hp/requests/network/list_subnets.rb +51 -0
- data/lib/fog/hp/requests/network/remove_router_interface.rb +67 -0
- data/lib/fog/hp/requests/network/update_network.rb +62 -0
- data/lib/fog/hp/requests/network/update_port.rb +75 -0
- data/lib/fog/hp/requests/network/update_router.rb +62 -0
- data/lib/fog/hp/requests/network/update_subnet.rb +72 -0
- data/lib/fog/hp/requests/storage/post_container.rb +38 -0
- data/lib/fog/hp/requests/storage/post_object.rb +56 -0
- data/lib/fog/hp/simple_http_instrumentor.rb +59 -0
- data/lib/fog/hp/storage.rb +79 -23
- data/lib/fog/hp.rb +108 -23
- data/lib/fog/internet_archive/models/storage/file.rb +1 -1
- data/lib/fog/internet_archive/requests/storage/head_object.rb +2 -2
- data/lib/fog/linode/compute.rb +1 -1
- data/lib/fog/linode/dns.rb +1 -1
- data/lib/fog/local/models/storage/directories.rb +8 -4
- data/lib/fog/openstack/compute.rb +1 -2
- data/lib/fog/openstack/examples/compute/basics.rb +74 -0
- data/lib/fog/openstack/identity.rb +2 -3
- data/lib/fog/openstack/image.rb +1 -2
- data/lib/fog/openstack/metering.rb +0 -1
- data/lib/fog/openstack/models/compute/host.rb +4 -1
- data/lib/fog/openstack/models/compute/server.rb +1 -1
- data/lib/fog/openstack/models/network/floating_ip.rb +1 -1
- data/lib/fog/openstack/models/storage/file.rb +14 -0
- data/lib/fog/openstack/models/storage/files.rb +10 -0
- data/lib/fog/openstack/models/volume/volume_type.rb +20 -0
- data/lib/fog/openstack/models/volume/volume_types.rb +26 -0
- data/lib/fog/openstack/models/volume/volumes.rb +5 -2
- data/lib/fog/openstack/network.rb +0 -1
- data/lib/fog/openstack/orchestration.rb +4 -3
- data/lib/fog/openstack/requests/compute/create_server.rb +5 -6
- data/lib/fog/openstack/requests/network/create_floating_ip.rb +1 -4
- data/lib/fog/openstack/requests/orchestration/create_stack.rb +5 -2
- data/lib/fog/openstack/requests/orchestration/delete_stack.rb +2 -1
- data/lib/fog/openstack/requests/orchestration/list_stacks.rb +1 -0
- data/lib/fog/openstack/requests/orchestration/update_stack.rb +5 -5
- data/lib/fog/openstack/requests/storage/delete_multiple_objects.rb +67 -0
- data/lib/fog/openstack/requests/storage/delete_static_large_object.rb +43 -0
- data/lib/fog/openstack/requests/storage/get_object_https_url.rb +44 -6
- data/lib/fog/openstack/requests/storage/put_dynamic_obj_manifest.rb +43 -0
- data/lib/fog/openstack/requests/storage/put_object.rb +13 -4
- data/lib/fog/openstack/requests/storage/put_object_manifest.rb +3 -25
- data/lib/fog/openstack/requests/storage/put_static_obj_manifest.rb +57 -0
- data/lib/fog/openstack/requests/volume/get_volume_type_details.rb +32 -0
- data/lib/fog/openstack/requests/volume/list_volume_types.rb +41 -0
- data/lib/fog/openstack/requests/volume/list_volumes.rb +4 -4
- data/lib/fog/openstack/storage.rb +5 -1
- data/lib/fog/openstack/volume.rb +6 -2
- data/lib/fog/openstack.rb +0 -4
- data/lib/fog/rackspace/auto_scale.rb +4 -0
- data/lib/fog/rackspace/block_storage.rb +0 -2
- data/lib/fog/rackspace/compute.rb +1 -4
- data/lib/fog/rackspace/docs/auto_scale.md +501 -0
- data/lib/fog/rackspace/docs/compute_v2.md +2 -2
- data/lib/fog/rackspace/docs/getting_started.md +1 -0
- data/lib/fog/rackspace/docs/storage.md +1 -1
- data/lib/fog/rackspace/examples/auto_scale/add_policy.rb +68 -0
- data/lib/fog/rackspace/examples/auto_scale/add_webhook.rb +74 -0
- data/lib/fog/rackspace/examples/auto_scale/create_scaling_group.rb +115 -0
- data/lib/fog/rackspace/examples/auto_scale/delete_policy.rb +71 -0
- data/lib/fog/rackspace/examples/auto_scale/delete_scaling_group.rb +61 -0
- data/lib/fog/rackspace/examples/auto_scale/delete_webhook.rb +91 -0
- data/lib/fog/rackspace/examples/compute_v2/create_image.rb +1 -1
- data/lib/fog/rackspace/examples/compute_v2/delete_image.rb +1 -1
- data/lib/fog/rackspace/examples/compute_v2/delete_server.rb +1 -1
- data/lib/fog/rackspace/examples/compute_v2/detach_volume.rb +2 -2
- data/lib/fog/rackspace/examples/compute_v2/resize_server.rb +1 -1
- data/lib/fog/rackspace/examples/compute_v2/server_attachments.rb +1 -1
- data/lib/fog/rackspace/examples/storage/create_cdn_directory.rb +1 -1
- data/lib/fog/rackspace/examples/storage/delete_directory.rb +1 -1
- data/lib/fog/rackspace/examples/storage/delete_file.rb +1 -1
- data/lib/fog/rackspace/examples/storage/download_file.rb +1 -1
- data/lib/fog/rackspace/models/auto_scale/group.rb +3 -3
- data/lib/fog/rackspace/models/auto_scale/group_builder.rb +85 -0
- data/lib/fog/rackspace/models/auto_scale/group_config.rb +22 -3
- data/lib/fog/rackspace/models/auto_scale/groups.rb +3 -3
- data/lib/fog/rackspace/models/auto_scale/launch_config.rb +22 -2
- data/lib/fog/rackspace/models/auto_scale/policies.rb +5 -3
- data/lib/fog/rackspace/models/auto_scale/policy.rb +78 -62
- data/lib/fog/rackspace/models/auto_scale/webhook.rb +40 -27
- data/lib/fog/rackspace/models/auto_scale/webhooks.rb +8 -9
- data/lib/fog/rackspace/models/compute_v2/images.rb +1 -1
- data/lib/fog/rackspace/models/compute_v2/metadata.rb +2 -3
- data/lib/fog/rackspace/models/compute_v2/server.rb +11 -10
- data/lib/fog/rackspace/models/compute_v2/servers.rb +1 -1
- data/lib/fog/rackspace/models/identity/service_catalog.rb +44 -59
- data/lib/fog/rackspace/models/queues/claim.rb +92 -0
- data/lib/fog/rackspace/models/queues/claims.rb +40 -0
- data/lib/fog/rackspace/models/queues/message.rb +51 -0
- data/lib/fog/rackspace/models/queues/messages.rb +54 -0
- data/lib/fog/rackspace/models/queues/queue.rb +73 -0
- data/lib/fog/rackspace/models/queues/queues.rb +32 -0
- data/lib/fog/rackspace/models/storage/file.rb +26 -0
- data/lib/fog/rackspace/models/storage/files.rb +25 -0
- data/lib/fog/rackspace/monitoring.rb +20 -1
- data/lib/fog/rackspace/queues.rb +117 -0
- data/lib/fog/rackspace/requests/auto_scale/resume_group_state.rb +5 -6
- data/lib/fog/rackspace/requests/block_storage/create_volume.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/delete_image.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/list_metadata.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/list_servers.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/resize_server.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/set_metadata.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/set_metadata_item.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/update_metadata.rb +1 -1
- data/lib/fog/rackspace/requests/databases/create_database.rb +2 -2
- data/lib/fog/rackspace/requests/databases/create_instance.rb +3 -1
- data/lib/fog/rackspace/requests/databases/create_user.rb +1 -1
- data/lib/fog/rackspace/requests/monitoring/get_monitoring_zone.rb +15 -0
- data/lib/fog/rackspace/requests/monitoring/list_monitoring_zones.rb +15 -0
- data/lib/fog/rackspace/requests/queues/create_claim.rb +24 -0
- data/lib/fog/rackspace/requests/queues/create_message.rb +21 -0
- data/lib/fog/rackspace/requests/queues/create_queue.rb +16 -0
- data/lib/fog/rackspace/requests/queues/delete_claim.rb +15 -0
- data/lib/fog/rackspace/requests/queues/delete_message.rb +18 -0
- data/lib/fog/rackspace/requests/queues/delete_queue.rb +15 -0
- data/lib/fog/rackspace/requests/queues/get_claim.rb +15 -0
- data/lib/fog/rackspace/requests/queues/get_message.rb +16 -0
- data/lib/fog/rackspace/requests/queues/get_queue.rb +15 -0
- data/lib/fog/rackspace/requests/queues/get_queue_stats.rb +15 -0
- data/lib/fog/rackspace/requests/queues/list_messages.rb +17 -0
- data/lib/fog/rackspace/requests/queues/list_queues.rb +15 -0
- data/lib/fog/rackspace/requests/queues/update_claim.rb +19 -0
- data/lib/fog/rackspace/requests/storage/get_object_http_url.rb +30 -0
- data/lib/fog/rackspace/requests/storage/get_object_https_url.rb +2 -1
- data/lib/fog/rackspace/requests/storage/put_object.rb +6 -1
- data/lib/fog/rackspace/service.rb +11 -3
- data/lib/fog/rackspace/storage.rb +2 -4
- data/lib/fog/rackspace.rb +6 -3
- data/lib/fog/vcloud_director/README.md +8 -22
- data/lib/fog/vcloud_director/compute.rb +417 -101
- data/lib/fog/vcloud_director/generators/compute/customization.rb +64 -59
- data/lib/fog/vcloud_director/generators/compute/disks.rb +81 -70
- data/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +159 -0
- data/lib/fog/vcloud_director/generators/compute/metadata.rb +40 -41
- data/lib/fog/vcloud_director/generators/compute/vm_network.rb +55 -58
- data/lib/fog/vcloud_director/models/compute/catalog_item.rb +1 -0
- data/lib/fog/vcloud_director/models/compute/catalog_items.rb +4 -2
- data/lib/fog/vcloud_director/models/compute/disk.rb +2 -2
- data/lib/fog/vcloud_director/models/compute/disks.rb +1 -1
- data/lib/fog/vcloud_director/models/compute/media.rb +29 -0
- data/lib/fog/vcloud_director/models/compute/medias.rb +77 -0
- data/lib/fog/vcloud_director/models/compute/organizations.rb +1 -1
- data/lib/fog/vcloud_director/models/compute/tag.rb +2 -4
- data/lib/fog/vcloud_director/models/compute/tags.rb +8 -16
- data/lib/fog/vcloud_director/models/compute/task.rb +15 -14
- data/lib/fog/vcloud_director/models/compute/tasks.rb +2 -3
- data/lib/fog/vcloud_director/models/compute/vapp.rb +92 -6
- data/lib/fog/vcloud_director/models/compute/vapps.rb +1 -1
- data/lib/fog/vcloud_director/models/compute/vdc.rb +5 -0
- data/lib/fog/vcloud_director/models/compute/vm.rb +80 -6
- data/lib/fog/vcloud_director/models/compute/vm_customization.rb +3 -2
- data/lib/fog/vcloud_director/models/compute/vm_network.rb +1 -1
- data/lib/fog/vcloud_director/parsers/compute/metadata.rb +26 -29
- data/lib/fog/vcloud_director/parsers/compute/network.rb +60 -62
- data/lib/fog/vcloud_director/parsers/compute/vm_customization.rb +1 -1
- data/lib/fog/vcloud_director/parsers/compute/vm_network.rb +60 -62
- data/lib/fog/vcloud_director/requests/compute/delete_catalog_item.rb +22 -0
- data/lib/fog/vcloud_director/requests/compute/delete_catalog_item_metadata_item_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/delete_disk.rb +60 -0
- data/lib/fog/vcloud_director/requests/compute/delete_disk_metadata_item_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/delete_logout.rb +18 -0
- data/lib/fog/vcloud_director/requests/compute/delete_media.rb +122 -0
- data/lib/fog/vcloud_director/requests/compute/delete_media_metadata_item_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/delete_shadow_vm.rb +30 -0
- data/lib/fog/vcloud_director/requests/compute/delete_vapp.rb +18 -9
- data/lib/fog/vcloud_director/requests/compute/delete_vapp_metadata_item_metadata.rb +30 -0
- data/lib/fog/vcloud_director/requests/compute/delete_vapp_template.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/delete_vapp_template_metadata_item_metadata.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_allocated_ip_addresses.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_catalog.rb +31 -7
- data/lib/fog/vcloud_director/requests/compute/get_catalog_item.rb +14 -7
- data/lib/fog/vcloud_director/requests/compute/get_catalog_item_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_catalog_item_metadata_item_metadata.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_catalog_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_catalog_metadata_item_metadata.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_catalogs_from_query.rb +94 -0
- data/lib/fog/vcloud_director/requests/compute/get_control_access_params_catalog.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_control_access_params_vapp.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_cpu_rasd_item.rb +28 -0
- data/lib/fog/vcloud_director/requests/compute/get_current_session.rb +31 -23
- data/lib/fog/vcloud_director/requests/compute/get_disk.rb +123 -0
- data/lib/fog/vcloud_director/requests/compute/get_disk_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_disk_metadata_item_metadata.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_disk_owner.rb +70 -0
- data/lib/fog/vcloud_director/requests/compute/get_disks_from_query.rb +94 -0
- data/lib/fog/vcloud_director/requests/compute/get_disks_rasd_items_list.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_edge_gateway.rb +109 -0
- data/lib/fog/vcloud_director/requests/compute/get_entity.rb +38 -0
- data/lib/fog/vcloud_director/requests/compute/get_execute_query.rb +462 -0
- data/lib/fog/vcloud_director/requests/compute/get_groups_from_query.rb +95 -0
- data/lib/fog/vcloud_director/requests/compute/get_guest_customization_system_section_vapp.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_guest_customization_system_section_vapp_template.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_href.rb +4 -2
- data/lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp_template.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_media.rb +111 -0
- data/lib/fog/vcloud_director/requests/compute/get_media_drives_rasd_items_list.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_media_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_media_metadata_item_metadata.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_media_owner.rb +70 -0
- data/lib/fog/vcloud_director/requests/compute/get_medias_from_query.rb +94 -0
- data/lib/fog/vcloud_director/requests/compute/get_memory_rasd_item.rb +28 -0
- data/lib/fog/vcloud_director/requests/compute/get_metadata.rb +17 -7
- data/lib/fog/vcloud_director/requests/compute/get_network.rb +49 -7
- data/lib/fog/vcloud_director/requests/compute/get_network_cards_items_list.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_config_section_vapp.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_config_section_vapp_template.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_connection_system_section_vapp.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_connection_system_section_vapp_template.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_metadata_item_metadata.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_section_vapp.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_section_vapp_template.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_operating_system_section.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_org_settings.rb +38 -0
- data/lib/fog/vcloud_director/requests/compute/get_org_vdc_gateways.rb +83 -0
- data/lib/fog/vcloud_director/requests/compute/get_organization.rb +70 -42
- data/lib/fog/vcloud_director/requests/compute/get_organization_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_organization_metadata_item_metadata.rb +28 -0
- data/lib/fog/vcloud_director/requests/compute/get_organizations.rb +28 -13
- data/lib/fog/vcloud_director/requests/compute/get_organizations_from_query.rb +95 -0
- data/lib/fog/vcloud_director/requests/compute/get_product_sections_vapp.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_product_sections_vapp_template.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_request.rb +7 -5
- data/lib/fog/vcloud_director/requests/compute/get_runtime_info_section_type.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_serial_ports_items_list.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_shadow_vm.rb +24 -0
- data/lib/fog/vcloud_director/requests/compute/get_snapshot_section.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_startup_section.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_supported_systems_info.rb +239 -0
- data/lib/fog/vcloud_director/requests/compute/get_supported_versions.rb +4 -5
- data/lib/fog/vcloud_director/requests/compute/get_task.rb +156 -6
- data/lib/fog/vcloud_director/requests/compute/get_task_list.rb +130 -0
- data/lib/fog/vcloud_director/requests/compute/get_thumbnail.rb +28 -0
- data/lib/fog/vcloud_director/requests/compute/get_users_from_query.rb +95 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp.rb +17 -8
- data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata_item_metadata.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_ovf_descriptor.rb +24 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_owner.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_template.rb +14 -7
- data/lib/fog/vcloud_director/requests/compute/get_vapp_template_customization_system_section.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_template_metadata_item_metadata.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_template_ovf_descriptor.rb +24 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_template_owner.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_templates_from_query.rb +95 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapps_in_lease_from_query.rb +94 -0
- data/lib/fog/vcloud_director/requests/compute/get_vcloud.rb +76 -0
- data/lib/fog/vcloud_director/requests/compute/get_vdc.rb +66 -62
- data/lib/fog/vcloud_director/requests/compute/get_vdc_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_vdc_metadata_item_metadata.rb +28 -0
- data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class.rb +83 -0
- data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/get_vdc_storage_class_metadata_item_metadata.rb +25 -0
- data/lib/fog/vcloud_director/requests/compute/get_vdcs_from_query.rb +94 -0
- data/lib/fog/vcloud_director/requests/compute/get_virtual_hardware_section.rb +29 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm.rb +15 -7
- data/lib/fog/vcloud_director/requests/compute/get_vm_capabilities.rb +30 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_compliance_results.rb +24 -0
- data/lib/fog/vcloud_director/requests/compute/get_vm_customization.rb +18 -7
- data/lib/fog/vcloud_director/requests/compute/get_vm_disks.rb +18 -7
- data/lib/fog/vcloud_director/requests/compute/get_vm_network.rb +18 -7
- data/lib/fog/vcloud_director/requests/compute/get_vm_pending_question.rb +34 -0
- data/lib/fog/vcloud_director/requests/compute/get_vms.rb +15 -7
- data/lib/fog/vcloud_director/requests/compute/get_vms_by_metadata.rb +6 -5
- data/lib/fog/vcloud_director/requests/compute/get_vms_disk_attached_to.rb +39 -0
- data/lib/fog/vcloud_director/requests/compute/get_vms_in_lease_from_query.rb +95 -0
- data/lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb +36 -63
- data/lib/fog/vcloud_director/requests/compute/post_acquire_ticket.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/post_answer_vm_pending_question.rb +36 -0
- data/lib/fog/vcloud_director/requests/compute/post_attach_disk.rb +51 -0
- data/lib/fog/vcloud_director/requests/compute/post_cancel_task.rb +43 -0
- data/lib/fog/vcloud_director/requests/compute/post_capture_vapp.rb +46 -0
- data/lib/fog/vcloud_director/requests/compute/post_check_vm_compliance.rb +28 -0
- data/lib/fog/vcloud_director/requests/compute/post_clone_media.rb +102 -0
- data/lib/fog/vcloud_director/requests/compute/post_clone_vapp.rb +62 -0
- data/lib/fog/vcloud_director/requests/compute/post_clone_vapp_template.rb +52 -0
- data/lib/fog/vcloud_director/requests/compute/post_configure_edge_gateway_services.rb +70 -0
- data/lib/fog/vcloud_director/requests/compute/post_consolidate_vm_vapp.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/post_consolidate_vm_vapp_template.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/post_deploy_vapp.rb +51 -0
- data/lib/fog/vcloud_director/requests/compute/post_detach_disk.rb +39 -0
- data/lib/fog/vcloud_director/requests/compute/post_disable_nested_hv.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/post_disable_vapp_template_download.rb +24 -0
- data/lib/fog/vcloud_director/requests/compute/post_discard_vapp_state.rb +30 -0
- data/lib/fog/vcloud_director/requests/compute/post_eject_cd_rom.rb +39 -0
- data/lib/fog/vcloud_director/requests/compute/post_enable_nested_hv.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/post_enable_vapp_template_download.rb +24 -0
- data/lib/fog/vcloud_director/requests/compute/post_enter_maintenance_mode.rb +26 -0
- data/lib/fog/vcloud_director/requests/compute/post_exit_maintenance_mode.rb +22 -0
- data/lib/fog/vcloud_director/requests/compute/post_insert_cd_rom.rb +39 -0
- data/lib/fog/vcloud_director/requests/compute/post_install_vmware_tools.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/post_instantiate_vapp_template.rb +133 -0
- data/lib/fog/vcloud_director/requests/compute/post_login_session.rb +39 -0
- data/lib/fog/vcloud_director/requests/compute/post_power_off_vapp.rb +36 -0
- data/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb +36 -0
- data/lib/fog/vcloud_director/requests/compute/post_reboot_vapp.rb +33 -0
- data/lib/fog/vcloud_director/requests/compute/post_remove_all_snapshots.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/post_reset_vapp.rb +33 -0
- data/lib/fog/vcloud_director/requests/compute/post_revert_snapshot.rb +27 -0
- data/lib/fog/vcloud_director/requests/compute/post_shutdown_vapp.rb +33 -0
- data/lib/fog/vcloud_director/requests/compute/post_suspend_vapp.rb +33 -0
- data/lib/fog/vcloud_director/requests/compute/post_undeploy_vapp.rb +66 -0
- data/lib/fog/vcloud_director/requests/compute/post_update_catalog_item_metadata.rb +52 -0
- data/lib/fog/vcloud_director/requests/compute/post_update_disk_metadata.rb +52 -0
- data/lib/fog/vcloud_director/requests/compute/post_update_media_metadata.rb +52 -0
- data/lib/fog/vcloud_director/requests/compute/post_update_vapp_metadata.rb +52 -0
- data/lib/fog/vcloud_director/requests/compute/post_update_vapp_template_metadata.rb +52 -0
- data/lib/fog/vcloud_director/requests/compute/post_upgrade_hw_version.rb +28 -0
- data/lib/fog/vcloud_director/requests/compute/post_upload_disk.rb +133 -0
- data/lib/fog/vcloud_director/requests/compute/post_upload_media.rb +120 -0
- data/lib/fog/vcloud_director/requests/compute/post_upload_vapp_template.rb +46 -0
- data/lib/fog/vcloud_director/requests/compute/put_catalog_item_metadata_item_metadata.rb +50 -0
- data/lib/fog/vcloud_director/requests/compute/put_cpu.rb +47 -0
- data/lib/fog/vcloud_director/requests/compute/put_disk_metadata_item_metadata.rb +46 -0
- data/lib/fog/vcloud_director/requests/compute/put_disks.rb +39 -0
- data/lib/fog/vcloud_director/requests/compute/put_guest_customization_section_vapp.rb +139 -0
- data/lib/fog/vcloud_director/requests/compute/put_media_metadata_item_metadata.rb +50 -0
- data/lib/fog/vcloud_director/requests/compute/put_memory.rb +47 -0
- data/lib/fog/vcloud_director/requests/compute/put_metadata_value.rb +4 -3
- data/lib/fog/vcloud_director/requests/compute/put_network_connection_system_section_vapp.rb +121 -0
- data/lib/fog/vcloud_director/requests/compute/put_vapp_metadata_item_metadata.rb +50 -0
- data/lib/fog/vcloud_director/requests/compute/put_vapp_template_metadata_item_metadata.rb +50 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm_capabilities.rb +44 -0
- data/lib/fog/vcloud_director.rb +58 -2
- data/lib/fog/version.rb +1 -1
- data/lib/fog/vsphere/compute.rb +41 -15
- data/lib/fog/vsphere/models/compute/datacenter.rb +11 -6
- data/lib/fog/vsphere/models/compute/interface.rb +55 -3
- data/lib/fog/vsphere/models/compute/interfaces.rb +25 -10
- data/lib/fog/vsphere/models/compute/interfacetype.rb +26 -0
- data/lib/fog/vsphere/models/compute/interfacetypes.rb +40 -0
- data/lib/fog/vsphere/models/compute/scsicontroller.rb +19 -0
- data/lib/fog/vsphere/models/compute/server.rb +47 -16
- data/lib/fog/vsphere/models/compute/servertype.rb +39 -0
- data/lib/fog/vsphere/models/compute/servertypes.rb +29 -0
- data/lib/fog/vsphere/models/compute/volume.rb +59 -4
- data/lib/fog/vsphere/models/compute/volumes.rb +22 -7
- data/lib/fog/vsphere/requests/compute/create_vm.rb +46 -13
- data/lib/fog/vsphere/requests/compute/get_datacenter.rb +1 -1
- data/lib/fog/vsphere/requests/compute/get_interface_type.rb +15 -0
- data/lib/fog/vsphere/requests/compute/get_network.rb +2 -2
- data/lib/fog/vsphere/requests/compute/get_server_type.rb +32 -0
- data/lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb +26 -0
- data/lib/fog/vsphere/requests/compute/list_datacenters.rb +22 -3
- data/lib/fog/vsphere/requests/compute/list_interface_types.rb +25 -0
- data/lib/fog/vsphere/requests/compute/list_server_types.rb +55 -0
- data/lib/fog/vsphere/requests/compute/list_vm_volumes.rb +3 -1
- data/lib/fog/vsphere/requests/compute/modify_vm_interface.rb +9 -6
- data/lib/fog/vsphere/requests/compute/modify_vm_volume.rb +26 -0
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +2 -9
- data/lib/fog/vsphere/requests/compute/vm_reconfig_cpus.rb +2 -2
- data/lib/fog/xenserver/requests/compute/create_server.rb +1 -1
- data/lib/tasks/changelog_task.rb +3 -0
- data/lib/tasks/test_task.rb +1 -0
- data/tests/aws/models/compute/server_tests.rb +21 -1
- data/tests/aws/models/elb/model_tests.rb +6 -0
- data/tests/aws/requests/compute/instance_tests.rb +2 -0
- data/tests/aws/requests/compute/internet_gateway_tests.rb +5 -0
- data/tests/aws/requests/compute/network_interface_tests.rb +17 -0
- data/tests/aws/requests/elb/load_balancer_tests.rb +6 -0
- data/tests/aws/requests/iam/group_policy_tests.rb +12 -6
- data/tests/aws/requests/storage/bucket_tests.rb +19 -3
- data/tests/aws/requests/storage/object_tests.rb +1 -0
- data/tests/aws/signed_params_tests.rb +1 -5
- data/tests/aws/storage_tests.rb +7 -0
- data/tests/brightbox/compute/schema.rb +1 -0
- data/tests/brightbox/requests/compute/interface_tests.rb +7 -19
- data/tests/compute/helper.rb +6 -4
- data/tests/core/credential_tests.rb +7 -1
- data/tests/core/parser_tests.rb +1 -1
- data/tests/core/uuid_tests.rb +10 -0
- data/tests/ecloud/compute/models/server_tests.rb +34 -41
- data/tests/helpers/mock_helper.rb +1 -0
- 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_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_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 +13 -0
- data/tests/hp/models/compute_v2/availability_zones_tests.rb +13 -0
- data/tests/hp/models/compute_v2/key_pair_tests.rb +29 -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/directory_tests.rb +70 -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/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 +43 -0
- data/tests/hp/requests/compute_v2/server_tests.rb +113 -0
- data/tests/hp/requests/compute_v2/server_volume_tests.rb +85 -0
- data/tests/hp/requests/dns/domain_tests.rb +72 -0
- data/tests/hp/requests/dns/records_tests.rb +65 -0
- data/tests/hp/requests/lb/algorithms_tests.rb +15 -0
- data/tests/hp/requests/lb/limits_tests.rb +18 -0
- data/tests/hp/requests/lb/load_balancer_nodes_tests.rb +47 -0
- data/tests/hp/requests/lb/load_balancer_tests.rb +56 -0
- data/tests/hp/requests/lb/protocols_tests.rb +15 -0
- data/tests/hp/requests/lb/versions_tests.rb +17 -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 +9 -1
- data/tests/hp/requests/storage/object_tests.rb +34 -2
- data/tests/hp/storage_tests.rb +25 -0
- data/tests/local/models/directories_tests.rb +17 -0
- data/tests/openstack/requests/orchestration/stack_tests.rb +6 -1
- data/tests/openstack/requests/storage/large_object_tests.rb +320 -59
- data/tests/openstack/requests/storage/object_tests.rb +77 -4
- data/tests/rackspace/block_storage_tests.rb +1 -1
- data/tests/rackspace/cdn_tests.rb +2 -2
- data/tests/rackspace/compute_tests.rb +1 -6
- data/tests/rackspace/compute_v2_tests.rb +1 -1
- data/tests/rackspace/databases_tests.rb +1 -1
- data/tests/rackspace/dns_tests.rb +1 -1
- data/tests/rackspace/helper.rb +14 -4
- data/tests/rackspace/load_balancer_tests.rb +1 -1
- data/tests/rackspace/models/auto_scale/group_builder_tests.rb +145 -0
- data/tests/rackspace/models/auto_scale/group_tests.rb +36 -0
- data/tests/rackspace/models/auto_scale/{groups.rb → groups_tests.rb} +6 -2
- data/tests/rackspace/models/auto_scale/policies_tests.rb +25 -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/compute_v2/metadata_tests.rb +1 -1
- data/tests/rackspace/models/compute_v2/server_tests.rb +8 -1
- data/tests/rackspace/models/identity/service_catalog_tests.rb +88 -40
- data/tests/rackspace/models/queues/claim_tests.rb +43 -0
- data/tests/rackspace/models/queues/claims_tests.rb +55 -0
- data/tests/rackspace/models/queues/message_tests.rb +35 -0
- data/tests/rackspace/models/queues/messages_tests.rb +18 -0
- data/tests/rackspace/models/queues/queue_tests.rb +30 -0
- data/tests/rackspace/models/queues/queues_tests.rb +10 -0
- data/tests/rackspace/models/storage/file_tests.rb +48 -6
- data/tests/rackspace/models/storage/files_tests.rb +44 -0
- data/tests/rackspace/queues_tests.rb +118 -0
- data/tests/rackspace/requests/auto_scale/config_tests.rb +61 -15
- data/tests/rackspace/requests/auto_scale/group_tests.rb +16 -4
- data/tests/rackspace/requests/auto_scale/helper.rb +46 -3
- data/tests/rackspace/requests/auto_scale/policy_tests.rb +37 -27
- data/tests/rackspace/requests/auto_scale/webhook_tests.rb +37 -28
- data/tests/rackspace/requests/compute_v2/address_tests.rb +3 -1
- data/tests/rackspace/requests/compute_v2/metadata_tests.rb +4 -2
- data/tests/rackspace/requests/compute_v2/server_tests.rb +3 -6
- data/tests/rackspace/requests/databases/helper.rb +0 -5
- data/tests/rackspace/requests/monitoring/entity_tests.rb +4 -4
- data/tests/rackspace/requests/monitoring/helper.rb +64 -0
- data/tests/rackspace/requests/monitoring/list_tests.rb +14 -2
- data/tests/rackspace/requests/queues/claim_tests.rb +62 -0
- data/tests/rackspace/requests/queues/helper.rb +50 -0
- data/tests/rackspace/requests/queues/messages_tests.rb +60 -0
- data/tests/rackspace/requests/queues/queues_tests.rb +43 -0
- data/tests/rackspace/requests/storage/large_object_tests.rb +8 -6
- data/tests/rackspace/requests/storage/object_tests.rb +12 -1
- data/tests/rackspace/service_tests.rb +0 -1
- data/tests/rackspace/storage_tests.rb +5 -5
- data/tests/vcloud_director/ensure_list_tests.rb +84 -0
- data/tests/vcloud_director/fixtures/test.iso +1 -0
- data/tests/vcloud_director/models/compute/catalog_items_tests.rb +31 -32
- data/tests/vcloud_director/models/compute/catalogs_tests.rb +30 -32
- data/tests/vcloud_director/models/compute/helper.rb +1 -8
- data/tests/vcloud_director/models/compute/media_tests.rb +45 -0
- data/tests/vcloud_director/models/compute/organizations_tests.rb +11 -15
- data/tests/vcloud_director/models/compute/tasks_tests.rb +26 -0
- data/tests/vcloud_director/models/compute/vapp_life_cycle_tests.rb +73 -78
- data/tests/vcloud_director/models/compute/vapp_tests.rb +29 -32
- data/tests/vcloud_director/models/compute/vdcs_tests.rb +31 -35
- data/tests/vcloud_director/models/compute/vms_tests.rb +72 -76
- data/tests/vcloud_director/requests/compute/admin_tests.rb +16 -0
- data/tests/vcloud_director/requests/compute/catalog_tests.rb +42 -0
- data/tests/vcloud_director/requests/compute/disk_tests.rb +178 -0
- data/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +101 -0
- data/tests/vcloud_director/requests/compute/groups_tests.rb +18 -0
- data/tests/vcloud_director/requests/compute/helper.rb +34 -0
- data/tests/vcloud_director/requests/compute/media_tests.rb +195 -0
- data/tests/vcloud_director/requests/compute/network_tests.rb +43 -0
- data/tests/vcloud_director/requests/compute/organization_tests.rb +26 -37
- data/tests/vcloud_director/requests/compute/ovf_descriptor_tests.rb +36 -0
- data/tests/vcloud_director/requests/compute/query_tests.rb +34 -0
- data/tests/vcloud_director/requests/compute/schema_helper.rb +638 -0
- data/tests/vcloud_director/requests/compute/session_tests.rb +2 -17
- data/tests/vcloud_director/requests/compute/supported_systems_tests.rb +11 -0
- data/tests/vcloud_director/requests/compute/task_tests.rb +35 -0
- data/tests/vcloud_director/requests/compute/users_tests.rb +18 -0
- data/tests/vcloud_director/requests/compute/vapp_tests.rb +91 -0
- data/tests/vcloud_director/requests/compute/vdc_storage_profile_tests.rb +27 -0
- data/tests/vcloud_director/requests/compute/vdc_tests.rb +26 -80
- data/tests/vcloud_director/requests/compute/versions_tests.rb +1 -16
- data/tests/vcloud_director/requests/compute/vm_tests.rb +125 -0
- metadata +771 -122
- data/lib/fog/vcloud_director/requests/compute/delete_metadata.rb +0 -20
- data/lib/fog/vcloud_director/requests/compute/get_tasks_list.rb +0 -18
- data/lib/fog/vcloud_director/requests/compute/get_vm_cpu.rb +0 -18
- data/lib/fog/vcloud_director/requests/compute/get_vm_memory.rb +0 -18
- data/lib/fog/vcloud_director/requests/compute/helper.rb +0 -93
- data/lib/fog/vcloud_director/requests/compute/post_task_cancel.rb +0 -25
- data/lib/fog/vcloud_director/requests/compute/post_vapp_undeploy.rb +0 -26
- data/lib/fog/vcloud_director/requests/compute/post_vm_metadata.rb +0 -29
- data/lib/fog/vcloud_director/requests/compute/post_vm_poweroff.rb +0 -18
- data/lib/fog/vcloud_director/requests/compute/post_vm_poweron.rb +0 -18
- data/lib/fog/vcloud_director/requests/compute/put_vm_cpu.rb +0 -34
- data/lib/fog/vcloud_director/requests/compute/put_vm_customization.rb +0 -24
- data/lib/fog/vcloud_director/requests/compute/put_vm_disks.rb +0 -25
- data/lib/fog/vcloud_director/requests/compute/put_vm_memory.rb +0 -34
- data/lib/fog/vcloud_director/requests/compute/put_vm_network.rb +0 -24
- data/tests/rackspace/models/auto_scale/group.rb +0 -19
- data/tests/rackspace/models/auto_scale/policies.rb +0 -23
- data/tests/rackspace/models/auto_scale/policy.rb +0 -29
- data/tests/rackspace/models/auto_scale/webhook.rb +0 -35
- data/tests/rackspace/models/auto_scale/webhooks.rb +0 -28
- data/tests/vcloud_director/models/tools/reduced_vcr_requests.rb +0 -27
data/lib/fog/google/compute.rb
CHANGED
@@ -42,6 +42,7 @@ module Fog
|
|
42
42
|
request :insert_image
|
43
43
|
request :insert_network
|
44
44
|
request :insert_server
|
45
|
+
request :insert_snapshot
|
45
46
|
|
46
47
|
request :set_metadata
|
47
48
|
|
@@ -61,23 +62,709 @@ module Fog
|
|
61
62
|
model :snapshot
|
62
63
|
collection :snapshots
|
63
64
|
|
65
|
+
model :zone
|
66
|
+
collection :zones
|
67
|
+
|
68
|
+
module Shared
|
69
|
+
attr_reader :project
|
70
|
+
|
71
|
+
def build_excon_response(body)
|
72
|
+
response = Excon::Response.new
|
73
|
+
response.body = body
|
74
|
+
if response.body["error"]
|
75
|
+
response.status = response.body["error"]["code"]
|
76
|
+
|
77
|
+
response.body["error"]["errors"].each do |error|
|
78
|
+
raise Fog::Errors::Error.new(error["message"])
|
79
|
+
end
|
80
|
+
else
|
81
|
+
response.status = 200
|
82
|
+
end
|
83
|
+
response
|
84
|
+
end
|
85
|
+
|
86
|
+
def backoff_if_unfound(&block)
|
87
|
+
retries_remaining = 10
|
88
|
+
begin
|
89
|
+
result = block.call
|
90
|
+
rescue Exception => msg
|
91
|
+
if msg.to_s.include? 'was not found' and retries_remaining > 0
|
92
|
+
retries_remaining -= 1
|
93
|
+
sleep 0.1
|
94
|
+
retry
|
95
|
+
else
|
96
|
+
raise msg
|
97
|
+
end
|
98
|
+
end
|
99
|
+
result
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
64
103
|
class Mock
|
65
104
|
include Collections
|
105
|
+
include Shared
|
66
106
|
|
67
|
-
def initialize(options)
|
68
|
-
|
107
|
+
def initialize(options={})
|
108
|
+
@project = options[:google_project]
|
109
|
+
end
|
110
|
+
|
111
|
+
def build_response(params={})
|
112
|
+
body = params[:body] || {}
|
113
|
+
build_excon_response(body)
|
114
|
+
end
|
115
|
+
|
116
|
+
def self.data
|
117
|
+
@data ||= Hash.new do |hash, key|
|
118
|
+
case key
|
119
|
+
when 'google'
|
120
|
+
hash[key] = {
|
121
|
+
:images => {
|
122
|
+
"centos-6-2-v20120621" => {
|
123
|
+
"kind" => "compute#image",
|
124
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/images/centos-6-2-v20120621",
|
125
|
+
"id" => "12920641029336858796",
|
126
|
+
"creationTimestamp" => "2012-06-21T22:59:56.392-07:00",
|
127
|
+
"name" => "centos-6-2-v20120621",
|
128
|
+
"description" => "CentOS 6.2; Created Thu, 21 Jun 2012 14:22:21 +0000",
|
129
|
+
"sourceType" => "RAW",
|
130
|
+
"preferredKernel" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/kernels/gce-20120621",
|
131
|
+
"rawDisk" => {
|
132
|
+
"containerType" => "TAR",
|
133
|
+
"source" => ""
|
134
|
+
},
|
135
|
+
"deprecated" => {
|
136
|
+
"state" => "DELETED",
|
137
|
+
"replacement" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/images/centos-6-v20130104"
|
138
|
+
},
|
139
|
+
"status" => "READY"
|
140
|
+
},
|
141
|
+
"centos-6-v20120912" => {
|
142
|
+
"kind" => "compute#image",
|
143
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/images/centos-6-v20120912",
|
144
|
+
"id" => "12994279803511049620",
|
145
|
+
"creationTimestamp" => "2012-09-18T08:52:47.584-07:00",
|
146
|
+
"name" => "centos-6-v20120912",
|
147
|
+
"description" => "CentOS 6; Created Wed, 12 Sep 2012 00:00:00 +0000",
|
148
|
+
"sourceType" => "RAW",
|
149
|
+
"preferredKernel" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/kernels/gce-v20120912",
|
150
|
+
"rawDisk" => {
|
151
|
+
"containerType" => "TAR",
|
152
|
+
"source" => ""
|
153
|
+
},
|
154
|
+
"deprecated" => {
|
155
|
+
"state" => "DEPRECATED",
|
156
|
+
"replacement" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/images/centos-6-v20130104"
|
157
|
+
},
|
158
|
+
"status" => "READY"
|
159
|
+
},
|
160
|
+
"centos-6-v20121106" => {
|
161
|
+
"kind" => "compute#image",
|
162
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/images/centos-6-v20121106",
|
163
|
+
"id" => "13037720516378381209",
|
164
|
+
"creationTimestamp" => "2012-11-09T11:40:41.079-08:00",
|
165
|
+
"name" => "centos-6-v20121106",
|
166
|
+
"description" => "SCSI-enabled CentOS 6; Created Tue, 06 Nov 2012 00:00:00 +0000",
|
167
|
+
"sourceType" => "RAW",
|
168
|
+
"preferredKernel" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/kernels/gce-v20121106",
|
169
|
+
"rawDisk" => {
|
170
|
+
"containerType" => "TAR",
|
171
|
+
"source" => ""
|
172
|
+
},
|
173
|
+
"status" => "READY"
|
174
|
+
}
|
175
|
+
}
|
176
|
+
}
|
177
|
+
when 'debian-cloud'
|
178
|
+
hash[key] = {
|
179
|
+
:images => {
|
180
|
+
"debian-6-squeeze-v20130816" => {
|
181
|
+
"kind" => "compute#image",
|
182
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/debian-cloud/global/images/debian-6-squeeze-v20130816",
|
183
|
+
"id" => "14841592146580482051",
|
184
|
+
"creationTimestamp" => "2013-09-04T13:21:53.292-07:00",
|
185
|
+
"name" => "debian-6-squeeze-v20130816",
|
186
|
+
"description" => "Debian GNU/Linux 6.0.7 (squeeze) built on 2013-08-16",
|
187
|
+
"sourceType" => "RAW",
|
188
|
+
"preferredKernel" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/kernels/gce-v20130813",
|
189
|
+
"rawDisk" => {
|
190
|
+
"containerType" => "TAR",
|
191
|
+
"source" => ""
|
192
|
+
},
|
193
|
+
"status" => "READY"
|
194
|
+
},
|
195
|
+
"debian-7-wheezy-v20130816" => {
|
196
|
+
"kind" => "compute#image",
|
197
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/debian-cloud/global/images/debian-7-wheezy-v20130816",
|
198
|
+
"id" => "4213305957435180899",
|
199
|
+
"creationTimestamp" => "2013-09-04T13:24:30.479-07:00",
|
200
|
+
"name" => "debian-7-wheezy-v20130816",
|
201
|
+
"description" => "Debian GNU/Linux 7.1 (wheezy) built on 2013-08-16",
|
202
|
+
"sourceType" => "RAW",
|
203
|
+
"preferredKernel" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/kernels/gce-v20130813",
|
204
|
+
"rawDisk" => {
|
205
|
+
"containerType" => "TAR",
|
206
|
+
"source" => ""
|
207
|
+
},
|
208
|
+
"status" => "READY"
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
when 'centos-cloud'
|
213
|
+
hash[key] = {
|
214
|
+
:images => {
|
215
|
+
"centos-6-v20130813" => {
|
216
|
+
"kind" => "compute#image",
|
217
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/centos-cloud/global/images/centos-6-v20130813",
|
218
|
+
"id" => "4670523370938782739",
|
219
|
+
"creationTimestamp" => "2013-08-19T11:56:47.004-07:00",
|
220
|
+
"name" => "centos-6-v20130813",
|
221
|
+
"description" => "SCSI-enabled CentOS 6; Created Tue, 13 Aug 2013 00:00:00 +0000",
|
222
|
+
"sourceType" => "RAW",
|
223
|
+
"preferredKernel" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/kernels/gce-v20130813",
|
224
|
+
"rawDisk" => {
|
225
|
+
"containerType" => "TAR",
|
226
|
+
"source" => ""
|
227
|
+
},
|
228
|
+
"status" => "READY"
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}
|
232
|
+
else
|
233
|
+
hash[key] = {
|
234
|
+
:servers => {
|
235
|
+
"fog-1" => {
|
236
|
+
"kind" => "compute#instance",
|
237
|
+
"id" => "1361932147851415727",
|
238
|
+
"creationTimestamp" => "2013-09-26T04:55:43.881-07:00",
|
239
|
+
"zone" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/us-central1-a",
|
240
|
+
"status" => "RUNNING",
|
241
|
+
"name" => "fog-1380196541",
|
242
|
+
"tags" => { "fingerprint" => "42WmSpB8rSM=" },
|
243
|
+
"machineType" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/us-central1-a/machineTypes/n1-standard-1",
|
244
|
+
"image" => "https://www.googleapis.com/compute/v1beta15/projects/centos-cloud/global/images/centos-6-v20130813",
|
245
|
+
"kernel" => "https://www.googleapis.com/compute/v1beta15/projects/google/global/kernels/gce-v20130813",
|
246
|
+
"canIpForward" => false,
|
247
|
+
"networkInterfaces" => [
|
248
|
+
{
|
249
|
+
"network" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/global/networks/default",
|
250
|
+
"networkIP" => "10.240.121.54",
|
251
|
+
"name" => "nic0",
|
252
|
+
"accessConfigs" => [
|
253
|
+
{
|
254
|
+
"kind" => "compute#accessConfig",
|
255
|
+
"type" => "ONE_TO_ONE_NAT",
|
256
|
+
"name" => "External NAT",
|
257
|
+
"natIP" => "108.59.81.28"
|
258
|
+
}
|
259
|
+
]
|
260
|
+
}
|
261
|
+
],
|
262
|
+
"disks" => [
|
263
|
+
{
|
264
|
+
"kind" => "compute#attachedDisk",
|
265
|
+
"index" => 0,
|
266
|
+
"type" => "SCRATCH",
|
267
|
+
"mode" => "READ_WRITE"
|
268
|
+
}
|
269
|
+
],
|
270
|
+
"metadata" => {
|
271
|
+
"kind" => "compute#metadata",
|
272
|
+
"fingerprint" => "5_hasd_gC3E=",
|
273
|
+
"items" => [
|
274
|
+
{
|
275
|
+
"key" => "sshKeys",
|
276
|
+
"value" => "sysadmin:ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAgEA1zc7mx+0H8Roywet/L0aVX6MUdkDfzd/17kZhprAbpUXYOILv9AG4lIzQk6xGxDIltghytjfVGme/4A42Sb0Z9LN0pxB4KnWTNoOSHPJtp6jbXpq6PdN9r3Z5NKQg0A/Tfw7gt2N0GDsj6vpK8VbHHdW78JAVUxql18ootJxjaksdocsiHNK8iA6/v9qiLRhX3fOgtK7KpxxdZxLRzFg9vkp8jcGISgpZt27kOgXWhR5YLhi8pRJookzphO5O4yhflgoHoAE65XkfrsRCe0HU5QTbY2jH88rBVkq0KVlZh/lEsuwfmG4d77kEqaCGGro+j1Wrvo2K3DSQ+rEcvPp2CYRUySjhaeLF18UzQLtxNeoN14QOYqlm9ITdkCnmq5w4Wn007MjSOFp8LEq2RekrnddGXjg1/vgmXtaVSGzJAlXwtVfZor3dTRmF0JCpr7DsiupBaDFtLUlGFFlSKmPDVMPOOB5wajexmcvSp2Vu4U3yP8Lai/9/ZxMdsGPhpdCsWVL83B5tF4oYj1HVIycbYIxIIfFqOxZcCru3CMfe9jmzKgKLv2UtkfOS8jpS/Os2gAiB3wPweH3agvtwYAYBVMDwt5cnrhgHYWoOz7ABD8KgmCrD7Y9HikiCqIUNkgUFd9YmjcYi5FkU5rFXIawN7efs341lsdf923lsdf923fs= johndoe@acme"
|
277
|
+
}
|
278
|
+
]
|
279
|
+
},
|
280
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/us-central1-a/instances/fog-1380196541"
|
281
|
+
}
|
282
|
+
},
|
283
|
+
:zones => {
|
284
|
+
"europe-west1-a" => {
|
285
|
+
"kind" => "compute#zone",
|
286
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/europe-west1-a",
|
287
|
+
"id" => "10419676573632995924",
|
288
|
+
"creationTimestamp" => "2013-09-26T02:56:13.115-07:00",
|
289
|
+
"name" => "europe-west1-a",
|
290
|
+
"description" => "europe-west1-a",
|
291
|
+
"status" => "UP",
|
292
|
+
"maintenanceWindows" => [
|
293
|
+
{
|
294
|
+
"name" => "2014-01-18-planned-outage",
|
295
|
+
"description" => "maintenance zone",
|
296
|
+
"beginTime" => "2014-01-18T12:00:00.000-08:00",
|
297
|
+
"endTime" => "2014-02-02T12:00:00.000-08:00"
|
298
|
+
}
|
299
|
+
],
|
300
|
+
"quotas" => [
|
301
|
+
{"metric" => "INSTANCES", "limit" => 16.0, "usage" => 0.0},
|
302
|
+
{"metric" => "CPUS", "limit" => 24.0, "usage" => 0.0},
|
303
|
+
{"metric" => "DISKS", "limit" => 16.0, "usage" => 0.0},
|
304
|
+
{"metric" => "DISKS_TOTAL_GB", "limit" => 2048.0, "usage" => 0.0}
|
305
|
+
],
|
306
|
+
"region" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/regions/europe-west1"
|
307
|
+
},
|
308
|
+
"us-central1-a" => {
|
309
|
+
"kind" => "compute#zone",
|
310
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/us-central1-a",
|
311
|
+
"id" => "6562457277909136262",
|
312
|
+
"creationTimestamp" => "2013-09-26T02:56:13.116-07:00",
|
313
|
+
"name" => "us-central1-a",
|
314
|
+
"description" => "us-central1-a",
|
315
|
+
"status" => "UP",
|
316
|
+
"quotas" => [
|
317
|
+
{"metric" => "INSTANCES", "limit" => 16.0, "usage" => 1.0},
|
318
|
+
{"metric" => "CPUS", "limit" => 24.0, "usage" => 1.0},
|
319
|
+
{"metric" => "DISKS", "limit" => 16.0, "usage" => 0.0},
|
320
|
+
{"metric" => "DISKS_TOTAL_GB", "limit" => 2048.0, "usage" => 0.0}
|
321
|
+
],
|
322
|
+
"region" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/regions/us-central1"
|
323
|
+
},
|
324
|
+
"us-central1-b" => {
|
325
|
+
"kind" => "compute#zone",
|
326
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/us-central1-b",
|
327
|
+
"id" => "8701502109626061015",
|
328
|
+
"creationTimestamp" => "2013-09-26T02:56:13.124-07:00",
|
329
|
+
"name" => "us-central1-b",
|
330
|
+
"description" => "us-central1-b",
|
331
|
+
"status" => "UP",
|
332
|
+
"maintenanceWindows" => [{"name" => "2013-10-26-planned-outage",
|
333
|
+
"description" => "maintenance zone",
|
334
|
+
"beginTime" => "2013-10-26T12:00:00.000-07:00",
|
335
|
+
"endTime" => "2013-11-10T12:00:00.000-08:00"}],
|
336
|
+
"quotas" => [
|
337
|
+
{"metric" => "INSTANCES", "limit" => 16.0, "usage" => 0.0},
|
338
|
+
{"metric" => "CPUS", "limit" => 24.0, "usage" => 0.0},
|
339
|
+
{"metric" => "DISKS", "limit" => 16.0, "usage" => 0.0},
|
340
|
+
{"metric" => "DISKS_TOTAL_GB", "limit" => 2048.0, "usage" => 0.0}
|
341
|
+
],
|
342
|
+
"region" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/regions/us-central1"
|
343
|
+
},
|
344
|
+
"us-central2-a" => {
|
345
|
+
"kind" => "compute#zone",
|
346
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/us-central2-a",
|
347
|
+
"id" => "13611654493253680292",
|
348
|
+
"creationTimestamp" => "2013-09-26T02:56:13.125-07:00",
|
349
|
+
"name" => "us-central2-a",
|
350
|
+
"description" => "us-central2-a",
|
351
|
+
"status" => "UP",
|
352
|
+
"maintenanceWindows" => [
|
353
|
+
{
|
354
|
+
"name" => "2013-10-12-planned-outage",
|
355
|
+
"description" => "maintenance zone",
|
356
|
+
"beginTime" => "2013-10-12T12:00:00.000-07:00",
|
357
|
+
"endTime" => "2013-10-27T12:00:00.000-07:00"
|
358
|
+
}
|
359
|
+
],
|
360
|
+
"quotas" => [
|
361
|
+
{"metric" => "INSTANCES", "limit" => 16.0, "usage" => 0.0},
|
362
|
+
{"metric" => "CPUS", "limit" => 24.0, "usage" => 0.0},
|
363
|
+
{"metric" => "DISKS", "limit" => 16.0, "usage" => 0.0},
|
364
|
+
{"metric" => "DISKS_TOTAL_GB", "limit" => 2048.0, "usage" => 0.0}
|
365
|
+
],
|
366
|
+
"region" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/regions/us-central2"
|
367
|
+
}
|
368
|
+
},
|
369
|
+
:machine_types => Hash.new do |machine_types_hash, zone|
|
370
|
+
machine_types_hash[zone] = {
|
371
|
+
"f1-micro" => {
|
372
|
+
"kind" => "compute#machineType",
|
373
|
+
"id" => "4618642685664990776",
|
374
|
+
"creationTimestamp" => "2013-04-25T13:32:49.088-07:00",
|
375
|
+
"name" => "f1-micro",
|
376
|
+
"description" => "1 vCPU (shared physical core) and 0.6 GB RAM",
|
377
|
+
"guestCpus" => 1,
|
378
|
+
"memoryMb" => 614,
|
379
|
+
"imageSpaceGb" => 0,
|
380
|
+
"maximumPersistentDisks" => 4,
|
381
|
+
"maximumPersistentDisksSizeGb" => "3072",
|
382
|
+
"zone" => zone,
|
383
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/f1-micro"
|
384
|
+
},
|
385
|
+
"g1-small" => {
|
386
|
+
"kind" => "compute#machineType",
|
387
|
+
"id" => "7224129552184485774",
|
388
|
+
"creationTimestamp" => "2013-04-25T13:32:45.550-07:00",
|
389
|
+
"name" => "g1-small",
|
390
|
+
"description" => "1 vCPU (shared physical core) and 1.7 GB RAM",
|
391
|
+
"guestCpus" => 1,
|
392
|
+
"memoryMb" => 1740,
|
393
|
+
"imageSpaceGb" => 0,
|
394
|
+
"maximumPersistentDisks" => 4,
|
395
|
+
"maximumPersistentDisksSizeGb" => "3072",
|
396
|
+
"zone" => zone,
|
397
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/g1-small"
|
398
|
+
},
|
399
|
+
"n1-highcpu-2" => {
|
400
|
+
"kind" => "compute#machineType",
|
401
|
+
"id" => "13043554592196512955",
|
402
|
+
"creationTimestamp" => "2012-11-16T11:46:10.572-08:00",
|
403
|
+
"name" => "n1-highcpu-2",
|
404
|
+
"description" => "2 vCPUs, 1.8 GB RAM",
|
405
|
+
"guestCpus" => 2,
|
406
|
+
"memoryMb" => 1843,
|
407
|
+
"imageSpaceGb" => 10,
|
408
|
+
"maximumPersistentDisks" => 16,
|
409
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
410
|
+
"zone" => zone,
|
411
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-2"
|
412
|
+
},
|
413
|
+
"n1-highcpu-2-d" => {
|
414
|
+
"kind" => "compute#machineType",
|
415
|
+
"id" => "13043555176034896271",
|
416
|
+
"creationTimestamp" => "2012-11-16T11:47:07.825-08:00",
|
417
|
+
"name" => "n1-highcpu-2-d",
|
418
|
+
"description" => "2 vCPUs, 1.8 GB RAM, 1 scratch disk (870 GB)",
|
419
|
+
"guestCpus" => 2,
|
420
|
+
"memoryMb" => 1843,
|
421
|
+
"imageSpaceGb" => 10,
|
422
|
+
"scratchDisks" => [
|
423
|
+
{
|
424
|
+
"diskGb" => 870
|
425
|
+
}
|
426
|
+
],
|
427
|
+
"maximumPersistentDisks" => 16,
|
428
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
429
|
+
"zone" => zone,
|
430
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-2-d"
|
431
|
+
},
|
432
|
+
"n1-highcpu-4" => {
|
433
|
+
"kind" => "compute#machineType",
|
434
|
+
"id" => "13043555705736970382",
|
435
|
+
"creationTimestamp" => "2012-11-16T11:48:06.087-08:00",
|
436
|
+
"name" => "n1-highcpu-4",
|
437
|
+
"description" => "4 vCPUs, 3.6 GB RAM",
|
438
|
+
"guestCpus" => 4,
|
439
|
+
"memoryMb" => 3686,
|
440
|
+
"imageSpaceGb" => 10,
|
441
|
+
"maximumPersistentDisks" => 16,
|
442
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
443
|
+
"zone" => zone,
|
444
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-4"
|
445
|
+
},
|
446
|
+
"n1-highcpu-4-d" => {
|
447
|
+
"kind" => "compute#machineType",
|
448
|
+
"id" => "13043556330284250611",
|
449
|
+
"creationTimestamp" => "2012-11-16T11:49:07.563-08:00",
|
450
|
+
"name" => "n1-highcpu-4-d",
|
451
|
+
"description" => "4 vCPUS, 3.6 GB RAM, 1 scratch disk (1770 GB)",
|
452
|
+
"guestCpus" => 4,
|
453
|
+
"memoryMb" => 3686,
|
454
|
+
"imageSpaceGb" => 10,
|
455
|
+
"scratchDisks" => [
|
456
|
+
{
|
457
|
+
"diskGb" => 1770
|
458
|
+
}
|
459
|
+
],
|
460
|
+
"maximumPersistentDisks" => 16,
|
461
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
462
|
+
"zone" => zone,
|
463
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-4-d"
|
464
|
+
},
|
465
|
+
"n1-highcpu-8" => {
|
466
|
+
"kind" => "compute#machineType",
|
467
|
+
"id" => "13043556949665240937",
|
468
|
+
"creationTimestamp" => "2012-11-16T11:50:15.128-08:00",
|
469
|
+
"name" => "n1-highcpu-8",
|
470
|
+
"description" => "8 vCPUs, 7.2 GB RAM",
|
471
|
+
"guestCpus" => 8,
|
472
|
+
"memoryMb" => 7373,
|
473
|
+
"imageSpaceGb" => 10,
|
474
|
+
"maximumPersistentDisks" => 16,
|
475
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
476
|
+
"zone" => zone,
|
477
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-8"
|
478
|
+
},
|
479
|
+
"n1-highcpu-8-d" => {
|
480
|
+
"kind" => "compute#machineType",
|
481
|
+
"id" => "13043557458004959701",
|
482
|
+
"creationTimestamp" => "2012-11-16T11:51:04.549-08:00",
|
483
|
+
"name" => "n1-highcpu-8-d",
|
484
|
+
"description" => "8 vCPUS, 7.2 GB RAM, 2 scratch disks (1770 GB, 1770 GB)",
|
485
|
+
"guestCpus" => 8,
|
486
|
+
"memoryMb" => 7373,
|
487
|
+
"imageSpaceGb" => 10,
|
488
|
+
"scratchDisks" => [
|
489
|
+
{
|
490
|
+
"diskGb" => 1770
|
491
|
+
},
|
492
|
+
{
|
493
|
+
"diskGb" => 1770
|
494
|
+
}
|
495
|
+
],
|
496
|
+
"maximumPersistentDisks" => 16,
|
497
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
498
|
+
"zone" => zone,
|
499
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highcpu-8-d"
|
500
|
+
},
|
501
|
+
"n1-highmem-2" => {
|
502
|
+
"kind" => "compute#machineType",
|
503
|
+
"id" => "13043551079318055993",
|
504
|
+
"creationTimestamp" => "2012-11-16T11:40:06.129-08:00",
|
505
|
+
"name" => "n1-highmem-2",
|
506
|
+
"description" => "2 vCPUs, 13 GB RAM",
|
507
|
+
"guestCpus" => 2,
|
508
|
+
"memoryMb" => 13312,
|
509
|
+
"imageSpaceGb" => 10,
|
510
|
+
"maximumPersistentDisks" => 16,
|
511
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
512
|
+
"zone" => zone,
|
513
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-2"
|
514
|
+
},
|
515
|
+
"n1-highmem-2-d" => {
|
516
|
+
"kind" => "compute#machineType",
|
517
|
+
"id" => "13043551625558644085",
|
518
|
+
"creationTimestamp" => "2012-11-16T11:40:59.630-08:00",
|
519
|
+
"name" => "n1-highmem-2-d",
|
520
|
+
"description" => "2 vCPUs, 13 GB RAM, 1 scratch disk (870 GB)",
|
521
|
+
"guestCpus" => 2,
|
522
|
+
"memoryMb" => 13312,
|
523
|
+
"imageSpaceGb" => 10,
|
524
|
+
"scratchDisks" => [
|
525
|
+
{
|
526
|
+
"diskGb" => 870
|
527
|
+
}
|
528
|
+
],
|
529
|
+
"maximumPersistentDisks" => 16,
|
530
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
531
|
+
"zone" => zone,
|
532
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-2-d"
|
533
|
+
},
|
534
|
+
"n1-highmem-4" => {
|
535
|
+
"kind" => "compute#machineType",
|
536
|
+
"id" => "13043552263604939569",
|
537
|
+
"creationTimestamp" => "2012-11-16T11:42:08.983-08:00",
|
538
|
+
"name" => "n1-highmem-4",
|
539
|
+
"description" => "4 vCPUs, 26 GB RAM",
|
540
|
+
"guestCpus" => 4,
|
541
|
+
"memoryMb" => 26624,
|
542
|
+
"imageSpaceGb" => 10,
|
543
|
+
"maximumPersistentDisks" => 16,
|
544
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
545
|
+
"zone" => zone,
|
546
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-4"
|
547
|
+
},
|
548
|
+
"n1-highmem-4-d" => {
|
549
|
+
"kind" => "compute#machineType",
|
550
|
+
"id" => "13043552953632709737",
|
551
|
+
"creationTimestamp" => "2012-11-16T11:43:17.400-08:00",
|
552
|
+
"name" => "n1-highmem-4-d",
|
553
|
+
"description" => "4 vCPUs, 26 GB RAM, 1 scratch disk (1770 GB)",
|
554
|
+
"guestCpus" => 4,
|
555
|
+
"memoryMb" => 26624,
|
556
|
+
"imageSpaceGb" => 10,
|
557
|
+
"scratchDisks" => [
|
558
|
+
{
|
559
|
+
"diskGb" => 1770
|
560
|
+
}
|
561
|
+
],
|
562
|
+
"maximumPersistentDisks" => 16,
|
563
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
564
|
+
"zone" => zone,
|
565
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-4-d"
|
566
|
+
},
|
567
|
+
"n1-highmem-8" => {
|
568
|
+
"kind" => "compute#machineType",
|
569
|
+
"id" => "13043553584275586275",
|
570
|
+
"creationTimestamp" => "2012-11-16T11:44:25.985-08:00",
|
571
|
+
"name" => "n1-highmem-8",
|
572
|
+
"description" => "8 vCPUs, 52 GB RAM",
|
573
|
+
"guestCpus" => 8,
|
574
|
+
"memoryMb" => 53248,
|
575
|
+
"imageSpaceGb" => 10,
|
576
|
+
"maximumPersistentDisks" => 16,
|
577
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
578
|
+
"zone" => zone,
|
579
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-8"
|
580
|
+
},
|
581
|
+
"n1-highmem-8-d" => {
|
582
|
+
"kind" => "compute#machineType",
|
583
|
+
"id" => "13043554021673472746",
|
584
|
+
"creationTimestamp" => "2012-11-16T11:45:08.195-08:00",
|
585
|
+
"name" => "n1-highmem-8-d",
|
586
|
+
"description" => "8 vCPUs, 52 GB RAM, 2 scratch disks (1770 GB, 1770 GB)",
|
587
|
+
"guestCpus" => 8,
|
588
|
+
"memoryMb" => 53248,
|
589
|
+
"imageSpaceGb" => 10,
|
590
|
+
"scratchDisks" => [
|
591
|
+
{
|
592
|
+
"diskGb" => 1770
|
593
|
+
},
|
594
|
+
{
|
595
|
+
"diskGb" => 1770
|
596
|
+
}
|
597
|
+
],
|
598
|
+
"maximumPersistentDisks" => 16,
|
599
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
600
|
+
"zone" => zone,
|
601
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-highmem-8-d"
|
602
|
+
},
|
603
|
+
"n1-standard-1" => {
|
604
|
+
"kind" => "compute#machineType",
|
605
|
+
"id" => "12907738072351752276",
|
606
|
+
"creationTimestamp" => "2012-06-07T13:48:14.670-07:00",
|
607
|
+
"name" => "n1-standard-1",
|
608
|
+
"description" => "1 vCPU, 3.75 GB RAM",
|
609
|
+
"guestCpus" => 1,
|
610
|
+
"memoryMb" => 3840,
|
611
|
+
"imageSpaceGb" => 10,
|
612
|
+
"maximumPersistentDisks" => 16,
|
613
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
614
|
+
"zone" => zone,
|
615
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-1"
|
616
|
+
},
|
617
|
+
"n1-standard-1-d" => {
|
618
|
+
"kind" => "compute#machineType",
|
619
|
+
"id" => "12908559201265214706",
|
620
|
+
"creationTimestamp" => "2012-06-07T13:48:34.258-07:00",
|
621
|
+
"name" => "n1-standard-1-d",
|
622
|
+
"description" => "1 vCPU, 3.75 GB RAM, 1 scratch disk (420 GB)",
|
623
|
+
"guestCpus" => 1,
|
624
|
+
"memoryMb" => 3840,
|
625
|
+
"imageSpaceGb" => 10,
|
626
|
+
"scratchDisks" => [
|
627
|
+
{
|
628
|
+
"diskGb" => 420
|
629
|
+
}
|
630
|
+
],
|
631
|
+
"maximumPersistentDisks" => 16,
|
632
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
633
|
+
"zone" => zone,
|
634
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-1-d"
|
635
|
+
},
|
636
|
+
"n1-standard-2" => {
|
637
|
+
"kind" => "compute#machineType",
|
638
|
+
"id" => "12908559320241551184",
|
639
|
+
"creationTimestamp" => "2012-06-07T13:48:56.867-07:00",
|
640
|
+
"name" => "n1-standard-2",
|
641
|
+
"description" => "2 vCPUs, 7.5 GB RAM",
|
642
|
+
"guestCpus" => 2,
|
643
|
+
"memoryMb" => 7680,
|
644
|
+
"imageSpaceGb" => 10,
|
645
|
+
"maximumPersistentDisks" => 16,
|
646
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
647
|
+
"zone" => zone,
|
648
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-2"
|
649
|
+
},
|
650
|
+
"n1-standard-2-d" => {
|
651
|
+
"kind" => "compute#machineType",
|
652
|
+
"id" => "12908559582417967837",
|
653
|
+
"creationTimestamp" => "2012-06-07T13:49:19.448-07:00",
|
654
|
+
"name" => "n1-standard-2-d",
|
655
|
+
"description" => "2 vCPUs, 7.5 GB RAM, 1 scratch disk (870 GB)",
|
656
|
+
"guestCpus" => 2,
|
657
|
+
"memoryMb" => 7680,
|
658
|
+
"imageSpaceGb" => 10,
|
659
|
+
"scratchDisks" => [
|
660
|
+
{
|
661
|
+
"diskGb" => 870
|
662
|
+
}
|
663
|
+
],
|
664
|
+
"maximumPersistentDisks" => 16,
|
665
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
666
|
+
"zone" => zone,
|
667
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-2-d"
|
668
|
+
},
|
669
|
+
"n1-standard-4" => {
|
670
|
+
"kind" => "compute#machineType",
|
671
|
+
"id" => "12908559692070444049",
|
672
|
+
"creationTimestamp" => "2012-06-07T13:49:40.050-07:00",
|
673
|
+
"name" => "n1-standard-4",
|
674
|
+
"description" => "4 vCPUs, 15 GB RAM",
|
675
|
+
"guestCpus" => 4,
|
676
|
+
"memoryMb" => 15360,
|
677
|
+
"imageSpaceGb" => 10,
|
678
|
+
"maximumPersistentDisks" => 16,
|
679
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
680
|
+
"zone" => zone,
|
681
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-4"
|
682
|
+
},
|
683
|
+
"n1-standard-4-d" => {
|
684
|
+
"kind" => "compute#machineType",
|
685
|
+
"id" => "12908559991903153608",
|
686
|
+
"creationTimestamp" => "2012-06-07T13:50:05.677-07:00",
|
687
|
+
"name" => "n1-standard-4-d",
|
688
|
+
"description" => "4 vCPUs, 15 GB RAM, 1 scratch disk (1770 GB)",
|
689
|
+
"guestCpus" => 4,
|
690
|
+
"memoryMb" => 15360,
|
691
|
+
"imageSpaceGb" => 10,
|
692
|
+
"scratchDisks" => [
|
693
|
+
{
|
694
|
+
"diskGb" => 1770
|
695
|
+
}
|
696
|
+
],
|
697
|
+
"maximumPersistentDisks" => 16,
|
698
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
699
|
+
"zone" => zone,
|
700
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-4-d"
|
701
|
+
},
|
702
|
+
"n1-standard-8" => {
|
703
|
+
"kind" => "compute#machineType",
|
704
|
+
"id" => "12908560197989714867",
|
705
|
+
"creationTimestamp" => "2012-06-07T13:50:42.334-07:00",
|
706
|
+
"name" => "n1-standard-8",
|
707
|
+
"description" => "8 vCPUs, 30 GB RAM",
|
708
|
+
"guestCpus" => 8,
|
709
|
+
"memoryMb" => 30720,
|
710
|
+
"imageSpaceGb" => 10,
|
711
|
+
"maximumPersistentDisks" => 16,
|
712
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
713
|
+
"zone" => zone,
|
714
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-8"
|
715
|
+
},
|
716
|
+
"n1-standard-8-d" => {
|
717
|
+
"kind" => "compute#machineType",
|
718
|
+
"id" => "12908560709887590691",
|
719
|
+
"creationTimestamp" => "2012-06-07T13:51:19.936-07:00",
|
720
|
+
"name" => "n1-standard-8-d",
|
721
|
+
"description" => "8 vCPUs, 30 GB RAM, 2 scratch disks (1770 GB, 1770 GB)",
|
722
|
+
"guestCpus" => 8,
|
723
|
+
"memoryMb" => 30720,
|
724
|
+
"imageSpaceGb" => 10,
|
725
|
+
"scratchDisks" => [
|
726
|
+
{
|
727
|
+
"diskGb" => 1770
|
728
|
+
},
|
729
|
+
{
|
730
|
+
"diskGb" => 1770
|
731
|
+
}
|
732
|
+
],
|
733
|
+
"maximumPersistentDisks" => 16,
|
734
|
+
"maximumPersistentDisksSizeGb" => "10240",
|
735
|
+
"zone" => zone,
|
736
|
+
"selfLink" => "https://www.googleapis.com/compute/v1beta15/projects/#{key}/zones/#{zone}/machineTypes/n1-standard-8-d"
|
737
|
+
}
|
738
|
+
}
|
739
|
+
end,
|
740
|
+
:images => {}
|
741
|
+
}
|
742
|
+
end
|
743
|
+
end
|
744
|
+
end
|
745
|
+
|
746
|
+
def self.reset
|
747
|
+
@data = nil
|
748
|
+
end
|
749
|
+
|
750
|
+
def data
|
751
|
+
self.class.data[@project]
|
752
|
+
end
|
753
|
+
|
754
|
+
def reset_data
|
755
|
+
# not particularly useful because it deletes zones
|
756
|
+
self.class.data.delete(@project)
|
69
757
|
end
|
70
758
|
|
71
759
|
end
|
72
760
|
|
73
761
|
class Real
|
74
762
|
include Collections
|
75
|
-
|
76
|
-
attr_reader :project
|
763
|
+
include Shared
|
77
764
|
|
78
765
|
def initialize(options)
|
79
766
|
base_url = 'https://www.googleapis.com/compute/'
|
80
|
-
api_version = '
|
767
|
+
api_version = 'v1beta16'
|
81
768
|
api_scope_url = 'https://www.googleapis.com/auth/compute'
|
82
769
|
|
83
770
|
@project = options[:google_project]
|
@@ -112,18 +799,6 @@ module Fog
|
|
112
799
|
@default_network = 'default'
|
113
800
|
end
|
114
801
|
|
115
|
-
# TODO: Total hack, create zone and zones model.
|
116
|
-
def zones
|
117
|
-
zones = []
|
118
|
-
self.list_zones.data[:body]["items"].each do |z|
|
119
|
-
if z["status"] == "UP"
|
120
|
-
zones.push z["name"]
|
121
|
-
end
|
122
|
-
end
|
123
|
-
|
124
|
-
return zones
|
125
|
-
end
|
126
|
-
|
127
802
|
def build_result(api_method, parameters, body_object=nil)
|
128
803
|
if body_object
|
129
804
|
result = @client.execute(
|
@@ -139,35 +814,10 @@ module Fog
|
|
139
814
|
end
|
140
815
|
end
|
141
816
|
|
817
|
+
# result = Google::APIClient::Result
|
818
|
+
# returns Excon::Response
|
142
819
|
def build_response(result)
|
143
|
-
|
144
|
-
response.body = Fog::JSON.decode(result.body)
|
145
|
-
if response.body["error"]
|
146
|
-
response.status = response.body["error"]["code"]
|
147
|
-
|
148
|
-
response.body["error"]["errors"].each do |error|
|
149
|
-
raise Fog::Errors::Error.new(error["message"])
|
150
|
-
end
|
151
|
-
else
|
152
|
-
response.status = 200
|
153
|
-
end
|
154
|
-
response
|
155
|
-
end
|
156
|
-
|
157
|
-
def backoff_if_unfound(&block)
|
158
|
-
retries_remaining = 10
|
159
|
-
begin
|
160
|
-
result = block.call
|
161
|
-
rescue Exception => msg
|
162
|
-
if msg.to_s.include? 'was not found' and retries_remaining > 0
|
163
|
-
retries_remaining -= 1
|
164
|
-
sleep 0.1
|
165
|
-
retry
|
166
|
-
else
|
167
|
-
raise msg
|
168
|
-
end
|
169
|
-
end
|
170
|
-
result
|
820
|
+
build_excon_response(Fog::JSON.decode(result.body))
|
171
821
|
end
|
172
822
|
|
173
823
|
end
|