fog-xenserver 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -7
- data/.rubocop +11 -14
- data/lib/fog/bin/xenserver.rb +1 -1
- data/lib/fog/compute/xen_server.rb +7 -7
- data/lib/fog/compute/xen_server/models.rb +74 -74
- data/lib/fog/compute/xen_server/models/instance_methods.rb +1 -1
- data/lib/fog/compute/xen_server/models/network.rb +2 -2
- data/lib/fog/compute/xen_server/models/server.rb +31 -31
- data/lib/fog/compute/xen_server/models/servers.rb +5 -5
- data/lib/fog/compute/xen_server/models/storage_repository.rb +3 -3
- data/lib/fog/compute/xen_server/models/vbd.rb +7 -7
- data/lib/fog/compute/xen_server/models/vdi.rb +3 -3
- data/lib/fog/compute/xen_server/models/vif.rb +5 -5
- data/lib/fog/compute/xen_server/requests/add_ipv4_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/add_ipv6_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/add_to_vcpus_params_live_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/apply_edition_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/apply_edition_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_agile_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_attachable_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_can_be_recovered_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_can_boot_here_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_can_evacuate_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_can_host_ha_statefile_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_can_migrate_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_operation_valid_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/assert_supports_database_replication_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/backup_rrds_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/bugreport_upload_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/builtin_templates.rb +1 -1
- data/lib/fog/compute/xen_server/requests/call_plugin_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/certificate_install_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/certificate_list_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/certificate_sync_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/certificate_uninstall_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/checkpoint_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/clean_reboot_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/clean_shutdown_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/clone_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/clone_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/compute_free_memory_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/compute_memory_overhead_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/compute_memory_overhead_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/copy_bios_strings_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/copy_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/copy_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_network.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_new_blob_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_new_blob_network.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_new_blob_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_new_blob_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_new_blob_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vlan.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vlan_from_pif_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/create_vlan_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/crl_install_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/crl_list_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/crl_uninstall_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/custom_templates.rb +1 -1
- data/lib/fog/compute/xen_server/requests/db_forget_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/db_forget_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/db_introduce_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/db_introduce_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/declare_dead_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/designate_new_master_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/detect_nonhomogeneous_external_auth_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_database_replication_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_external_auth_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_external_auth_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_ha_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_local_storage_caching_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_local_storage_caching_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/disable_redo_log_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/dmesg_clear_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/dmesg_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/eject_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/eject_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/emergency_ha_disable_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/emergency_reset_master_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/emergency_transition_to_master_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_database_replication_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_external_auth_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_external_auth_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_ha_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_local_storage_caching_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_local_storage_caching_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/enable_redo_log_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/evacuate_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/forget_data_source_archives_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/forget_data_source_archives_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/forget_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/forget_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/forget_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_allowed_vbd_devices_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_allowed_vif_devices_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_boot_record_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_data_sources_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_data_sources_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_license_state_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_log_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_management_interface_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_possible_hosts_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_server_certificate_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_server_localtime_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_servertime_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_supported_types_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_system_status_capabilities_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/get_vms_which_prevent_evacuation_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/ha_compute_hypothetical_max_host_failures_to_tolerate_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/ha_compute_max_host_failures_to_tolerate_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/ha_compute_vm_failover_plan_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/ha_failover_plan_exists_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/ha_prevent_restarts_for_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/hard_reboot_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/hard_shutdown_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/import_convert_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/insert_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/introduce_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/introduce_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/introduce_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/join_force_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/join_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/list_methods_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/local_management_reconfigure_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/management_disable_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/management_reconfigure_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/maximise_memory_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/migrate_receive_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/migrate_send_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/open_database_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/pause_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/plug_pbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/plug_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/plug_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/plug_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/pool_migrate_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/pool_migrate_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/power_on_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/power_state_reset_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/probe_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/provision_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/query_data_source_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/query_data_source_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/query_services_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/read_database_pool_uuid_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/reboot_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/reboot_server.rb +3 -3
- data/lib/fog/compute/xen_server/requests/reconfigure_ip_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/reconfigure_ipv6_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/record_data_source_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/record_data_source_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/recover_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/recover_slaves_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/refresh_pack_info_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/remove_ipv4_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/remove_ipv6_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/reset_cpu_features_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/resize_online_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/resize_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/restart_agent_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/resume_on_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/resume_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/revert_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/revert_to_server.rb +2 -2
- data/lib/fog/compute/xen_server/requests/scan_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/scan_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/send_debug_keys_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/send_sysrq_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/send_test_post_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/send_trigger_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_affinity_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_allow_caching_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_appliance_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_attribute.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_cpu_features_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_default_locking_mode_network.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_device_config_pbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_ha_host_failures_to_tolerate_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_ha_restart_priority_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_hostname_live_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_hvm_shadow_multiplier_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_ipv4_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_ipv6_allowed_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_is_a_snapshot_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_locking_mode_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_managed_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_dynamic_max_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_dynamic_min_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_dynamic_range_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_limits_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_static_max_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_static_min_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_memory_static_range_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_metadata_of_pool_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_missing_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_name_description_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_name_description_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_name_label_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_name_label_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_on_boot_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_order_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_physical_size_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_physical_utilisation_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_physical_utilisation_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_power_on_mode_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_primary_address_type_pif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_protection_policy_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_read_only_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_shadow_multiplier_live_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_sharable_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_shared_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_shutdown_delay_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_snapshot_of_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_snapshot_time_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_start_delay_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_suspend_vdi_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_vcpus_at_startup_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_vcpus_max_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_vcpus_number_live_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_virtual_allocation_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_virtual_size_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/set_vswitch_controller_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/shutdown_agent_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/shutdown_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/shutdown_server.rb +2 -2
- data/lib/fog/compute/xen_server/requests/snapshot_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/snapshot_vdi.rb +1 -1
- data/lib/fog/compute/xen_server/requests/snapshot_with_quiesce_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/start_on_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/start_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/suspend_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/sync_data_host.rb +1 -1
- data/lib/fog/compute/xen_server/requests/sync_database_pool.rb +1 -1
- data/lib/fog/compute/xen_server/requests/unpause_server.rb +1 -1
- data/lib/fog/compute/xen_server/requests/unplug_force_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/unplug_pbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/unplug_vbd.rb +1 -1
- data/lib/fog/compute/xen_server/requests/unplug_vif.rb +1 -1
- data/lib/fog/compute/xen_server/requests/update_sr.rb +1 -1
- data/lib/fog/compute/xen_server/requests/update_vdi.rb +1 -1
- data/lib/fog/parsers/xen_server.rb +3 -3
- data/lib/fog/parsers/xen_server/base.rb +1 -1
- data/lib/fog/parsers/xen_server/get_records.rb +1 -1
- data/lib/fog/xen_server/connection.rb +3 -3
- data/lib/fog/xen_server/invalid_login.rb +1 -1
- data/lib/fog/xen_server/nokogiri_stream_parser.rb +3 -3
- data/lib/fog/xen_server/not_found.rb +1 -1
- data/lib/fog/xen_server/request_failed.rb +1 -1
- data/lib/fog/xenserver.rb +12 -12
- data/lib/fog/xenserver/compute.rb +1 -0
- data/lib/fog/xenserver/version.rb +1 -1
- metadata +82 -139
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
---
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
---
|
2
|
+
SHA512:
|
3
|
+
data.tar.gz: d0ac34b63502b7b35a6bc805c2b2a820f9994a3a2e4a88d2e41b4042dd5bd53522abd4cb9f8c28ec74fcc5c3fbe1230bb8efa8f28c6ba279b11fb381f7221608
|
4
|
+
metadata.gz: 522acc12e5a3405b1d2194c04201c2c4de4d963a7f3c0f91415fedc0b73ba6530fb41e16425de27260be369fbf11407b071299eeed9f8e10a06f219ce4028996
|
5
|
+
SHA1:
|
6
|
+
data.tar.gz: e52e7c087cd6034f4ebaf9af941c21feb77ca749
|
7
|
+
metadata.gz: e0a54caf0e1052f809c836a58facebac1151ea51
|
data/.rubocop
CHANGED
@@ -1,26 +1,23 @@
|
|
1
|
-
|
2
|
-
Enabled: true
|
3
|
-
|
4
|
-
HashSyntax:
|
1
|
+
Metrics/LineLength:
|
5
2
|
Enabled: false
|
6
3
|
|
7
|
-
|
4
|
+
Style/EachWithObject:
|
8
5
|
Enabled: false
|
9
6
|
|
10
|
-
|
11
|
-
|
7
|
+
Style/Encoding:
|
8
|
+
EnforcedStyle: when_needed
|
12
9
|
|
13
|
-
|
10
|
+
Style/FormatString:
|
14
11
|
Enabled: false
|
15
12
|
|
16
|
-
|
13
|
+
Style/HashSyntax:
|
17
14
|
Enabled: false
|
18
15
|
|
19
|
-
|
20
|
-
|
16
|
+
Style/SignalException:
|
17
|
+
EnforcedStyle: only_raise
|
21
18
|
|
22
|
-
|
23
|
-
|
19
|
+
Style/StringLiterals:
|
20
|
+
EnforcedStyle: double_quotes
|
24
21
|
|
25
|
-
|
22
|
+
Metrics/LineLength
|
26
23
|
Enabled: false
|
data/lib/fog/bin/xenserver.rb
CHANGED
@@ -14,7 +14,7 @@ class XenServer < Fog::Bin
|
|
14
14
|
hash[key] = case key
|
15
15
|
when :compute
|
16
16
|
Fog::Logger.warning("XenServer[:compute] is not recommended, use Compute[:xenserver] for portability")
|
17
|
-
Fog::Compute.new(:provider =>
|
17
|
+
Fog::Compute.new(:provider => "XenServer")
|
18
18
|
else
|
19
19
|
raise ArgumentError, "Unrecognized service: #{key.inspect}"
|
20
20
|
end
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require
|
1
|
+
require "fog/core"
|
2
2
|
|
3
3
|
module Fog
|
4
4
|
module Compute
|
5
5
|
class XenServer < Fog::Service
|
6
|
-
autoload :Models,
|
7
|
-
autoload :Real,
|
8
|
-
autoload :Mock,
|
6
|
+
autoload :Models, File.expand_path("../xen_server/models", __FILE__)
|
7
|
+
autoload :Real, File.expand_path("../xen_server/real", __FILE__)
|
8
|
+
autoload :Mock, File.expand_path("../xen_server/mock", __FILE__)
|
9
9
|
|
10
10
|
requires :xenserver_username
|
11
11
|
requires :xenserver_password
|
@@ -13,7 +13,7 @@ module Fog
|
|
13
13
|
recognizes :xenserver_defaults
|
14
14
|
recognizes :xenserver_timeout
|
15
15
|
|
16
|
-
model_path
|
16
|
+
model_path "fog/compute/xen_server/models"
|
17
17
|
model :blob
|
18
18
|
collection :blobs
|
19
19
|
model :bond
|
@@ -85,7 +85,7 @@ module Fog
|
|
85
85
|
model :vtpm
|
86
86
|
collection :vtpms
|
87
87
|
|
88
|
-
request_path
|
88
|
+
request_path "fog/compute/xen_server/requests"
|
89
89
|
|
90
90
|
# host
|
91
91
|
request :apply_edition_host
|
@@ -351,4 +351,4 @@ module Fog
|
|
351
351
|
end
|
352
352
|
end
|
353
353
|
end
|
354
|
-
end
|
354
|
+
end
|
@@ -2,80 +2,80 @@ module Fog
|
|
2
2
|
module Compute
|
3
3
|
class XenServer
|
4
4
|
module Models
|
5
|
-
autoload :Blob,
|
6
|
-
autoload :Blobs,
|
7
|
-
autoload :Bond,
|
8
|
-
autoload :Bonds,
|
9
|
-
autoload :ClassMethods,
|
10
|
-
autoload :Collection,
|
11
|
-
autoload :Console,
|
12
|
-
autoload :Consoles,
|
13
|
-
autoload :CrashDump,
|
14
|
-
autoload :CrashDumps,
|
15
|
-
autoload :DrTask,
|
16
|
-
autoload :DrTasks,
|
17
|
-
autoload :GpuGroup,
|
18
|
-
autoload :GpuGroups,
|
19
|
-
autoload :GuestMetrics,
|
20
|
-
autoload :GuestsMetrics,
|
21
|
-
autoload :Host,
|
22
|
-
autoload :HostCpu,
|
23
|
-
autoload :HostCpus,
|
24
|
-
autoload :HostCrashDump,
|
25
|
-
autoload :HostCrashDumps,
|
26
|
-
autoload :HostMetrics,
|
27
|
-
autoload :HostPatch,
|
28
|
-
autoload :HostPatchs,
|
29
|
-
autoload :Hosts,
|
30
|
-
autoload :HostsMetrics,
|
31
|
-
autoload :InstanceMethods,
|
32
|
-
autoload :Model,
|
33
|
-
autoload :Network,
|
34
|
-
autoload :Networks,
|
35
|
-
autoload :Pbd,
|
36
|
-
autoload :Pbds,
|
37
|
-
autoload :Pci,
|
38
|
-
autoload :Pcis,
|
39
|
-
autoload :Pgpu,
|
40
|
-
autoload :Pgpus,
|
41
|
-
autoload :Pif,
|
42
|
-
autoload :PifMetrics,
|
43
|
-
autoload :Pifs,
|
44
|
-
autoload :PifsMetrics,
|
45
|
-
autoload :Pool,
|
46
|
-
autoload :PoolPatch,
|
47
|
-
autoload :PoolPatchs,
|
48
|
-
autoload :Pools,
|
49
|
-
autoload :Role,
|
50
|
-
autoload :Roles,
|
51
|
-
autoload :Server,
|
52
|
-
autoload :ServerAppliance,
|
53
|
-
autoload :ServerAppliances,
|
54
|
-
autoload :ServerMetrics,
|
55
|
-
autoload :ServersMetrics,
|
56
|
-
autoload :Servers,
|
57
|
-
autoload :StorageManager,
|
58
|
-
autoload :StorageManagers,
|
59
|
-
autoload :StorageRepositories,
|
60
|
-
autoload :StorageRepository,
|
61
|
-
autoload :Tunnel,
|
62
|
-
autoload :Tunnels,
|
63
|
-
autoload :Vbd,
|
64
|
-
autoload :VbdMetrics,
|
65
|
-
autoload :Vbds,
|
66
|
-
autoload :VbdsMetrics,
|
67
|
-
autoload :Vdi,
|
68
|
-
autoload :Vdis,
|
69
|
-
autoload :Vif,
|
70
|
-
autoload :VifMetrics,
|
71
|
-
autoload :Vifs,
|
72
|
-
autoload :VifsMetrics,
|
73
|
-
autoload :Vlan,
|
74
|
-
autoload :Vlans,
|
75
|
-
autoload :Vmpp,
|
76
|
-
autoload :Vmpps,
|
77
|
-
autoload :Vtpm,
|
78
|
-
autoload :Vtpms,
|
5
|
+
autoload :Blob, File.expand_path("../models/blob", __FILE__)
|
6
|
+
autoload :Blobs, File.expand_path("../models/blobs", __FILE__)
|
7
|
+
autoload :Bond, File.expand_path("../models/bond", __FILE__)
|
8
|
+
autoload :Bonds, File.expand_path("../models/bonds", __FILE__)
|
9
|
+
autoload :ClassMethods, File.expand_path("../models/class_methods", __FILE__)
|
10
|
+
autoload :Collection, File.expand_path("../models/collection", __FILE__)
|
11
|
+
autoload :Console, File.expand_path("../models/console", __FILE__)
|
12
|
+
autoload :Consoles, File.expand_path("../models/consoles", __FILE__)
|
13
|
+
autoload :CrashDump, File.expand_path("../models/crash_dump", __FILE__)
|
14
|
+
autoload :CrashDumps, File.expand_path("../models/crash_dumps", __FILE__)
|
15
|
+
autoload :DrTask, File.expand_path("../models/dr_task", __FILE__)
|
16
|
+
autoload :DrTasks, File.expand_path("../models/dr_tasks", __FILE__)
|
17
|
+
autoload :GpuGroup, File.expand_path("../models/gpu_group", __FILE__)
|
18
|
+
autoload :GpuGroups, File.expand_path("../models/gpu_groups", __FILE__)
|
19
|
+
autoload :GuestMetrics, File.expand_path("../models/guest_metrics", __FILE__)
|
20
|
+
autoload :GuestsMetrics, File.expand_path("../models/guests_metrics", __FILE__)
|
21
|
+
autoload :Host, File.expand_path("../models/host", __FILE__)
|
22
|
+
autoload :HostCpu, File.expand_path("../models/host_cpu", __FILE__)
|
23
|
+
autoload :HostCpus, File.expand_path("../models/host_cpus", __FILE__)
|
24
|
+
autoload :HostCrashDump, File.expand_path("../models/host_crash_dump", __FILE__)
|
25
|
+
autoload :HostCrashDumps, File.expand_path("../models/host_crash_dumps", __FILE__)
|
26
|
+
autoload :HostMetrics, File.expand_path("../models/host_metrics", __FILE__)
|
27
|
+
autoload :HostPatch, File.expand_path("../models/host_patch", __FILE__)
|
28
|
+
autoload :HostPatchs, File.expand_path("../models/host_patchs", __FILE__)
|
29
|
+
autoload :Hosts, File.expand_path("../models/hosts", __FILE__)
|
30
|
+
autoload :HostsMetrics, File.expand_path("../models/hosts_metrics", __FILE__)
|
31
|
+
autoload :InstanceMethods, File.expand_path("../models/instance_methods", __FILE__)
|
32
|
+
autoload :Model, File.expand_path("../models/model", __FILE__)
|
33
|
+
autoload :Network, File.expand_path("../models/network", __FILE__)
|
34
|
+
autoload :Networks, File.expand_path("../models/networks", __FILE__)
|
35
|
+
autoload :Pbd, File.expand_path("../models/pbd", __FILE__)
|
36
|
+
autoload :Pbds, File.expand_path("../models/pbds", __FILE__)
|
37
|
+
autoload :Pci, File.expand_path("../models/pci", __FILE__)
|
38
|
+
autoload :Pcis, File.expand_path("../models/pcis", __FILE__)
|
39
|
+
autoload :Pgpu, File.expand_path("../models/pgpu", __FILE__)
|
40
|
+
autoload :Pgpus, File.expand_path("../models/pgpus", __FILE__)
|
41
|
+
autoload :Pif, File.expand_path("../models/pif", __FILE__)
|
42
|
+
autoload :PifMetrics, File.expand_path("../models/pif_metrics", __FILE__)
|
43
|
+
autoload :Pifs, File.expand_path("../models/pifs", __FILE__)
|
44
|
+
autoload :PifsMetrics, File.expand_path("../models/pifs_metrics", __FILE__)
|
45
|
+
autoload :Pool, File.expand_path("../models/pool", __FILE__)
|
46
|
+
autoload :PoolPatch, File.expand_path("../models/pool_patch", __FILE__)
|
47
|
+
autoload :PoolPatchs, File.expand_path("../models/pool_patchs", __FILE__)
|
48
|
+
autoload :Pools, File.expand_path("../models/pools", __FILE__)
|
49
|
+
autoload :Role, File.expand_path("../models/role", __FILE__)
|
50
|
+
autoload :Roles, File.expand_path("../models/roles", __FILE__)
|
51
|
+
autoload :Server, File.expand_path("../models/server", __FILE__)
|
52
|
+
autoload :ServerAppliance, File.expand_path("../models/server_appliance", __FILE__)
|
53
|
+
autoload :ServerAppliances, File.expand_path("../models/server_appliances", __FILE__)
|
54
|
+
autoload :ServerMetrics, File.expand_path("../models/server_metrics", __FILE__)
|
55
|
+
autoload :ServersMetrics, File.expand_path("../models/servers_metrics", __FILE__)
|
56
|
+
autoload :Servers, File.expand_path("../models/servers", __FILE__)
|
57
|
+
autoload :StorageManager, File.expand_path("../models/storage_manager", __FILE__)
|
58
|
+
autoload :StorageManagers, File.expand_path("../models/storage_managers", __FILE__)
|
59
|
+
autoload :StorageRepositories, File.expand_path("../models/storage_repositories", __FILE__)
|
60
|
+
autoload :StorageRepository, File.expand_path("../models/storage_repository", __FILE__)
|
61
|
+
autoload :Tunnel, File.expand_path("../models/tunnel", __FILE__)
|
62
|
+
autoload :Tunnels, File.expand_path("../models/tunnels", __FILE__)
|
63
|
+
autoload :Vbd, File.expand_path("../models/vbd", __FILE__)
|
64
|
+
autoload :VbdMetrics, File.expand_path("../models/vbd_metrics", __FILE__)
|
65
|
+
autoload :Vbds, File.expand_path("../models/vbds", __FILE__)
|
66
|
+
autoload :VbdsMetrics, File.expand_path("../models/vbds_metrics", __FILE__)
|
67
|
+
autoload :Vdi, File.expand_path("../models/vdi", __FILE__)
|
68
|
+
autoload :Vdis, File.expand_path("../models/vdis", __FILE__)
|
69
|
+
autoload :Vif, File.expand_path("../models/vif", __FILE__)
|
70
|
+
autoload :VifMetrics, File.expand_path("../models/vif_metrics", __FILE__)
|
71
|
+
autoload :Vifs, File.expand_path("../models/vifs", __FILE__)
|
72
|
+
autoload :VifsMetrics, File.expand_path("../models/vifs_metrics", __FILE__)
|
73
|
+
autoload :Vlan, File.expand_path("../models/vlan", __FILE__)
|
74
|
+
autoload :Vlans, File.expand_path("../models/vlans", __FILE__)
|
75
|
+
autoload :Vmpp, File.expand_path("../models/vmpp", __FILE__)
|
76
|
+
autoload :Vmpps, File.expand_path("../models/vmpps", __FILE__)
|
77
|
+
autoload :Vtpm, File.expand_path("../models/vtpm", __FILE__)
|
78
|
+
autoload :Vtpms, File.expand_path("../models/vtpms", __FILE__)
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
@@ -16,9 +16,9 @@ module Fog
|
|
16
16
|
attribute :bridge
|
17
17
|
attribute :current_operations
|
18
18
|
attribute :default_locking_mode
|
19
|
-
attribute :description, :aliases => :name_description, :default =>
|
19
|
+
attribute :description, :aliases => :name_description, :default => "", :as => :name_description
|
20
20
|
attribute :mtu, :aliases => :MTU, :as => :MTU
|
21
|
-
attribute :name, :aliases => :name_label, :default =>
|
21
|
+
attribute :name, :aliases => :name_label, :default => "", :as => :name_label
|
22
22
|
attribute :other_config, :default => {}
|
23
23
|
attribute :tags
|
24
24
|
attribute :uuid
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "fog/compute/models/server"
|
2
2
|
|
3
3
|
module Fog
|
4
4
|
module Compute
|
@@ -16,9 +16,9 @@ module Fog
|
|
16
16
|
|
17
17
|
identity :reference
|
18
18
|
|
19
|
-
attribute :actions_after_crash, :default =>
|
20
|
-
attribute :actions_after_reboot, :default =>
|
21
|
-
attribute :actions_after_shutdown, :default =>
|
19
|
+
attribute :actions_after_crash, :default => "Restart"
|
20
|
+
attribute :actions_after_reboot, :default => "Restart"
|
21
|
+
attribute :actions_after_shutdown, :default => "Destroy"
|
22
22
|
attribute :allowed_operations
|
23
23
|
attribute :blobs
|
24
24
|
attribute :blocked_operations
|
@@ -26,12 +26,12 @@ module Fog
|
|
26
26
|
attribute :current_operations
|
27
27
|
attribute :domarch
|
28
28
|
attribute :domid
|
29
|
-
attribute :description, :aliases => :name_description, :default =>
|
29
|
+
attribute :description, :aliases => :name_description, :default => "", :as => :name_description
|
30
30
|
attribute :generation_id
|
31
31
|
attribute :ha_always_run
|
32
32
|
attribute :ha_restart_priority
|
33
33
|
attribute :hvm_boot_params, :aliases => :HVM_boot_params, :default => {}, :as => :HVM_boot_params
|
34
|
-
attribute :hvm_boot_policy, :aliases => :HVM_boot_policy, :default =>
|
34
|
+
attribute :hvm_boot_policy, :aliases => :HVM_boot_policy, :default => "", :as => :HVM_boot_policy
|
35
35
|
attribute :hvm_shadow_multiplier, :aliases => :HVM_shadow_multiplier, :as => :HVM_shadow_multiplier
|
36
36
|
attribute :is_a_snapshot
|
37
37
|
attribute :is_a_template, :default => true
|
@@ -39,29 +39,29 @@ module Fog
|
|
39
39
|
attribute :is_snapshot_from_vmpp
|
40
40
|
attribute :last_booted_record
|
41
41
|
attribute :last_boot_cpu_flags, :aliases => :last_boot_CPU_flags, :as => :last_boot_CPU_flags
|
42
|
-
attribute :memory_dynamic_max, :default =>
|
43
|
-
attribute :memory_dynamic_min, :default =>
|
42
|
+
attribute :memory_dynamic_max, :default => "536870912"
|
43
|
+
attribute :memory_dynamic_min, :default => "536870912"
|
44
44
|
attribute :memory_overhead
|
45
|
-
attribute :memory_static_max, :default =>
|
46
|
-
attribute :memory_static_min, :default =>
|
45
|
+
attribute :memory_static_max, :default => "536870912"
|
46
|
+
attribute :memory_static_min, :default => "536870912"
|
47
47
|
attribute :memory_target
|
48
|
-
attribute :name, :aliases => :name_label, :default =>
|
48
|
+
attribute :name, :aliases => :name_label, :default => "", :as => :name_label
|
49
49
|
attribute :order
|
50
50
|
attribute :other_config, :default => {}
|
51
|
-
attribute :pci_bus, :aliases => :PCI_bus, :default =>
|
52
|
-
attribute :platform, :default => {
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
51
|
+
attribute :pci_bus, :aliases => :PCI_bus, :default => "", :as => :PCI_bus
|
52
|
+
attribute :platform, :default => { "nx" => "true",
|
53
|
+
"acpi" => "true",
|
54
|
+
"apic" => "true",
|
55
|
+
"pae" => "true",
|
56
|
+
"viridian" => "true" }
|
57
57
|
attribute :power_state
|
58
|
-
attribute :pv_args, :aliases => :PV_args, :default =>
|
59
|
-
attribute :pv_bootloader, :aliases => :PV_bootloader, :default =>
|
60
|
-
attribute :pv_bootloader_args, :aliases => :PV_bootloader_args, :default =>
|
61
|
-
attribute :pv_kernel, :aliases => :PV_kernel, :default =>
|
62
|
-
attribute :pv_legacy_args, :aliases => :PV_legacy_args, :default =>
|
63
|
-
attribute :pv_ramdisk, :aliases => :PV_ramdisk, :default =>
|
64
|
-
attribute :recommendations, :default =>
|
58
|
+
attribute :pv_args, :aliases => :PV_args, :default => "-- quiet console=hvc0", :as => :PV_args
|
59
|
+
attribute :pv_bootloader, :aliases => :PV_bootloader, :default => "pygrub", :as => :PV_bootloader
|
60
|
+
attribute :pv_bootloader_args, :aliases => :PV_bootloader_args, :default => "", :as => :PV_bootloader_args
|
61
|
+
attribute :pv_kernel, :aliases => :PV_kernel, :default => "", :as => :PV_kernel
|
62
|
+
attribute :pv_legacy_args, :aliases => :PV_legacy_args, :default => "", :as => :PV_legacy_args
|
63
|
+
attribute :pv_ramdisk, :aliases => :PV_ramdisk, :default => "", :as => :PV_ramdisk
|
64
|
+
attribute :recommendations, :default => ""
|
65
65
|
attribute :shutdown_delay
|
66
66
|
attribute :snapshot_info
|
67
67
|
attribute :snapshot_metadata
|
@@ -69,10 +69,10 @@ module Fog
|
|
69
69
|
attribute :start_delay
|
70
70
|
attribute :tags
|
71
71
|
attribute :transportable_snapshot_id
|
72
|
-
attribute :user_version, :default =>
|
72
|
+
attribute :user_version, :default => "0"
|
73
73
|
attribute :uuid
|
74
|
-
attribute :vcpus_at_startup, :aliases => :VCPUs_at_startup, :default =>
|
75
|
-
attribute :vcpus_max, :aliases => :VCPUs_max, :default =>
|
74
|
+
attribute :vcpus_at_startup, :aliases => :VCPUs_at_startup, :default => "1", :as => :VCPUs_at_startup
|
75
|
+
attribute :vcpus_max, :aliases => :VCPUs_max, :default => "1", :as => :VCPUs_max
|
76
76
|
attribute :vcpus_params, :aliases => :VCPUs_params, :default => {}, :as => :VCPUs_params
|
77
77
|
attribute :version
|
78
78
|
attribute :xenstore_data
|
@@ -113,12 +113,12 @@ module Fog
|
|
113
113
|
|
114
114
|
def running?
|
115
115
|
reload
|
116
|
-
power_state ==
|
116
|
+
power_state == "Running"
|
117
117
|
end
|
118
118
|
|
119
119
|
def halted?
|
120
120
|
reload
|
121
|
-
power_state ==
|
121
|
+
power_state == "Halted"
|
122
122
|
end
|
123
123
|
|
124
124
|
def destroy
|
@@ -149,11 +149,11 @@ module Fog
|
|
149
149
|
end
|
150
150
|
|
151
151
|
def can_be_cloned?
|
152
|
-
allowed_operations.include?(
|
152
|
+
allowed_operations.include?("clone")
|
153
153
|
end
|
154
154
|
|
155
155
|
def clone(name)
|
156
|
-
raise
|
156
|
+
raise "Clone Operation not Allowed" unless can_be_cloned?
|
157
157
|
self.reference = service.clone_vm(name, self.reference)
|
158
158
|
reload
|
159
159
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
1
|
+
require "fog/core/collection"
|
2
2
|
|
3
3
|
module Fog
|
4
4
|
module Compute
|
@@ -8,22 +8,22 @@ module Fog
|
|
8
8
|
model Fog::Compute::XenServer::Models::Server
|
9
9
|
|
10
10
|
def templates
|
11
|
-
Fog::Logger.deprecation
|
11
|
+
Fog::Logger.deprecation "This method is DEPRECATED. Call #templates directly on the connection instead."
|
12
12
|
service.templates
|
13
13
|
end
|
14
14
|
|
15
15
|
def custom_templates
|
16
|
-
Fog::Logger.deprecation
|
16
|
+
Fog::Logger.deprecation "This method is DEPRECATED. Call #custom_templates directly on the connection instead."
|
17
17
|
service.custom_templates
|
18
18
|
end
|
19
19
|
|
20
20
|
def builtin_templates
|
21
|
-
Fog::Logger.deprecation
|
21
|
+
Fog::Logger.deprecation "This method is DEPRECATED. Call #builtin_templates directly on the connection instead."
|
22
22
|
service.builtin_templates
|
23
23
|
end
|
24
24
|
|
25
25
|
def all(options = {})
|
26
|
-
data = service.get_records
|
26
|
+
data = service.get_records "VM"
|
27
27
|
# Exclude templates
|
28
28
|
data.delete_if { |vm| vm[:is_control_domain] or vm[:is_a_template] }
|
29
29
|
data.delete_if { |vm| vm[:is_a_snapshot] and !options[:include_snapshots] }
|
@@ -13,14 +13,14 @@ module Fog
|
|
13
13
|
|
14
14
|
attribute :allowed_operations
|
15
15
|
attribute :blobs
|
16
|
-
attribute :content_type, :default =>
|
16
|
+
attribute :content_type, :default => "user"
|
17
17
|
attribute :current_operations
|
18
|
-
attribute :description, :aliases => :name_description, :default =>
|
18
|
+
attribute :description, :aliases => :name_description, :default => ""
|
19
19
|
attribute :introduced_by
|
20
20
|
attribute :local_cache_enabled
|
21
21
|
attribute :name, :aliases => :name_label
|
22
22
|
attribute :other_config
|
23
|
-
attribute :physical_size, :default =>
|
23
|
+
attribute :physical_size, :default => "0"
|
24
24
|
attribute :physical_utilisation
|
25
25
|
attribute :shared, :default => false
|
26
26
|
attribute :sm_config, :default => {}
|