fog 2.1.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- 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/CHANGELOG.md +97 -0
- data/README.md +1 -1
- data/Rakefile +0 -9
- data/fog.gemspec +12 -13
- data/lib/fog/bin.rb +2 -4
- data/lib/fog/version.rb +1 -1
- data/lib/fog.rb +1 -2
- data/lib/tasks/changelog_task.rb +2 -0
- data/spec/fog/bin/aws_spec.rb +6 -0
- data/spec/fog/bin_spec.rb +0 -3
- data/tests/helpers/mock_helper.rb +2 -2
- metadata +50 -607
- data/.github/stale.yml +0 -17
- 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 -162
- 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/spec/fog/bin/cloudstack_spec.rb +0 -9
- data/spec/fog/bin/joyent_spec.rb +0 -10
- 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
@@ -1,38 +0,0 @@
|
|
1
|
-
|
2
|
-
require 'fog/core/collection'
|
3
|
-
require 'fog/cloudstack/models/compute/network'
|
4
|
-
|
5
|
-
module Fog
|
6
|
-
module Compute
|
7
|
-
class Cloudstack
|
8
|
-
class Networks < Fog::Collection
|
9
|
-
model Fog::Compute::Cloudstack::Network
|
10
|
-
|
11
|
-
def all(filters={})
|
12
|
-
options = get_filter_options(filters)
|
13
|
-
data = service.list_networks(options)["listnetworksresponse"]["network"] || []
|
14
|
-
load(data)
|
15
|
-
end
|
16
|
-
|
17
|
-
def get(network_id, filters={})
|
18
|
-
filter_option = get_filter_options(filters)
|
19
|
-
options = filter_option.merge('id' => network_id)
|
20
|
-
if data = service.list_networks(options)["listnetworksresponse"]["network"].first
|
21
|
-
new(data)
|
22
|
-
end
|
23
|
-
rescue Fog::Compute::Cloudstack::BadRequest
|
24
|
-
nil
|
25
|
-
end
|
26
|
-
|
27
|
-
private
|
28
|
-
|
29
|
-
def get_filter_options(filters)
|
30
|
-
default_filter = {
|
31
|
-
'projectfilter' => 'self'
|
32
|
-
}
|
33
|
-
default_filter.merge(filters)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Compute
|
3
|
-
class Cloudstack
|
4
|
-
class PortForwardingRule < Fog::Model
|
5
|
-
identity :id, :aliases => 'id'
|
6
|
-
|
7
|
-
attribute :private_port, :aliases => 'privateport'
|
8
|
-
attribute :private_end_port, :aliases => 'privateendport'
|
9
|
-
attribute :protocol, :aliases => 'protocol'
|
10
|
-
attribute :public_port, :aliases => 'publicport'
|
11
|
-
attribute :public_end_port, :aliases => 'publicendport'
|
12
|
-
attribute :virtual_machine_id, :aliases => 'virtualmachineid'
|
13
|
-
attribute :virtualmachinename, :aliases => 'virtualmachinename'
|
14
|
-
attribute :virtualmachinedisplayname, :aliases => 'virtualmachinedisplayname'
|
15
|
-
attribute :ipaddressid, :aliases => 'ipaddressid'
|
16
|
-
attribute :ipaddress, :aliases => 'ipaddress'
|
17
|
-
attribute :state, :aliases => 'state'
|
18
|
-
attribute :cidrlist, :aliases => 'cidrlist'
|
19
|
-
attribute :vmguestip, :aliases => 'vmguestip'
|
20
|
-
attribute :networkid, :aliases => 'networkid'
|
21
|
-
attribute :tags, :type => :array
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'fog/core/collection'
|
2
|
-
require 'fog/cloudstack/models/compute/port_forwarding_rule'
|
3
|
-
|
4
|
-
module Fog
|
5
|
-
module Compute
|
6
|
-
class Cloudstack
|
7
|
-
class PortForwardingRules < Fog::Collection
|
8
|
-
model Fog::Compute::Cloudstack::PortForwardingRule
|
9
|
-
|
10
|
-
def all(options = {})
|
11
|
-
response = service.list_port_forwarding_rules(options)
|
12
|
-
port_forwarding_rules = response["listportforwardingrulesresponse"]["portforwardingrule"] || []
|
13
|
-
load(port_forwarding_rules)
|
14
|
-
end
|
15
|
-
|
16
|
-
def get(address_id)
|
17
|
-
options = { 'id' => address_id }
|
18
|
-
response = service.list_port_forwarding_rules(options)
|
19
|
-
port_forwarding_rules = response["listportforwardingrulesresponse"]["portforwardingrule"].first
|
20
|
-
new(port_forwarding_rules)
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Compute
|
3
|
-
class Cloudstack
|
4
|
-
class Project < Fog::Model
|
5
|
-
identity :id, :aliases => 'id'
|
6
|
-
attribute :name, :aliases => 'name'
|
7
|
-
attribute :display_text, :aliases => 'displaytext'
|
8
|
-
attribute :domain_id, :aliases => 'domainid'
|
9
|
-
attribute :domain, :aliases => 'domain'
|
10
|
-
attribute :account, :aliases => 'account'
|
11
|
-
attribute :state, :aliases => 'state'
|
12
|
-
attribute :tags, :aliases => 'tags'
|
13
|
-
attribute :network_limit, :aliases => 'networklimit'
|
14
|
-
attribute :network_total, :aliases => 'networktotal', :type => :integer
|
15
|
-
attribute :network_available, :aliases => 'networkavailable'
|
16
|
-
attribute :vpc_limit, :aliases => 'vpclimit'
|
17
|
-
attribute :vpc_total, :aliases => 'vpctotal', :type => :integer
|
18
|
-
attribute :vpc_available, :aliases => 'vpcavailable'
|
19
|
-
attribute :cpu_limit, :aliases => 'cpulimit'
|
20
|
-
attribute :cpu_total, :aliases => 'cputotal', :type => :integer
|
21
|
-
attribute :cpu_available, :aliases => 'cpuavailable'
|
22
|
-
attribute :memory_limit, :aliases => 'memorylimit'
|
23
|
-
attribute :memory_total, :aliases => 'memorytotal', :type => :integer
|
24
|
-
attribute :memory_available, :aliases => 'memoryavailable'
|
25
|
-
attribute :primary_storage_limit, :aliases => 'primarystoragelimit'
|
26
|
-
attribute :primary_storage_total, :aliases => 'primarystoragetotal', :type => :integer
|
27
|
-
attribute :primary_storage_available, :aliases => 'primarystorageavailable'
|
28
|
-
attribute :secondary_storage_limit, :aliases => 'secondarystoragelimit'
|
29
|
-
attribute :secondary_storage_total, :aliases => 'secondarystoragetotal', :type => :integer
|
30
|
-
attribute :secondary_storage_available, :aliases => 'secondarystorageavailable'
|
31
|
-
attribute :vm_limit, :aliases => 'vmlimit'
|
32
|
-
attribute :vm_total, :aliases => 'vmtotal', :type => :integer
|
33
|
-
attribute :vm_available, :aliases => 'vmavailable'
|
34
|
-
attribute :ip_limit, :aliases => 'iplimit'
|
35
|
-
attribute :ip_total, :aliases => 'iptotal', :type => :integer
|
36
|
-
attribute :ip_available, :aliases => 'ipavailable'
|
37
|
-
attribute :volume_limit, :aliases => 'volumelimit'
|
38
|
-
attribute :volume_total, :aliases => 'volumetotal', :type => :integer
|
39
|
-
attribute :volume_available, :aliases => 'volumeavailable'
|
40
|
-
attribute :snapshot_limit, :aliases => 'snapshotlimit'
|
41
|
-
attribute :snapshot_total, :aliases => 'snapshottotal', :type => :integer
|
42
|
-
attribute :snapshot_available, :aliases => 'snapshotavailable'
|
43
|
-
attribute :template_limit, :aliases => 'templatelimit'
|
44
|
-
attribute :template_total, :aliases => 'templatetotal', :type => :integer
|
45
|
-
attribute :template_available, :aliases => 'templateavailable'
|
46
|
-
|
47
|
-
def save
|
48
|
-
raise Fog::Errors::Error.new('Creating a project is not supported')
|
49
|
-
end
|
50
|
-
|
51
|
-
def destroy
|
52
|
-
raise Fog::Errors::Error.new('Destroying a project is not supported')
|
53
|
-
end
|
54
|
-
|
55
|
-
end # Project
|
56
|
-
end # Cloudstack
|
57
|
-
end # Compute
|
58
|
-
end # Fog
|
@@ -1,39 +0,0 @@
|
|
1
|
-
require 'fog/core/collection'
|
2
|
-
require 'fog/cloudstack/models/compute/project'
|
3
|
-
|
4
|
-
module Fog
|
5
|
-
module Compute
|
6
|
-
class Cloudstack
|
7
|
-
class Projects < Fog::Collection
|
8
|
-
model Fog::Compute::Cloudstack::Project
|
9
|
-
|
10
|
-
def all(filters={})
|
11
|
-
options = get_filter_options(filters)
|
12
|
-
|
13
|
-
data = service.list_projects(options)["listprojectsresponse"]["project"] || []
|
14
|
-
load(data)
|
15
|
-
end
|
16
|
-
|
17
|
-
def get(project_id, filters={})
|
18
|
-
filter_option = get_filter_options(filters)
|
19
|
-
options = filter_option.merge('id' => project_id)
|
20
|
-
|
21
|
-
if template = service.list_projects(options)["listprojectsresponse"]["project"].first
|
22
|
-
new(template)
|
23
|
-
end
|
24
|
-
rescue Fog::Compute::Cloudstack::BadRequest
|
25
|
-
nil
|
26
|
-
end
|
27
|
-
|
28
|
-
private
|
29
|
-
|
30
|
-
def get_filter_options(filters)
|
31
|
-
default_filter = {
|
32
|
-
'projectfilter' => 'self'
|
33
|
-
}
|
34
|
-
default_filter.merge(filters)
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,96 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Compute
|
3
|
-
class Cloudstack
|
4
|
-
class PublicIpAddress < Fog::Model
|
5
|
-
identity :id
|
6
|
-
|
7
|
-
attribute :account
|
8
|
-
attribute :allocated, :type => :time
|
9
|
-
attribute :associated_network_id, :aliases => 'associatednetworkid'
|
10
|
-
attribute :associated_network_name, :aliases => 'associatednetworkname'
|
11
|
-
attribute :domain
|
12
|
-
attribute :domain_id, :aliases => 'domainid'
|
13
|
-
attribute :for_virtual_network, :type => :boolean, :aliases => 'forvirtualnetwork'
|
14
|
-
attribute :ip_address, :aliases => 'ipaddress'
|
15
|
-
attribute :is_portable, :type => :boolean, :aliases => 'isportable'
|
16
|
-
attribute :is_source_nat, :type => :boolean, :aliases => 'issourcenat'
|
17
|
-
attribute :is_static_nat, :type => :boolean, :aliases => 'isstaticnat'
|
18
|
-
attribute :is_system, :type => :boolean, :aliases => 'issystem'
|
19
|
-
attribute :network_id, :type => :boolean, :aliases => 'networkid'
|
20
|
-
attribute :physical_network_id, :aliases => 'physicalnetworkid'
|
21
|
-
attribute :project
|
22
|
-
attribute :project_id, :aliases => 'projectid'
|
23
|
-
attribute :purpose
|
24
|
-
attribute :state
|
25
|
-
attribute :server_display_name, :aliases => 'virtualmachinedisplayname'
|
26
|
-
attribute :server_id, :aliases => 'virtualmachineid'
|
27
|
-
attribute :server_name, :aliases => 'virtualmachinename'
|
28
|
-
attribute :vlan_id, :aliases => 'vlanid'
|
29
|
-
attribute :vlan_name, :aliases => 'vlanname'
|
30
|
-
attribute :server_ip_address, :aliases => 'vmipaddress'
|
31
|
-
attribute :vpc_id, :aliases => 'vpcid'
|
32
|
-
attribute :zone_id, :aliases => 'zoneid'
|
33
|
-
attribute :zone_name, :aliases => 'zonename'
|
34
|
-
attribute :tags, :type => :array
|
35
|
-
attribute :job_id, :aliases => 'jobid' # only on associate
|
36
|
-
|
37
|
-
def initialize(attributes = {})
|
38
|
-
# assign server first to prevent race condition with persisted?
|
39
|
-
self.server = attributes.delete(:server)
|
40
|
-
super
|
41
|
-
end
|
42
|
-
|
43
|
-
def ready?
|
44
|
-
state == 'Allocated'
|
45
|
-
end
|
46
|
-
|
47
|
-
def destroy
|
48
|
-
requires :identity
|
49
|
-
service.disassociate_ip_address('id' => id)
|
50
|
-
true
|
51
|
-
end
|
52
|
-
|
53
|
-
def server=(new_server)
|
54
|
-
@server = new_server
|
55
|
-
if persisted?
|
56
|
-
if !server_id.nil? && (new_server.nil? || server_id != new_server.id)
|
57
|
-
service.disable_static_nat('ipaddressid' => id)
|
58
|
-
self.server_display_name = nil
|
59
|
-
self.server_id = nil
|
60
|
-
self.server_name = nil
|
61
|
-
self.server_ip_address = nil
|
62
|
-
self.is_static_nat = false
|
63
|
-
end
|
64
|
-
unless new_server.nil?
|
65
|
-
service.enable_static_nat(
|
66
|
-
'ipaddressid' => id, 'virtualmachineid' => new_server.id)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
70
|
-
|
71
|
-
def server
|
72
|
-
service.servers.get(server_id)
|
73
|
-
end
|
74
|
-
|
75
|
-
def save
|
76
|
-
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted?
|
77
|
-
options = {
|
78
|
-
'account' => account,
|
79
|
-
'domainid' => domain_id,
|
80
|
-
'isportable' => is_portable,
|
81
|
-
'networkid' => network_id,
|
82
|
-
'projectid' => project_id,
|
83
|
-
'vpcid' => vpc_id,
|
84
|
-
'zoneid' => zone_id,
|
85
|
-
}
|
86
|
-
response = service.associate_ip_address(options)
|
87
|
-
merge_attributes(response['associateipaddressresponse'])
|
88
|
-
if @server
|
89
|
-
self.server = @server
|
90
|
-
end
|
91
|
-
true
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|
96
|
-
end
|
@@ -1,27 +0,0 @@
|
|
1
|
-
require 'fog/core/collection'
|
2
|
-
require 'fog/cloudstack/models/compute/public_ip_address'
|
3
|
-
|
4
|
-
module Fog
|
5
|
-
module Compute
|
6
|
-
class Cloudstack
|
7
|
-
class PublicIpAddresses < Fog::Collection
|
8
|
-
model Fog::Compute::Cloudstack::PublicIpAddress
|
9
|
-
|
10
|
-
def all(options = {})
|
11
|
-
response = service.list_public_ip_addresses(options)
|
12
|
-
public_ip_addresses = response["listpublicipaddressesresponse"]["publicipaddress"] || []
|
13
|
-
load(public_ip_addresses)
|
14
|
-
end
|
15
|
-
|
16
|
-
def get(address_id)
|
17
|
-
response = service.list_public_ip_addresses('id' => address_id)
|
18
|
-
if public_ip_address = response["listpublicipaddressesresponse"]["publicipaddress"].first
|
19
|
-
new(public_ip_address)
|
20
|
-
end
|
21
|
-
rescue Fog::Compute::Cloudstack::BadRequest
|
22
|
-
nil
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Compute
|
3
|
-
class Cloudstack
|
4
|
-
class SecurityGroup < Fog::Model
|
5
|
-
identity :id, :aliases => 'id'
|
6
|
-
attribute :name, :type => :string
|
7
|
-
attribute :description, :type => :string
|
8
|
-
attribute :account, :type => :string
|
9
|
-
attribute :domain_id, :aliases => "domainid", :type => :string
|
10
|
-
attribute :domain_name, :aliases => "domain", :type => :string
|
11
|
-
attribute :project_id, :aliases => "projectid", :type => :string
|
12
|
-
attribute :project_name, :aliases => "project", :type => :string
|
13
|
-
attribute :ingress_rules, :aliases => "ingressrule", :type => :array
|
14
|
-
attribute :egress_rules, :aliases => "egressrule", :type => :array
|
15
|
-
|
16
|
-
def destroy
|
17
|
-
requires :id
|
18
|
-
service.delete_security_group('id' => self.id)
|
19
|
-
true
|
20
|
-
end
|
21
|
-
|
22
|
-
def egress_rules
|
23
|
-
attributes[:egress_rules] || []
|
24
|
-
end
|
25
|
-
|
26
|
-
def ingress_rules
|
27
|
-
attributes[:ingress_rules] || []
|
28
|
-
end
|
29
|
-
|
30
|
-
def save
|
31
|
-
requires :name
|
32
|
-
|
33
|
-
options = {
|
34
|
-
'name' => self.name,
|
35
|
-
'account' => self.account,
|
36
|
-
'description' => self.description,
|
37
|
-
'projectid' => self.project_id,
|
38
|
-
'domainid' => self.domain_id,
|
39
|
-
}
|
40
|
-
data = service.create_security_group(options)
|
41
|
-
merge_attributes(data['createsecuritygroupresponse']['securitygroup'])
|
42
|
-
end
|
43
|
-
|
44
|
-
def rules
|
45
|
-
service.security_group_rules.all("security_group_id" => self.id)
|
46
|
-
end
|
47
|
-
end # SecurityGroup
|
48
|
-
end # Cloudstack
|
49
|
-
end # Compute
|
50
|
-
end # Fog
|
@@ -1,60 +0,0 @@
|
|
1
|
-
module Fog
|
2
|
-
module Compute
|
3
|
-
class Cloudstack
|
4
|
-
class SecurityGroupRule < Fog::Model
|
5
|
-
identity :id, :aliases => 'ruleid'
|
6
|
-
|
7
|
-
attribute :security_group_id, :type => :string
|
8
|
-
attribute :protocol, :type => :string
|
9
|
-
attribute :start_port, :type => :integer, :aliases => 'startport'
|
10
|
-
attribute :end_port, :type => :integer, :aliases => 'endport'
|
11
|
-
attribute :cidr, :type => :string
|
12
|
-
attribute :direction, :type => :string
|
13
|
-
|
14
|
-
def destroy
|
15
|
-
data = service.send("revoke_security_group_#{self.direction}", "id" => self.id)
|
16
|
-
job = service.jobs.new(data["revokesecuritygroup#{self.direction}"])
|
17
|
-
job.wait_for { ready? }
|
18
|
-
job.successful?
|
19
|
-
end
|
20
|
-
|
21
|
-
def port_range
|
22
|
-
(self.start_port..self.end_port)
|
23
|
-
end
|
24
|
-
|
25
|
-
def save
|
26
|
-
requires :security_group_id, :cidr, :direction
|
27
|
-
|
28
|
-
data = service.send("authorize_security_group_#{self.direction}".to_sym, params)
|
29
|
-
job = service.jobs.new(data["authorizesecuritygroup#{self.direction}response"])
|
30
|
-
job.wait_for { ready? }
|
31
|
-
# durty
|
32
|
-
merge_attributes(job.result.send("#{self.direction}_rules").last)
|
33
|
-
self
|
34
|
-
end
|
35
|
-
|
36
|
-
def security_group
|
37
|
-
service.security_groups.get(self.security_group_id)
|
38
|
-
end
|
39
|
-
|
40
|
-
def reload
|
41
|
-
requires :id, :security_group_id, :cidr
|
42
|
-
|
43
|
-
merge_attributes(security_group.rules.get(self.id))
|
44
|
-
end
|
45
|
-
|
46
|
-
private
|
47
|
-
|
48
|
-
def params
|
49
|
-
options = {
|
50
|
-
"securitygroupid" => self.security_group_id,
|
51
|
-
"protocol" => self.protocol,
|
52
|
-
"cidrlist" => self.cidr
|
53
|
-
}
|
54
|
-
options.merge!("startport" => self.start_port) unless self.start_port.nil?
|
55
|
-
options.merge("endport" => self.end_port) unless self.end_port.nil?
|
56
|
-
end
|
57
|
-
end # SecurityGroupRule
|
58
|
-
end # Cloudstack
|
59
|
-
end # Compute
|
60
|
-
end # Fog
|
@@ -1,35 +0,0 @@
|
|
1
|
-
require 'fog/core/collection'
|
2
|
-
require 'fog/cloudstack/models/compute/security_group_rule'
|
3
|
-
|
4
|
-
module Fog
|
5
|
-
module Compute
|
6
|
-
class Cloudstack
|
7
|
-
class SecurityGroupRules < Fog::Collection
|
8
|
-
model Fog::Compute::Cloudstack::SecurityGroupRule
|
9
|
-
|
10
|
-
attribute :security_group_id, :type => :string
|
11
|
-
|
12
|
-
def security_group
|
13
|
-
service.security_groups.get(self.security_group_id)
|
14
|
-
end
|
15
|
-
|
16
|
-
def create(attributes)
|
17
|
-
model = self.new(attributes.merge(:security_group_id => self.security_group_id))
|
18
|
-
model.save
|
19
|
-
end
|
20
|
-
|
21
|
-
def all(options={})
|
22
|
-
merge_attributes(options)
|
23
|
-
security_group = self.security_group
|
24
|
-
rules = security_group.ingress_rules.map{|r| r.merge("direction" => "ingress", "security_group_id" => security_group_id)}
|
25
|
-
rules += security_group.egress_rules.map{|r| r.merge("direction" => "egress", "security_group_id" => security_group_id)}
|
26
|
-
load(rules)
|
27
|
-
end
|
28
|
-
|
29
|
-
def get(rule_id)
|
30
|
-
all.find{|r| r.id == rule_id}
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'fog/core/collection'
|
2
|
-
require 'fog/cloudstack/models/compute/security_group'
|
3
|
-
|
4
|
-
module Fog
|
5
|
-
module Compute
|
6
|
-
class Cloudstack
|
7
|
-
class SecurityGroups < Fog::Collection
|
8
|
-
model Fog::Compute::Cloudstack::SecurityGroup
|
9
|
-
|
10
|
-
def all(options={})
|
11
|
-
data = service.list_security_groups(options)["listsecuritygroupsresponse"]["securitygroup"] || []
|
12
|
-
load(data)
|
13
|
-
end
|
14
|
-
|
15
|
-
def get(security_group_id)
|
16
|
-
if security_group = service.list_security_groups('id' => security_group_id)["listsecuritygroupsresponse"]["securitygroup"].first
|
17
|
-
new(security_group)
|
18
|
-
end
|
19
|
-
rescue Fog::Compute::Cloudstack::BadRequest
|
20
|
-
nil
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,162 +0,0 @@
|
|
1
|
-
require 'fog/compute/models/server'
|
2
|
-
|
3
|
-
module Fog
|
4
|
-
module Compute
|
5
|
-
class Cloudstack
|
6
|
-
class Server < Fog::Compute::Server
|
7
|
-
identity :id, :aliases => 'id'
|
8
|
-
attribute :name
|
9
|
-
attribute :account_name, :aliases => 'account'
|
10
|
-
attribute :domain_name, :aliases => 'domain'
|
11
|
-
attribute :created, :type => :time
|
12
|
-
attribute :state
|
13
|
-
attribute :haenable
|
14
|
-
attribute :memory
|
15
|
-
attribute :display_name, :aliases => 'displayname'
|
16
|
-
attribute :domain_id, :aliases => 'domainid'
|
17
|
-
attribute :host_id, :aliases => 'hostid'
|
18
|
-
attribute :host_name, :aliases => 'hostname'
|
19
|
-
attribute :project_id, :aliases => 'projectid'
|
20
|
-
attribute :zone_id, :aliases => 'zoneid'
|
21
|
-
attribute :zone_name, :aliases => 'zonename'
|
22
|
-
attribute :image_id, :aliases => ['templateid', :template_id]
|
23
|
-
attribute :image_name, :aliases => ['templatename', :template_name]
|
24
|
-
attribute :templated_display_text, :aliases => 'templatedisplaytext'
|
25
|
-
attribute :password_enabled, :aliases => 'passwordenabled'
|
26
|
-
attribute :flavor_id, :aliases => ['serviceofferingid', :service_offering_id]
|
27
|
-
attribute :flavor_name, :aliases => ['serviceofferingname', :service_offering_name]
|
28
|
-
attribute :cpu_number, :aliases => 'cpunumber'
|
29
|
-
attribute :cpu_speed, :aliases => 'cpuspeed'
|
30
|
-
attribute :cpu_used, :aliases => 'cpuused'
|
31
|
-
attribute :network_kbs_read, :aliases => 'networkkbsread'
|
32
|
-
attribute :network_kbs_write, :aliases => 'networkkbswrite'
|
33
|
-
attribute :guest_os_id, :aliases => 'guestosid'
|
34
|
-
attribute :root_device_id, :aliases => 'rootdeviceid'
|
35
|
-
attribute :root_device_type, :aliases => 'rootdevicetype'
|
36
|
-
attribute :group
|
37
|
-
attribute :key_name, :aliases => 'keypair'
|
38
|
-
attribute :user_data, :aliases => 'userdata'
|
39
|
-
attribute :security_group_list, :type => :array, :aliases => 'securitygroup'
|
40
|
-
attribute :nics, :type => :array, :aliases => 'nic'
|
41
|
-
attribute :job_id, :aliases => 'jobid' # only on create
|
42
|
-
attribute :size, :type => :integer
|
43
|
-
attribute :root_disk_size, :type => :integer
|
44
|
-
|
45
|
-
attr_accessor :network_ids, :disk_offering_id, :ip_address, :ip_to_network_list
|
46
|
-
attr_writer :security_group_ids
|
47
|
-
|
48
|
-
alias_method :public_ip_address, :ip_address
|
49
|
-
alias_method :public_ip_address=, :ip_address=
|
50
|
-
|
51
|
-
def addresses
|
52
|
-
nics.map{|nic| Address.new(nic)}
|
53
|
-
end
|
54
|
-
|
55
|
-
def ip_addresses
|
56
|
-
addresses.map(&:ip_address)
|
57
|
-
end
|
58
|
-
|
59
|
-
def volumes
|
60
|
-
requires :id
|
61
|
-
service.volumes.all('virtualmachineid' => id)
|
62
|
-
end
|
63
|
-
|
64
|
-
def reset_password
|
65
|
-
requires :id
|
66
|
-
data = service.reset_password_for_virtual_machine(id)
|
67
|
-
service.jobs.new(data['resetpasswordforvirtualmachineresponse'])
|
68
|
-
end
|
69
|
-
|
70
|
-
def public_ip_addresses
|
71
|
-
if public_ip_address.nil? then [public_ip_address] else [] end
|
72
|
-
end
|
73
|
-
|
74
|
-
def private_ip_addresses
|
75
|
-
ip_addresses - public_ip_addresses
|
76
|
-
end
|
77
|
-
|
78
|
-
def private_ip_address
|
79
|
-
private_ip_addresses.first
|
80
|
-
end
|
81
|
-
|
82
|
-
def destroy(options={})
|
83
|
-
requires :id
|
84
|
-
data = service.destroy_virtual_machine(options.merge({'id'=> self.id}))
|
85
|
-
service.jobs.new(data["destroyvirtualmachineresponse"])
|
86
|
-
end
|
87
|
-
|
88
|
-
def flavor
|
89
|
-
service.flavors.get(self.flavor_id)
|
90
|
-
end
|
91
|
-
|
92
|
-
def ready?
|
93
|
-
state == 'Running'
|
94
|
-
end
|
95
|
-
|
96
|
-
def reboot
|
97
|
-
requires :id
|
98
|
-
data = service.reboot_virtual_machine('id' => self.id) # FIXME: does this ever fail?
|
99
|
-
service.jobs.new(data["rebootvirtualmachineresponse"])
|
100
|
-
end
|
101
|
-
|
102
|
-
def security_groups=(security_groups)
|
103
|
-
self.security_group_ids= Array(security_groups).map(&:id)
|
104
|
-
end
|
105
|
-
|
106
|
-
def security_group_ids
|
107
|
-
@security_group_ids || (self.security_group_list || []).map{|sg| sg["id"]}
|
108
|
-
end
|
109
|
-
|
110
|
-
def security_groups
|
111
|
-
security_group_ids.map{|id| service.security_groups.get(id)}
|
112
|
-
end
|
113
|
-
|
114
|
-
def save
|
115
|
-
requires :image_id, :flavor_id, :zone_id
|
116
|
-
|
117
|
-
options = {
|
118
|
-
'templateid' => image_id,
|
119
|
-
'serviceofferingid' => flavor_id,
|
120
|
-
'zoneid' => zone_id,
|
121
|
-
'networkids' => network_ids,
|
122
|
-
'diskofferingid' => disk_offering_id,
|
123
|
-
'name' => name,
|
124
|
-
'displayname' => display_name,
|
125
|
-
'group' => group,
|
126
|
-
'domainid' => domain_id,
|
127
|
-
'hostid' => host_id,
|
128
|
-
'ipaddress' => ip_address,
|
129
|
-
'iptonetworklist' => ip_to_network_list,
|
130
|
-
'projectid' => project_id,
|
131
|
-
'keypair' => key_name,
|
132
|
-
'userdata' => user_data,
|
133
|
-
'size' => size,
|
134
|
-
}
|
135
|
-
|
136
|
-
options.merge!('rootdisksize' => root_disk_size) if root_disk_size
|
137
|
-
options.merge!('networkids' => network_ids) if network_ids
|
138
|
-
options.merge!('securitygroupids' => security_group_ids) unless security_group_ids.empty?
|
139
|
-
|
140
|
-
data = service.deploy_virtual_machine(options)
|
141
|
-
merge_attributes(data['deployvirtualmachineresponse'])
|
142
|
-
end
|
143
|
-
|
144
|
-
def start
|
145
|
-
requires :id
|
146
|
-
data = service.start_virtual_machine("id" => self.id)
|
147
|
-
service.jobs.new(data["startvirtualmachineresponse"])
|
148
|
-
end
|
149
|
-
|
150
|
-
def stop(options={})
|
151
|
-
requires :id
|
152
|
-
unless options.is_a?(Hash)
|
153
|
-
Fog::Logger.deprecation("Passing force as a boolean option has been deprecated. Please pass a hash with 'force' => (true|false)")
|
154
|
-
options = {'force' => options}
|
155
|
-
end
|
156
|
-
data = service.stop_virtual_machine(options.merge({'id' => self.id}))
|
157
|
-
service.jobs.new(data["stopvirtualmachineresponse"])
|
158
|
-
end
|
159
|
-
end # Server
|
160
|
-
end # Cloudstack
|
161
|
-
end # Compute
|
162
|
-
end # Fog
|