fog 1.41.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/dependabot.yml +10 -0
- data/.github/workflows/codeql.yml +67 -0
- data/.github/workflows/depsreview.yml +14 -0
- data/.github/workflows/ruby.yml +23 -0
- data/.github/workflows/stale.yml +14 -0
- data/.travis.yml +1 -8
- data/CHANGELOG.md +175 -0
- data/README.md +5 -6
- data/Rakefile +0 -12
- data/fog.gemspec +20 -21
- data/lib/fog/bin/brightbox.rb +2 -2
- data/lib/fog/bin.rb +2 -6
- data/lib/fog/linode/requests/compute/avail_datacenters.rb +1 -0
- data/lib/fog/opennebula/compute.rb +6 -1
- data/lib/fog/opennebula/requests/compute/OpenNebulaVNC.rb +5 -1
- data/lib/fog/vcloud_director/compute.rb +3 -2
- data/lib/fog/vcloud_director/generators/compute/edge_gateway_service_configuration.rb +2 -2
- data/lib/fog/vcloud_director/generators/compute/network_config_section.rb +68 -0
- data/lib/fog/vcloud_director/requests/compute/get_vapp.rb +0 -4
- data/lib/fog/vcloud_director/requests/compute/instantiate_vapp_template.rb +11 -11
- data/lib/fog/vcloud_director/requests/compute/post_power_on_vapp.rb +1 -1
- data/lib/fog/vcloud_director/requests/compute/put_config_network_section_vapp.rb +26 -0
- data/lib/fog/version.rb +1 -1
- data/lib/fog.rb +1 -4
- data/lib/tasks/changelog_task.rb +6 -1
- data/lib/tasks/github_release_task.rb +1 -1
- data/spec/fog/bin/atmos_spec.rb +0 -10
- data/spec/fog/bin/aws_spec.rb +6 -18
- data/spec/fog/bin/baremetalcloud_spec.rb +0 -10
- data/spec/fog/bin/brightbox_spec.rb +2 -2
- data/spec/fog/bin_spec.rb +0 -9
- data/tests/cloudsigma/models/snapshot_tests.rb +2 -0
- data/tests/cloudsigma/models/snapshots_tests.rb +1 -0
- data/tests/cloudsigma/requests/snapshots_tests.rb +1 -0
- data/tests/cloudsigma/requests/volumes_tests.rb +1 -1
- data/tests/compute/helper.rb +0 -9
- data/tests/dns/helper.rb +0 -9
- data/tests/helpers/collection_helper.rb +0 -6
- data/tests/helpers/mock_helper.rb +2 -9
- data/tests/opennebula/compute_tests.rb +5 -2
- data/tests/opennebula/models/compute/flavor_tests.rb +5 -1
- data/tests/opennebula/models/compute/flavors_tests.rb +5 -2
- data/tests/opennebula/models/compute/group_tests.rb +5 -2
- data/tests/opennebula/models/compute/groups_tests.rb +5 -2
- data/tests/opennebula/models/compute/network_tests.rb +5 -1
- data/tests/opennebula/models/compute/networks_tests.rb +5 -2
- data/tests/opennebula/requests/compute/vm_allocate_tests.rb +5 -1
- data/tests/opennebula/requests/compute/vm_suspend_resume_tests.rb +5 -2
- metadata +69 -1135
- data/gemfiles/Gemfile-1.9 +0 -16
- data/gemfiles/Gemfile-edge-1.9 +0 -20
- data/lib/fog/bin/bluebox.rb +0 -36
- data/lib/fog/bin/ovirt.rb +0 -28
- data/lib/fog/bin/zerigo.rb +0 -29
- data/lib/fog/bluebox/blb.rb +0 -82
- data/lib/fog/bluebox/compute.rb +0 -98
- data/lib/fog/bluebox/core.rb +0 -12
- data/lib/fog/bluebox/dns.rb +0 -101
- data/lib/fog/bluebox/models/blb/lb_application.rb +0 -29
- data/lib/fog/bluebox/models/blb/lb_applications.rb +0 -24
- data/lib/fog/bluebox/models/blb/lb_backend.rb +0 -19
- data/lib/fog/bluebox/models/blb/lb_backends.rb +0 -27
- data/lib/fog/bluebox/models/blb/lb_service.rb +0 -32
- data/lib/fog/bluebox/models/blb/lb_services.rb +0 -27
- data/lib/fog/bluebox/models/compute/flavor.rb +0 -41
- data/lib/fog/bluebox/models/compute/flavors.rb +0 -24
- data/lib/fog/bluebox/models/compute/image.rb +0 -30
- data/lib/fog/bluebox/models/compute/images.rb +0 -24
- data/lib/fog/bluebox/models/compute/location.rb +0 -13
- data/lib/fog/bluebox/models/compute/locations.rb +0 -24
- data/lib/fog/bluebox/models/compute/server.rb +0 -121
- data/lib/fog/bluebox/models/compute/servers.rb +0 -32
- data/lib/fog/bluebox/models/dns/record.rb +0 -52
- data/lib/fog/bluebox/models/dns/records.rb +0 -32
- data/lib/fog/bluebox/models/dns/zone.rb +0 -62
- data/lib/fog/bluebox/models/dns/zones.rb +0 -24
- data/lib/fog/bluebox/parsers/dns/create_record.rb +0 -22
- data/lib/fog/bluebox/parsers/dns/create_zone.rb +0 -22
- data/lib/fog/bluebox/parsers/dns/get_record.rb +0 -17
- data/lib/fog/bluebox/parsers/dns/get_records.rb +0 -24
- data/lib/fog/bluebox/parsers/dns/get_zone.rb +0 -22
- data/lib/fog/bluebox/parsers/dns/get_zones.rb +0 -26
- data/lib/fog/bluebox/requests/blb/add_machine_to_lb_application.rb +0 -33
- data/lib/fog/bluebox/requests/blb/add_machine_to_lb_backend.rb +0 -31
- data/lib/fog/bluebox/requests/blb/get_lb_application.rb +0 -32
- data/lib/fog/bluebox/requests/blb/get_lb_applications.rb +0 -30
- data/lib/fog/bluebox/requests/blb/get_lb_backend.rb +0 -35
- data/lib/fog/bluebox/requests/blb/get_lb_backends.rb +0 -35
- data/lib/fog/bluebox/requests/blb/get_lb_machine.rb +0 -34
- data/lib/fog/bluebox/requests/blb/get_lb_machines.rb +0 -34
- data/lib/fog/bluebox/requests/blb/get_lb_service.rb +0 -35
- data/lib/fog/bluebox/requests/blb/get_lb_services.rb +0 -35
- data/lib/fog/bluebox/requests/blb/remove_machine_from_lb_backend.rb +0 -28
- data/lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb +0 -29
- data/lib/fog/bluebox/requests/compute/create_block.rb +0 -44
- data/lib/fog/bluebox/requests/compute/create_template.rb +0 -25
- data/lib/fog/bluebox/requests/compute/destroy_block.rb +0 -24
- data/lib/fog/bluebox/requests/compute/destroy_template.rb +0 -24
- data/lib/fog/bluebox/requests/compute/get_block.rb +0 -24
- data/lib/fog/bluebox/requests/compute/get_blocks.rb +0 -26
- data/lib/fog/bluebox/requests/compute/get_location.rb +0 -24
- data/lib/fog/bluebox/requests/compute/get_locations.rb +0 -22
- data/lib/fog/bluebox/requests/compute/get_product.rb +0 -24
- data/lib/fog/bluebox/requests/compute/get_products.rb +0 -23
- data/lib/fog/bluebox/requests/compute/get_template.rb +0 -24
- data/lib/fog/bluebox/requests/compute/get_templates.rb +0 -24
- data/lib/fog/bluebox/requests/compute/reboot_block.rb +0 -25
- data/lib/fog/bluebox/requests/dns/create_record.rb +0 -44
- data/lib/fog/bluebox/requests/dns/create_zone.rb +0 -48
- data/lib/fog/bluebox/requests/dns/delete_record.rb +0 -27
- data/lib/fog/bluebox/requests/dns/delete_zone.rb +0 -27
- data/lib/fog/bluebox/requests/dns/get_record.rb +0 -36
- data/lib/fog/bluebox/requests/dns/get_records.rb +0 -37
- data/lib/fog/bluebox/requests/dns/get_zone.rb +0 -40
- data/lib/fog/bluebox/requests/dns/get_zones.rb +0 -39
- data/lib/fog/bluebox/requests/dns/update_record.rb +0 -30
- data/lib/fog/bluebox/requests/dns/update_zone.rb +0 -26
- data/lib/fog/bluebox.rb +0 -3
- data/lib/fog/cloudstack/compute.rb +0 -996
- data/lib/fog/cloudstack/core.rb +0 -41
- data/lib/fog/cloudstack/models/compute/address.rb +0 -17
- data/lib/fog/cloudstack/models/compute/disk_offering.rb +0 -44
- data/lib/fog/cloudstack/models/compute/disk_offerings.rb +0 -24
- data/lib/fog/cloudstack/models/compute/egress_firewall_rule.rb +0 -38
- data/lib/fog/cloudstack/models/compute/egress_firewall_rules.rb +0 -25
- data/lib/fog/cloudstack/models/compute/firewall_rule.rb +0 -24
- data/lib/fog/cloudstack/models/compute/firewall_rules.rb +0 -25
- data/lib/fog/cloudstack/models/compute/flavor.rb +0 -36
- data/lib/fog/cloudstack/models/compute/flavors.rb +0 -25
- data/lib/fog/cloudstack/models/compute/image.rb +0 -72
- data/lib/fog/cloudstack/models/compute/images.rb +0 -37
- data/lib/fog/cloudstack/models/compute/job.rb +0 -51
- data/lib/fog/cloudstack/models/compute/jobs.rb +0 -25
- data/lib/fog/cloudstack/models/compute/network.rb +0 -73
- data/lib/fog/cloudstack/models/compute/network_offering.rb +0 -25
- data/lib/fog/cloudstack/models/compute/network_offerings.rb +0 -39
- data/lib/fog/cloudstack/models/compute/networks.rb +0 -38
- data/lib/fog/cloudstack/models/compute/port_forwarding_rule.rb +0 -25
- data/lib/fog/cloudstack/models/compute/port_forwarding_rules.rb +0 -25
- data/lib/fog/cloudstack/models/compute/project.rb +0 -58
- data/lib/fog/cloudstack/models/compute/projects.rb +0 -39
- data/lib/fog/cloudstack/models/compute/public_ip_address.rb +0 -96
- data/lib/fog/cloudstack/models/compute/public_ip_addresses.rb +0 -27
- data/lib/fog/cloudstack/models/compute/security_group.rb +0 -50
- data/lib/fog/cloudstack/models/compute/security_group_rule.rb +0 -60
- data/lib/fog/cloudstack/models/compute/security_group_rules.rb +0 -35
- data/lib/fog/cloudstack/models/compute/security_groups.rb +0 -25
- data/lib/fog/cloudstack/models/compute/server.rb +0 -160
- data/lib/fog/cloudstack/models/compute/servers.rb +0 -39
- data/lib/fog/cloudstack/models/compute/snapshot.rb +0 -46
- data/lib/fog/cloudstack/models/compute/snapshots.rb +0 -23
- data/lib/fog/cloudstack/models/compute/volume.rb +0 -121
- data/lib/fog/cloudstack/models/compute/volumes.rb +0 -26
- data/lib/fog/cloudstack/models/compute/zone.rb +0 -38
- data/lib/fog/cloudstack/models/compute/zones.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/acquire_ip_address.rb +0 -18
- data/lib/fog/cloudstack/requests/compute/activate_project.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/add_account_to_project.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/add_baremetal_dhcp.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/add_baremetal_host.rb +0 -30
- data/lib/fog/cloudstack/requests/compute/add_baremetal_pxe_kick_start_server.rb +0 -30
- data/lib/fog/cloudstack/requests/compute/add_baremetal_pxe_ping_server.rb +0 -32
- data/lib/fog/cloudstack/requests/compute/add_big_switch_vns_device.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/add_cisco_asa1000v_resource.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/add_cisco_vnmc_resource.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/add_cluster.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/add_external_firewall.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/add_external_load_balancer.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/add_f5_load_balancer.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/add_guest_os.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/add_guest_os_mapping.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/add_host.rb +0 -30
- data/lib/fog/cloudstack/requests/compute/add_image_store.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/add_ip_to_nic.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/add_ldap_configuration.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/add_netscaler_load_balancer.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/add_network_device.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/add_network_service_provider.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/add_nic_to_virtual_machine.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/add_nicira_nvp_device.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/add_open_daylight_controller.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/add_palo_alto_firewall.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/add_region.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/add_resource_detail.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/add_s3.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/add_secondary_storage.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/add_srx_firewall.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/add_stratosphere_ssp.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/add_swift.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/add_traffic_monitor.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/add_traffic_type.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/add_ucs_manager.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/add_vmware_dc.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/add_vpn_user.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/archive_alerts.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/archive_events.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/assign_cert_to_load_balancer.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/assign_to_global_load_balancer_rule.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/assign_to_load_balancer_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/assign_virtual_machine.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/associate_ip_address.rb +0 -55
- data/lib/fog/cloudstack/requests/compute/associate_lun.rb +0 -22
- data/lib/fog/cloudstack/requests/compute/associate_ucs_profile_to_blade.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/attach_iso.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/attach_volume.rb +0 -76
- data/lib/fog/cloudstack/requests/compute/authorize_security_group_egress.rb +0 -78
- data/lib/fog/cloudstack/requests/compute/authorize_security_group_ingress.rb +0 -78
- data/lib/fog/cloudstack/requests/compute/cancel_host_maintenance.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/cancel_storage_maintenance.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/change_service_for_router.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/change_service_for_system_vm.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/change_service_for_virtual_machine.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/clean_vmreservations.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/configure_f5_load_balancer.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/configure_internal_load_balancer_element.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/configure_netscaler_load_balancer.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/configure_ovs_element.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/configure_palo_alto_firewall.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/configure_srx_firewall.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/configure_virtual_router_element.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/copy_iso.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/copy_template.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/create_account.rb +0 -30
- data/lib/fog/cloudstack/requests/compute/create_affinity_group.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_auto_scale_vm_group.rb +0 -30
- data/lib/fog/cloudstack/requests/compute/create_auto_scale_vm_profile.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_condition.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_counter.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_disk_offering.rb +0 -56
- data/lib/fog/cloudstack/requests/compute/create_domain.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/create_egress_firewall_rule.rb +0 -44
- data/lib/fog/cloudstack/requests/compute/create_firewall_rule.rb +0 -48
- data/lib/fog/cloudstack/requests/compute/create_global_load_balancer_rule.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/create_instance_group.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/create_internal_load_balancer_element.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/create_ip_forwarding_rule.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_lb_health_check_policy.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/create_lb_stickiness_policy.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_load_balancer.rb +0 -31
- data/lib/fog/cloudstack/requests/compute/create_load_balancer_rule.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/create_lun_on_filer.rb +0 -22
- data/lib/fog/cloudstack/requests/compute/create_network.rb +0 -30
- data/lib/fog/cloudstack/requests/compute/create_network_acl.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/create_network_acl_list.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/create_network_offering.rb +0 -55
- data/lib/fog/cloudstack/requests/compute/create_physical_network.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/create_pod.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/create_pool.rb +0 -22
- data/lib/fog/cloudstack/requests/compute/create_port_forwarding_rule.rb +0 -55
- data/lib/fog/cloudstack/requests/compute/create_portable_ip_range.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/create_private_gateway.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/create_project.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/create_remote_access_vpn.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/create_secondary_staging_store.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/create_security_group.rb +0 -37
- data/lib/fog/cloudstack/requests/compute/create_service_instance.rb +0 -30
- data/lib/fog/cloudstack/requests/compute/create_service_offering.rb +0 -55
- data/lib/fog/cloudstack/requests/compute/create_snapshot.rb +0 -48
- data/lib/fog/cloudstack/requests/compute/create_snapshot_policy.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/create_ssh_key_pair.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_static_route.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/create_storage_network_ip_range.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/create_storage_pool.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_tags.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_template.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_user.rb +0 -30
- data/lib/fog/cloudstack/requests/compute/create_virtual_router_element.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/create_vlan_ip_range.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/create_vm_snapshot.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/create_volume.rb +0 -69
- data/lib/fog/cloudstack/requests/compute/create_volume_on_filer.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_vpc.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/create_vpcoffering.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/create_vpn_connection.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/create_vpn_customer_gateway.rb +0 -29
- data/lib/fog/cloudstack/requests/compute/create_vpn_gateway.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/create_zone.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/dedicate_cluster.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/dedicate_guest_vlan_range.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/dedicate_host.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/dedicate_pod.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/dedicate_public_ip_range.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/dedicate_zone.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/delete_account.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_account_from_project.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/delete_affinity_group.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/delete_alerts.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/delete_auto_scale_policy.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_group.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_auto_scale_vm_profile.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_big_switch_vns_device.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_cisco_asa1000v_resource.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_cisco_nexus_vsm.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_cisco_vnmc_resource.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_cluster.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_condition.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_counter.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_disk_offering.rb +0 -33
- data/lib/fog/cloudstack/requests/compute/delete_domain.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_egress_firewall_rule.rb +0 -34
- data/lib/fog/cloudstack/requests/compute/delete_events.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/delete_external_firewall.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_external_load_balancer.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_f5_load_balancer.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_firewall_rule.rb +0 -34
- data/lib/fog/cloudstack/requests/compute/delete_global_load_balancer_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_host.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_image_store.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_instance_group.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_ip_forwarding_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_iso.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_lb_health_check_policy.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_lb_stickiness_policy.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_ldap_configuration.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_load_balancer.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_load_balancer_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_netscaler_load_balancer.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_network.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_network_acl.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_network_acl_list.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_network_device.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_network_offering.rb +0 -34
- data/lib/fog/cloudstack/requests/compute/delete_network_service_provider.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_nicira_nvp_device.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_open_daylight_controller.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_palo_alto_firewall.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_physical_network.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_pod.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_pool.rb +0 -21
- data/lib/fog/cloudstack/requests/compute/delete_port_forwarding_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_portable_ip_range.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_private_gateway.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_project.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_project_invitation.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_remote_access_vpn.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_secondary_staging_store.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_security_group.rb +0 -39
- data/lib/fog/cloudstack/requests/compute/delete_service_offering.rb +0 -34
- data/lib/fog/cloudstack/requests/compute/delete_snapshot.rb +0 -61
- data/lib/fog/cloudstack/requests/compute/delete_snapshot_policies.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/delete_srx_firewall.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_ssh_key_pair.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/delete_ssl_cert.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_static_route.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_storage_network_ip_range.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_storage_pool.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_tags.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/delete_template.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_traffic_monitor.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_traffic_type.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_ucs_manager.rb +0 -21
- data/lib/fog/cloudstack/requests/compute/delete_user.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_vlan_ip_range.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_vm_snapshot.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_volume.rb +0 -45
- data/lib/fog/cloudstack/requests/compute/delete_vpc.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_vpcoffering.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_vpn_connection.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_vpn_customer_gateway.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_vpn_gateway.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/delete_zone.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/deploy_virtual_machine.rb +0 -125
- data/lib/fog/cloudstack/requests/compute/destroy_lun_on_filer.rb +0 -21
- data/lib/fog/cloudstack/requests/compute/destroy_router.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/destroy_system_vm.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/destroy_virtual_machine.rb +0 -54
- data/lib/fog/cloudstack/requests/compute/destroy_volume_on_filer.rb +0 -23
- data/lib/fog/cloudstack/requests/compute/detach_iso.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/detach_volume.rb +0 -64
- data/lib/fog/cloudstack/requests/compute/disable_account.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/disable_auto_scale_vm_group.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/disable_cisco_nexus_vsm.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/disable_static_nat.rb +0 -51
- data/lib/fog/cloudstack/requests/compute/disable_user.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/disassociate_ip_address.rb +0 -35
- data/lib/fog/cloudstack/requests/compute/disassociate_ucs_profile_from_blade.rb +0 -21
- data/lib/fog/cloudstack/requests/compute/dissociate_lun.rb +0 -22
- data/lib/fog/cloudstack/requests/compute/enable_account.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/enable_auto_scale_vm_group.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/enable_cisco_nexus_vsm.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/enable_static_nat.rb +0 -69
- data/lib/fog/cloudstack/requests/compute/enable_storage_maintenance.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/enable_user.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/expunge_virtual_machine.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/extract_iso.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/extract_template.rb +0 -65
- data/lib/fog/cloudstack/requests/compute/extract_volume.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/find_hosts_for_migration.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/find_storage_pools_for_migration.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/generate_alert.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/generate_usage_records.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/get_api_limit.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/get_cloud_identifier.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/get_user.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/get_virtual_machine_user_data.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/get_vm_password.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/import_ldap_users.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/instantiate_ucs_template_and_assocaciate_to_blade.rb +0 -23
- data/lib/fog/cloudstack/requests/compute/ldap_config.rb +0 -20
- data/lib/fog/cloudstack/requests/compute/ldap_create_account.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/ldap_remove.rb +0 -20
- data/lib/fog/cloudstack/requests/compute/list_accounts.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_affinity_group_types.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_affinity_groups.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_alerts.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_apis.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_async_jobs.rb +0 -36
- data/lib/fog/cloudstack/requests/compute/list_auto_scale_policies.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_auto_scale_vm_groups.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_auto_scale_vm_profiles.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_baremetal_dhcp.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_baremetal_pxe_servers.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_big_switch_vns_devices.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_capabilities.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_capacity.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_cisco_asa1000v_resources.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_cisco_nexus_vsms.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_cisco_vnmc_resources.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_clusters.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_conditions.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_configurations.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_counters.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_dedicated_clusters.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_dedicated_guest_vlan_ranges.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_dedicated_hosts.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_dedicated_pods.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_dedicated_zones.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_deployment_planners.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_disk_offerings.rb +0 -32
- data/lib/fog/cloudstack/requests/compute/list_domain_children.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_domains.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_egress_firewall_rules.rb +0 -35
- data/lib/fog/cloudstack/requests/compute/list_event_types.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_events.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_external_firewalls.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_external_load_balancers.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_f5_load_balancer_networks.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_f5_load_balancers.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_firewall_rules.rb +0 -35
- data/lib/fog/cloudstack/requests/compute/list_global_load_balancer_rules.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_guest_os_mapping.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_hosts.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_hypervisor_capabilities.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_hypervisors.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_image_stores.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_instance_groups.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_internal_load_balancer_elements.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_internal_load_balancer_vms.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_ip_forwarding_rules.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_iso_permissions.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_isos.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_lb_health_check_policies.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_lb_stickiness_policies.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_ldap_configurations.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_ldap_users.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_load_balancer_rule_instances.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_load_balancer_rules.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_load_balancers.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_luns_on_filer.rb +0 -21
- data/lib/fog/cloudstack/requests/compute/list_netscaler_load_balancer_networks.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_netscaler_load_balancers.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_network_acl_lists.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_network_acls.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_network_device.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_network_isolation_methods.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_network_offerings.rb +0 -31
- data/lib/fog/cloudstack/requests/compute/list_network_service_providers.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_networks.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/list_nicira_nvp_device_networks.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_nicira_nvp_devices.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_nics.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_open_daylight_controllers.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_os_categories.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_os_types.rb +0 -32
- data/lib/fog/cloudstack/requests/compute/list_ovs_elements.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_palo_alto_firewall_networks.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_palo_alto_firewalls.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_physical_networks.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_pods.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_pools.rb +0 -20
- data/lib/fog/cloudstack/requests/compute/list_port_forwarding_rules.rb +0 -40
- data/lib/fog/cloudstack/requests/compute/list_portable_ip_ranges.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_private_gateways.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_project_accounts.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_project_invitations.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_projects.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_public_ip_addresses.rb +0 -45
- data/lib/fog/cloudstack/requests/compute/list_regions.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_remote_access_vpns.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_resource_details.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_resource_limits.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_routers.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_s3s.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_secondary_staging_stores.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_security_groups.rb +0 -44
- data/lib/fog/cloudstack/requests/compute/list_service_offerings.rb +0 -44
- data/lib/fog/cloudstack/requests/compute/list_snapshot_policies.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_snapshots.rb +0 -43
- data/lib/fog/cloudstack/requests/compute/list_srx_firewall_networks.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_srx_firewalls.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_ssh_key_pairs.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/list_ssl_certs.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_static_routes.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_storage_network_ip_range.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_storage_pools.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_storage_providers.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_supported_network_services.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_swifts.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_system_vms.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_tags.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_template_permissions.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_templates.rb +0 -42
- data/lib/fog/cloudstack/requests/compute/list_traffic_monitors.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_traffic_type_implementors.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_traffic_types.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_ucs_blades.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_ucs_managers.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_ucs_profiles.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_ucs_templates.rb +0 -21
- data/lib/fog/cloudstack/requests/compute/list_usage_records.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/list_usage_types.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_users.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_virtual_machines.rb +0 -32
- data/lib/fog/cloudstack/requests/compute/list_virtual_router_elements.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_vlan_ip_ranges.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_vm_snapshot.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/list_vmware_dcs.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/list_volumes.rb +0 -43
- data/lib/fog/cloudstack/requests/compute/list_volumes_on_filer.rb +0 -21
- data/lib/fog/cloudstack/requests/compute/list_vpc_offerings.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_vpcs.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_vpn_connections.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_vpn_customer_gateways.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_vpn_gateways.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_vpn_users.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/list_zones.rb +0 -37
- data/lib/fog/cloudstack/requests/compute/lock_account.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/lock_user.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/mark_default_zone_for_account.rb +0 -27
- data/lib/fog/cloudstack/requests/compute/migrate_system_vm.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/migrate_virtual_machine.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/migrate_virtual_machine_with_volume.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/migrate_volume.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/modify_pool.rb +0 -22
- data/lib/fog/cloudstack/requests/compute/prepare_host_for_maintenance.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/prepare_template.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/query_async_job_result.rb +0 -38
- data/lib/fog/cloudstack/requests/compute/reboot_router.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/reboot_system_vm.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/reboot_virtual_machine.rb +0 -35
- data/lib/fog/cloudstack/requests/compute/reconnect_host.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/recover_virtual_machine.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/refresh_ucs_blades.rb +0 -21
- data/lib/fog/cloudstack/requests/compute/register_iso.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/register_template.rb +0 -45
- data/lib/fog/cloudstack/requests/compute/register_user_keys.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/release_dedicated_cluster.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/release_dedicated_guest_vlan_range.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/release_dedicated_host.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/release_dedicated_pod.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/release_dedicated_zone.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/release_host_reservation.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/release_public_ip_range.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/remove_cert_from_load_balancer.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/remove_from_global_load_balancer_rule.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/remove_from_load_balancer_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/remove_guest_os.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/remove_guest_os_mapping.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/remove_ip_from_nic.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/remove_nic_from_virtual_machine.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/remove_region.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/remove_resource_detail.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/remove_vmware_dc.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/remove_vpn_user.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/replace_network_acl_list.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/reset_api_limit.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/reset_password_for_virtual_machine.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/reset_ssh_key_for_virtual_machine.rb +0 -28
- data/lib/fog/cloudstack/requests/compute/reset_vpn_connection.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/resize_volume.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/restart_network.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/restart_vpc.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/restore_virtual_machine.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/revert_snapshot.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/revert_to_vm_snapshot.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/revoke_security_group_egress.rb +0 -52
- data/lib/fog/cloudstack/requests/compute/revoke_security_group_ingress.rb +0 -52
- data/lib/fog/cloudstack/requests/compute/scale_system_vm.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/scale_virtual_machine.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/start_internal_load_balancer_vm.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/start_router.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/start_system_vm.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/start_virtual_machine.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/stop_internal_load_balancer_vm.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/stop_router.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/stop_system_vm.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/stop_virtual_machine.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/suspend_project.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_account.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_auto_scale_policy.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_auto_scale_vm_group.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_auto_scale_vm_profile.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_cloud_to_use_object_store.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_cluster.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_configuration.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_default_nic_for_virtual_machine.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/update_disk_offering.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_domain.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_egress_firewall_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_firewall_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_global_load_balancer_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_guest_os.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/update_guest_os_mapping.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/update_host.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_host_password.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/update_hypervisor_capabilities.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/update_instance_group.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_ip_address.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_iso.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_iso_permissions.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_lb_health_check_policy.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_lb_stickiness_policy.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_load_balancer.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_load_balancer_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_network.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_network_acl_item.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_network_acl_list.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_network_offering.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/update_network_service_provider.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_physical_network.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_pod.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_port_forwarding_rule.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_project.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_project_invitation.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_region.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_remote_access_vpn.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_resource_count.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_resource_limit.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_service_offering.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_storage_network_ip_range.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_storage_pool.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_template.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_template_permissions.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_traffic_type.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_user.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_virtual_machine.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_vm_affinity_group.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_volume.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/update_vpc.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_vpcoffering.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_vpn_connection.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_vpn_customer_gateway.rb +0 -30
- data/lib/fog/cloudstack/requests/compute/update_vpn_gateway.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/update_zone.rb +0 -25
- data/lib/fog/cloudstack/requests/compute/upgrade_router_template.rb +0 -24
- data/lib/fog/cloudstack/requests/compute/upload_custom_certificate.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/upload_ssl_cert.rb +0 -26
- data/lib/fog/cloudstack/requests/compute/upload_volume.rb +0 -30
- data/lib/fog/cloudstack.rb +0 -1
- data/lib/fog/ovirt/compute.rb +0 -155
- data/lib/fog/ovirt/core.rb +0 -16
- data/lib/fog/ovirt/models/compute/affinity_group.rb +0 -25
- data/lib/fog/ovirt/models/compute/affinity_groups.rb +0 -20
- data/lib/fog/ovirt/models/compute/cluster.rb +0 -20
- data/lib/fog/ovirt/models/compute/clusters.rb +0 -20
- data/lib/fog/ovirt/models/compute/instance_type.rb +0 -39
- data/lib/fog/ovirt/models/compute/instance_types.rb +0 -20
- data/lib/fog/ovirt/models/compute/interface.rb +0 -19
- data/lib/fog/ovirt/models/compute/interfaces.rb +0 -29
- data/lib/fog/ovirt/models/compute/quota.rb +0 -16
- data/lib/fog/ovirt/models/compute/quotas.rb +0 -20
- data/lib/fog/ovirt/models/compute/server.rb +0 -175
- data/lib/fog/ovirt/models/compute/servers.rb +0 -27
- data/lib/fog/ovirt/models/compute/template.rb +0 -58
- data/lib/fog/ovirt/models/compute/templates.rb +0 -20
- data/lib/fog/ovirt/models/compute/volume.rb +0 -36
- data/lib/fog/ovirt/models/compute/volumes.rb +0 -28
- data/lib/fog/ovirt/requests/compute/activate_volume.rb +0 -22
- data/lib/fog/ovirt/requests/compute/add_interface.rb +0 -20
- data/lib/fog/ovirt/requests/compute/add_to_affinity_group.rb +0 -21
- data/lib/fog/ovirt/requests/compute/add_volume.rb +0 -21
- data/lib/fog/ovirt/requests/compute/attach_volume.rb +0 -22
- data/lib/fog/ovirt/requests/compute/create_affinity_group.rb +0 -18
- data/lib/fog/ovirt/requests/compute/create_vm.rb +0 -18
- data/lib/fog/ovirt/requests/compute/datacenters.rb +0 -20
- data/lib/fog/ovirt/requests/compute/deactivate_volume.rb +0 -22
- data/lib/fog/ovirt/requests/compute/destroy_affinity_group.rb +0 -19
- data/lib/fog/ovirt/requests/compute/destroy_interface.rb +0 -22
- data/lib/fog/ovirt/requests/compute/destroy_vm.rb +0 -19
- data/lib/fog/ovirt/requests/compute/destroy_volume.rb +0 -22
- data/lib/fog/ovirt/requests/compute/detach_volume.rb +0 -22
- data/lib/fog/ovirt/requests/compute/get_affinity_group.rb +0 -18
- data/lib/fog/ovirt/requests/compute/get_api_version.rb +0 -16
- data/lib/fog/ovirt/requests/compute/get_cluster.rb +0 -17
- data/lib/fog/ovirt/requests/compute/get_instance_type.rb +0 -17
- data/lib/fog/ovirt/requests/compute/get_quota.rb +0 -17
- data/lib/fog/ovirt/requests/compute/get_template.rb +0 -17
- data/lib/fog/ovirt/requests/compute/get_virtual_machine.rb +0 -17
- data/lib/fog/ovirt/requests/compute/list_affinity_group_vms.rb +0 -22
- data/lib/fog/ovirt/requests/compute/list_affinity_groups.rb +0 -20
- data/lib/fog/ovirt/requests/compute/list_clusters.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_instance_types.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_networks.rb +0 -16
- data/lib/fog/ovirt/requests/compute/list_quotas.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_template_interfaces.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_template_volumes.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_templates.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_virtual_machines.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_vm_interfaces.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_vm_volumes.rb +0 -19
- data/lib/fog/ovirt/requests/compute/list_volumes.rb +0 -19
- data/lib/fog/ovirt/requests/compute/mock_files/affinitygroup.xml +0 -8
- data/lib/fog/ovirt/requests/compute/mock_files/affinitygroup_vms.xml +0 -9
- data/lib/fog/ovirt/requests/compute/mock_files/affinitygroups.xml +0 -17
- data/lib/fog/ovirt/requests/compute/mock_files/cluster.xml +0 -20
- data/lib/fog/ovirt/requests/compute/mock_files/clusters.xml +0 -39
- data/lib/fog/ovirt/requests/compute/mock_files/data_centers.xml +0 -17
- data/lib/fog/ovirt/requests/compute/mock_files/disks.xml +0 -58
- data/lib/fog/ovirt/requests/compute/mock_files/instance_type.xml +0 -42
- data/lib/fog/ovirt/requests/compute/mock_files/instance_types.xml +0 -197
- data/lib/fog/ovirt/requests/compute/mock_files/nics.xml +0 -10
- data/lib/fog/ovirt/requests/compute/mock_files/quotas.xml +0 -7
- data/lib/fog/ovirt/requests/compute/mock_files/storage_domains.xml +0 -36
- data/lib/fog/ovirt/requests/compute/mock_files/template.xml +0 -39
- data/lib/fog/ovirt/requests/compute/mock_files/templates.xml +0 -110
- data/lib/fog/ovirt/requests/compute/mock_files/vm.xml +0 -52
- data/lib/fog/ovirt/requests/compute/mock_files/vms.xml +0 -152
- data/lib/fog/ovirt/requests/compute/mock_files/volumes.xml +0 -40
- data/lib/fog/ovirt/requests/compute/remove_from_affinity_group.rb +0 -21
- data/lib/fog/ovirt/requests/compute/storage_domains.rb +0 -20
- data/lib/fog/ovirt/requests/compute/update_interface.rb +0 -35
- data/lib/fog/ovirt/requests/compute/update_vm.rb +0 -18
- data/lib/fog/ovirt/requests/compute/update_volume.rb +0 -39
- data/lib/fog/ovirt/requests/compute/vm_action.rb +0 -22
- data/lib/fog/ovirt/requests/compute/vm_start_with_cloudinit.rb +0 -19
- data/lib/fog/ovirt/requests/compute/vm_ticket.rb +0 -17
- data/lib/fog/ovirt.rb +0 -1
- data/lib/fog/zerigo/core.rb +0 -10
- data/lib/fog/zerigo/dns.rb +0 -114
- data/lib/fog/zerigo/models/dns/record.rb +0 -66
- data/lib/fog/zerigo/models/dns/records.rb +0 -45
- data/lib/fog/zerigo/models/dns/zone.rb +0 -84
- data/lib/fog/zerigo/models/dns/zones.rb +0 -26
- data/lib/fog/zerigo/parsers/dns/count_hosts.rb +0 -20
- data/lib/fog/zerigo/parsers/dns/count_zones.rb +0 -20
- data/lib/fog/zerigo/parsers/dns/create_host.rb +0 -24
- data/lib/fog/zerigo/parsers/dns/create_zone.rb +0 -22
- data/lib/fog/zerigo/parsers/dns/find_hosts.rb +0 -28
- data/lib/fog/zerigo/parsers/dns/get_host.rb +0 -24
- data/lib/fog/zerigo/parsers/dns/get_zone.rb +0 -53
- data/lib/fog/zerigo/parsers/dns/get_zone_stats.rb +0 -22
- data/lib/fog/zerigo/parsers/dns/list_hosts.rb +0 -28
- data/lib/fog/zerigo/parsers/dns/list_zones.rb +0 -26
- data/lib/fog/zerigo/requests/dns/count_hosts.rb +0 -45
- data/lib/fog/zerigo/requests/dns/count_zones.rb +0 -37
- data/lib/fog/zerigo/requests/dns/create_host.rb +0 -125
- data/lib/fog/zerigo/requests/dns/create_zone.rb +0 -128
- data/lib/fog/zerigo/requests/dns/delete_host.rb +0 -41
- data/lib/fog/zerigo/requests/dns/delete_zone.rb +0 -40
- data/lib/fog/zerigo/requests/dns/find_hosts.rb +0 -74
- data/lib/fog/zerigo/requests/dns/get_host.rb +0 -54
- data/lib/fog/zerigo/requests/dns/get_zone.rb +0 -64
- data/lib/fog/zerigo/requests/dns/get_zone_stats.rb +0 -57
- data/lib/fog/zerigo/requests/dns/list_hosts.rb +0 -73
- data/lib/fog/zerigo/requests/dns/list_zones.rb +0 -62
- data/lib/fog/zerigo/requests/dns/update_host.rb +0 -68
- data/lib/fog/zerigo/requests/dns/update_zone.rb +0 -86
- data/lib/fog/zerigo.rb +0 -1
- data/spec/fog/bin/bluebox_spec.rb +0 -55
- data/spec/fog/bin/cloudstack_spec.rb +0 -9
- data/spec/fog/bin/joyent_spec.rb +0 -10
- data/spec/fog/bin/ovirt_spec.rb +0 -10
- data/spec/fog/bin/zerigo_spec.rb +0 -10
- data/spec/fog/compute_spec.rb +0 -19
- data/spec/fog/dns_spec.rb +0 -19
- data/tests/bluebox/requests/blb/helper.rb +0 -64
- data/tests/bluebox/requests/blb/lb_tests.rb +0 -75
- data/tests/bluebox/requests/compute/block_tests.rb +0 -83
- data/tests/bluebox/requests/compute/helper.rb +0 -16
- data/tests/bluebox/requests/compute/location_tests.rb +0 -32
- data/tests/bluebox/requests/compute/product_tests.rb +0 -34
- data/tests/bluebox/requests/compute/template_tests.rb +0 -37
- data/tests/bluebox/requests/dns/dns_tests.rb +0 -258
- data/tests/cloudstack/compute/models/disk_offering_tests.rb +0 -5
- data/tests/cloudstack/compute/models/egress_firewall_rule_tests.rb +0 -6
- data/tests/cloudstack/compute/models/public_ip_address_tests.rb +0 -27
- data/tests/cloudstack/compute/models/public_ip_addresses_tests.rb +0 -5
- data/tests/cloudstack/compute/models/security_group_rule_tests.rb +0 -28
- data/tests/cloudstack/compute/models/security_group_tests.rb +0 -16
- data/tests/cloudstack/compute/models/security_groups_tests.rb +0 -18
- data/tests/cloudstack/compute/models/server_tests.rb +0 -18
- data/tests/cloudstack/compute/models/snapshot_tests.rb +0 -19
- data/tests/cloudstack/compute/models/volume_tests.rb +0 -34
- data/tests/cloudstack/compute/models/volumes_tests.rb +0 -15
- data/tests/cloudstack/requests/disk_offering_tests.rb +0 -29
- data/tests/cloudstack/requests/egress_firewall_rule_tests.rb +0 -25
- data/tests/cloudstack/requests/firewall_rule_tests.rb +0 -29
- data/tests/cloudstack/requests/network_offering_tests.rb +0 -32
- data/tests/cloudstack/requests/os_type_tests.rb +0 -37
- data/tests/cloudstack/requests/port_forwarding_rule_tests.rb +0 -33
- data/tests/cloudstack/requests/public_ip_address_tests.rb +0 -38
- data/tests/cloudstack/requests/security_group_tests.rb +0 -29
- data/tests/cloudstack/requests/service_offering_tests.rb +0 -31
- data/tests/cloudstack/requests/snapshot_tests.rb +0 -32
- data/tests/cloudstack/requests/ssh_key_pair_tests.rb +0 -23
- data/tests/cloudstack/requests/template_tests.rb +0 -53
- data/tests/cloudstack/requests/virtual_machine_tests.rb +0 -71
- data/tests/cloudstack/requests/volume_tests.rb +0 -47
- data/tests/cloudstack/requests/zone_tests.rb +0 -33
- data/tests/cloudstack/signed_params_tests.rb +0 -12
- data/tests/ovirt/compute_tests.rb +0 -25
- data/tests/ovirt/models/compute/cluster_tests.rb +0 -31
- data/tests/ovirt/models/compute/clusters_tests.rb +0 -9
- data/tests/ovirt/models/compute/interface_tests.rb +0 -27
- data/tests/ovirt/models/compute/interfaces_tests.rb +0 -9
- data/tests/ovirt/models/compute/server_tests.rb +0 -51
- data/tests/ovirt/models/compute/servers_tests.rb +0 -14
- data/tests/ovirt/models/compute/template_tests.rb +0 -28
- data/tests/ovirt/models/compute/templates_tests.rb +0 -9
- data/tests/ovirt/requests/compute/create_vm_tests.rb +0 -26
- data/tests/ovirt/requests/compute/destroy_vm_tests.rb +0 -18
- data/tests/ovirt/requests/compute/list_datacenters_tests.rb +0 -13
- data/tests/ovirt/requests/compute/list_quotas_tests.rb +0 -12
- data/tests/ovirt/requests/compute/list_storage_domains_tests.rb +0 -13
- data/tests/ovirt/requests/compute/update_vm_tests.rb +0 -18
- data/tests/ovirt/requests/compute/update_volume_tests.rb +0 -20
- data/tests/zerigo/requests/dns/dns_tests.rb +0 -440
@@ -1,73 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module DNS
|
3
|
-
class Zerigo
|
4
|
-
class Real
|
5
|
-
require "fog/zerigo/parsers/dns/list_hosts"
|
6
|
-
|
7
|
-
# Get list of all DNS zones hosted on Slicehost (for this account)
|
8
|
-
#
|
9
|
-
# ==== Parameters
|
10
|
-
# * zone_id<~Integer> - the zone ID of the zone from which to get the host records for
|
11
|
-
# * 'options'<~Hash> - optional parameters
|
12
|
-
# * 'page' <~Integer>
|
13
|
-
# * 'per_page' <~Integer>
|
14
|
-
# * 'fqdn' <~String>
|
15
|
-
# ==== Returns
|
16
|
-
# * response<~Excon::Response>:
|
17
|
-
# * body<~Hash>:
|
18
|
-
# * 'hosts'<~Array>
|
19
|
-
# * 'created-at'<~String>
|
20
|
-
# * 'data'<~String>
|
21
|
-
# * 'fqdn'<~String>
|
22
|
-
# * 'host-type'<~String>
|
23
|
-
# * 'hostname'<~String>
|
24
|
-
# * 'id'<~Integer>
|
25
|
-
# * 'notes'<~String>
|
26
|
-
# * 'priority'<~Integer>
|
27
|
-
# * 'ttl'<~Integer>
|
28
|
-
# * 'updated-at'<~String>
|
29
|
-
# * 'zone-id'<~String>
|
30
|
-
# * 'status'<~Integer> - 200 indicates success
|
31
|
-
def list_hosts(zone_id, options={})
|
32
|
-
request(
|
33
|
-
:query => options,
|
34
|
-
:expects => 200,
|
35
|
-
:method => "GET",
|
36
|
-
:parser => Fog::Parsers::DNS::Zerigo::ListHosts.new,
|
37
|
-
:path => "/api/1.1/zones/#{zone_id}/hosts.xml"
|
38
|
-
)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
class Mock # :nodoc:all
|
43
|
-
def list_hosts(zone_id, options={})
|
44
|
-
zone = find_by_zone_id(zone_id)
|
45
|
-
|
46
|
-
response = Excon::Response.new
|
47
|
-
|
48
|
-
if zone
|
49
|
-
if options.empty?
|
50
|
-
response.status = 200
|
51
|
-
response.body = {
|
52
|
-
"hosts" => zone["hosts"]
|
53
|
-
}
|
54
|
-
else
|
55
|
-
hosts = zone["hosts"]
|
56
|
-
hosts = hosts.select {|h| h["fqdn"] == options["fqdn"]} if options["fqdn"]
|
57
|
-
hosts = options["per_page"] ? hosts.each_slice(options["per_page"] - 1).to_a : hosts.each_slice(100).to_a
|
58
|
-
hosts = options["page"] ? hosts[options["page"]] : hosts[0]
|
59
|
-
response.status = 200
|
60
|
-
response.body = {
|
61
|
-
"hosts" => hosts
|
62
|
-
}
|
63
|
-
end
|
64
|
-
else
|
65
|
-
response.status = 404
|
66
|
-
end
|
67
|
-
|
68
|
-
response
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
72
|
-
end
|
73
|
-
end
|
@@ -1,62 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module DNS
|
3
|
-
class Zerigo
|
4
|
-
class Real
|
5
|
-
require 'fog/zerigo/parsers/dns/list_zones'
|
6
|
-
|
7
|
-
# Get list of all DNS zones hosted on Slicehost (for this account)
|
8
|
-
#
|
9
|
-
# ==== Parameters
|
10
|
-
# * options<~Hash>
|
11
|
-
# * page<~Integer> - Indicates where to begin in your list of zones.
|
12
|
-
# * per_page<~Integer> - The maximum number of zones to be included in the response body
|
13
|
-
#
|
14
|
-
# ==== Returns
|
15
|
-
# * response<~Excon::Response>:
|
16
|
-
# * body<~Hash>:
|
17
|
-
# * 'zones'<~Array>
|
18
|
-
# * 'default-ttl'<~Integer>
|
19
|
-
# * 'id'<~Integer>
|
20
|
-
# * 'nx-ttl'<~Integer>
|
21
|
-
# * 'hosts-count'<~Integer>
|
22
|
-
# * 'created-at'<~String>
|
23
|
-
# * 'custom-nameservers'<~String>
|
24
|
-
# * 'custom-ns'<~String>
|
25
|
-
# * 'domain'<~String>
|
26
|
-
# * 'hostmaster'<~String>
|
27
|
-
# * 'notes'<~String>
|
28
|
-
# * 'ns1'<~String>
|
29
|
-
# * 'ns-type'<~String>
|
30
|
-
# * 'slave-nameservers'<~String>
|
31
|
-
# * 'tag-list'<~String>
|
32
|
-
# * 'updated-at'<~String>
|
33
|
-
# * 'hosts'<~String>
|
34
|
-
# * 'axfr-ips'<~String>
|
35
|
-
# * 'restrict-axfr'<~String>
|
36
|
-
# * 'status'<~Integer> - 200 indicates success
|
37
|
-
def list_zones(options = {})
|
38
|
-
request(
|
39
|
-
:query => options,
|
40
|
-
:expects => 200,
|
41
|
-
:method => 'GET',
|
42
|
-
:parser => Fog::Parsers::DNS::Zerigo::ListZones.new,
|
43
|
-
:path => '/api/1.1/zones.xml'
|
44
|
-
)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
class Mock # :nodoc:all
|
49
|
-
def list_zones
|
50
|
-
response = Excon::Response.new
|
51
|
-
|
52
|
-
response.status = 200
|
53
|
-
response.body = {
|
54
|
-
'zones' => self.data[:zones]
|
55
|
-
}
|
56
|
-
|
57
|
-
response
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,68 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module DNS
|
3
|
-
class Zerigo
|
4
|
-
class Real
|
5
|
-
# Update a host record
|
6
|
-
#
|
7
|
-
# ==== Parameters
|
8
|
-
# * host_id<~Integer> - host ID of the record to update
|
9
|
-
# * options<~Hash> - optional paramaters
|
10
|
-
# * host_type<~String>
|
11
|
-
# * data<~String>
|
12
|
-
# * hostname<~String> - Note: normally this is set/required!!
|
13
|
-
# * notes<~String>
|
14
|
-
# * priority<~Integer> - Note: required for MX or SRV records
|
15
|
-
# * ttl<~Integer>
|
16
|
-
# ==== Returns
|
17
|
-
# * response<~Excon::Response>:
|
18
|
-
# * 'status'<~Integer> - 200 for success
|
19
|
-
#
|
20
|
-
def update_host(host_id, options = {})
|
21
|
-
optional_tags= ''
|
22
|
-
options.each { |option, value|
|
23
|
-
case option
|
24
|
-
when :host_type
|
25
|
-
optional_tags+= "<host-type>#{value}</host-type>"
|
26
|
-
when :data
|
27
|
-
optional_tags+= "<data>#{value}</data>"
|
28
|
-
when :hostname
|
29
|
-
optional_tags+= "<hostname>#{value}</hostname>"
|
30
|
-
when :notes
|
31
|
-
optional_tags+= "<notes>#{value}</notes>"
|
32
|
-
when :priority
|
33
|
-
optional_tags+= "<priority>#{value}</priority>"
|
34
|
-
when :ttl
|
35
|
-
optional_tags+= "<ttl>#{value}</ttl>"
|
36
|
-
end
|
37
|
-
}
|
38
|
-
|
39
|
-
request(
|
40
|
-
:body => %Q{<?xml version="1.0" encoding="UTF-8"?><host>#{optional_tags}</host>},
|
41
|
-
:expects => 200,
|
42
|
-
:method => 'PUT',
|
43
|
-
:path => "/api/1.1/hosts/#{host_id}.xml"
|
44
|
-
)
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
class Mock # :nodoc:all
|
49
|
-
def update_host(host_id, options = {})
|
50
|
-
host = find_host(host_id)
|
51
|
-
|
52
|
-
response = Excon::Response.new
|
53
|
-
|
54
|
-
if host
|
55
|
-
options.each { |k, v| host[k.to_s] = v } # Deal with symbols in requests but strings in responses.
|
56
|
-
host['updated-at'] = Time.now
|
57
|
-
|
58
|
-
response.status = 200
|
59
|
-
else
|
60
|
-
response.status = 404
|
61
|
-
end
|
62
|
-
|
63
|
-
response
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
@@ -1,86 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module DNS
|
3
|
-
class Zerigo
|
4
|
-
class Real
|
5
|
-
# Update the parameters of a zone
|
6
|
-
# ==== Parameters
|
7
|
-
#
|
8
|
-
# * zone_id<~Integer>
|
9
|
-
# * options<~Hash> - optional paramaters
|
10
|
-
# * default_ttl<~Integer>
|
11
|
-
# * ns_type<~String>
|
12
|
-
# * ns1<~String> - required if ns_type == sec
|
13
|
-
# * nx_ttl<~Integer> -
|
14
|
-
# * slave_nameservers<~String> - required if ns_type == pri
|
15
|
-
# * axfr_ips<~String> - comma-separated list of IPs or IP blocks allowed to perform AXFRs
|
16
|
-
# * custom_nameservers<~String> - comma-separated list of custom nameservers
|
17
|
-
# * custom_ns<~String> - indicates if vanity (custom) nameservers are enabled for this domain
|
18
|
-
# * hostmaster<~String> - email of the DNS administrator or hostmaster
|
19
|
-
# * notes<~String> - notes about the domain
|
20
|
-
# * restrict_axfr<~String> - indicates if AXFR transfers should be restricted to IPs in axfr-ips
|
21
|
-
# * tag_list<~String> - List of all tags associated with this domain
|
22
|
-
#
|
23
|
-
# ==== Returns
|
24
|
-
# * response<~Excon::Response>:
|
25
|
-
# * 'status'<~Integer> - 200 for success
|
26
|
-
def update_zone(zone_id, options = {})
|
27
|
-
optional_tags= ''
|
28
|
-
options.each { |option, value|
|
29
|
-
case option
|
30
|
-
when :default_ttl
|
31
|
-
optional_tags+= "<default-ttl>#{value}</default-ttl>"
|
32
|
-
when :ns_type
|
33
|
-
optional_tags+= "<ns-type>#{value}</ns-type>"
|
34
|
-
when :ns1
|
35
|
-
optional_tags+= "<ns1>#{value}</ns1>"
|
36
|
-
when :nx_ttl
|
37
|
-
optional_tags+= "<nx-ttl type='interger'>#{value}</nx-ttl>"
|
38
|
-
when :slave_nameservers
|
39
|
-
optional_tags+= "<slave-nameservers>#{value}</slave-nameservers>"
|
40
|
-
when :axfr_ips
|
41
|
-
optional_tags+= "<axfr-ips>#{value}</axfr-ips>"
|
42
|
-
when :custom_nameservers
|
43
|
-
optional_tags+= "<custom-nameservers>#{value}</custom-nameservers>"
|
44
|
-
when :custom_ns
|
45
|
-
optional_tags+= "<custom-ns>#{value}</custom-ns>"
|
46
|
-
when :hostmaster
|
47
|
-
optional_tags+= "<hostmaster>#{value}</hostmaster>"
|
48
|
-
when :notes
|
49
|
-
optional_tags+= "<notes>#{value}</notes>"
|
50
|
-
when :restrict_axfr
|
51
|
-
optional_tags+= "<restrict-axfr>#{value}</restrict-axfr>"
|
52
|
-
when :tag_list
|
53
|
-
optional_tags+= "<tag-list>#{value}</tag-list>"
|
54
|
-
end
|
55
|
-
}
|
56
|
-
|
57
|
-
request(
|
58
|
-
:body => %Q{<?xml version="1.0" encoding="UTF-8"?><zone>#{optional_tags}</zone>},
|
59
|
-
:expects => 200,
|
60
|
-
:method => 'PUT',
|
61
|
-
:path => "/api/1.1/zones/#{zone_id}.xml"
|
62
|
-
)
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
class Mock # :nodoc:all
|
67
|
-
def update_zone(zone_id, options = {})
|
68
|
-
zone = find_by_zone_id(zone_id)
|
69
|
-
|
70
|
-
response = Excon::Response.new
|
71
|
-
|
72
|
-
if zone
|
73
|
-
options.each { |k, v| zone[k.to_s] = v } # Deal with symbols in requests but strings in responses.
|
74
|
-
zone['updated-at'] = Time.now
|
75
|
-
|
76
|
-
response.status = 200
|
77
|
-
else
|
78
|
-
response.status = 404
|
79
|
-
end
|
80
|
-
|
81
|
-
response
|
82
|
-
end
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
data/lib/fog/zerigo.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require 'fog/zerigo/dns'
|
@@ -1,55 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
require "fog/bin"
|
3
|
-
require "helpers/bin"
|
4
|
-
|
5
|
-
describe Bluebox do
|
6
|
-
include Fog::BinSpec
|
7
|
-
|
8
|
-
let(:subject) { Bluebox }
|
9
|
-
|
10
|
-
describe "#services" do
|
11
|
-
it "includes all services" do
|
12
|
-
assert_includes Bluebox.services, :compute
|
13
|
-
assert_includes Bluebox.services, :dns
|
14
|
-
assert_includes Bluebox.services, :blb
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
describe "#class_for" do
|
19
|
-
describe "when requesting compute service" do
|
20
|
-
it "returns correct class" do
|
21
|
-
assert_equal Fog::Compute::Bluebox, Bluebox.class_for(:compute)
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
describe "when requesting dns service" do
|
26
|
-
it "returns correct class" do
|
27
|
-
assert_equal Fog::DNS::Bluebox, Bluebox.class_for(:dns)
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
describe "when requesting blb service" do
|
32
|
-
it "returns correct class" do
|
33
|
-
assert_equal Fog::Bluebox::BLB, Bluebox.class_for(:blb)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
|
38
|
-
describe "#[]" do
|
39
|
-
describe "when requesting compute service" do
|
40
|
-
it "returns instance" do
|
41
|
-
Fog::Compute::Bluebox.stub(:new, "instance") do
|
42
|
-
assert_equal "instance", Bluebox[:compute]
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
describe "when requesting dns service" do
|
48
|
-
it "returns instance" do
|
49
|
-
Fog::DNS::Bluebox.stub(:new, "instance") do
|
50
|
-
assert_equal "instance", Bluebox[:dns]
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
data/spec/fog/bin/joyent_spec.rb
DELETED
data/spec/fog/bin/ovirt_spec.rb
DELETED
data/spec/fog/bin/zerigo_spec.rb
DELETED
data/spec/fog/compute_spec.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe Fog::Compute do
|
4
|
-
Fog::Compute.providers.each do |provider|
|
5
|
-
describe "when #{provider} is passed with no available credentials" do
|
6
|
-
it "returns ArgumentError" do
|
7
|
-
# Stub credentials so you still see errors where the tester really has credentials
|
8
|
-
Fog.stub :credentials, {} do
|
9
|
-
# These providers do not raise ArgumentError since they have no requirements defined
|
10
|
-
if [:openvz, :vmfusion].include?(provider)
|
11
|
-
assert Fog::Compute[provider]
|
12
|
-
else
|
13
|
-
assert_raises(ArgumentError) { Fog::Compute[provider] }
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
data/spec/fog/dns_spec.rb
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
require "spec_helper"
|
2
|
-
|
3
|
-
describe Fog::DNS do
|
4
|
-
Fog::DNS.providers.each do |provider|
|
5
|
-
describe "when #{provider} is passed with no available credentials" do
|
6
|
-
it "returns ArgumentError" do
|
7
|
-
# Stub credentials so you still see errors where the tester really has credentials
|
8
|
-
Fog.stub :credentials, {} do
|
9
|
-
# These providers do not raise ArgumentError since they have no requirements defined
|
10
|
-
if [:dnsimple].include?(provider)
|
11
|
-
assert Fog::DNS[provider]
|
12
|
-
else
|
13
|
-
assert_raises(ArgumentError) { Fog::DNS[provider] }
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,64 +0,0 @@
|
|
1
|
-
class Bluebox
|
2
|
-
module BLB
|
3
|
-
module Formats
|
4
|
-
LB_APPLICATION = {
|
5
|
-
'id' => String,
|
6
|
-
'ip_v4' => String,
|
7
|
-
'ip_v6' => String,
|
8
|
-
'name' => String,
|
9
|
-
'lb_services' => Array,
|
10
|
-
'source_ip_v4' => Fog::Nullable::String,
|
11
|
-
}
|
12
|
-
|
13
|
-
LB_APPLICATIONS = [LB_APPLICATION]
|
14
|
-
|
15
|
-
LB_SERVICE = {
|
16
|
-
'name' => String,
|
17
|
-
'port' => Integer,
|
18
|
-
'private' => Fog::Boolean,
|
19
|
-
'status_username' => String,
|
20
|
-
'status_password' => String,
|
21
|
-
'status_url' => String,
|
22
|
-
'service_type' => String,
|
23
|
-
'created' => String,
|
24
|
-
'lb_backends' => Array,
|
25
|
-
'pem_file_uploaded?' => Fog::Nullable::Boolean,
|
26
|
-
}
|
27
|
-
|
28
|
-
LB_SERVICES = [LB_SERVICE]
|
29
|
-
|
30
|
-
LB_BACKEND = {
|
31
|
-
'id' => String,
|
32
|
-
'backend_name' => String,
|
33
|
-
'lb_machines' => Array,
|
34
|
-
'acl_name' => String,
|
35
|
-
'acl_name' => String,
|
36
|
-
'monitoring_url_hostname' => String,
|
37
|
-
'monitoring_url' => String,
|
38
|
-
'monitoring_url_hostname' => String,
|
39
|
-
'check_interval' => Integer,
|
40
|
-
'rise' => Fog::Nullable::Integer,
|
41
|
-
'order' => Fog::Nullable::Integer,
|
42
|
-
'fall' => Fog::Nullable::Integer,
|
43
|
-
}
|
44
|
-
|
45
|
-
LB_BACKENDS = [LB_BACKEND]
|
46
|
-
|
47
|
-
LB_MACHINE = {
|
48
|
-
'port' => Integer,
|
49
|
-
'id' => String,
|
50
|
-
'ip' => String,
|
51
|
-
'maxconn' => Integer,
|
52
|
-
'hostname' => String,
|
53
|
-
'created' => String,
|
54
|
-
}
|
55
|
-
|
56
|
-
ADD_MACHINE_TO_LB = [
|
57
|
-
{ 'text' => String },
|
58
|
-
{ 'status' => String },
|
59
|
-
]
|
60
|
-
|
61
|
-
REMOVE_MACHINE_FROM_BACKEND = 'Record Removed.'
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
@@ -1,75 +0,0 @@
|
|
1
|
-
require 'securerandom'
|
2
|
-
|
3
|
-
Shindo.tests('Bluebox::BLB | lb_tests', ['bluebox']) do
|
4
|
-
pending if Fog.mocking?
|
5
|
-
|
6
|
-
tests('success') do
|
7
|
-
@flavor_id = compute_providers[:bluebox][:server_attributes][:flavor_id]
|
8
|
-
@image_id = compute_providers[:bluebox][:server_attributes][:image_id]
|
9
|
-
@location_id = compute_providers[:bluebox][:server_attributes][:location_id]
|
10
|
-
@password = SecureRandom.base64(18)
|
11
|
-
|
12
|
-
tests("get_lb_applications").formats(Bluebox::BLB::Formats::LB_APPLICATIONS) do
|
13
|
-
@lb_applications = Fog::Bluebox[:blb].get_lb_applications.body
|
14
|
-
end
|
15
|
-
|
16
|
-
tests("get_lb_application").formats(Bluebox::BLB::Formats::LB_APPLICATION) do
|
17
|
-
Fog::Bluebox[:blb].get_lb_application(@lb_applications.first['id']).body
|
18
|
-
end
|
19
|
-
|
20
|
-
tests("get_lb_services").formats(Bluebox::BLB::Formats::LB_SERVICES) do
|
21
|
-
@lb_services = Fog::Bluebox[:blb].get_lb_services(@lb_applications.first['id']).body
|
22
|
-
end
|
23
|
-
|
24
|
-
tests("get_lb_service").formats(Bluebox::BLB::Formats::LB_SERVICE) do
|
25
|
-
Fog::Bluebox[:blb].get_lb_service(@lb_applications.first['id'], @lb_services.first['id']).body
|
26
|
-
end
|
27
|
-
|
28
|
-
tests("get_lb_backends").formats(Bluebox::BLB::Formats::LB_BACKENDS) do
|
29
|
-
@lb_backends = Fog::Bluebox[:blb].get_lb_backends(@lb_services.first['id']).body
|
30
|
-
end
|
31
|
-
|
32
|
-
tests("get_lb_backend").formats(Bluebox::BLB::Formats::LB_BACKEND) do
|
33
|
-
Fog::Bluebox[:blb].get_lb_backend(@lb_services.first['id'], @lb_backends.first['id']).body
|
34
|
-
end
|
35
|
-
|
36
|
-
# create block
|
37
|
-
data = Fog::Compute[:bluebox].create_block(@flavor_id, @image_id, @location_id, {'password' => @password}).body
|
38
|
-
@block_id = data['id']
|
39
|
-
Fog::Compute[:bluebox].servers.get(@block_id).wait_for { ready? }
|
40
|
-
|
41
|
-
tests("add_machine_to_lb_application").formats(Bluebox::BLB::Formats::ADD_MACHINE_TO_LB) do
|
42
|
-
Fog::Bluebox[:blb].add_machine_to_lb_application(@lb_applications.first['id'], @block_id).body
|
43
|
-
end
|
44
|
-
|
45
|
-
@default_backend = @lb_backends.select { |x| x['backend_name'] == 'default' }.first
|
46
|
-
@id_in_backend = @default_backend['lb_machines'].last['id']
|
47
|
-
@machine_opts = { 'port' => 4361, 'backup' => true };
|
48
|
-
tests("update_lb_backend_machine(#{@lb_backends.first['id']}, #{@id_in_backend}, #{@machine_opts})").formats(Bluebox::BLB::Formats::LB_MACHINE) do
|
49
|
-
Fog::Bluebox[:blb].update_lb_backend_machine(@lb_backends.first['id'], @id_in_backend, @machine_opts).body
|
50
|
-
end
|
51
|
-
|
52
|
-
tests("remove_machine_from_lb_backend(#{@default_backend['id']}, #{@id_in_backend})").formats(Bluebox::BLB::Formats::REMOVE_MACHINE_FROM_BACKEND) do
|
53
|
-
Fog::Bluebox[:blb].remove_machine_from_lb_backend(@default_backend['id'], @id_in_backend).body
|
54
|
-
end
|
55
|
-
|
56
|
-
tests("add_machine_to_lb_backend(#{@default_backend['id']}, #{@block_id})").formats(Bluebox::BLB::Formats::ADD_MACHINE_TO_LB) do
|
57
|
-
Fog::Bluebox[:blb].add_machine_to_lb_backend(@default_backend['id'], @block_id).body
|
58
|
-
end
|
59
|
-
|
60
|
-
Fog::Compute[:bluebox].destroy_block(@block_id).body
|
61
|
-
|
62
|
-
end
|
63
|
-
|
64
|
-
tests('failure') do
|
65
|
-
tests('get_lb_application').raises(Fog::Compute::Bluebox::NotFound) do
|
66
|
-
Fog::Bluebox[:blb].get_lb_application('00000000-0000-0000-0000-000000000000')
|
67
|
-
end
|
68
|
-
tests('get_lb_service').raises(Fog::Compute::Bluebox::NotFound) do
|
69
|
-
Fog::Bluebox[:blb].get_lb_service('00000000-0000-0000-0000-000000000000','00000000-0000-0000-0000-000000000000')
|
70
|
-
end
|
71
|
-
tests('get_lb_backend').raises(Fog::Compute::Bluebox::NotFound) do
|
72
|
-
Fog::Bluebox[:blb].get_lb_backend('00000000-0000-0000-0000-000000000000','00000000-0000-0000-0000-000000000000')
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
@@ -1,83 +0,0 @@
|
|
1
|
-
Shindo.tests('Fog::Compute[:bluebox] | block requests', ['bluebox']) do
|
2
|
-
|
3
|
-
@block_format = {
|
4
|
-
'cpu' => Float,
|
5
|
-
'description' => String,
|
6
|
-
'hostname' => String,
|
7
|
-
'id' => String,
|
8
|
-
'ips' => [{'address' => String}],
|
9
|
-
'lb_applications' => [],
|
10
|
-
'memory' => Integer,
|
11
|
-
'product' => {'cost' => String, 'description' => String, 'id' => String},
|
12
|
-
'status' => String,
|
13
|
-
'storage' => Integer,
|
14
|
-
'location_id' => String,
|
15
|
-
'vsh_id' => String
|
16
|
-
}
|
17
|
-
|
18
|
-
tests('success') do
|
19
|
-
|
20
|
-
@flavor_id = compute_providers[:bluebox][:server_attributes][:flavor_id]
|
21
|
-
@image_id = compute_providers[:bluebox][:server_attributes][:image_id]
|
22
|
-
@location_id = compute_providers[:bluebox][:server_attributes][:location_id]
|
23
|
-
@password = compute_providers[:bluebox][:server_attributes][:password]
|
24
|
-
|
25
|
-
@block_id = nil
|
26
|
-
|
27
|
-
tests("create_block('#{@flavor_id}', '#{@image_id}', '#{@location_id}', {'password' => '#{@password}'})").formats(@block_format.merge('add_to_lb_application_results' => {'text' => String})) do
|
28
|
-
pending if Fog.mocking?
|
29
|
-
data = Fog::Compute[:bluebox].create_block(@flavor_id, @image_id, @location_id, {'password' => @password}).body
|
30
|
-
@block_id = data['id']
|
31
|
-
data
|
32
|
-
end
|
33
|
-
|
34
|
-
unless Fog.mocking?
|
35
|
-
Fog::Compute[:bluebox].servers.get(@block_id).wait_for { ready? }
|
36
|
-
end
|
37
|
-
|
38
|
-
tests("get_block('#{@block_id}')").formats(@block_format) do
|
39
|
-
pending if Fog.mocking?
|
40
|
-
Fog::Compute[:bluebox].get_block(@block_id).body
|
41
|
-
end
|
42
|
-
|
43
|
-
tests("get_blocks").formats([@block_format.reject {|key,value| ['product', 'template'].include?(key)}]) do
|
44
|
-
pending if Fog.mocking?
|
45
|
-
Fog::Compute[:bluebox].get_blocks.body
|
46
|
-
end
|
47
|
-
|
48
|
-
tests("reboot_block('#{@block_id}')").formats([{'status' => String}, {'text' => String}]) do
|
49
|
-
pending if Fog.mocking?
|
50
|
-
Fog::Compute[:bluebox].reboot_block(@block_id).body
|
51
|
-
end
|
52
|
-
|
53
|
-
unless Fog.mocking?
|
54
|
-
Fog::Compute[:bluebox].servers.get(@block_id).wait_for { ready? }
|
55
|
-
end
|
56
|
-
|
57
|
-
tests("destroy_block('#{@block_id})'").formats({'text' => String}) do
|
58
|
-
pending if Fog.mocking?
|
59
|
-
Fog::Compute[:bluebox].destroy_block(@block_id).body
|
60
|
-
end
|
61
|
-
|
62
|
-
end
|
63
|
-
|
64
|
-
tests('failure') do
|
65
|
-
|
66
|
-
tests("get_block('00000000-0000-0000-0000-000000000000')").raises(Fog::Compute::Bluebox::NotFound) do
|
67
|
-
pending if Fog.mocking?
|
68
|
-
Fog::Compute[:bluebox].get_block('00000000-0000-0000-0000-000000000000')
|
69
|
-
end
|
70
|
-
|
71
|
-
tests("reboot_block('00000000-0000-0000-0000-000000000000')").raises(Fog::Compute::Bluebox::NotFound) do
|
72
|
-
pending if Fog.mocking?
|
73
|
-
Fog::Compute[:bluebox].reboot_block('00000000-0000-0000-0000-000000000000')
|
74
|
-
end
|
75
|
-
|
76
|
-
tests("destroy_block('00000000-0000-0000-0000-000000000000')").raises(Fog::Compute::Bluebox::NotFound) do
|
77
|
-
pending if Fog.mocking?
|
78
|
-
Fog::Compute[:bluebox].destroy_block('00000000-0000-0000-0000-000000000000')
|
79
|
-
end
|
80
|
-
|
81
|
-
end
|
82
|
-
|
83
|
-
end
|