fog 1.22.1 → 1.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/CHANGELOG.md +351 -0
- data/CONTRIBUTORS.md +43 -0
- data/Rakefile +2 -2
- data/fog.gemspec +6 -4
- data/gemfiles/Gemfile-edge +0 -3
- data/gemfiles/Gemfile-ruby-1.8.7 +1 -0
- data/lib/fog.rb +2 -0
- data/lib/fog/aws/beanstalk.rb +0 -1
- data/lib/fog/aws/compute.rb +46 -2
- data/lib/fog/aws/dns.rb +1 -1
- data/lib/fog/aws/elb.rb +2 -1
- data/lib/fog/aws/models/compute/flavors.rb +80 -0
- data/lib/fog/aws/models/compute/image.rb +1 -0
- data/lib/fog/aws/models/compute/network_acl.rb +12 -1
- data/lib/fog/aws/models/compute/network_interface.rb +1 -0
- data/lib/fog/aws/models/compute/server.rb +6 -13
- data/lib/fog/aws/models/compute/servers.rb +82 -31
- data/lib/fog/aws/models/compute/subnet.rb +1 -0
- data/lib/fog/aws/models/compute/vpc.rb +11 -0
- data/lib/fog/aws/models/data_pipeline/pipeline.rb +2 -1
- data/lib/fog/aws/models/elasticache/cluster.rb +8 -16
- data/lib/fog/aws/parsers/compute/describe_instances.rb +1 -1
- data/lib/fog/aws/parsers/compute/describe_internet_gateways.rb +1 -2
- data/lib/fog/aws/parsers/compute/describe_subnets.rb +2 -0
- data/lib/fog/aws/parsers/compute/modify_subnet_attribute.rb +24 -0
- data/lib/fog/aws/parsers/compute/network_interface_parser.rb +6 -1
- data/lib/fog/aws/parsers/rds/db_parser.rb +3 -15
- data/lib/fog/aws/requests/compute/authorize_security_group_ingress.rb +8 -3
- data/lib/fog/aws/requests/compute/create_network_acl.rb +1 -1
- data/lib/fog/aws/requests/compute/create_tags.rb +1 -20
- data/lib/fog/aws/requests/compute/create_vpc.rb +2 -1
- data/lib/fog/aws/requests/compute/delete_tags.rb +1 -17
- data/lib/fog/aws/requests/compute/describe_instances.rb +1 -1
- data/lib/fog/aws/requests/compute/describe_network_acls.rb +6 -0
- data/lib/fog/aws/requests/compute/describe_vpcs.rb +6 -0
- data/lib/fog/aws/requests/compute/modify_subnet_attribute.rb +58 -0
- data/lib/fog/aws/requests/compute/register_image.rb +2 -2
- data/lib/fog/aws/requests/compute/run_instances.rb +2 -1
- data/lib/fog/aws/requests/data_pipeline/create_pipeline.rb +4 -2
- data/lib/fog/aws/requests/dns/change_resource_record_sets.rb +4 -1
- data/lib/fog/aws/requests/elb/create_load_balancer.rb +3 -2
- data/lib/fog/bin.rb +2 -0
- data/lib/fog/bin/opennebula.rb +60 -0
- data/lib/fog/bin/softlayer.rb +53 -0
- data/lib/fog/cloudsigma/models/lib_volume.rb +1 -1
- data/lib/fog/cloudstack/compute.rb +375 -14
- data/lib/fog/cloudstack/requests/compute/activate_project.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/add_account_to_project.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/add_baremetal_dhcp.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/add_baremetal_host.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/add_baremetal_pxe_kick_start_server.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/add_baremetal_pxe_ping_server.rb +28 -0
- data/lib/fog/cloudstack/requests/compute/add_cisco_asa1000v_resource.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/add_cisco_vnmc_resource.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/add_cluster.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/add_external_firewall.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/add_external_load_balancer.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/add_f5_load_balancer.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/add_host.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/add_image_store.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/add_ip_to_nic.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/add_netscaler_load_balancer.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/add_network_device.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/add_network_service_provider.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/add_nic_to_virtual_machine.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/add_nicira_nvp_device.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/add_region.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/add_resource_detail.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/add_s3.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/add_secondary_storage.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/add_srx_firewall.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/add_swift.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/add_traffic_monitor.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/add_traffic_type.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/add_ucs_manager.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/add_vmware_dc.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/add_vpn_user.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/archive_alerts.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/archive_events.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb +10 -10
- data/lib/fog/cloudstack/requests/compute/assign_virtual_machine.rb +13 -8
- data/lib/fog/cloudstack/requests/compute/associate_ip_address.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/associate_lun.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/associate_ucs_profile_to_blade.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/attach_iso.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/attach_volume.rb +15 -10
- data/lib/fog/cloudstack/requests/compute/authorize_security_group_egress.rb +10 -4
- data/lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb +10 -5
- data/lib/fog/cloudstack/requests/compute/cancel_host_maintenance.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/cancel_storage_maintenance.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/change_service_for_router.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/change_service_for_system_vm.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb +8 -4
- data/lib/fog/cloudstack/requests/compute/clean_vmreservations.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/configure_f5_load_balancer.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/configure_internal_load_balancer_element.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/configure_netscaler_load_balancer.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/configure_srx_firewall.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/configure_virtual_router_element.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/copy_iso.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/copy_template.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_account.rb +13 -5
- data/lib/fog/cloudstack/requests/compute/create_affinity_group.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_auto_scale_vm_group.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/create_auto_scale_vm_profile.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_condition.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_counter.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_disk_offering.rb +14 -9
- data/lib/fog/cloudstack/requests/compute/create_domain.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/create_egress_firewall_rule.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_firewall_rule.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_global_load_balancer_rule.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/create_instance_group.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/create_internal_load_balancer_element.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/create_ip_forwarding_rule.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_lb_health_check_policy.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/create_lb_stickiness_policy.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_load_balancer.rb +27 -0
- data/lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb +10 -4
- data/lib/fog/cloudstack/requests/compute/create_lun_on_filer.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_network.rb +11 -5
- data/lib/fog/cloudstack/requests/compute/create_network_acl.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/create_network_acl_list.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_network_offering.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/create_physical_network.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_pod.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/create_pool.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb +12 -5
- data/lib/fog/cloudstack/requests/compute/create_portable_ip_range.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/create_private_gateway.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/create_project.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_remote_access_vpn.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/create_secondary_staging_store.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/create_security_group.rb +11 -6
- data/lib/fog/cloudstack/requests/compute/create_service_offering.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/create_snapshot.rb +9 -7
- data/lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb +12 -5
- data/lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb +8 -6
- data/lib/fog/cloudstack/requests/compute/create_static_route.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_storage_network_ip_range.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/create_storage_pool.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_tags.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_template.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_user.rb +13 -5
- data/lib/fog/cloudstack/requests/compute/create_virtual_router_element.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/create_vlan_ip_range.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/create_vm_snapshot.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/create_volume.rb +10 -8
- data/lib/fog/cloudstack/requests/compute/create_volume_on_filer.rb +27 -0
- data/lib/fog/cloudstack/requests/compute/create_vpc.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/create_vpcoffering.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/create_vpn_connection.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/create_vpn_customer_gateway.rb +25 -0
- data/lib/fog/cloudstack/requests/compute/create_vpn_gateway.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/create_zone.rb +15 -9
- data/lib/fog/cloudstack/requests/compute/dedicate_cluster.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/dedicate_guest_vlan_range.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/dedicate_host.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/dedicate_pod.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/dedicate_public_ip_range.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/dedicate_zone.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/delete_account.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/delete_account_from_project.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/delete_affinity_group.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_alerts.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_auto_scale_policy.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_group.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_profile.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_cisco_asa1000v_resource.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_cisco_nexus_vsm.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_cisco_vnmc_resource.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_cluster.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_condition.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_counter.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_disk_offering.rb +12 -9
- data/lib/fog/cloudstack/requests/compute/delete_domain.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/delete_egress_firewall_rule.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_events.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/delete_external_firewall.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_external_load_balancer.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_f5_load_balancer.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_global_load_balancer_rule.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_host.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_image_store.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_instance_group.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_ip_forwarding_rule.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_iso.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_lb_health_check_policy.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_lb_stickiness_policy.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_load_balancer.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/delete_netscaler_load_balancer.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_network.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_network_acl.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_network_acl_list.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_network_device.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_network_offering.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_network_service_provider.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_nicira_nvp_device.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_physical_network.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_pod.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_pool.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/delete_portable_ip_range.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_private_gateway.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_project.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_project_invitation.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_remote_access_vpn.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_secondary_staging_store.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_security_group.rb +8 -7
- data/lib/fog/cloudstack/requests/compute/delete_service_offering.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_snapshot.rb +11 -11
- data/lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb +7 -5
- data/lib/fog/cloudstack/requests/compute/delete_srx_firewall.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb +7 -5
- data/lib/fog/cloudstack/requests/compute/delete_static_route.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_storage_network_ip_range.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_storage_pool.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_tags.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/delete_template.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/delete_traffic_monitor.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_traffic_type.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_ucs_manager.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_user.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/delete_vlan_ip_range.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_vm_snapshot.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_volume.rb +13 -10
- data/lib/fog/cloudstack/requests/compute/delete_vpc.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_vpcoffering.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_vpn_connection.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_vpn_customer_gateway.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_vpn_gateway.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/delete_zone.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb +14 -22
- data/lib/fog/cloudstack/requests/compute/destroy_lun_on_filer.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/destroy_router.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/destroy_system_vm.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb +13 -11
- data/lib/fog/cloudstack/requests/compute/destroy_volume_on_filer.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/detach_iso.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/detach_volume.rb +8 -7
- data/lib/fog/cloudstack/requests/compute/disable_account.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/disable_auto_scale_vm_group.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/disable_cisco_nexus_vsm.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/disable_static_nat.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/disable_user.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/disassociate_ip_address.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/disassociate_ucs_profile_from_blade.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/dissociate_lun.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/enable_account.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/enable_auto_scale_vm_group.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/enable_cisco_nexus_vsm.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/enable_static_nat.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/enable_storage_maintenance.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/enable_user.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/extract_iso.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/extract_template.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/extract_volume.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/find_hosts_for_migration.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/find_storage_pools_for_migration.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/generate_usage_records.rb +9 -13
- data/lib/fog/cloudstack/requests/compute/get_api_limit.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/get_cloud_identifier.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/get_user.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/get_vm_password.rb +9 -7
- data/lib/fog/cloudstack/requests/compute/instantiate_ucs_template_and_assocaciate_to_blade.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/ldap_config.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/ldap_remove.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_accounts.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_affinity_group_types.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_affinity_groups.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_alerts.rb +5 -3
- data/lib/fog/cloudstack/requests/compute/list_apis.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_async_jobs.rb +10 -8
- data/lib/fog/cloudstack/requests/compute/list_auto_scale_policies.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_auto_scale_vm_groups.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_auto_scale_vm_profiles.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_baremetal_dhcp.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_baremetal_pxe_servers.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_capabilities.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_capacity.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_cisco_asa1000v_resources.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_cisco_nexus_vsms.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_cisco_vnmc_resources.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_clusters.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_conditions.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_configurations.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_counters.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_dedicated_clusters.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_dedicated_guest_vlan_ranges.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_dedicated_hosts.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_dedicated_pods.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_dedicated_zones.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_deployment_planners.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_disk_offerings.rb +7 -5
- data/lib/fog/cloudstack/requests/compute/list_domain_children.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_domains.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_egress_firewall_rules.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_event_types.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_events.rb +5 -3
- data/lib/fog/cloudstack/requests/compute/list_external_firewalls.rb +7 -4
- data/lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_f5_load_balancer_networks.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_f5_load_balancers.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_firewall_rules.rb +7 -1
- data/lib/fog/cloudstack/requests/compute/list_global_load_balancer_rules.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_hosts.rb +5 -3
- data/lib/fog/cloudstack/requests/compute/list_hypervisor_capabilities.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_hypervisors.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_image_stores.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_instance_groups.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_internal_load_balancer_elements.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_internal_load_balancer_vms.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_ip_forwarding_rules.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_iso_permissions.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_isos.rb +5 -3
- data/lib/fog/cloudstack/requests/compute/list_lb_health_check_policies.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_lb_stickiness_policies.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb +8 -6
- data/lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_load_balancers.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_luns_on_filer.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_netscaler_load_balancer_networks.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_netscaler_load_balancers.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_network_acl_lists.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_network_acls.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_network_device.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_network_isolation_methods.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_network_offerings.rb +5 -3
- data/lib/fog/cloudstack/requests/compute/list_network_service_providers.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_networks.rb +5 -3
- data/lib/fog/cloudstack/requests/compute/list_nicira_nvp_device_networks.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_nicira_nvp_devices.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_nics.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_os_categories.rb +5 -3
- data/lib/fog/cloudstack/requests/compute/list_os_types.rb +7 -5
- data/lib/fog/cloudstack/requests/compute/list_physical_networks.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_pods.rb +5 -3
- data/lib/fog/cloudstack/requests/compute/list_pools.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_portable_ip_ranges.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_private_gateways.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_project_accounts.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_project_invitations.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_projects.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_regions.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_remote_access_vpns.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_resource_details.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_resource_limits.rb +5 -3
- data/lib/fog/cloudstack/requests/compute/list_routers.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_s3s.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_secondary_staging_stores.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_security_groups.rb +9 -5
- data/lib/fog/cloudstack/requests/compute/list_service_offerings.rb +11 -9
- data/lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/list_snapshots.rb +6 -5
- data/lib/fog/cloudstack/requests/compute/list_srx_firewall_networks.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_srx_firewalls.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_static_routes.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_storage_network_ip_range.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_storage_pools.rb +5 -3
- data/lib/fog/cloudstack/requests/compute/list_storage_providers.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_supported_network_services.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_swifts.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_system_vms.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_tags.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_template_permissions.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_templates.rb +12 -10
- data/lib/fog/cloudstack/requests/compute/list_traffic_monitors.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_traffic_type_implementors.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_traffic_types.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_ucs_blades.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_ucs_managers.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_ucs_profiles.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_ucs_templates.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_usage_records.rb +9 -13
- data/lib/fog/cloudstack/requests/compute/list_usage_types.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_users.rb +6 -4
- data/lib/fog/cloudstack/requests/compute/list_virtual_machines.rb +10 -9
- data/lib/fog/cloudstack/requests/compute/list_virtual_router_elements.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_vlan_ip_ranges.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_vm_snapshot.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_vmware_dcs.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_volumes.rb +10 -9
- data/lib/fog/cloudstack/requests/compute/list_volumes_on_filer.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/list_vpc_offerings.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_vpcs.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_vpn_connections.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_vpn_customer_gateways.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_vpn_gateways.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_vpn_users.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/list_zones.rb +11 -10
- data/lib/fog/cloudstack/requests/compute/lock_account.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/lock_user.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/mark_default_zone_for_account.rb +23 -0
- data/lib/fog/cloudstack/requests/compute/migrate_system_vm.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/migrate_virtual_machine_with_volume.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/migrate_volume.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/modify_pool.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/prepare_host_for_maintenance.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/prepare_template.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/query_async_job_result.rb +11 -6
- data/lib/fog/cloudstack/requests/compute/reboot_router.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/reboot_system_vm.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb +9 -7
- data/lib/fog/cloudstack/requests/compute/reconnect_host.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb +7 -4
- data/lib/fog/cloudstack/requests/compute/refresh_ucs_blades.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/register_iso.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb +9 -4
- data/lib/fog/cloudstack/requests/compute/register_template.rb +19 -11
- data/lib/fog/cloudstack/requests/compute/register_user_keys.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/release_dedicated_cluster.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/release_dedicated_guest_vlan_range.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/release_dedicated_host.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/release_dedicated_pod.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/release_dedicated_zone.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/release_host_reservation.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/release_public_ip_range.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/remove_from_global_load_balancer_rule.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb +10 -10
- data/lib/fog/cloudstack/requests/compute/remove_ip_from_nic.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/remove_nic_from_virtual_machine.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/remove_region.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/remove_resource_detail.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/remove_vmware_dc.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/remove_vpn_user.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/replace_network_acl_list.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/reset_api_limit.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb +10 -8
- data/lib/fog/cloudstack/requests/compute/reset_ssh_key_for_virtual_machine.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/reset_vpn_connection.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/resize_volume.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/restart_network.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/restart_vpc.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/restore_virtual_machine.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/revert_to_vm_snapshot.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/revoke_security_group_egress.rb +11 -5
- data/lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb +11 -6
- data/lib/fog/cloudstack/requests/compute/scale_system_vm.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/scale_virtual_machine.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/start_internal_load_balancer_vm.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/start_router.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/start_system_vm.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/start_virtual_machine.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/stop_internal_load_balancer_vm.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/stop_router.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/stop_system_vm.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/suspend_project.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_account.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/update_auto_scale_policy.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_auto_scale_vm_group.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_auto_scale_vm_profile.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_cluster.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_configuration.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_default_nic_for_virtual_machine.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/update_disk_offering.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_domain.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/update_global_load_balancer_rule.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_host.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_host_password.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/update_hypervisor_capabilities.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/update_instance_group.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_iso.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_iso_permissions.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_load_balancer_rule.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_network.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_network_acl_item.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_network_offering.rb +20 -0
- data/lib/fog/cloudstack/requests/compute/update_network_service_provider.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_physical_network.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_pod.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_port_forwarding_rule.rb +24 -0
- data/lib/fog/cloudstack/requests/compute/update_project.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_project_invitation.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_region.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_resource_count.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/update_resource_limit.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_service_offering.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_storage_network_ip_range.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_storage_pool.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_template.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_template_permissions.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_traffic_type.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_user.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/update_virtual_machine.rb +8 -5
- data/lib/fog/cloudstack/requests/compute/update_vm_affinity_group.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_volume.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/update_vpc.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/update_vpcoffering.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/update_vpn_customer_gateway.rb +26 -0
- data/lib/fog/cloudstack/requests/compute/update_zone.rb +21 -0
- data/lib/fog/cloudstack/requests/compute/upload_custom_certificate.rb +22 -0
- data/lib/fog/cloudstack/requests/compute/upload_volume.rb +24 -0
- data/lib/fog/digitalocean/requests/compute/destroy_ssh_key.rb +1 -1
- data/lib/fog/digitalocean/requests/compute/get_ssh_key.rb +2 -2
- data/lib/fog/dynect/dns.rb +18 -13
- data/lib/fog/dynect/models/dns/record.rb +6 -2
- data/lib/fog/dynect/models/dns/records.rb +17 -29
- data/lib/fog/dynect/requests/dns/get_all_records.rb +2 -1
- data/lib/fog/glesys/models/compute/server.rb +2 -0
- data/lib/fog/google/compute.rb +10 -74
- data/lib/fog/google/models/compute/disk.rb +3 -1
- data/lib/fog/google/models/compute/disk_type.rb +28 -0
- data/lib/fog/google/models/compute/disk_types.rb +40 -0
- data/lib/fog/google/models/compute/forwarding_rule.rb +4 -4
- data/lib/fog/google/models/compute/http_health_check.rb +4 -3
- data/lib/fog/google/models/compute/image.rb +1 -0
- data/lib/fog/google/models/compute/images.rb +2 -1
- data/lib/fog/google/models/compute/target_pool.rb +4 -4
- data/lib/fog/google/requests/compute/get_disk_type.rb +43 -0
- data/lib/fog/google/requests/compute/get_machine_type.rb +3 -3
- data/lib/fog/google/requests/compute/insert_disk.rb +6 -0
- data/lib/fog/google/requests/compute/list_aggregated_disk_types.rb +41 -0
- data/lib/fog/google/requests/compute/list_disk_types.rb +47 -0
- data/lib/fog/google/requests/storage/get_service.rb +1 -2
- data/lib/fog/hp/storage.rb +9 -2
- data/lib/fog/linode/compute.rb +2 -0
- data/lib/fog/linode/models/compute/flavor.rb +9 -7
- data/lib/fog/linode/requests/compute/linode_config_delete.rb +32 -0
- data/lib/fog/linode/requests/compute/linode_config_update.rb +33 -0
- data/lib/fog/opennebula.rb +1 -0
- data/lib/fog/opennebula/README.md +113 -0
- data/lib/fog/opennebula/compute.rb +57 -0
- data/lib/fog/opennebula/core.rb +8 -0
- data/lib/fog/opennebula/models/compute/flavor.rb +133 -0
- data/lib/fog/opennebula/models/compute/flavors.rb +35 -0
- data/lib/fog/opennebula/models/compute/group.rb +22 -0
- data/lib/fog/opennebula/models/compute/groups.rb +34 -0
- data/lib/fog/opennebula/models/compute/interface.rb +33 -0
- data/lib/fog/opennebula/models/compute/interfaces.rb +12 -0
- data/lib/fog/opennebula/models/compute/network.rb +41 -0
- data/lib/fog/opennebula/models/compute/networks.rb +21 -0
- data/lib/fog/opennebula/models/compute/server.rb +92 -0
- data/lib/fog/opennebula/models/compute/servers.rb +26 -0
- data/lib/fog/opennebula/requests/compute/OpenNebulaVNC.rb +336 -0
- data/lib/fog/opennebula/requests/compute/get_vnc_console.rb +47 -0
- data/lib/fog/opennebula/requests/compute/list_groups.rb +79 -0
- data/lib/fog/opennebula/requests/compute/list_networks.rb +63 -0
- data/lib/fog/opennebula/requests/compute/list_vms.rb +87 -0
- data/lib/fog/opennebula/requests/compute/template_pool.rb +93 -0
- data/lib/fog/opennebula/requests/compute/vm_allocate.rb +90 -0
- data/lib/fog/opennebula/requests/compute/vm_destroy.rb +22 -0
- data/lib/fog/opennebula/requests/compute/vm_resume.rb +37 -0
- data/lib/fog/opennebula/requests/compute/vm_stop.rb +22 -0
- data/lib/fog/openstack/compute.rb +2 -0
- data/lib/fog/openstack/examples/compute/basics.rb +0 -21
- data/lib/fog/openstack/models/compute/server.rb +28 -0
- data/lib/fog/openstack/models/compute/tenants.rb +3 -1
- data/lib/fog/openstack/requests/compute/create_server.rb +2 -2
- data/lib/fog/openstack/requests/compute/create_volume.rb +1 -1
- data/lib/fog/openstack/requests/compute/start_server.rb +24 -0
- data/lib/fog/openstack/requests/compute/stop_server.rb +24 -0
- data/lib/fog/openstack/requests/volume/create_volume.rb +1 -1
- data/lib/fog/rackspace/docs/auto_scale.md +6 -4
- data/lib/fog/rackspace/models/auto_scale/group.rb +12 -3
- data/lib/fog/rackspace/models/load_balancers/load_balancer.rb +6 -16
- data/lib/fog/rackspace/requests/compute_v2/get_flavor.rb +1 -1
- data/lib/fog/rackspace/requests/compute_v2/get_image.rb +1 -1
- data/lib/fog/rackspace/requests/load_balancers/create_load_balancer.rb +6 -5
- data/lib/fog/storm_on_demand/models/dns/reverses.rb +1 -1
- data/lib/fog/vcloud/examples/README.md +1 -1
- data/lib/fog/vcloud_director/compute.rb +74 -5
- data/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +61 -0
- data/lib/fog/vcloud_director/models/compute/custom_field.rb +18 -0
- data/lib/fog/vcloud_director/models/compute/custom_fields.rb +67 -0
- data/lib/fog/vcloud_director/models/compute/vapp.rb +5 -0
- data/lib/fog/vcloud_director/requests/compute/get_cpu_rasd_item.rb +37 -0
- data/lib/fog/vcloud_director/requests/compute/get_disks_rasd_items_list.rb +64 -0
- data/lib/fog/vcloud_director/requests/compute/get_execute_query.rb +86 -1
- data/lib/fog/vcloud_director/requests/compute/get_guest_customization_system_section_vapp.rb +44 -0
- data/lib/fog/vcloud_director/requests/compute/get_lease_settings_section_vapp.rb +34 -0
- data/lib/fog/vcloud_director/requests/compute/get_media_drives_rasd_items_list.rb +66 -0
- data/lib/fog/vcloud_director/requests/compute/get_memory_rasd_item.rb +36 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_cards_items_list.rb +45 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_config_section_vapp.rb +36 -0
- data/lib/fog/vcloud_director/requests/compute/get_network_connection_system_section_vapp.rb +43 -0
- data/lib/fog/vcloud_director/requests/compute/get_operating_system_section.rb +34 -0
- data/lib/fog/vcloud_director/requests/compute/get_runtime_info_section_type.rb +32 -0
- data/lib/fog/vcloud_director/requests/compute/get_snapshot_section.rb +30 -0
- data/lib/fog/vcloud_director/requests/compute/get_startup_section.rb +39 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp.rb +148 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_metadata.rb +57 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp_owner.rb +33 -0
- data/lib/fog/vcloud_director/requests/compute/get_vdc.rb +17 -1
- data/lib/fog/vcloud_director/requests/compute/get_vm_capabilities.rb +31 -0
- data/lib/fog/vcloud_director/requests/compute/get_vms_in_lease_from_query.rb +55 -0
- data/lib/fog/vcloud_director/requests/compute/post_deploy_vapp.rb +3 -3
- data/lib/fog/vcloud_director/requests/compute/post_instantiate_vapp_template.rb +63 -0
- data/lib/fog/vcloud_director/requests/compute/post_upload_vapp_template.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/put_cpu.rb +42 -1
- data/lib/fog/vcloud_director/requests/compute/put_memory.rb +43 -1
- data/lib/fog/vcloud_director/requests/compute/put_network.rb +158 -0
- data/lib/fog/vcloud_director/requests/compute/put_product_sections.rb +43 -0
- data/lib/fog/vcloud_director/requests/compute/put_vapp_metadata_item_metadata.rb +35 -0
- data/lib/fog/vcloud_director/requests/compute/put_vm.rb +34 -0
- data/lib/fog/version.rb +1 -1
- data/lib/fog/vsphere/compute.rb +1 -1
- data/lib/fog/vsphere/models/compute/interfaces.rb +15 -6
- data/lib/fog/vsphere/models/compute/server.rb +10 -4
- data/lib/fog/vsphere/models/compute/volumes.rb +14 -5
- data/lib/fog/vsphere/requests/compute/create_vm.rb +1 -0
- data/lib/fog/vsphere/requests/compute/vm_clone.rb +2 -5
- data/lib/fog/xenserver/requests/compute/create_server.rb +1 -2
- data/lib/fog/xml.rb +1 -25
- data/lib/fog/xml/connection.rb +12 -1
- data/lib/fog/zerigo/requests/dns/list_hosts.rb +24 -8
- data/tests/aws/models/compute/network_acls_tests.rb +13 -0
- data/tests/aws/models/compute/security_group_tests.rb +5 -1
- data/tests/aws/models/compute/vpcs_tests.rb +14 -0
- data/tests/aws/requests/compute/instance_tests.rb +2 -1
- data/tests/aws/requests/compute/network_acl_tests.rb +24 -0
- data/tests/aws/requests/compute/subnet_tests.rb +9 -0
- data/tests/aws/requests/compute/tag_tests.rb +21 -0
- data/tests/aws/requests/compute/vpc_tests.rb +41 -3
- data/tests/aws/requests/data_pipeline/pipeline_tests.rb +1 -1
- data/tests/aws/requests/dns/dns_tests.rb +4 -3
- data/tests/glesys/requests/compute/helper.rb +2 -0
- data/tests/glesys/requests/compute/server_tests.rb +6 -4
- data/tests/google/helpers/google_tests_helper.rb +21 -0
- data/tests/google/models/compute/disk_tests.rb +5 -1
- data/tests/google/models/compute/disk_types_tests.rb +22 -0
- data/tests/google/models/compute/disks_tests.rb +5 -1
- data/tests/google/models/compute/server_tests.rb +8 -2
- data/tests/google/models/compute/servers_tests.rb +7 -1
- data/tests/google/requests/compute/disk_tests.rb +5 -2
- data/tests/google/requests/compute/disk_type_tests.rb +45 -0
- data/tests/google/requests/compute/firewall_tests.rb +4 -2
- data/tests/google/requests/compute/image_tests.rb +15 -10
- data/tests/google/requests/compute/zone_tests.rb +2 -6
- data/tests/google/requests/storage/object_tests.rb +4 -1
- data/tests/helpers/collection_helper.rb +1 -1
- data/tests/helpers/mock_helper.rb +3 -0
- data/tests/helpers/model_helper.rb +1 -1
- data/tests/opennebula/compute_tests.rb +16 -0
- data/tests/opennebula/models/compute/group_tests.rb +27 -0
- data/tests/opennebula/models/compute/groups_tests.rb +16 -0
- data/tests/opennebula/models/compute/network_tests.rb +27 -0
- data/tests/opennebula/models/compute/networks_tests.rb +13 -0
- data/tests/opennebula/requests/compute/vm_allocate_tests.rb +59 -0
- data/tests/openstack/requests/compute/server_tests.rb +21 -0
- data/tests/vcloud/data/api_+_vdc_+_1 +1 -0
- data/tests/vcloud_director/models/compute/vapp_tests.rb +8 -0
- data/tests/vcloud_director/requests/compute/edge_gateway_tests.rb +80 -1
- data/tests/vcloud_director/requests/compute/network_tests.rb +81 -13
- data/tests/vcloud_director/requests/compute/schema_helper.rb +4 -3
- data/tests/vcloud_director/requests/compute/vapp_tests.rb +39 -7
- data/tests/vcloud_director/requests/compute/vm_tests.rb +72 -12
- data/tests/zerigo/requests/dns/dns_tests.rb +25 -4
- metadata +493 -51
- data/tests/google/helpers/disk_helper.rb +0 -12
@@ -1,6 +1,9 @@
|
|
1
|
+
require 'securerandom'
|
2
|
+
|
1
3
|
Shindo.tests('Fog::Storage[:google] | object requests', ["google"]) do
|
2
4
|
|
3
|
-
|
5
|
+
random_string = SecureRandom.hex
|
6
|
+
@directory = Fog::Storage[:google].directories.create(:key => "fog-test-object-#{random_string}")
|
4
7
|
|
5
8
|
tests('success') do
|
6
9
|
|
@@ -65,6 +65,9 @@ if Fog.mock?
|
|
65
65
|
:ninefold_storage_token => 'ninefold_storage_token',
|
66
66
|
# :public_key_path => '~/.ssh/id_rsa.pub',
|
67
67
|
# :private_key_path => '~/.ssh/id_rsa',
|
68
|
+
:opennebula_endpoint => 'http://opennebula:2633/RPC2',
|
69
|
+
:opennebula_username => 'oneadmin',
|
70
|
+
:opennebula_password => 'oneadmin',
|
68
71
|
:openstack_api_key => 'openstack_api_key',
|
69
72
|
:openstack_username => 'openstack_username',
|
70
73
|
:openstack_tenant => 'openstack_tenant',
|
@@ -0,0 +1,16 @@
|
|
1
|
+
Shindo.tests('Fog::Compute[:opennebula]', ['opennebula']) do
|
2
|
+
|
3
|
+
compute = Fog::Compute[:opennebula]
|
4
|
+
|
5
|
+
tests("Compute collections") do
|
6
|
+
%w{networks groups}.each do |collection|
|
7
|
+
test("it should respond to #{collection}") { compute.respond_to? collection }
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
tests("Compute requests") do
|
12
|
+
%w{list_networks}.each do |request|
|
13
|
+
test("it should respond to #{request}") { compute.respond_to? request }
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Shindo.tests('Fog::Compute[:opennebula] | group model', ['opennebula']) do
|
2
|
+
|
3
|
+
groups = Fog::Compute[:opennebula].groups
|
4
|
+
group = groups.last
|
5
|
+
|
6
|
+
tests('The group model should') do
|
7
|
+
tests('have the action') do
|
8
|
+
test('reload') { group.respond_to? 'reload' }
|
9
|
+
end
|
10
|
+
tests('have attributes') do
|
11
|
+
model_attribute_hash = group.attributes
|
12
|
+
attributes =
|
13
|
+
tests("The group model should respond to") do
|
14
|
+
[:name, :id, :to_label].each do |attribute|
|
15
|
+
test("#{attribute}") { group.respond_to? attribute }
|
16
|
+
end
|
17
|
+
end
|
18
|
+
tests("The attributes hash should have key") do
|
19
|
+
[:name, :id].each do |attribute|
|
20
|
+
test("#{attribute}") { model_attribute_hash.has_key? attribute }
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
test('be a kind of Fog::Compute::OpenNebula::Group') { group.kind_of? Fog::Compute::OpenNebula::Group }
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
Shindo.tests('Fog::Compute[:opennebula] | groups collection', ['opennebula']) do
|
2
|
+
|
3
|
+
groups = Fog::Compute[:opennebula].groups
|
4
|
+
|
5
|
+
tests('The groups collection') do
|
6
|
+
test('should be a kind of Fog::Compute::OpenNebula::Groups') { groups.kind_of? Fog::Compute::OpenNebula::Groups }
|
7
|
+
tests('should be able to reload itself').succeeds { groups.reload }
|
8
|
+
tests('should be able to get a model by id') do
|
9
|
+
tests('by instance id').succeeds { groups.get groups.first.id }
|
10
|
+
end
|
11
|
+
tests('should be able to get a model by name') do
|
12
|
+
tests('by instance id').succeeds { groups.get_by_name "fogtest" }
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
Shindo.tests('Fog::Compute[:opennebula] | network model', ['opennebula']) do
|
2
|
+
|
3
|
+
networks = Fog::Compute[:opennebula].networks
|
4
|
+
network = networks.last
|
5
|
+
|
6
|
+
tests('The network model should') do
|
7
|
+
tests('have the action') do
|
8
|
+
test('reload') { network.respond_to? 'reload' }
|
9
|
+
end
|
10
|
+
tests('have attributes') do
|
11
|
+
model_attribute_hash = network.attributes
|
12
|
+
attributes =
|
13
|
+
tests("The network model should respond to") do
|
14
|
+
[:name, :id, :vlan, :uid, :gid, :description].each do |attribute|
|
15
|
+
test("#{attribute}") { network.respond_to? attribute }
|
16
|
+
end
|
17
|
+
end
|
18
|
+
tests("The attributes hash should have key") do
|
19
|
+
[:name, :id, :uid, :gid].each do |attribute|
|
20
|
+
test("#{attribute}") { model_attribute_hash.has_key? attribute }
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
test('be a kind of Fog::Compute::OpenNebula::Network') { network.kind_of? Fog::Compute::OpenNebula::Network }
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
Shindo.tests('Fog::Compute[:opennebula] | networks collection', ['opennebula']) do
|
2
|
+
|
3
|
+
networks = Fog::Compute[:opennebula].networks
|
4
|
+
|
5
|
+
tests('The networks collection') do
|
6
|
+
test('should be a kind of Fog::Compute::OpenNebula::Networks') { networks.kind_of? Fog::Compute::OpenNebula::Networks }
|
7
|
+
tests('should be able to reload itself').succeeds { networks.reload }
|
8
|
+
tests('should be able to get a model') do
|
9
|
+
tests('by instance id').succeeds { networks.get networks.first.id }
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
Shindo.tests("Fog::Compute[:opennebula] | vm_create and destroy request", 'opennebula') do
|
2
|
+
|
3
|
+
compute = Fog::Compute[:opennebula]
|
4
|
+
name_base = Time.now.to_i
|
5
|
+
f = compute.flavors.get_by_name("fogtest")
|
6
|
+
|
7
|
+
tests("Get 'fogtest' flavor/template") do
|
8
|
+
test("could not get template with name 'fogtest'! This is required for live tests!") {f.kind_of? Array}
|
9
|
+
raise ArgumentError, "Could not get a template with the name 'fogtest'" unless f
|
10
|
+
end
|
11
|
+
|
12
|
+
f = f.first
|
13
|
+
response = {}
|
14
|
+
|
15
|
+
tests("Allocate VM") do
|
16
|
+
response = compute.vm_allocate({:name => 'fog-'+name_base.to_s, :flavor => f})
|
17
|
+
test("response should be a kind of Hash") { response.kind_of? Hash}
|
18
|
+
test("id should be a one-id (Fixnum)") { response['id'].is_a? Fixnum}
|
19
|
+
end
|
20
|
+
tests("Destroy VM") do
|
21
|
+
compute.vm_destroy(response['id'])
|
22
|
+
vms = compute.list_vms({:id => response['id'], :mock_return => false})
|
23
|
+
test("get vm should be empty") { compute.list_vms({:id => response['id']}).empty?}
|
24
|
+
end
|
25
|
+
|
26
|
+
#tests("Create VM from template (clone)") do
|
27
|
+
# response = compute.create_vm(:name => 'fog-'+(name_base+ 1).to_s, :template_name => 'hwp_small', :cluster_name => 'Default')
|
28
|
+
# test("should be a kind of OVIRT::VM") { response.kind_of? OVIRT::VM}
|
29
|
+
#end
|
30
|
+
|
31
|
+
tests("Fail Creating VM - no flavor") do
|
32
|
+
begin
|
33
|
+
response = compute.vm_allocate({:name => 'fog-'+name_base.to_s, :flavor => nil})
|
34
|
+
test("should be a kind of Hash") { response.kind_of? Hash} #mock never raise exceptions
|
35
|
+
rescue => e
|
36
|
+
#should raise vm name already exist exception.
|
37
|
+
test("error should be a kind of ArgumentError") { e.kind_of? ArgumentError}
|
38
|
+
end
|
39
|
+
end
|
40
|
+
tests("Fail Creating VM - nil name") do
|
41
|
+
begin
|
42
|
+
response = compute.vm_allocate({:name => nil, :flavor => f})
|
43
|
+
test("should be a kind of Hash") { response.kind_of? Hash} #mock never raise exceptions
|
44
|
+
rescue => e
|
45
|
+
#should raise vm name already exist exception.
|
46
|
+
test("error should be a kind of ArgumentError") { e.kind_of? ArgumentError}
|
47
|
+
end
|
48
|
+
end
|
49
|
+
tests("Fail Creating VM - empty name") do
|
50
|
+
begin
|
51
|
+
response = compute.vm_allocate({:name => "", :flavor => f})
|
52
|
+
test("should be a kind of Hash") { response.kind_of? Hash} #mock never raise exceptions
|
53
|
+
rescue => e
|
54
|
+
#should raise vm name already exist exception.
|
55
|
+
test("error should be a kind of ArgumentError") { e.kind_of? ArgumentError}
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
end
|
@@ -164,6 +164,18 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
|
164
164
|
|
165
165
|
Fog::Compute[:openstack].servers.get(@server_id).wait_for { ready? } if not Fog.mocking?
|
166
166
|
|
167
|
+
#STOP
|
168
|
+
tests("#stop_server(#{@server_id})").succeeds do
|
169
|
+
Fog::Compute[:openstack].stop_server(@server_id)
|
170
|
+
end
|
171
|
+
|
172
|
+
#START
|
173
|
+
tests("#start_server(#{@server_id})").succeeds do
|
174
|
+
Fog::Compute[:openstack].start_server(@server_id)
|
175
|
+
end
|
176
|
+
|
177
|
+
Fog::Compute[:openstack].servers.get(@server_id).wait_for { ready? } if not Fog.mocking?
|
178
|
+
|
167
179
|
#DELETE
|
168
180
|
tests("#delete_server(#{@server_id})").succeeds do
|
169
181
|
Fog::Compute[:openstack].delete_server(@server_id)
|
@@ -195,6 +207,15 @@ Shindo.tests('Fog::Compute[:openstack] | server requests', ['openstack']) do
|
|
195
207
|
Fog::Compute[:openstack].reboot_server(0)
|
196
208
|
end
|
197
209
|
|
210
|
+
tests('#start_server(0)').raises(Fog::Compute::OpenStack::NotFound) do
|
211
|
+
pending if Fog.mocking?
|
212
|
+
Fog::Compute[:openstack].start_server(0)
|
213
|
+
end
|
214
|
+
|
215
|
+
tests('#stop_server(0)').raises(Fog::Compute::OpenStack::NotFound) do
|
216
|
+
pending if Fog.mocking?
|
217
|
+
Fog::Compute[:openstack].stop_server(0)
|
218
|
+
end
|
198
219
|
end
|
199
220
|
|
200
221
|
end
|
@@ -7,6 +7,7 @@
|
|
7
7
|
<vmext:VimObjectType>RESOURCE_POOL</vmext:VimObjectType>
|
8
8
|
</vmext:VimObjectRef>
|
9
9
|
</VCloudExtension>
|
10
|
+
<Link rel="add" type="application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml" href="https://vcloud.example.com/api/vdc/1/action/uploadVAppTemplate" />
|
10
11
|
<Link rel="up" type="application/vnd.vmware.vcloud.org+xml" href="https://vcloud.example.com/api/org/1"/>
|
11
12
|
<Link rel="add" type="application/vnd.vmware.vcloud.uploadVAppTemplateParams+xml" href="https://vcloud.example.com/api/vdc/1/action/uploadVAppTemplate"/>
|
12
13
|
<Link rel="add" type="application/vnd.vmware.vcloud.media+xml" href="https://vcloud.example.com/api/vdc/1/media"/>
|
@@ -38,4 +38,12 @@ Shindo.tests("Compute::VcloudDirector | vapps", ['vclouddirector', 'all']) do
|
|
38
38
|
tests("#get_by_name").returns(vapp.name) { vapps.get_by_name(vapp.name).name }
|
39
39
|
tests("#get").returns(vapp.id) { vapps.get(vapp.id).id }
|
40
40
|
end
|
41
|
+
|
42
|
+
tests("Compute::VcloudDirector | vapp", ['custom_fields']) do
|
43
|
+
tests("#set_custom_field").returns('2'){ vapp.custom_fields[:custom_field] = '2' }
|
44
|
+
|
45
|
+
tests("#get_custom_field_by_name").returns('2') { vapp.custom_fields[:custom_field].value }
|
46
|
+
tests("#delete_custom_field").returns([]){ vapp.custom_fields.delete(:custom_field); vapp.custom_fields }
|
47
|
+
end
|
48
|
+
|
41
49
|
end
|
@@ -2,6 +2,49 @@ Shindo.tests('Compute::VcloudDirector | edge gateway requests', ['vclouddirector
|
|
2
2
|
|
3
3
|
FIREWALL_RULE_ID = '9999'
|
4
4
|
|
5
|
+
@dhcp_configuration = {
|
6
|
+
:GatewayDhcpService => {
|
7
|
+
:IsEnabled => "true",
|
8
|
+
:pools => [{
|
9
|
+
:IsEnabled => "true",
|
10
|
+
:Network => "testNet",
|
11
|
+
:DefaultLeaseTime => "65",
|
12
|
+
:MaxLeaseTime => "650",
|
13
|
+
:LowIpAddress => "192.168.9.2",
|
14
|
+
:HighIpAddress => "192.168.9.20"
|
15
|
+
}]
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@vpn_configuration = {
|
20
|
+
:GatewayIpsecVpnService =>
|
21
|
+
{
|
22
|
+
:IsEnabled => "true",
|
23
|
+
:Tunnel => {
|
24
|
+
:Name => "test vpn",
|
25
|
+
:PeerIpAddress => "110.110.110.110",
|
26
|
+
:PeerId => "1223-123UDH-12321",
|
27
|
+
:LocalIpAddress => "192.168.90.90",
|
28
|
+
:LocalId => "202UB-9602-UB629",
|
29
|
+
:PeerSubnet => {
|
30
|
+
:Name => "192.168.0.0/18",
|
31
|
+
:Gateway => "192.168.0.0",
|
32
|
+
:Netmask => "255.255.192.0",
|
33
|
+
},
|
34
|
+
:SharedSecret => "dont tell anyone",
|
35
|
+
:SharedSecretEncrypted => "false",
|
36
|
+
:EncryptionProtocol => "AES",
|
37
|
+
:Mtu => "1500",
|
38
|
+
:IsEnabled => "true",
|
39
|
+
:LocalSubnet => [{
|
40
|
+
:Name => "VDC Network",
|
41
|
+
:Gateway => "192.168.90.254",
|
42
|
+
:Netmask => "255.255.255.0"
|
43
|
+
}]
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
5
48
|
@new_edge_gateway_configuration = {
|
6
49
|
:FirewallService =>
|
7
50
|
{
|
@@ -28,7 +71,7 @@ Shindo.tests('Compute::VcloudDirector | edge gateway requests', ['vclouddirector
|
|
28
71
|
}
|
29
72
|
]
|
30
73
|
}
|
31
|
-
}
|
74
|
+
}.merge!(@vpn_configuration).merge!(@dhcp_configuration)
|
32
75
|
|
33
76
|
@service = Fog::Compute::VcloudDirector.new
|
34
77
|
@org = VcloudDirector::Compute::Helper.current_org(@service)
|
@@ -75,6 +118,16 @@ Shindo.tests('Compute::VcloudDirector | edge gateway requests', ['vclouddirector
|
|
75
118
|
response = @service.post_configure_edge_gateway_services(@edge_gateway_id, @new_edge_gateway_configuration)
|
76
119
|
@service.process_task(response.body)
|
77
120
|
|
121
|
+
tests('#check for DHCP configuration').returns(@new_edge_gateway_configuration[:GatewayDhcpService][:IsEnabled]) do
|
122
|
+
edge_gateway = @service.get_edge_gateway(@edge_gateway_id).body
|
123
|
+
edge_gateway[:Configuration][:EdgeGatewayServiceConfiguration][:GatewayDhcpService][:IsEnabled]
|
124
|
+
end
|
125
|
+
|
126
|
+
tests('#check for VPN').returns(@new_edge_gateway_configuration[:GatewayIpsecVpnService][:IsEnabled]) do
|
127
|
+
edge_gateway = @service.get_edge_gateway(@edge_gateway_id).body
|
128
|
+
edge_gateway[:Configuration][:EdgeGatewayServiceConfiguration][:GatewayIpsecVpnService][:IsEnabled]
|
129
|
+
end
|
130
|
+
|
78
131
|
tests('#check for new firewall rule').returns(@new_edge_gateway_configuration[:FirewallService][:FirewallRule]) do
|
79
132
|
edge_gateway = @service.get_edge_gateway(@edge_gateway_id).body
|
80
133
|
edge_gateway[:Configuration][:EdgeGatewayServiceConfiguration][:FirewallService][:FirewallRule]
|
@@ -87,6 +140,32 @@ Shindo.tests('Compute::VcloudDirector | edge gateway requests', ['vclouddirector
|
|
87
140
|
edge_gateway = @service.get_edge_gateway(@edge_gateway_id).body
|
88
141
|
edge_gateway[:Configuration][:EdgeGatewayServiceConfiguration][:FirewallService][:FirewallRule].find { |rule| rule[:Id] == FIREWALL_RULE_ID }
|
89
142
|
end
|
143
|
+
|
144
|
+
tests('#check VPN xml from generator').returns(true) do
|
145
|
+
xml = Nokogiri.XML Fog::Generators::Compute::VcloudDirector::EdgeGatewayServiceConfiguration.new(@vpn_configuration).generate_xml
|
146
|
+
#Not comprehensive, only checks that the generator actually knows how to handle it and that the output looks vagely sane
|
147
|
+
paths = {
|
148
|
+
'GatewayIpsecVpnService>IsEnabled' => 'true',
|
149
|
+
'Tunnel>Name' => 'test vpn',
|
150
|
+
'Tunnel>PeerIpAddress' => '110.110.110.110',
|
151
|
+
'Tunnel>LocalSubnet>Gateway' => '192.168.90.254',
|
152
|
+
'Tunnel>PeerSubnet>Netmask' => '255.255.192.0' }
|
153
|
+
paths.none? { |path| (xml.css path[0]).inner_text != path[1] }
|
154
|
+
end
|
155
|
+
|
156
|
+
tests('#check DHCP xml from generator').returns(true) do
|
157
|
+
xml = Nokogiri.XML Fog::Generators::Compute::VcloudDirector::EdgeGatewayServiceConfiguration.new(@dhcp_configuration).generate_xml
|
158
|
+
paths = {
|
159
|
+
'GatewayDhcpService>IsEnabled' => "true",
|
160
|
+
'GatewayDhcpService>Pool>IsEnabled' => "true",
|
161
|
+
'GatewayDhcpService>Pool>Network' => "testNet",
|
162
|
+
'GatewayDhcpService>Pool>DefaultLeaseTime' => "65",
|
163
|
+
'GatewayDhcpService>Pool>MaxLeaseTime' => "650",
|
164
|
+
'GatewayDhcpService>Pool>LowIpAddress' => "192.168.9.2",
|
165
|
+
'GatewayDhcpService>Pool>HighIpAddress' => "192.168.9.20" }
|
166
|
+
paths.none? { |path| (xml.css path[0]).inner_text != path[1] }
|
167
|
+
end
|
168
|
+
|
90
169
|
end
|
91
170
|
|
92
171
|
tests('Retrieve non-existent edge gateway').raises(Fog::Compute::VcloudDirector::Forbidden) do
|
@@ -50,16 +50,6 @@ Shindo.tests('Compute::VcloudDirector | network requests', ['vclouddirector']) d
|
|
50
50
|
@service.get_network(@network_id).body
|
51
51
|
end
|
52
52
|
|
53
|
-
tests('#get_network_complete').data_matches_schema(VcloudDirector::Compute::Schema::NETWORK_TYPE) do
|
54
|
-
pending if Fog.mocking?
|
55
|
-
link = @org[:Link].find do |l|
|
56
|
-
l[:rel] == 'down' && l[:type] == 'application/vnd.vmware.vcloud.orgNetwork+xml'
|
57
|
-
end
|
58
|
-
pending unless link # nothing to test here cannot continue
|
59
|
-
@network_id = link[:href].split('/').last
|
60
|
-
@service.get_network_complete(@network_id).body
|
61
|
-
end
|
62
|
-
|
63
53
|
tests('#get_network_metadata').data_matches_schema(VcloudDirector::Compute::Schema::METADATA_TYPE) do
|
64
54
|
pending if Fog.mocking?
|
65
55
|
pending unless @network_id # nothing to test here cannot continue
|
@@ -67,7 +57,7 @@ Shindo.tests('Compute::VcloudDirector | network requests', ['vclouddirector']) d
|
|
67
57
|
end
|
68
58
|
|
69
59
|
tests('#post_create_org_vdc_network') do
|
70
|
-
pending unless Fog.mocking?
|
60
|
+
#pending unless Fog.mocking?
|
71
61
|
link = @org[:Link].find do |l|
|
72
62
|
l[:rel] == 'down' && l[:type] == 'application/vnd.vmware.vcloud.vdc+xml'
|
73
63
|
end
|
@@ -101,13 +91,91 @@ Shindo.tests('Compute::VcloudDirector | network requests', ['vclouddirector']) d
|
|
101
91
|
@service.process_task(body[:Tasks][:Task]) if body && body.key?(:Tasks)
|
102
92
|
|
103
93
|
tests('fetched name matches created name').returns(name) do
|
104
|
-
net = @service.
|
94
|
+
net = @service.get_network_complete(@created_net_id).body
|
105
95
|
net[:name]
|
106
96
|
end
|
97
|
+
|
98
|
+
end
|
99
|
+
|
100
|
+
tests('#get_network_complete schema').data_matches_schema(VcloudDirector::Compute::Schema::NETWORK_TYPE) do
|
101
|
+
link = @org[:Link].find do |l|
|
102
|
+
l[:rel] == 'down' && l[:type] == 'application/vnd.vmware.vcloud.orgNetwork+xml'
|
103
|
+
end
|
104
|
+
pending unless link # nothing to test here cannot continue
|
105
|
+
@network_id = link[:href].split('/').last
|
106
|
+
@service.get_network_complete(@network_id).body
|
107
|
+
end
|
108
|
+
|
109
|
+
tests('#get_network_complete') do
|
110
|
+
new_network = @service.get_network_complete(@created_net_id).body
|
111
|
+
tests('network has a :name') do
|
112
|
+
new_network.fetch(:name)
|
113
|
+
end
|
114
|
+
tests('network has a :Description') do
|
115
|
+
new_network.fetch(:Description)
|
116
|
+
end
|
117
|
+
tests('network has a :Gateway') do
|
118
|
+
new_network[:Configuration][:IpScopes][:IpScope][:Gateway]
|
119
|
+
end
|
120
|
+
tests('network has a several :IpRanges') do
|
121
|
+
new_network[:Configuration][:IpScopes][:IpScope][:IpRanges].size >= 1
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
tests('#put_network') do
|
126
|
+
|
127
|
+
new_options = {
|
128
|
+
:Description => "Testing put_network",
|
129
|
+
:Configuration => {
|
130
|
+
:IpScopes => {
|
131
|
+
:IpScope => {
|
132
|
+
:IsInherited => 'false',
|
133
|
+
:Gateway => '198.51.100.1',
|
134
|
+
:Netmask => '255.255.255.0',
|
135
|
+
:Dns1 => '198.51.100.2',
|
136
|
+
:Dns2 => '198.51.100.3',
|
137
|
+
:DnsSuffix => 'example.com',
|
138
|
+
:IpRanges => [
|
139
|
+
{ :IpRange => { :StartAddress => '198.51.100.10', :EndAddress => '198.51.100.20' } },
|
140
|
+
{ :IpRange => { :StartAddress => '198.51.100.30', :EndAddress => '198.51.100.40' } },
|
141
|
+
]
|
142
|
+
},
|
143
|
+
},
|
144
|
+
:FenceMode => 'isolated',
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
original_network = @service.get_network_complete(@created_net_id).body
|
149
|
+
name = original_network[:name]
|
150
|
+
|
151
|
+
task = @service.put_network(@created_net_id, name, new_options).body
|
152
|
+
@service.process_task(task)
|
153
|
+
|
154
|
+
tests('fetched :Gateway matches updated :Gateway').returns(
|
155
|
+
new_options[:Configuration][:IpScopes][:IpScope][:Gateway]
|
156
|
+
) do
|
157
|
+
net = @service.get_network_complete(@created_net_id).body
|
158
|
+
net[:Configuration][:IpScopes][:IpScope][:Gateway]
|
159
|
+
end
|
160
|
+
|
161
|
+
tests('fetched :IpRanges count is matches updated data').returns(
|
162
|
+
new_options[:Configuration][:IpScopes][:IpScope][:IpRanges].size
|
163
|
+
) do
|
164
|
+
net = @service.get_network_complete(@created_net_id).body
|
165
|
+
# dammit, the API returns with IpRange as a list, not IpRanges
|
166
|
+
net[:Configuration][:IpScopes][:IpScope][:IpRanges][:IpRange].size
|
167
|
+
end
|
168
|
+
|
169
|
+
tests('fetched :Network matches updated :Description').returns(
|
170
|
+
new_options[:Description]
|
171
|
+
) do
|
172
|
+
net = @service.get_network_complete(@created_net_id).body
|
173
|
+
net[:Description]
|
174
|
+
end
|
175
|
+
|
107
176
|
end
|
108
177
|
|
109
178
|
tests('#delete_network') do
|
110
|
-
pending unless Fog.mocking?
|
111
179
|
@delete_task = @service.delete_network(@created_net_id).body
|
112
180
|
@service.process_task(@delete_task)
|
113
181
|
tests('created network has been deleted').raises(Fog::Compute::VcloudDirector::Forbidden) do
|