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
@@ -11,6 +11,7 @@ module Fog
|
|
11
11
|
attribute :available_ip_address_count, :aliases => 'availableIpAddressCount'
|
12
12
|
attribute :availability_zone, :aliases => 'availabilityZone'
|
13
13
|
attribute :tag_set, :aliases => 'tagSet'
|
14
|
+
attribute :map_public_ip_on_launch, :aliases => 'mapPublicIpOnLaunch'
|
14
15
|
|
15
16
|
def ready?
|
16
17
|
requires :state
|
@@ -55,7 +55,18 @@ module Fog
|
|
55
55
|
|
56
56
|
data = service.create_vpc(cidr_block).body['vpcSet'].first
|
57
57
|
new_attributes = data.reject {|key,value| key == 'requestId'}
|
58
|
+
new_attributes = data.reject {|key,value| key == 'requestId' || key == 'tagSet' }
|
58
59
|
merge_attributes(new_attributes)
|
60
|
+
|
61
|
+
if tags = self.tags
|
62
|
+
# expect eventual consistency
|
63
|
+
Fog.wait_for { self.reload rescue nil }
|
64
|
+
service.create_tags(
|
65
|
+
self.identity,
|
66
|
+
tags
|
67
|
+
)
|
68
|
+
end
|
69
|
+
|
59
70
|
true
|
60
71
|
end
|
61
72
|
end
|
@@ -7,6 +7,7 @@ module Fog
|
|
7
7
|
identity :id, :aliases => 'pipelineId'
|
8
8
|
attribute :name
|
9
9
|
attribute :description
|
10
|
+
attribute :tags
|
10
11
|
attribute :user_id, :aliases => 'userId'
|
11
12
|
attribute :account_id, :aliases => 'accountId'
|
12
13
|
attribute :state, :aliases => 'pipelineState'
|
@@ -27,7 +28,7 @@ module Fog
|
|
27
28
|
requires :name
|
28
29
|
requires :unique_id
|
29
30
|
|
30
|
-
data = service.create_pipeline(unique_id, name)
|
31
|
+
data = service.create_pipeline(unique_id, name, nil, tags)
|
31
32
|
merge_attributes(data)
|
32
33
|
|
33
34
|
true
|
@@ -17,22 +17,14 @@ module Fog
|
|
17
17
|
attribute :maintenance_window, :aliases => 'PreferredMaintenanceWindow'
|
18
18
|
# complex attributes
|
19
19
|
attribute :nodes, :aliases => 'CacheNodes', :type => :array
|
20
|
-
attribute :parameter_group,
|
21
|
-
|
22
|
-
attribute :
|
23
|
-
|
24
|
-
attribute :
|
25
|
-
|
26
|
-
attribute :
|
27
|
-
|
28
|
-
attribute :notification_config,
|
29
|
-
:aliases => 'NotificationConfiguration', :type => :hash
|
30
|
-
attribute :cache_subnet_group_name,
|
31
|
-
:aliases => 'CacheSubnetGroupName'
|
32
|
-
attribute :vpc_security_groups,
|
33
|
-
:aliases => 'VpcSecurityGroups', :type => :array
|
34
|
-
attribute :s3_snapshot_location,
|
35
|
-
:aliases => 'SnapshotArns', :type => :array
|
20
|
+
attribute :parameter_group, :aliases => 'CacheParameterGroup'
|
21
|
+
attribute :pending_values, :aliases => 'PendingModifiedValues'
|
22
|
+
attribute :create_time, :aliases => 'CacheClusterCreateTime', :type => :timestamp
|
23
|
+
attribute :security_groups, :aliases => 'CacheSecurityGroups', :type => :array
|
24
|
+
attribute :notification_config, :aliases => 'NotificationConfiguration'
|
25
|
+
attribute :cache_subnet_group_name, :aliases => 'CacheSubnetGroupName'
|
26
|
+
attribute :vpc_security_groups, :aliases => 'VpcSecurityGroups', :type => :array
|
27
|
+
attribute :s3_snapshot_location, :aliases => 'SnapshotArns', :type => :array
|
36
28
|
|
37
29
|
attr_accessor :parameter_group_name
|
38
30
|
|
@@ -32,7 +32,7 @@ module Fog
|
|
32
32
|
when 'architecture', 'clientToken', 'dnsName', 'hypervisor', 'imageId',
|
33
33
|
'instanceId', 'instanceType', 'ipAddress', 'kernelId', 'keyName',
|
34
34
|
'instanceLifecycle', 'platform', 'privateDnsName', 'privateIpAddress', 'ramdiskId',
|
35
|
-
'reason', 'requesterId', 'rootDeviceType',
|
35
|
+
'reason', 'requesterId', 'rootDeviceName', 'rootDeviceType',
|
36
36
|
'spotInstanceRequestId', 'virtualizationType'
|
37
37
|
@instance[name] = value
|
38
38
|
when 'attachTime'
|
@@ -47,8 +47,7 @@ module Fog
|
|
47
47
|
@internet_gateway[name] = value
|
48
48
|
when 'item'
|
49
49
|
@response['internetGatewaySet'] << @internet_gateway
|
50
|
-
@internet_gateway = { 'tagSet' => {} }
|
51
|
-
@internet_gateway = { 'attachmentSet' => {} }
|
50
|
+
@internet_gateway = { 'attachmentSet' => {}, 'tagSet' => {} }
|
52
51
|
when 'requestId'
|
53
52
|
@response[name] = value
|
54
53
|
end
|
@@ -32,6 +32,8 @@ module Fog
|
|
32
32
|
case name
|
33
33
|
when 'subnetId', 'state', 'vpcId', 'cidrBlock', 'availableIpAddressCount', 'availabilityZone'
|
34
34
|
@subnet[name] = value
|
35
|
+
when 'mapPublicIpOnLaunch'
|
36
|
+
@subnet[name] = value == 'true' ? true : false
|
35
37
|
when 'item'
|
36
38
|
@response['subnetSet'] << @subnet
|
37
39
|
@subnet = { 'tagSet' => {} }
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Fog
|
2
|
+
module Parsers
|
3
|
+
module Compute
|
4
|
+
module AWS
|
5
|
+
class ModifySubnetAttribute < Fog::Parsers::Base
|
6
|
+
def reset
|
7
|
+
@response = { }
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
def end_element(name)
|
12
|
+
case name
|
13
|
+
when 'return'
|
14
|
+
@response[name] = value == 'true' ? true : false
|
15
|
+
when 'requestId'
|
16
|
+
@response[name] = value
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -4,7 +4,7 @@ module Fog
|
|
4
4
|
module AWS
|
5
5
|
class NetworkInterfaceParser < Fog::Parsers::Base
|
6
6
|
def reset_nic
|
7
|
-
@nic = { 'groupSet' => {}, 'attachment' => {}, 'association' => {}, 'tagSet' => {} }
|
7
|
+
@nic = { 'groupSet' => {}, 'attachment' => {}, 'association' => {}, 'tagSet' => {}, 'privateIpAddressesSet' => [] }
|
8
8
|
@in_tag_set = false
|
9
9
|
@in_group_set = false
|
10
10
|
@in_attachment = false
|
@@ -78,6 +78,11 @@ module Fog
|
|
78
78
|
elsif @in_private_ip_addresses
|
79
79
|
case name
|
80
80
|
when 'item'
|
81
|
+
if value
|
82
|
+
@private_ip_address['item'] = value.strip
|
83
|
+
else
|
84
|
+
@private_ip_address['item'] = value
|
85
|
+
end
|
81
86
|
@private_ip_addresses << @private_ip_address
|
82
87
|
@private_ip_address = {}
|
83
88
|
when 'privateIpAddress', 'privateDnsName', 'primary'
|
@@ -43,8 +43,7 @@ module Fog
|
|
43
43
|
|
44
44
|
when 'LatestRestorableTime', 'InstanceCreateTime'
|
45
45
|
@db_instance[name] = Time.parse value
|
46
|
-
when 'Engine',
|
47
|
-
'DBInstanceStatus', 'DBInstanceIdentifier', 'EngineVersion',
|
46
|
+
when 'Engine', 'DBInstanceStatus', 'DBInstanceIdentifier',
|
48
47
|
'PreferredBackupWindow', 'PreferredMaintenanceWindow',
|
49
48
|
'AvailabilityZone', 'MasterUsername', 'DBName', 'LicenseModel',
|
50
49
|
'DBSubnetGroupName'
|
@@ -72,7 +71,8 @@ module Fog
|
|
72
71
|
else
|
73
72
|
@db_instance[name] = value.to_i
|
74
73
|
end
|
75
|
-
when 'DBInstanceClass', 'EngineVersion', 'MasterUserPassword',
|
74
|
+
when 'DBInstanceClass', 'EngineVersion', 'MasterUserPassword',
|
75
|
+
'MultiAZ', 'Iops', 'AllocatedStorage'
|
76
76
|
if @in_pending_modified_values
|
77
77
|
@pending_modified_values[name] = value
|
78
78
|
else
|
@@ -95,18 +95,6 @@ module Fog
|
|
95
95
|
@vpc_security_group = {}
|
96
96
|
when 'VpcSecurityGroupId'
|
97
97
|
@vpc_security_group[name] = value
|
98
|
-
when 'Iops'
|
99
|
-
if @in_pending_modified_values
|
100
|
-
@pending_modified_values[name] = value.to_i
|
101
|
-
else
|
102
|
-
@db_instance[name] = value.to_i
|
103
|
-
end
|
104
|
-
when 'AllocatedStorage'
|
105
|
-
if @in_pending_modified_values
|
106
|
-
@pending_modified_values[name] = value.to_i
|
107
|
-
else
|
108
|
-
@db_instance[name] = value.to_i
|
109
|
-
end
|
110
98
|
|
111
99
|
when 'Status'
|
112
100
|
# Unfortunately, status is used in VpcSecurityGroupMemebership and
|
@@ -149,7 +149,12 @@ module Fog
|
|
149
149
|
def normalize_permissions(options)
|
150
150
|
normalized_permissions = []
|
151
151
|
if options['SourceSecurityGroupName']
|
152
|
-
|
152
|
+
group_name = if options['SourceSecurityGroupName'] =~ /default_elb/
|
153
|
+
"default"
|
154
|
+
else
|
155
|
+
options['SourceSecurityGroupName']
|
156
|
+
end
|
157
|
+
source_group_id=self.data[:security_groups][group_name]['groupId']
|
153
158
|
['tcp', 'udp'].each do |protocol|
|
154
159
|
normalized_permissions << {
|
155
160
|
'ipProtocol' => protocol,
|
@@ -185,7 +190,7 @@ module Fog
|
|
185
190
|
security_group = if group_name = authorized_group['GroupName']
|
186
191
|
self.data[:security_groups][group_name] || {}
|
187
192
|
elsif group_id = authorized_group['GroupId']
|
188
|
-
self.data[:security_groups].values.find { |sg| sg['groupId'] == group_id }
|
193
|
+
self.data[:security_groups].values.find { |sg| sg['groupId'] == group_id } || {}
|
189
194
|
end
|
190
195
|
|
191
196
|
{'groupName' => authorized_group['GroupName'] || security_group["groupName"], 'userId' => authorized_group['UserId'] || self.data[:owner_id], 'groupId' => authorized_group["GroupId"] || security_group['groupId']}
|
@@ -199,7 +204,7 @@ module Fog
|
|
199
204
|
security_group = if group_name = authorized_group['GroupName']
|
200
205
|
self.data[:security_groups][group_name] || {}
|
201
206
|
elsif group_id = authorized_group['GroupId']
|
202
|
-
self.data[:security_groups].values.find { |sg| sg['groupId'] == group_id }
|
207
|
+
self.data[:security_groups].values.find { |sg| sg['groupId'] == group_id } || {}
|
203
208
|
end
|
204
209
|
|
205
210
|
{'groupName' => authorized_group['GroupName'] || security_group["groupName"], 'userId' => authorized_group['UserId'] || self.data[:owner_id], 'groupId' => authorized_group["GroupId"] || security_group['groupId']}
|
@@ -39,26 +39,7 @@ module Fog
|
|
39
39
|
class Mock
|
40
40
|
def create_tags(resources, tags)
|
41
41
|
resources = [*resources]
|
42
|
-
|
43
|
-
tagged = resources.map do |resource_id|
|
44
|
-
type = case resource_id
|
45
|
-
when /^ami\-[a-z0-9]{8}$/i
|
46
|
-
'image'
|
47
|
-
when /^i\-[a-z0-9]{8}$/i
|
48
|
-
'instance'
|
49
|
-
when /^snap\-[a-z0-9]{8}$/i
|
50
|
-
'snapshot'
|
51
|
-
when /^vol\-[a-z0-9]{8}$/i
|
52
|
-
'volume'
|
53
|
-
when /^igw\-[a-z0-9]{8}$/i
|
54
|
-
'internet_gateway'
|
55
|
-
end
|
56
|
-
if type && ((type == 'image' && visible_images[resource_id]) || self.data[:"#{type}s"][resource_id])
|
57
|
-
{ 'resourceId' => resource_id, 'resourceType' => type }
|
58
|
-
else
|
59
|
-
raise(Fog::Service::NotFound.new("The #{type} ID '#{resource_id}' does not exist"))
|
60
|
-
end
|
61
|
-
end
|
42
|
+
tagged = tagged_resources(resources)
|
62
43
|
|
63
44
|
tags.each do |key, value|
|
64
45
|
self.data[:tags][key] ||= {}
|
@@ -40,23 +40,7 @@ module Fog
|
|
40
40
|
|
41
41
|
class Mock
|
42
42
|
def delete_tags(resources, tags)
|
43
|
-
tagged =
|
44
|
-
type = case resource_id
|
45
|
-
when /^ami\-[a-z0-9]{8}$/i
|
46
|
-
'image'
|
47
|
-
when /^i\-[a-z0-9]{8}$/i
|
48
|
-
'instance'
|
49
|
-
when /^snap\-[a-z0-9]{8}$/i
|
50
|
-
'snapshot'
|
51
|
-
when /^vol\-[a-z0-9]{8}$/i
|
52
|
-
'volume'
|
53
|
-
end
|
54
|
-
if type && ((type == 'image' && visible_images[resource_id]) || self.data[:"#{type}s"][resource_id])
|
55
|
-
{ 'resourceId' => resource_id, 'resourceType' => type }
|
56
|
-
else
|
57
|
-
raise(Fog::Service::NotFound.new("The #{type} ID '#{resource_id}' does not exist"))
|
58
|
-
end
|
59
|
-
end
|
43
|
+
tagged = tagged_resources(resources)
|
60
44
|
|
61
45
|
tags.each do |key, value|
|
62
46
|
self.data[:tags][key][value] = self.data[:tags][key][value] - tagged
|
@@ -236,7 +236,7 @@ module Fog
|
|
236
236
|
'ownerId' => instance['ownerId'],
|
237
237
|
'reservationId' => instance['reservationId']
|
238
238
|
}
|
239
|
-
reservation_set[instance['reservationId']]['instancesSet'] << instance.reject{|key,value| !['amiLaunchIndex', 'architecture', 'blockDeviceMapping', 'clientToken', 'dnsName', 'ebsOptimized', 'hypervisor', 'iamInstanceProfile', 'imageId', 'instanceId', 'instanceState', 'instanceType', 'ipAddress', 'kernelId', 'keyName', 'launchTime', 'monitoring', 'networkInterfaces', 'ownerId', 'placement', 'platform', 'privateDnsName', 'privateIpAddress', 'productCodes', 'ramdiskId', 'reason', 'rootDeviceType', 'stateReason', 'virtualizationType'].include?(key)}.merge('tagSet' => self.data[:tag_sets][instance['instanceId']])
|
239
|
+
reservation_set[instance['reservationId']]['instancesSet'] << instance.reject{|key,value| !['amiLaunchIndex', 'architecture', 'blockDeviceMapping', 'clientToken', 'dnsName', 'ebsOptimized', 'hypervisor', 'iamInstanceProfile', 'imageId', 'instanceId', 'instanceState', 'instanceType', 'ipAddress', 'kernelId', 'keyName', 'launchTime', 'monitoring', 'networkInterfaces', 'ownerId', 'placement', 'platform', 'privateDnsName', 'privateIpAddress', 'productCodes', 'ramdiskId', 'reason', 'rootDeviceName', 'rootDeviceType', 'stateReason', 'virtualizationType'].include?(key)}.merge('tagSet' => self.data[:tag_sets][instance['instanceId']])
|
240
240
|
end
|
241
241
|
end
|
242
242
|
|
@@ -53,6 +53,7 @@ module Fog
|
|
53
53
|
response = Excon::Response.new
|
54
54
|
|
55
55
|
network_acls = self.data[:network_acls].values
|
56
|
+
network_acls = apply_tag_filters(network_acls, filters, 'networkAclId')
|
56
57
|
|
57
58
|
aliases = {
|
58
59
|
'vpc-id' => 'vpcId',
|
@@ -90,6 +91,11 @@ module Fog
|
|
90
91
|
end
|
91
92
|
end
|
92
93
|
|
94
|
+
network_acls.each do |acl|
|
95
|
+
tags = self.data[:tag_sets][acl['networkAclId']]
|
96
|
+
acl.merge!('tagSet' => tags) if tags
|
97
|
+
end
|
98
|
+
|
93
99
|
response.status = 200
|
94
100
|
response.body = {
|
95
101
|
'requestId' => Fog::AWS::Mock.request_id,
|
@@ -41,6 +41,7 @@ module Fog
|
|
41
41
|
class Mock
|
42
42
|
def describe_vpcs(filters = {})
|
43
43
|
vpcs = self.data[:vpcs]
|
44
|
+
vpcs = apply_tag_filters(vpcs, filters, 'vpcId')
|
44
45
|
|
45
46
|
# Transition from pending to available
|
46
47
|
vpcs.each do |vpc|
|
@@ -54,6 +55,11 @@ module Fog
|
|
54
55
|
vpcs = vpcs.reject {|vpc| vpc['vpcId'] != filters['vpc-id']}
|
55
56
|
end
|
56
57
|
|
58
|
+
vpcs.each do |vpc|
|
59
|
+
tags = self.data[:tag_sets][vpc['vpcId']]
|
60
|
+
vpc.merge!('tagSet' => tags) if tags
|
61
|
+
end
|
62
|
+
|
57
63
|
Excon::Response.new(
|
58
64
|
:status => 200,
|
59
65
|
:body => {
|
@@ -0,0 +1,58 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class AWS
|
4
|
+
class Real
|
5
|
+
require 'fog/aws/parsers/compute/modify_subnet_attribute'
|
6
|
+
|
7
|
+
# Modifies a subnet attribute.
|
8
|
+
#
|
9
|
+
# ==== Parameters
|
10
|
+
# * SubnetId<~String> - The id of the subnet to modify
|
11
|
+
# * options<~Hash>:
|
12
|
+
# * MapPublicIpOnLaunch<~Boolean> - Modifies the public IP addressing behavior for the subnet.
|
13
|
+
# Specify true to indicate that instances launched into the specified subnet should be assigned a public IP address.
|
14
|
+
# If set to true, the instance receives a public IP address only if the instance is launched with a single,
|
15
|
+
# new network interface with the device index of 0.
|
16
|
+
#
|
17
|
+
# === Returns
|
18
|
+
# * response<~Excon::Response>:
|
19
|
+
# * body<~Hash>:
|
20
|
+
# * 'requestId'<~String> - Id of request
|
21
|
+
# * 'return'<~Boolean> - Returns true if the request succeeds. Otherwise, returns an error.
|
22
|
+
# http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-ModifySubnetAttribute.html
|
23
|
+
def modify_subnet_attribute(subnet_id, options = {})
|
24
|
+
params = {}
|
25
|
+
params['MapPublicIpOnLaunch.Value'] = options.delete 'MapPublicIpOnLaunch' if options['MapPublicIpOnLaunch']
|
26
|
+
request({
|
27
|
+
'Action' => 'ModifySubnetAttribute',
|
28
|
+
'SubnetId' => subnet_id,
|
29
|
+
:parser => Fog::Parsers::Compute::AWS::ModifySubnetAttribute.new
|
30
|
+
}.merge(params))
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
class Mock
|
35
|
+
def modify_subnet_attribute(subnet_id, options={})
|
36
|
+
Excon::Response.new.tap do |response|
|
37
|
+
subnet = self.data[:subnets].detect { |v| v['subnetId'] == subnet_id }
|
38
|
+
if subnet
|
39
|
+
subnet['mapPublicIpOnLaunch'] = options['MapPublicIpOnLaunch']
|
40
|
+
|
41
|
+
response.status = 200
|
42
|
+
|
43
|
+
response.body = {
|
44
|
+
'requestId' => Fog::AWS::Mock.request_id,
|
45
|
+
'return' => true
|
46
|
+
}
|
47
|
+
else
|
48
|
+
response.status = 404
|
49
|
+
response.body = {
|
50
|
+
'Code' => 'InvalidParameterValue'
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
@@ -43,7 +43,7 @@ module Fog
|
|
43
43
|
}
|
44
44
|
|
45
45
|
# This determines if we are doing a snapshot or a S3 backed AMI.
|
46
|
-
if(location =~ /^\/dev\/sd[a-p]\d{0,2}$/)
|
46
|
+
if(location =~ /^\/dev\/(xvd|sd)[a-p]\d{0,2}$/)
|
47
47
|
common_options['RootDeviceName'] = location
|
48
48
|
else
|
49
49
|
common_options['ImageLocation'] = location
|
@@ -90,7 +90,7 @@ module Fog
|
|
90
90
|
'registered' => Time.now
|
91
91
|
}
|
92
92
|
|
93
|
-
if location[/^\/dev\/sd[a-p]\d{0,2}$/]
|
93
|
+
if location[/^\/dev\/(xvd|sd)[a-p]\d{0,2}$/]
|
94
94
|
image['rootDeviceName'] = location
|
95
95
|
image['rootDeviceType'] = 'ebs'
|
96
96
|
else
|
@@ -48,7 +48,7 @@ module Fog
|
|
48
48
|
# * 'SecurityGroupId'<~Array> or <~String> - id's of security group(s) for instances, use this or SecurityGroup
|
49
49
|
# * 'InstanceInitiatedShutdownBehaviour'<~String> - specifies whether volumes are stopped or terminated when instance is shutdown, in [stop, terminate]
|
50
50
|
# * 'InstanceType'<~String> - Type of instance to boot. Valid options
|
51
|
-
# in ['t1.micro', 'm1.small', 'm1.medium', 'm1.large', 'm1.xlarge', 'c1.medium', 'c1.xlarge', 'c3.large', 'c3.xlarge', 'c3.2xlarge', 'c3.4xlarge', 'c3.8xlarge', 'g2.2xlarge', 'hs1.8xlarge', 'm2.xlarge', 'm2.2xlarge', 'm2.4xlarge', 'cr1.8xlarge', 'm3.xlarge', 'm3.2xlarge', 'hi1.4xlarge', 'cc1.4xlarge', 'cc2.8xlarge', 'cg1.4xlarge', 'i2.xlarge', 'i2.2xlarge', 'i2.4xlarge', 'i2.8xlarge']
|
51
|
+
# in ['t1.micro', 't2.micro', 't2.small', 't2.medium', 'm1.small', 'm1.medium', 'm1.large', 'm1.xlarge', 'c1.medium', 'c1.xlarge', 'c3.large', 'c3.xlarge', 'c3.2xlarge', 'c3.4xlarge', 'c3.8xlarge', 'g2.2xlarge', 'hs1.8xlarge', 'm2.xlarge', 'm2.2xlarge', 'm2.4xlarge', 'cr1.8xlarge', 'm3.xlarge', 'm3.2xlarge', 'hi1.4xlarge', 'cc1.4xlarge', 'cc2.8xlarge', 'cg1.4xlarge', 'i2.xlarge', 'i2.2xlarge', 'i2.4xlarge', 'i2.8xlarge']
|
52
52
|
# default is 'm1.small'
|
53
53
|
# * 'KernelId'<~String> - Id of kernel with which to launch
|
54
54
|
# * 'KeyName'<~String> - Name of a keypair to add to booting instances
|
@@ -238,6 +238,7 @@ module Fog
|
|
238
238
|
'privateDnsName' => nil,
|
239
239
|
'productCodes' => [],
|
240
240
|
'reason' => nil,
|
241
|
+
'rootDeviceName' => block_device_mapping.first && block_device_mapping.first["deviceName"],
|
241
242
|
'rootDeviceType' => 'instance-store',
|
242
243
|
'virtualizationType' => 'paravirtual'
|
243
244
|
}
|
@@ -7,15 +7,17 @@ module Fog
|
|
7
7
|
# ==== Parameters
|
8
8
|
# * UniqueId <~String> - A unique ID for of the pipeline
|
9
9
|
# * Name <~String> - The name of the pipeline
|
10
|
+
# * Tags <~Hash> - Key/value string pairs to categorize the pipeline
|
10
11
|
# * Description <~String> - Description of the pipeline
|
11
12
|
# ==== Returns
|
12
13
|
# * response<~Excon::Response>:
|
13
14
|
# * body<~Hash>:
|
14
|
-
def create_pipeline(unique_id, name, description=nil)
|
15
|
+
def create_pipeline(unique_id, name, description=nil, tags=nil)
|
15
16
|
params = {
|
16
17
|
'uniqueId' => unique_id,
|
17
18
|
'name' => name,
|
18
19
|
}
|
20
|
+
params['tags'] = tags.map {|k,v| {"key" => k.to_s, "value" => v.to_s}} unless tags.nil? || tags.empty?
|
19
21
|
params['Description'] = description if description
|
20
22
|
|
21
23
|
response = request({
|
@@ -28,7 +30,7 @@ module Fog
|
|
28
30
|
end
|
29
31
|
|
30
32
|
class Mock
|
31
|
-
def create_pipeline(unique_id, name, description=nil)
|
33
|
+
def create_pipeline(unique_id, name, description=nil, tags=nil)
|
32
34
|
Fog::Mock.not_implemented
|
33
35
|
end
|
34
36
|
end
|