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
@@ -0,0 +1,36 @@
|
|
1
|
+
Shindo.tests('Compute::VcloudDirector | ovf requests', ['vclouddirector']) do
|
2
|
+
|
3
|
+
@service = Fog::Compute::VcloudDirector.new
|
4
|
+
@org = VcloudDirector::Compute::Helper.current_org(@service)
|
5
|
+
|
6
|
+
tests('Get first vDC') do
|
7
|
+
session = @service.get_current_session.body
|
8
|
+
link = @org[:Link].detect do |l|
|
9
|
+
l[:type] == 'application/vnd.vmware.vcloud.vdc+xml'
|
10
|
+
end
|
11
|
+
@vdc = @service.get_vdc(link[:href].split('/').last).body
|
12
|
+
end
|
13
|
+
|
14
|
+
# 'Envelope' is the outer type of the parsed XML document.
|
15
|
+
tests('#get_vapp_ovf_descriptor').returns('Envelope') do
|
16
|
+
pending if Fog.mocking?
|
17
|
+
link = @vdc[:ResourceEntities][:ResourceEntity].detect do |l|
|
18
|
+
l[:type] == 'application/vnd.vmware.vcloud.vApp+xml'
|
19
|
+
end
|
20
|
+
pending if link.nil?
|
21
|
+
body = @service.get_vapp_ovf_descriptor(link[:href].split('/').last).body
|
22
|
+
Nokogiri::XML::Document.parse(body).children.first.name
|
23
|
+
end
|
24
|
+
|
25
|
+
# 'Envelope' is the outer type of the parsed XML document.
|
26
|
+
tests('#get_vapp_template_ovf_descriptor').returns('Envelope') do
|
27
|
+
pending if Fog.mocking?
|
28
|
+
link = @vdc[:ResourceEntities][:ResourceEntity].detect do |l|
|
29
|
+
l[:type] == 'application/vnd.vmware.vcloud.vAppTemplate+xml'
|
30
|
+
end
|
31
|
+
pending if link.nil?
|
32
|
+
body = @service.get_vapp_template_ovf_descriptor(link[:href].split('/').last).body
|
33
|
+
Nokogiri::XML::Document.parse(body).children.first.name
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
Shindo.tests('Compute::VcloudDirector | query requests', ['vclouddirector']) do
|
2
|
+
|
3
|
+
@service = Fog::Compute::VcloudDirector.new
|
4
|
+
|
5
|
+
tests('retrieve a summary list of all typed queries types') do
|
6
|
+
tests('#get_execute_query') do
|
7
|
+
@query_list = @service.get_execute_query.body
|
8
|
+
tests(':type').returns('application/vnd.vmware.vcloud.query.queryList+xml') do
|
9
|
+
@query_list[:type]
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
pending if Fog.mocking?
|
15
|
+
|
16
|
+
@query_list[:Link].select do |link|
|
17
|
+
link[:rel] == 'down'
|
18
|
+
end.sort_by do |link|
|
19
|
+
[link[:name], link[:href]]
|
20
|
+
end.each do |link|
|
21
|
+
href = Nokogiri::XML.fragment(link[:href])
|
22
|
+
query = CGI.parse(URI.parse(href.text).query)
|
23
|
+
type = query['type'].first
|
24
|
+
format = query['format'].first
|
25
|
+
next if %w[right role strandedUser].include?(type)
|
26
|
+
tests("type => #{type}, format => #{format}") do
|
27
|
+
tests("#get_execute_query").data_matches_schema(VcloudDirector::Compute::Schema::CONTAINER_TYPE) do
|
28
|
+
@body = @service.get_execute_query(type, :format => format).body
|
29
|
+
end
|
30
|
+
tests("resource type").returns(link[:type]) { @body[:type] }
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,638 @@
|
|
1
|
+
class VcloudDirector
|
2
|
+
module Compute
|
3
|
+
module Schema
|
4
|
+
|
5
|
+
# Mapping of a content media type to a xsd complex type.
|
6
|
+
MEDIA_TYPE_MAPPING_TYPE = {
|
7
|
+
:MediaType => String,
|
8
|
+
:ComplexTypeName => String,
|
9
|
+
:SchemaLocation => String
|
10
|
+
}
|
11
|
+
|
12
|
+
# Information for one version of the API.
|
13
|
+
VERSION_INFO_TYPE = {
|
14
|
+
:Version => String,
|
15
|
+
:LoginUrl => String,
|
16
|
+
:MediaTypeMapping => [MEDIA_TYPE_MAPPING_TYPE]
|
17
|
+
}
|
18
|
+
|
19
|
+
# List all supported versions.
|
20
|
+
SUPPORTED_VERSIONS_TYPE = {
|
21
|
+
:VersionInfo => [VERSION_INFO_TYPE]
|
22
|
+
}
|
23
|
+
|
24
|
+
# The standard error message type used in the vCloud REST API.
|
25
|
+
ERROR_TYPE = {
|
26
|
+
:majorErrorCode => String,
|
27
|
+
:message => String,
|
28
|
+
:minorErrorCode => String,
|
29
|
+
:stackTrace => Fog::Nullable::String,
|
30
|
+
:vendorSpecificErrorCode => Fog::Nullable::String
|
31
|
+
}
|
32
|
+
|
33
|
+
# The base type for all objects in the vCloud model. Has an optional list
|
34
|
+
# of links and href and type attributes.
|
35
|
+
REFERENCE_TYPE = {
|
36
|
+
:href => String,
|
37
|
+
:id => Fog::Nullable::String,
|
38
|
+
:name => Fog::Nullable::String,
|
39
|
+
:type => Fog::Nullable::String
|
40
|
+
}
|
41
|
+
|
42
|
+
# Extends reference type by adding relation attribute. Defines a
|
43
|
+
# hyper-link with a relationship, hyper-link reference, and an optional
|
44
|
+
# MIME type.
|
45
|
+
LINK_TYPE = REFERENCE_TYPE.merge({
|
46
|
+
:rel => String
|
47
|
+
})
|
48
|
+
|
49
|
+
# Represents a reference to a resource. Contains an href attribute, a
|
50
|
+
# resource status attribute, and optional name and type attributes.
|
51
|
+
RESOURCE_REFERENCE_TYPE = REFERENCE_TYPE.merge({
|
52
|
+
:status => Fog::Nullable::String
|
53
|
+
})
|
54
|
+
|
55
|
+
# The base type for all objects in the vCloud model. Has an optional list
|
56
|
+
# of links and href and type attributes.
|
57
|
+
RESOURCE_TYPE = {
|
58
|
+
:href => Fog::Nullable::String,
|
59
|
+
:type => Fog::Nullable::String,
|
60
|
+
# :Link => [LINK_TYPE] -- FIXME: not required
|
61
|
+
}
|
62
|
+
|
63
|
+
# The base type for all resource types which contain an id attribute.
|
64
|
+
IDENTIFIABLE_RESOURCE_TYPE = RESOURCE_TYPE.merge({
|
65
|
+
:id => Fog::Nullable::String,
|
66
|
+
:operationKey => Fog::Nullable::String,
|
67
|
+
})
|
68
|
+
|
69
|
+
# Basic entity type in the vCloud object model. Includes a name, an
|
70
|
+
# optional description, and an optional list of links.
|
71
|
+
ENTITY_TYPE = IDENTIFIABLE_RESOURCE_TYPE.merge({
|
72
|
+
:name => String
|
73
|
+
})
|
74
|
+
|
75
|
+
# Represents a file to be transferred (uploaded or downloaded).
|
76
|
+
FILE_TYPE = ENTITY_TYPE.merge({
|
77
|
+
:bytesTransfered => Fog::Nullable::String,
|
78
|
+
:checksum => Fog::Nullable::String, # normalizedString
|
79
|
+
:size => Fog::Nullable::String
|
80
|
+
})
|
81
|
+
|
82
|
+
# Represents a list of files to be transferred (uploaded or downloaded).
|
83
|
+
FILES_LIST_TYPE = {
|
84
|
+
:File => [FILE_TYPE]
|
85
|
+
}
|
86
|
+
|
87
|
+
# Container for query result sets.
|
88
|
+
CONTAINER_TYPE = RESOURCE_TYPE.merge({
|
89
|
+
:name => String,
|
90
|
+
:page => String,
|
91
|
+
:pageSize => String,
|
92
|
+
:total => String
|
93
|
+
})
|
94
|
+
|
95
|
+
# Represents an asynchronous operation in vCloud Director.
|
96
|
+
TASK_TYPE = ENTITY_TYPE.merge({
|
97
|
+
:cancelRequested => Fog::Nullable::String,
|
98
|
+
:endTime => Fog::Nullable::String,
|
99
|
+
:expiryTime => String,
|
100
|
+
:operation => Fog::Nullable::String,
|
101
|
+
:operationName => Fog::Nullable::String,
|
102
|
+
:serviceNamespace => Fog::Nullable::String,
|
103
|
+
:startTime => Fog::Nullable::String,
|
104
|
+
:status => String,
|
105
|
+
# :Tasks => TASKS_IN_PROGRESS_TYPE, # not happening!
|
106
|
+
:Owner => REFERENCE_TYPE,
|
107
|
+
# :Error => ERROR_TYPE,
|
108
|
+
:User => REFERENCE_TYPE,
|
109
|
+
:Organization => REFERENCE_TYPE,
|
110
|
+
:Progress => Fog::Nullable::String,
|
111
|
+
# :Params => anyType,
|
112
|
+
:Details => Fog::Nullable::String
|
113
|
+
})
|
114
|
+
|
115
|
+
# A list of queued, running, or recently completed tasks.
|
116
|
+
TASKS_IN_PROGRESS_TYPE = {
|
117
|
+
:Task => [TASK_TYPE]
|
118
|
+
}
|
119
|
+
|
120
|
+
# Base type that represents a resource entity such as a vApp template or
|
121
|
+
# virtual media.
|
122
|
+
RESOURCE_ENTITY_TYPE = ENTITY_TYPE.merge({
|
123
|
+
:status => Fog::Nullable::String,
|
124
|
+
:Description => Fog::Nullable::String,
|
125
|
+
# :Tasks => TASKS_IN_PROGRESS_TYPE,
|
126
|
+
# :Files => FILES_LIST_TYPE
|
127
|
+
})
|
128
|
+
|
129
|
+
# Container for references to ResourceEntity objects in this vDC.
|
130
|
+
RESOURCE_ENTITIES_TYPE = {
|
131
|
+
:ResourceEntity => [RESOURCE_REFERENCE_TYPE]
|
132
|
+
}
|
133
|
+
|
134
|
+
# Represents a supported virtual hardware version.
|
135
|
+
SUPPORTED_HARDWARE_VERSION_TYPE = String
|
136
|
+
|
137
|
+
# Contains a list of VMware virtual hardware versions supported in this
|
138
|
+
# vDC.
|
139
|
+
SUPPORTED_HARDWARE_VERSIONS_TYPE = {
|
140
|
+
:SupportedHardwareVersion => SUPPORTED_HARDWARE_VERSION_TYPE
|
141
|
+
}
|
142
|
+
|
143
|
+
# Represents a base type for VAppType and VmType.
|
144
|
+
ABSTRACT_VAPP_TYPE = RESOURCE_ENTITY_TYPE.merge({
|
145
|
+
:deployed => String,
|
146
|
+
:DateCreated => String
|
147
|
+
})
|
148
|
+
|
149
|
+
VAPP_CHILDREN_TYPE = {
|
150
|
+
#:VApp => ABSTRACT_VAPP_TYPE,
|
151
|
+
:Vm => [ABSTRACT_VAPP_TYPE]
|
152
|
+
}
|
153
|
+
|
154
|
+
# Controls access to the resource.
|
155
|
+
ACCESS_SETTING_TYPE = {
|
156
|
+
:Subject => REFERENCE_TYPE,
|
157
|
+
:AccessLevel => String
|
158
|
+
}
|
159
|
+
|
160
|
+
# A list of access settings for a resource.
|
161
|
+
ACCESS_SETTINGS_TYPE = {
|
162
|
+
:AccessSettingType => [ACCESS_SETTING_TYPE]
|
163
|
+
}
|
164
|
+
|
165
|
+
# Container for references to available organization vDC networks.
|
166
|
+
AVAILABLE_NETWORKS_TYPE = {
|
167
|
+
:Network => [REFERENCE_TYPE]
|
168
|
+
}
|
169
|
+
|
170
|
+
# Collection of supported hardware capabilities.
|
171
|
+
CAPABILITIES_TYPE = {
|
172
|
+
:SupportedHardwareVersions => SUPPORTED_HARDWARE_VERSIONS_TYPE
|
173
|
+
}
|
174
|
+
|
175
|
+
# Represents the capacity of a given resource.
|
176
|
+
CAPACITY_TYPE = {
|
177
|
+
:Units => String,
|
178
|
+
:Allocated => Fog::Nullable::String,
|
179
|
+
:Limit => String
|
180
|
+
}
|
181
|
+
|
182
|
+
# Represents a capacity and usage of a given resource.
|
183
|
+
CAPACITY_WITH_USAGE_TYPE = CAPACITY_TYPE.merge({
|
184
|
+
:Reserved => String,
|
185
|
+
:Used => Fog::Nullable::String,
|
186
|
+
:Overhead => Fog::Nullable::String
|
187
|
+
})
|
188
|
+
|
189
|
+
# Represents vDC compute capacity.
|
190
|
+
COMPUTE_CAPACITY_TYPE = {
|
191
|
+
:Cpu => CAPACITY_WITH_USAGE_TYPE,
|
192
|
+
:Memory => CAPACITY_WITH_USAGE_TYPE
|
193
|
+
}
|
194
|
+
|
195
|
+
# Represents a guest customization settings.
|
196
|
+
GUEST_CUSTOMIZATION_SECTION_TYPE = { # TODO: extends Section_Type
|
197
|
+
:Enabled => Fog::Nullable::String,
|
198
|
+
:ChangeSid => Fog::Nullable::String,
|
199
|
+
:VirtualMachineId => Fog::Nullable::String,
|
200
|
+
:JoinDomainEnabled => Fog::Nullable::String,
|
201
|
+
:UseOrgSettings => Fog::Nullable::String,
|
202
|
+
:DomainName => Fog::Nullable::String,
|
203
|
+
:DomainUserName => Fog::Nullable::String,
|
204
|
+
:DomainUserPassword => Fog::Nullable::String,
|
205
|
+
:MachineObjectOU => Fog::Nullable::String,
|
206
|
+
:AdminPasswordEnabled => Fog::Nullable::String,
|
207
|
+
:AdminPasswordAuto => Fog::Nullable::String,
|
208
|
+
:AdminPassword => Fog::Nullable::String,
|
209
|
+
:ResetPasswordRequired => Fog::Nullable::String,
|
210
|
+
:CustomizationScript => Fog::Nullable::String,
|
211
|
+
:ComputerName => String,
|
212
|
+
:Link => LINK_TYPE
|
213
|
+
}
|
214
|
+
|
215
|
+
# Represents the owner of this entity.
|
216
|
+
OWNER_TYPE = RESOURCE_TYPE.merge({
|
217
|
+
:User => REFERENCE_TYPE
|
218
|
+
})
|
219
|
+
|
220
|
+
# VMware Tools and other runtime information for this virtual machine.
|
221
|
+
RUNTIME_INFO_SECTION_TYPE = { # TODO: extends Section_Type
|
222
|
+
:VMWareTools => {
|
223
|
+
:version => Fog::Nullable::String
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
# Container for references to storage profiles associated with a vDC.
|
228
|
+
VDC_STORAGE_PROFILES_TYPE = {
|
229
|
+
:VdcStorageProfile => [REFERENCE_TYPE]
|
230
|
+
}
|
231
|
+
|
232
|
+
# Allows you to specify certain capabilities of this virtual machine.
|
233
|
+
VM_CAPABILITIES_TYPE = RESOURCE_TYPE.merge({
|
234
|
+
:MemoryHotAddEnabled => String,
|
235
|
+
:CpuHotAddEnabled => String
|
236
|
+
})
|
237
|
+
|
238
|
+
# Represents the user view of a Catalog object.
|
239
|
+
CATALOG_TYPE = ENTITY_TYPE.merge({
|
240
|
+
#:Owner => OWNER_TYPE,
|
241
|
+
#:CatalogItems => CATALOG_ITEMS_TYPE,
|
242
|
+
:IsPublished => String,
|
243
|
+
:DateCreated => String
|
244
|
+
})
|
245
|
+
|
246
|
+
# Specifies access controls for a resource.
|
247
|
+
CONTROL_ACCESS_PARAMS_TYPE = {
|
248
|
+
:IsSharedToEveryone => String,
|
249
|
+
:EveryoneAccessLevel => Fog::Nullable::String,
|
250
|
+
# :AccessSettings => ACCESS_SETTINGS_TYPE
|
251
|
+
}
|
252
|
+
|
253
|
+
# Represents a Media object.
|
254
|
+
MEDIA_TYPE = RESOURCE_ENTITY_TYPE.merge({
|
255
|
+
:imageType => String,
|
256
|
+
:size => String,
|
257
|
+
:Owner => OWNER_TYPE,
|
258
|
+
:VdcStorageProfile => REFERENCE_TYPE
|
259
|
+
})
|
260
|
+
|
261
|
+
METADATA_TYPE = RESOURCE_TYPE.merge({
|
262
|
+
#:MetadataEntry => METADATA_ENTRY_TYPE
|
263
|
+
})
|
264
|
+
|
265
|
+
# Represents a list of organizations.
|
266
|
+
ORG_LIST_TYPE = RESOURCE_TYPE.merge({
|
267
|
+
:Org => [REFERENCE_TYPE]
|
268
|
+
})
|
269
|
+
|
270
|
+
# Represents the user view of a vCloud Director organization.
|
271
|
+
ORG_TYPE = ENTITY_TYPE.merge({
|
272
|
+
:Description => Fog::Nullable::String,
|
273
|
+
:Tasks => TASKS_IN_PROGRESS_TYPE,
|
274
|
+
:FullName => String,
|
275
|
+
:IsEnabled => Fog::Nullable::String
|
276
|
+
})
|
277
|
+
|
278
|
+
# Represents a vCloud Session.
|
279
|
+
SESSION_TYPE = RESOURCE_TYPE.merge({
|
280
|
+
:org => String,
|
281
|
+
:user => String,
|
282
|
+
:Link => [LINK_TYPE]
|
283
|
+
})
|
284
|
+
|
285
|
+
# A list of tasks.
|
286
|
+
TASKS_LIST_TYPE = ENTITY_TYPE.merge({
|
287
|
+
#:Task => TASK_TYPE
|
288
|
+
})
|
289
|
+
# Represents a vApp.
|
290
|
+
VAPP_TYPE = ABSTRACT_VAPP_TYPE.merge({
|
291
|
+
:ovfDescriptorUploaded => String,
|
292
|
+
:Owner => OWNER_TYPE,
|
293
|
+
:InMaintenanceMode => String,
|
294
|
+
:Children => VAPP_CHILDREN_TYPE
|
295
|
+
})
|
296
|
+
|
297
|
+
# Represents the user view of an organization vDC.
|
298
|
+
VDC_TYPE = ENTITY_TYPE.merge({
|
299
|
+
:status => Fog::Nullable::String,
|
300
|
+
:AllocationModel => String,
|
301
|
+
# :StorageCapacity => CAPACITY_WITH_USAGE_TYPE,
|
302
|
+
:ComputeCapacity => COMPUTE_CAPACITY_TYPE,
|
303
|
+
:ResourceEntities => RESOURCE_ENTITIES_TYPE,
|
304
|
+
:AvailableNetworks => AVAILABLE_NETWORKS_TYPE,
|
305
|
+
:Capabilities => CAPABILITIES_TYPE,
|
306
|
+
:NicQuota => String,
|
307
|
+
:NetworkQuota => String,
|
308
|
+
:UsedNetworkCount => String,
|
309
|
+
:VmQuota => Fog::Nullable::String,
|
310
|
+
:IsEnabled => Fog::Nullable::String,
|
311
|
+
:VdcStorageProfiles => VDC_STORAGE_PROFILES_TYPE # >= 5.1
|
312
|
+
})
|
313
|
+
|
314
|
+
# Represents a storage profile in an organization vDC.
|
315
|
+
VDC_STORAGE_PROFILE_TYPE = ENTITY_TYPE.merge({
|
316
|
+
:Enabled => Fog::Nullable::String,
|
317
|
+
:Units => String,
|
318
|
+
:Limit => String,
|
319
|
+
:Default => String
|
320
|
+
})
|
321
|
+
|
322
|
+
# Information about an individual operating system.
|
323
|
+
OPERATING_SYSTEM_INFO_TYPE = {
|
324
|
+
:OperatingSystemId => String,
|
325
|
+
:DefaultHardDiskAdapterType => String,
|
326
|
+
:MinimumHardDiskSizeGigabytes => String,
|
327
|
+
:MinimumMemoryMegabytes => String,
|
328
|
+
:Name => String,
|
329
|
+
:InternalName => String,
|
330
|
+
:Supported => String,
|
331
|
+
:x64 => String,
|
332
|
+
:MaximumCpuCount => String,
|
333
|
+
:MinimumHardwareVersion => String,
|
334
|
+
:PersonalizationEnabled => String,
|
335
|
+
:PersonalizationAuto => String,
|
336
|
+
:SysprepPackagingSupported => String,
|
337
|
+
:SupportsMemHotAdd => String,
|
338
|
+
:cimOsId => String,
|
339
|
+
:CimVersion => String,
|
340
|
+
:SupportedForCreate => String
|
341
|
+
}
|
342
|
+
|
343
|
+
# Represents an operating system family.
|
344
|
+
OPERATING_SYSTEM_FAMILY_INFO_TYPE = {
|
345
|
+
:Name => String,
|
346
|
+
:OperatingSystemFamilyId => String,
|
347
|
+
:OperatingSystem => [OPERATING_SYSTEM_INFO_TYPE]
|
348
|
+
}
|
349
|
+
|
350
|
+
# Operating systems available for use on virtual machines owned by this
|
351
|
+
# organization.
|
352
|
+
SUPPORTED_OPERATING_SYSTEMS_INFO_TYPE = RESOURCE_TYPE.merge({
|
353
|
+
:OperatingSystemFamilyInfo => [OPERATING_SYSTEM_FAMILY_INFO_TYPE]
|
354
|
+
})
|
355
|
+
|
356
|
+
# Container for query results in records format.
|
357
|
+
# Combine with QUERY_RESULT_RECORD_TYPE subtypes to validate query results
|
358
|
+
QUERY_RESULT_RECORDS_TYPE = CONTAINER_TYPE
|
359
|
+
|
360
|
+
# Base type for a single record from query result in records format.
|
361
|
+
# Subtypes define more specific elements.
|
362
|
+
QUERY_RESULT_RECORD_TYPE = {
|
363
|
+
:href => String,
|
364
|
+
:id => Fog::Nullable::String,
|
365
|
+
:type => Fog::Nullable::String
|
366
|
+
}
|
367
|
+
|
368
|
+
# Type for a single edgeGateway query result in records format.
|
369
|
+
QUERY_RESULT_EDGE_GATEWAY_RECORD_TYPE = QUERY_RESULT_RECORD_TYPE.merge({
|
370
|
+
:gatewayStatus => String,
|
371
|
+
:haStatus => String,
|
372
|
+
:isBusy => String,
|
373
|
+
:name => String,
|
374
|
+
:numberOfExtNetworks => String,
|
375
|
+
:numberOfOrgNetworks=> String,
|
376
|
+
:vdc => String
|
377
|
+
})
|
378
|
+
|
379
|
+
FIREWALL_RULE_TYPE__PROTOCOLS = {
|
380
|
+
:Icmp => Fog::Nullable::String,
|
381
|
+
:Asny => Fog::Nullable::String,
|
382
|
+
:Other => Fog::Nullable::String
|
383
|
+
}
|
384
|
+
|
385
|
+
|
386
|
+
# Represents a firewall rule.
|
387
|
+
FIREWALL_RULE_TYPE = {
|
388
|
+
:Id => String,
|
389
|
+
:IsEnabled => String,
|
390
|
+
:MatchOnTranslate => Fog::Nullable::String,
|
391
|
+
:Description => Fog::Nullable::String,
|
392
|
+
:Policy => Fog::Nullable::String,
|
393
|
+
:IcmpSubType => Fog::Nullable::String,
|
394
|
+
:Port => Fog::Nullable::String,
|
395
|
+
:DestinationPortRange => String,
|
396
|
+
:SourcePort => Fog::Nullable::String,
|
397
|
+
:SourcePortRange => String,
|
398
|
+
:Direction => Fog::Nullable::String,
|
399
|
+
:EnableLogging => Fog::Nullable::String,
|
400
|
+
:Protocols => FIREWALL_RULE_TYPE__PROTOCOLS
|
401
|
+
}
|
402
|
+
|
403
|
+
# Represents a network firewall service.
|
404
|
+
FIREWALL_SERVICE_TYPE = {
|
405
|
+
:IsEnabled => String,
|
406
|
+
:DefaultAction => String,
|
407
|
+
:LogDefaultAction => String,
|
408
|
+
#:FirewallRule => [FIREWALL_RULE_TYPE] # not required
|
409
|
+
}
|
410
|
+
|
411
|
+
#Represents the SNAT and DNAT rules.
|
412
|
+
GATEWAY_NAT_RULE_TYPE = {
|
413
|
+
:Interface => REFERENCE_TYPE,
|
414
|
+
:OriginalIp => String,
|
415
|
+
:OriginalPort => Fog::Nullable::String,
|
416
|
+
:TranslatedIp => String,
|
417
|
+
:TranslatedPort => Fog::Nullable::String,
|
418
|
+
:Protocol => Fog::Nullable::String,
|
419
|
+
:IcmpSubType => Fog::Nullable::String
|
420
|
+
}
|
421
|
+
|
422
|
+
#Represents a NAT rule.
|
423
|
+
NAT_RULE_TYPE = {
|
424
|
+
:Description => Fog::Nullable::String,
|
425
|
+
:RuleType => String,
|
426
|
+
:IsEnabled => String,
|
427
|
+
:Id => String,
|
428
|
+
:GatewayNatRule => GATEWAY_NAT_RULE_TYPE
|
429
|
+
}
|
430
|
+
|
431
|
+
# Represents a NAT network service.
|
432
|
+
NAT_SERVICE_TYPE = {
|
433
|
+
:IsEnabled => String,
|
434
|
+
:NatType => Fog::Nullable::String,
|
435
|
+
:Policy => Fog::Nullable::String,
|
436
|
+
#:NatRule => [NAT_RULE_TYPE], # not required
|
437
|
+
:ExternalIp => Fog::Nullable::String
|
438
|
+
}
|
439
|
+
|
440
|
+
# Represents a service port in a load balancer pool.
|
441
|
+
LB_POOL_SERVICE_PORT_TYPE = {
|
442
|
+
:IsEnabled => Fog::Nullable::String,
|
443
|
+
:Protocol => String,
|
444
|
+
:Algorithm => Fog::Nullable::String,
|
445
|
+
:Port => String,
|
446
|
+
:HealthCheckPort => String,
|
447
|
+
#:HealthCheck => LBPoolHealthCheckType # not required
|
448
|
+
}
|
449
|
+
|
450
|
+
# Represents a member in a load balancer pool.
|
451
|
+
LB_POOL_MEMBER_TYPE = {
|
452
|
+
:IpAddress => String,
|
453
|
+
:Weight => String,
|
454
|
+
:ServicePort => [LB_POOL_SERVICE_PORT_TYPE]
|
455
|
+
}
|
456
|
+
|
457
|
+
# Represents a load balancer pool.
|
458
|
+
LOAD_BALANCER_POOL_TYPE = {
|
459
|
+
:Id => Fog::Nullable::String,
|
460
|
+
:Name => String,
|
461
|
+
:Description => Fog::Nullable::String,
|
462
|
+
:ServicePort => [LB_POOL_SERVICE_PORT_TYPE],
|
463
|
+
:Member => [LB_POOL_MEMBER_TYPE],
|
464
|
+
:Operational => String,
|
465
|
+
:ErrorDetails => Fog::Nullable::String
|
466
|
+
}
|
467
|
+
|
468
|
+
# Represents persistence type for a load balancer service profile.
|
469
|
+
LB_PERSISTENCE_TYPE = {
|
470
|
+
:Method => String,
|
471
|
+
:CookieName => Fog::Nullable::String,
|
472
|
+
:CookieMode => Fog::Nullable::String
|
473
|
+
}
|
474
|
+
|
475
|
+
# Represents service profile for a load balancing virtual server.
|
476
|
+
LB_VIRTUAL_SERVER_SERVICE_PROFILE_TYPE = {
|
477
|
+
:IsEnabled => String,
|
478
|
+
:Protocol => String,
|
479
|
+
:Port => String,
|
480
|
+
:Persistence => LB_PERSISTENCE_TYPE
|
481
|
+
}
|
482
|
+
|
483
|
+
# Information about a vendor service template. This is optional.
|
484
|
+
VENDOR_TEMPLATE_TYPE = {
|
485
|
+
:Name => String,
|
486
|
+
:Id => String
|
487
|
+
}
|
488
|
+
|
489
|
+
# Represents a load balancer virtual server.
|
490
|
+
LOAD_BALANCER_VIRTUAL_SERVER_TYPE = {
|
491
|
+
:IsEnabled => String,
|
492
|
+
:Name => String,
|
493
|
+
:Description => Fog::Nullable::String,
|
494
|
+
:Interface => REFERENCE_TYPE,
|
495
|
+
:IpAddress => String,
|
496
|
+
:ServiceProfile => [LB_VIRTUAL_SERVER_SERVICE_PROFILE_TYPE],
|
497
|
+
:Logging => String,
|
498
|
+
:Pool => String,
|
499
|
+
#:LoadBalancerTemplates => VENDOR_TEMPLATE_TYPE # not required
|
500
|
+
}
|
501
|
+
|
502
|
+
# Represents gateway load balancer service.
|
503
|
+
LOAD_BALANCER_SERVICE_TYPE = {
|
504
|
+
:Pool => LOAD_BALANCER_POOL_TYPE,
|
505
|
+
:VirtualServer => LOAD_BALANCER_VIRTUAL_SERVER_TYPE,
|
506
|
+
:IsEnabled => Fog::Nullable::String
|
507
|
+
}
|
508
|
+
|
509
|
+
# Represents Gateway DHCP service.
|
510
|
+
GATEWAY_DHCP_SERVICE_TYPE = {
|
511
|
+
:IsEnabled => String,
|
512
|
+
#:Pool => DHCP_POOL_SERVICE_TYPE # not required
|
513
|
+
}
|
514
|
+
|
515
|
+
# Represents edge gateway services.
|
516
|
+
GATEWAY_FEATURES_TYPE = {
|
517
|
+
#:StaticRoutingService => STATIC_ROUTING_SERVICE_TYPE, #not required
|
518
|
+
#:GatewayIpsecVpnService => GATEWAY_IPSEC_VPN_SERVICE_TYPE, #not required
|
519
|
+
#:GatewayDhcpService => GATEWAY_DHCP_SERVICE_TYPE, #not required
|
520
|
+
#:LoadBalancerService => LOAD_BALANCER_SERVICE_TYPE, #not required
|
521
|
+
#:NatService => NAT_SERVICE_TYPE, #not required
|
522
|
+
:FirewallService => FIREWALL_SERVICE_TYPE
|
523
|
+
}
|
524
|
+
|
525
|
+
# Represents a range of IP addresses, start and end inclusive.
|
526
|
+
IP_RANGE_TYPE = {
|
527
|
+
:StartAddress => String,
|
528
|
+
:EndAddress => String
|
529
|
+
}
|
530
|
+
|
531
|
+
# Represents a list of IP ranges.
|
532
|
+
IP_RANGES_TYPE = {
|
533
|
+
:IpRange => [IP_RANGE_TYPE]
|
534
|
+
}
|
535
|
+
|
536
|
+
# Allows to chose which subnets a gateway can be part of
|
537
|
+
SUBNET_PARTICIPATION_TYPE = {
|
538
|
+
:Gateway => String,
|
539
|
+
:Netmask => String,
|
540
|
+
:IpAddress => String,
|
541
|
+
:IpRanges => IP_RANGES_TYPE
|
542
|
+
}
|
543
|
+
|
544
|
+
# Gateway Interface configuration.
|
545
|
+
GATEWAY_INTERFACE_TYPE = {
|
546
|
+
:Name => String,
|
547
|
+
:DisplayName => String,
|
548
|
+
:Network => REFERENCE_TYPE,
|
549
|
+
:InterfaceType => String,
|
550
|
+
#:SubnetParticipation => [SUBNET_PARTICIPATION_TYPE], #bug in parser means list or hash
|
551
|
+
:ApplyRateLimit => String,
|
552
|
+
:InRateLimit => Fog::Nullable::String,
|
553
|
+
:OutRateLimit => Fog::Nullable::String,
|
554
|
+
:UseForDefaultRoute => String,
|
555
|
+
}
|
556
|
+
|
557
|
+
# A list of Gateway Interfaces.
|
558
|
+
GATEWAY_INTERFACES_TYPE = {
|
559
|
+
:GatewayInterface => [GATEWAY_INTERFACE_TYPE]
|
560
|
+
}
|
561
|
+
|
562
|
+
# Gateway Configuration.
|
563
|
+
GATEWAY_CONFIGURATION_TYPE = {
|
564
|
+
:BackwardCompatibilityMode => Fog::Nullable::String,
|
565
|
+
:GatewayBackingConfig => String,
|
566
|
+
:GatewayInterfaces => GATEWAY_INTERFACES_TYPE,
|
567
|
+
:EdgeGatewayServiceConfiguration => GATEWAY_FEATURES_TYPE,
|
568
|
+
:HaEnabled => Fog::Nullable::String,
|
569
|
+
:UseDefaultRouteForDnsRelay => Fog::Nullable::String
|
570
|
+
}
|
571
|
+
|
572
|
+
# Represents a gateway.
|
573
|
+
GATEWAY_TYPE = {
|
574
|
+
:href => String,
|
575
|
+
:type => String,
|
576
|
+
:id => String,
|
577
|
+
:operationKey => Fog::Nullable::String,
|
578
|
+
:name => String,
|
579
|
+
:status => Fog::Nullable::String,
|
580
|
+
#:Link => LINK_TYPE, # not required
|
581
|
+
:Description => Fog::Nullable::String,
|
582
|
+
#:Tasks => TASKS_IN_PROGRESS_TYPE, # not required
|
583
|
+
:Configuration => GATEWAY_CONFIGURATION_TYPE
|
584
|
+
}
|
585
|
+
|
586
|
+
ORGANIZATION_REFERENCE_TYPE = REFERENCE_TYPE
|
587
|
+
PROVIDER_VDC_REFERENCE_TYPE = REFERENCE_TYPE
|
588
|
+
RIGHT_REFERENCE_TYPE = REFERENCE_TYPE
|
589
|
+
ROLE_REFERENCE_TYPE = REFERENCE_TYPE
|
590
|
+
|
591
|
+
# Represents the admin view of this cloud.
|
592
|
+
ORGANIZATION_REFERENCES_TYPE = {
|
593
|
+
:OrganizationReference => [REFERENCE_TYPE]
|
594
|
+
}
|
595
|
+
|
596
|
+
# Container for references to Provider vDCs.
|
597
|
+
PROVIDER_VDC_REFERENCES_TYPE = {
|
598
|
+
:ProviderVdcReference => [PROVIDER_VDC_REFERENCE_TYPE]
|
599
|
+
}
|
600
|
+
|
601
|
+
# Container for references to rights.
|
602
|
+
RIGHT_REFERENCES_TYPE = {
|
603
|
+
:RightReference => [RIGHT_REFERENCE_TYPE]
|
604
|
+
}
|
605
|
+
|
606
|
+
# Container for references to roles.
|
607
|
+
ROLE_REFERENCES_TYPE = {
|
608
|
+
:RoleReference => [ROLE_REFERENCE_TYPE]
|
609
|
+
}
|
610
|
+
|
611
|
+
# Container for references to ExternalNetwork objects.
|
612
|
+
NETWORKS_TYPE = {
|
613
|
+
:Network => [REFERENCE_TYPE]
|
614
|
+
}
|
615
|
+
|
616
|
+
VCLOUD_TYPE = ENTITY_TYPE.merge({
|
617
|
+
:OrganizationReferences => ORGANIZATION_REFERENCES_TYPE,
|
618
|
+
:ProviderVdcReferences => PROVIDER_VDC_REFERENCES_TYPE,
|
619
|
+
:RightReferences => RIGHT_REFERENCES_TYPE,
|
620
|
+
:RoleReferences => ROLE_REFERENCES_TYPE,
|
621
|
+
:Networks => NETWORKS_TYPE
|
622
|
+
})
|
623
|
+
|
624
|
+
# Represents a named disk.
|
625
|
+
DISK_TYPE = RESOURCE_ENTITY_TYPE.merge({
|
626
|
+
:busSubType => Fog::Nullable::String,
|
627
|
+
:busType => Fog::Nullable::String,
|
628
|
+
:size => String,
|
629
|
+
:StorageProfile => REFERENCE_TYPE,
|
630
|
+
:Owner => OWNER_TYPE
|
631
|
+
})
|
632
|
+
|
633
|
+
VMS_TYPE = RESOURCE_TYPE.merge({
|
634
|
+
:VmReference => [REFERENCE_TYPE]
|
635
|
+
})
|
636
|
+
end
|
637
|
+
end
|
638
|
+
end
|