/// <summary> /// Creates a new VBD from a Hashtable. /// </summary> /// <param name="table"></param> public VBD(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); allowed_operations = Helper.StringArrayToEnumList <vbd_operations>(Marshalling.ParseStringArray(table, "allowed_operations")); current_operations = Maps.convert_from_proxy_string_vbd_operations(Marshalling.ParseHashTable(table, "current_operations")); VM = Marshalling.ParseRef <VM>(table, "VM"); VDI = Marshalling.ParseRef <VDI>(table, "VDI"); device = Marshalling.ParseString(table, "device"); userdevice = Marshalling.ParseString(table, "userdevice"); bootable = Marshalling.ParseBool(table, "bootable"); mode = (vbd_mode)Helper.EnumParseDefault(typeof(vbd_mode), Marshalling.ParseString(table, "mode")); type = (vbd_type)Helper.EnumParseDefault(typeof(vbd_type), Marshalling.ParseString(table, "type")); unpluggable = Marshalling.ParseBool(table, "unpluggable"); storage_lock = Marshalling.ParseBool(table, "storage_lock"); empty = Marshalling.ParseBool(table, "empty"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); currently_attached = Marshalling.ParseBool(table, "currently_attached"); status_code = Marshalling.ParseLong(table, "status_code"); status_detail = Marshalling.ParseString(table, "status_detail"); runtime_properties = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "runtime_properties")); qos_algorithm_type = Marshalling.ParseString(table, "qos_algorithm_type"); qos_algorithm_params = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "qos_algorithm_params")); qos_supported_algorithms = Marshalling.ParseStringArray(table, "qos_supported_algorithms"); metrics = Marshalling.ParseRef <VBD_metrics>(table, "metrics"); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this VUSB /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("allowed_operations")) { allowed_operations = Helper.StringArrayToEnumList <vusb_operations>(Marshalling.ParseStringArray(table, "allowed_operations")); } if (table.ContainsKey("current_operations")) { current_operations = Maps.convert_from_proxy_string_vusb_operations(Marshalling.ParseHashTable(table, "current_operations")); } if (table.ContainsKey("VM")) { VM = Marshalling.ParseRef <VM>(table, "VM"); } if (table.ContainsKey("USB_group")) { USB_group = Marshalling.ParseRef <USB_group>(table, "USB_group"); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } if (table.ContainsKey("currently_attached")) { currently_attached = Marshalling.ParseBool(table, "currently_attached"); } }
/// <summary> /// Creates a new PIF from a Hashtable. /// </summary> /// <param name="table"></param> public PIF(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); device = Marshalling.ParseString(table, "device"); network = Marshalling.ParseRef <Network>(table, "network"); host = Marshalling.ParseRef <Host>(table, "host"); MAC = Marshalling.ParseString(table, "MAC"); MTU = Marshalling.ParseLong(table, "MTU"); VLAN = Marshalling.ParseLong(table, "VLAN"); metrics = Marshalling.ParseRef <PIF_metrics>(table, "metrics"); physical = Marshalling.ParseBool(table, "physical"); currently_attached = Marshalling.ParseBool(table, "currently_attached"); ip_configuration_mode = (ip_configuration_mode)Helper.EnumParseDefault(typeof(ip_configuration_mode), Marshalling.ParseString(table, "ip_configuration_mode")); IP = Marshalling.ParseString(table, "IP"); netmask = Marshalling.ParseString(table, "netmask"); gateway = Marshalling.ParseString(table, "gateway"); DNS = Marshalling.ParseString(table, "DNS"); bond_slave_of = Marshalling.ParseRef <Bond>(table, "bond_slave_of"); bond_master_of = Marshalling.ParseSetRef <Bond>(table, "bond_master_of"); VLAN_master_of = Marshalling.ParseRef <VLAN>(table, "VLAN_master_of"); VLAN_slave_of = Marshalling.ParseSetRef <VLAN>(table, "VLAN_slave_of"); management = Marshalling.ParseBool(table, "management"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); disallow_unplug = Marshalling.ParseBool(table, "disallow_unplug"); tunnel_access_PIF_of = Marshalling.ParseSetRef <Tunnel>(table, "tunnel_access_PIF_of"); tunnel_transport_PIF_of = Marshalling.ParseSetRef <Tunnel>(table, "tunnel_transport_PIF_of"); ipv6_configuration_mode = (ipv6_configuration_mode)Helper.EnumParseDefault(typeof(ipv6_configuration_mode), Marshalling.ParseString(table, "ipv6_configuration_mode")); IPv6 = Marshalling.ParseStringArray(table, "IPv6"); ipv6_gateway = Marshalling.ParseString(table, "ipv6_gateway"); primary_address_type = (primary_address_type)Helper.EnumParseDefault(typeof(primary_address_type), Marshalling.ParseString(table, "primary_address_type")); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this SM /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("name_label")) { name_label = Marshalling.ParseString(table, "name_label"); } if (table.ContainsKey("name_description")) { name_description = Marshalling.ParseString(table, "name_description"); } if (table.ContainsKey("type")) { type = Marshalling.ParseString(table, "type"); } if (table.ContainsKey("vendor")) { vendor = Marshalling.ParseString(table, "vendor"); } if (table.ContainsKey("copyright")) { copyright = Marshalling.ParseString(table, "copyright"); } if (table.ContainsKey("version")) { version = Marshalling.ParseString(table, "version"); } if (table.ContainsKey("required_api_version")) { required_api_version = Marshalling.ParseString(table, "required_api_version"); } if (table.ContainsKey("configuration")) { configuration = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "configuration")); } if (table.ContainsKey("capabilities")) { capabilities = Marshalling.ParseStringArray(table, "capabilities"); } if (table.ContainsKey("features")) { features = Maps.convert_from_proxy_string_long(Marshalling.ParseHashTable(table, "features")); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } if (table.ContainsKey("driver_filename")) { driver_filename = Marshalling.ParseString(table, "driver_filename"); } if (table.ContainsKey("required_cluster_stack")) { required_cluster_stack = Marshalling.ParseStringArray(table, "required_cluster_stack"); } }
/// <summary> /// Creates a new PVS_server from a Hashtable. /// </summary> /// <param name="table"></param> public PVS_server(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); addresses = Marshalling.ParseStringArray(table, "addresses"); first_port = Marshalling.ParseLong(table, "first_port"); last_port = Marshalling.ParseLong(table, "last_port"); site = Marshalling.ParseRef <PVS_site>(table, "site"); }
/// <summary> /// Creates a new VUSB from a Hashtable. /// </summary> /// <param name="table"></param> public VUSB(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); allowed_operations = Helper.StringArrayToEnumList <vusb_operations>(Marshalling.ParseStringArray(table, "allowed_operations")); current_operations = Maps.convert_from_proxy_string_vusb_operations(Marshalling.ParseHashTable(table, "current_operations")); VM = Marshalling.ParseRef <VM>(table, "VM"); USB_group = Marshalling.ParseRef <USB_group>(table, "USB_group"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); currently_attached = Marshalling.ParseBool(table, "currently_attached"); }
/// <summary> /// Creates a new GPU_group from a Hashtable. /// </summary> /// <param name="table"></param> public GPU_group(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); PGPUs = Marshalling.ParseSetRef <PGPU>(table, "PGPUs"); VGPUs = Marshalling.ParseSetRef <VGPU>(table, "VGPUs"); GPU_types = Marshalling.ParseStringArray(table, "GPU_types"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); }
/// <summary> /// Creates a new GPU_group from a Hashtable. /// </summary> /// <param name="table"></param> public GPU_group(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); PGPUs = Marshalling.ParseSetRef <PGPU>(table, "PGPUs"); VGPUs = Marshalling.ParseSetRef <VGPU>(table, "VGPUs"); GPU_types = Marshalling.ParseStringArray(table, "GPU_types"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); allocation_algorithm = (allocation_algorithm)Helper.EnumParseDefault(typeof(allocation_algorithm), Marshalling.ParseString(table, "allocation_algorithm")); supported_VGPU_types = Marshalling.ParseSetRef <VGPU_type>(table, "supported_VGPU_types"); enabled_VGPU_types = Marshalling.ParseSetRef <VGPU_type>(table, "enabled_VGPU_types"); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Cluster /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("cluster_hosts")) { cluster_hosts = Marshalling.ParseSetRef <Cluster_host>(table, "cluster_hosts"); } if (table.ContainsKey("pending_forget")) { pending_forget = Marshalling.ParseStringArray(table, "pending_forget"); } if (table.ContainsKey("cluster_token")) { cluster_token = Marshalling.ParseString(table, "cluster_token"); } if (table.ContainsKey("cluster_stack")) { cluster_stack = Marshalling.ParseString(table, "cluster_stack"); } if (table.ContainsKey("allowed_operations")) { allowed_operations = Helper.StringArrayToEnumList <cluster_operation>(Marshalling.ParseStringArray(table, "allowed_operations")); } if (table.ContainsKey("current_operations")) { current_operations = Maps.convert_from_proxy_string_cluster_operation(Marshalling.ParseHashTable(table, "current_operations")); } if (table.ContainsKey("pool_auto_join")) { pool_auto_join = Marshalling.ParseBool(table, "pool_auto_join"); } if (table.ContainsKey("token_timeout")) { token_timeout = Marshalling.ParseDouble(table, "token_timeout"); } if (table.ContainsKey("token_timeout_coefficient")) { token_timeout_coefficient = Marshalling.ParseDouble(table, "token_timeout_coefficient"); } if (table.ContainsKey("cluster_config")) { cluster_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "cluster_config")); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } }
/// <summary> /// Creates a new VM_metrics from a Hashtable. /// </summary> /// <param name="table"></param> public VM_metrics(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); memory_actual = Marshalling.ParseLong(table, "memory_actual"); VCPUs_number = Marshalling.ParseLong(table, "VCPUs_number"); VCPUs_utilisation = Maps.convert_from_proxy_long_double(Marshalling.ParseHashTable(table, "VCPUs_utilisation")); VCPUs_CPU = Maps.convert_from_proxy_long_long(Marshalling.ParseHashTable(table, "VCPUs_CPU")); VCPUs_params = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "VCPUs_params")); VCPUs_flags = Maps.convert_from_proxy_long_string_array(Marshalling.ParseHashTable(table, "VCPUs_flags")); state = Marshalling.ParseStringArray(table, "state"); start_time = Marshalling.ParseDateTime(table, "start_time"); install_time = Marshalling.ParseDateTime(table, "install_time"); last_updated = Marshalling.ParseDateTime(table, "last_updated"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); }
/// <summary> /// Creates a new SM from a Hashtable. /// </summary> /// <param name="table"></param> public SM(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); type = Marshalling.ParseString(table, "type"); vendor = Marshalling.ParseString(table, "vendor"); copyright = Marshalling.ParseString(table, "copyright"); version = Marshalling.ParseString(table, "version"); required_api_version = Marshalling.ParseString(table, "required_api_version"); configuration = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "configuration")); capabilities = Marshalling.ParseStringArray(table, "capabilities"); features = Maps.convert_from_proxy_string_long(Marshalling.ParseHashTable(table, "features")); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); driver_filename = Marshalling.ParseString(table, "driver_filename"); }
/// <summary> /// Creates a new Network from a Hashtable. /// </summary> /// <param name="table"></param> public Network(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); allowed_operations = Helper.StringArrayToEnumList <network_operations>(Marshalling.ParseStringArray(table, "allowed_operations")); current_operations = Maps.convert_from_proxy_string_network_operations(Marshalling.ParseHashTable(table, "current_operations")); VIFs = Marshalling.ParseSetRef <VIF>(table, "VIFs"); PIFs = Marshalling.ParseSetRef <PIF>(table, "PIFs"); MTU = Marshalling.ParseLong(table, "MTU"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); bridge = Marshalling.ParseString(table, "bridge"); blobs = Maps.convert_from_proxy_string_XenRefBlob(Marshalling.ParseHashTable(table, "blobs")); tags = Marshalling.ParseStringArray(table, "tags"); default_locking_mode = (network_default_locking_mode)Helper.EnumParseDefault(typeof(network_default_locking_mode), Marshalling.ParseString(table, "default_locking_mode")); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this GPU_group /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("name_label")) { name_label = Marshalling.ParseString(table, "name_label"); } if (table.ContainsKey("name_description")) { name_description = Marshalling.ParseString(table, "name_description"); } if (table.ContainsKey("PGPUs")) { PGPUs = Marshalling.ParseSetRef <PGPU>(table, "PGPUs"); } if (table.ContainsKey("VGPUs")) { VGPUs = Marshalling.ParseSetRef <VGPU>(table, "VGPUs"); } if (table.ContainsKey("GPU_types")) { GPU_types = Marshalling.ParseStringArray(table, "GPU_types"); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } if (table.ContainsKey("allocation_algorithm")) { allocation_algorithm = (allocation_algorithm)Helper.EnumParseDefault(typeof(allocation_algorithm), Marshalling.ParseString(table, "allocation_algorithm")); } if (table.ContainsKey("supported_VGPU_types")) { supported_VGPU_types = Marshalling.ParseSetRef <VGPU_type>(table, "supported_VGPU_types"); } if (table.ContainsKey("enabled_VGPU_types")) { enabled_VGPU_types = Marshalling.ParseSetRef <VGPU_type>(table, "enabled_VGPU_types"); } }
/// <summary> /// Creates a new Task from a Hashtable. /// </summary> /// <param name="table"></param> public Task(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); allowed_operations = Helper.StringArrayToEnumList <task_allowed_operations>(Marshalling.ParseStringArray(table, "allowed_operations")); current_operations = Maps.convert_from_proxy_string_task_allowed_operations(Marshalling.ParseHashTable(table, "current_operations")); created = Marshalling.ParseDateTime(table, "created"); finished = Marshalling.ParseDateTime(table, "finished"); status = (task_status_type)Helper.EnumParseDefault(typeof(task_status_type), Marshalling.ParseString(table, "status")); resident_on = Marshalling.ParseRef <Host>(table, "resident_on"); progress = Marshalling.ParseDouble(table, "progress"); type = Marshalling.ParseString(table, "type"); result = Marshalling.ParseString(table, "result"); error_info = Marshalling.ParseStringArray(table, "error_info"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); subtask_of = Marshalling.ParseRef <Task>(table, "subtask_of"); subtasks = Marshalling.ParseSetRef <Task>(table, "subtasks"); }
/// <summary> /// Creates a new SR from a Hashtable. /// </summary> /// <param name="table"></param> public SR(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); allowed_operations = Helper.StringArrayToEnumList <storage_operations>(Marshalling.ParseStringArray(table, "allowed_operations")); current_operations = Maps.convert_from_proxy_string_storage_operations(Marshalling.ParseHashTable(table, "current_operations")); VDIs = Marshalling.ParseSetRef <VDI>(table, "VDIs"); PBDs = Marshalling.ParseSetRef <PBD>(table, "PBDs"); virtual_allocation = Marshalling.ParseLong(table, "virtual_allocation"); physical_utilisation = Marshalling.ParseLong(table, "physical_utilisation"); physical_size = Marshalling.ParseLong(table, "physical_size"); type = Marshalling.ParseString(table, "type"); content_type = Marshalling.ParseString(table, "content_type"); shared = Marshalling.ParseBool(table, "shared"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); tags = Marshalling.ParseStringArray(table, "tags"); sm_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "sm_config")); blobs = Maps.convert_from_proxy_string_XenRefBlob(Marshalling.ParseHashTable(table, "blobs")); local_cache_enabled = Marshalling.ParseBool(table, "local_cache_enabled"); introduced_by = Marshalling.ParseRef <DR_task>(table, "introduced_by"); }
/// <summary> /// Creates a new VMPP from a Hashtable. /// </summary> /// <param name="table"></param> public VMPP(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); is_policy_enabled = Marshalling.ParseBool(table, "is_policy_enabled"); backup_type = (vmpp_backup_type)Helper.EnumParseDefault(typeof(vmpp_backup_type), Marshalling.ParseString(table, "backup_type")); backup_retention_value = Marshalling.ParseLong(table, "backup_retention_value"); backup_frequency = (vmpp_backup_frequency)Helper.EnumParseDefault(typeof(vmpp_backup_frequency), Marshalling.ParseString(table, "backup_frequency")); backup_schedule = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "backup_schedule")); is_backup_running = Marshalling.ParseBool(table, "is_backup_running"); backup_last_run_time = Marshalling.ParseDateTime(table, "backup_last_run_time"); archive_target_type = (vmpp_archive_target_type)Helper.EnumParseDefault(typeof(vmpp_archive_target_type), Marshalling.ParseString(table, "archive_target_type")); archive_target_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "archive_target_config")); archive_frequency = (vmpp_archive_frequency)Helper.EnumParseDefault(typeof(vmpp_archive_frequency), Marshalling.ParseString(table, "archive_frequency")); archive_schedule = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "archive_schedule")); is_archive_running = Marshalling.ParseBool(table, "is_archive_running"); archive_last_run_time = Marshalling.ParseDateTime(table, "archive_last_run_time"); VMs = Marshalling.ParseSetRef <VM>(table, "VMs"); is_alarm_enabled = Marshalling.ParseBool(table, "is_alarm_enabled"); alarm_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "alarm_config")); recent_alerts = Marshalling.ParseStringArray(table, "recent_alerts"); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this PVS_server /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("addresses")) { addresses = Marshalling.ParseStringArray(table, "addresses"); } if (table.ContainsKey("first_port")) { first_port = Marshalling.ParseLong(table, "first_port"); } if (table.ContainsKey("last_port")) { last_port = Marshalling.ParseLong(table, "last_port"); } if (table.ContainsKey("site")) { site = Marshalling.ParseRef <PVS_site>(table, "site"); } }
/// <summary> /// Creates a new VIF from a Hashtable. /// </summary> /// <param name="table"></param> public VIF(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); allowed_operations = Helper.StringArrayToEnumList <vif_operations>(Marshalling.ParseStringArray(table, "allowed_operations")); current_operations = Maps.convert_from_proxy_string_vif_operations(Marshalling.ParseHashTable(table, "current_operations")); device = Marshalling.ParseString(table, "device"); network = Marshalling.ParseRef <Network>(table, "network"); VM = Marshalling.ParseRef <VM>(table, "VM"); MAC = Marshalling.ParseString(table, "MAC"); MTU = Marshalling.ParseLong(table, "MTU"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); currently_attached = Marshalling.ParseBool(table, "currently_attached"); status_code = Marshalling.ParseLong(table, "status_code"); status_detail = Marshalling.ParseString(table, "status_detail"); runtime_properties = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "runtime_properties")); qos_algorithm_type = Marshalling.ParseString(table, "qos_algorithm_type"); qos_algorithm_params = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "qos_algorithm_params")); qos_supported_algorithms = Marshalling.ParseStringArray(table, "qos_supported_algorithms"); metrics = Marshalling.ParseRef <VIF_metrics>(table, "metrics"); MAC_autogenerated = Marshalling.ParseBool(table, "MAC_autogenerated"); locking_mode = (vif_locking_mode)Helper.EnumParseDefault(typeof(vif_locking_mode), Marshalling.ParseString(table, "locking_mode")); ipv4_allowed = Marshalling.ParseStringArray(table, "ipv4_allowed"); ipv6_allowed = Marshalling.ParseStringArray(table, "ipv6_allowed"); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Pool_patch /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("name_label")) { name_label = Marshalling.ParseString(table, "name_label"); } if (table.ContainsKey("name_description")) { name_description = Marshalling.ParseString(table, "name_description"); } if (table.ContainsKey("version")) { version = Marshalling.ParseString(table, "version"); } if (table.ContainsKey("size")) { size = Marshalling.ParseLong(table, "size"); } if (table.ContainsKey("pool_applied")) { pool_applied = Marshalling.ParseBool(table, "pool_applied"); } if (table.ContainsKey("host_patches")) { host_patches = Marshalling.ParseSetRef <Host_patch>(table, "host_patches"); } if (table.ContainsKey("after_apply_guidance")) { after_apply_guidance = Helper.StringArrayToEnumList <after_apply_guidance>(Marshalling.ParseStringArray(table, "after_apply_guidance")); } if (table.ContainsKey("pool_update")) { pool_update = Marshalling.ParseRef <Pool_update>(table, "pool_update"); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } }
/// <summary> /// Creates a new VM_appliance from a Hashtable. /// </summary> /// <param name="table"></param> public VM_appliance(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); allowed_operations = Helper.StringArrayToEnumList <vm_appliance_operation>(Marshalling.ParseStringArray(table, "allowed_operations")); current_operations = Maps.convert_from_proxy_string_vm_appliance_operation(Marshalling.ParseHashTable(table, "current_operations")); VMs = Marshalling.ParseSetRef <VM>(table, "VMs"); }
/// <summary> /// Creates a new Pool_update from a Hashtable. /// </summary> /// <param name="table"></param> public Pool_update(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); version = Marshalling.ParseString(table, "version"); installation_size = Marshalling.ParseLong(table, "installation_size"); key = Marshalling.ParseString(table, "key"); after_apply_guidance = Helper.StringArrayToEnumList <update_after_apply_guidance>(Marshalling.ParseStringArray(table, "after_apply_guidance")); vdi = Marshalling.ParseRef <VDI>(table, "vdi"); hosts = Marshalling.ParseSetRef <Host>(table, "hosts"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); enforce_homogeneity = Marshalling.ParseBool(table, "enforce_homogeneity"); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Cluster_host /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("cluster")) { cluster = Marshalling.ParseRef <Cluster>(table, "cluster"); } if (table.ContainsKey("host")) { host = Marshalling.ParseRef <Host>(table, "host"); } if (table.ContainsKey("enabled")) { enabled = Marshalling.ParseBool(table, "enabled"); } if (table.ContainsKey("PIF")) { PIF = Marshalling.ParseRef <PIF>(table, "PIF"); } if (table.ContainsKey("joined")) { joined = Marshalling.ParseBool(table, "joined"); } if (table.ContainsKey("allowed_operations")) { allowed_operations = Helper.StringArrayToEnumList <cluster_host_operation>(Marshalling.ParseStringArray(table, "allowed_operations")); } if (table.ContainsKey("current_operations")) { current_operations = Maps.convert_from_proxy_string_cluster_host_operation(Marshalling.ParseHashTable(table, "current_operations")); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } }
/// <summary> /// Creates a new Pool_update from a Hashtable. /// </summary> /// <param name="table"></param> public Pool_update(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); installation_size = Marshalling.ParseLong(table, "installation_size"); key = Marshalling.ParseString(table, "key"); after_apply_guidance = Helper.StringArrayToEnumList <update_after_apply_guidance>(Marshalling.ParseStringArray(table, "after_apply_guidance")); vdi = Marshalling.ParseRef <VDI>(table, "vdi"); hosts = Marshalling.ParseSetRef <Host>(table, "hosts"); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this VM_appliance /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("name_label")) { name_label = Marshalling.ParseString(table, "name_label"); } if (table.ContainsKey("name_description")) { name_description = Marshalling.ParseString(table, "name_description"); } if (table.ContainsKey("allowed_operations")) { allowed_operations = Helper.StringArrayToEnumList <vm_appliance_operation>(Marshalling.ParseStringArray(table, "allowed_operations")); } if (table.ContainsKey("current_operations")) { current_operations = Maps.convert_from_proxy_string_vm_appliance_operation(Marshalling.ParseHashTable(table, "current_operations")); } if (table.ContainsKey("VMs")) { VMs = Marshalling.ParseSetRef <VM>(table, "VMs"); } }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this VM_metrics /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("memory_actual")) { memory_actual = Marshalling.ParseLong(table, "memory_actual"); } if (table.ContainsKey("VCPUs_number")) { VCPUs_number = Marshalling.ParseLong(table, "VCPUs_number"); } if (table.ContainsKey("VCPUs_utilisation")) { VCPUs_utilisation = Maps.convert_from_proxy_long_double(Marshalling.ParseHashTable(table, "VCPUs_utilisation")); } if (table.ContainsKey("VCPUs_CPU")) { VCPUs_CPU = Maps.convert_from_proxy_long_long(Marshalling.ParseHashTable(table, "VCPUs_CPU")); } if (table.ContainsKey("VCPUs_params")) { VCPUs_params = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "VCPUs_params")); } if (table.ContainsKey("VCPUs_flags")) { VCPUs_flags = Maps.convert_from_proxy_long_string_array(Marshalling.ParseHashTable(table, "VCPUs_flags")); } if (table.ContainsKey("state")) { state = Marshalling.ParseStringArray(table, "state"); } if (table.ContainsKey("start_time")) { start_time = Marshalling.ParseDateTime(table, "start_time"); } if (table.ContainsKey("install_time")) { install_time = Marshalling.ParseDateTime(table, "install_time"); } if (table.ContainsKey("last_updated")) { last_updated = Marshalling.ParseDateTime(table, "last_updated"); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } if (table.ContainsKey("hvm")) { hvm = Marshalling.ParseBool(table, "hvm"); } if (table.ContainsKey("nested_virt")) { nested_virt = Marshalling.ParseBool(table, "nested_virt"); } if (table.ContainsKey("nomigrate")) { nomigrate = Marshalling.ParseBool(table, "nomigrate"); } if (table.ContainsKey("current_domain_type")) { current_domain_type = (domain_type)Helper.EnumParseDefault(typeof(domain_type), Marshalling.ParseString(table, "current_domain_type")); } }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Pool_update /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("name_label")) { name_label = Marshalling.ParseString(table, "name_label"); } if (table.ContainsKey("name_description")) { name_description = Marshalling.ParseString(table, "name_description"); } if (table.ContainsKey("version")) { version = Marshalling.ParseString(table, "version"); } if (table.ContainsKey("installation_size")) { installation_size = Marshalling.ParseLong(table, "installation_size"); } if (table.ContainsKey("key")) { key = Marshalling.ParseString(table, "key"); } if (table.ContainsKey("after_apply_guidance")) { after_apply_guidance = Helper.StringArrayToEnumList <update_after_apply_guidance>(Marshalling.ParseStringArray(table, "after_apply_guidance")); } if (table.ContainsKey("vdi")) { vdi = Marshalling.ParseRef <VDI>(table, "vdi"); } if (table.ContainsKey("hosts")) { hosts = Marshalling.ParseSetRef <Host>(table, "hosts"); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } if (table.ContainsKey("enforce_homogeneity")) { enforce_homogeneity = Marshalling.ParseBool(table, "enforce_homogeneity"); } }
/// <summary> /// Creates a new Pool_patch from a Hashtable. /// </summary> /// <param name="table"></param> public Pool_patch(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); version = Marshalling.ParseString(table, "version"); size = Marshalling.ParseLong(table, "size"); pool_applied = Marshalling.ParseBool(table, "pool_applied"); host_patches = Marshalling.ParseSetRef <Host_patch>(table, "host_patches"); after_apply_guidance = Helper.StringArrayToEnumList <after_apply_guidance>(Marshalling.ParseStringArray(table, "after_apply_guidance")); pool_update = Marshalling.ParseRef <Pool_update>(table, "pool_update"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Task /// with the values listed in the Hashtable. Note that only the fields contained /// in the Hashtable will be updated and the rest will remain the same. /// </summary> /// <param name="table"></param> public void UpdateFrom(Hashtable table) { if (table.ContainsKey("uuid")) { uuid = Marshalling.ParseString(table, "uuid"); } if (table.ContainsKey("name_label")) { name_label = Marshalling.ParseString(table, "name_label"); } if (table.ContainsKey("name_description")) { name_description = Marshalling.ParseString(table, "name_description"); } if (table.ContainsKey("allowed_operations")) { allowed_operations = Helper.StringArrayToEnumList <task_allowed_operations>(Marshalling.ParseStringArray(table, "allowed_operations")); } if (table.ContainsKey("current_operations")) { current_operations = Maps.convert_from_proxy_string_task_allowed_operations(Marshalling.ParseHashTable(table, "current_operations")); } if (table.ContainsKey("created")) { created = Marshalling.ParseDateTime(table, "created"); } if (table.ContainsKey("finished")) { finished = Marshalling.ParseDateTime(table, "finished"); } if (table.ContainsKey("status")) { status = (task_status_type)Helper.EnumParseDefault(typeof(task_status_type), Marshalling.ParseString(table, "status")); } if (table.ContainsKey("resident_on")) { resident_on = Marshalling.ParseRef <Host>(table, "resident_on"); } if (table.ContainsKey("progress")) { progress = Marshalling.ParseDouble(table, "progress"); } if (table.ContainsKey("type")) { type = Marshalling.ParseString(table, "type"); } if (table.ContainsKey("result")) { result = Marshalling.ParseString(table, "result"); } if (table.ContainsKey("error_info")) { error_info = Marshalling.ParseStringArray(table, "error_info"); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } if (table.ContainsKey("subtask_of")) { subtask_of = Marshalling.ParseRef <Task>(table, "subtask_of"); } if (table.ContainsKey("subtasks")) { subtasks = Marshalling.ParseSetRef <Task>(table, "subtasks"); } if (table.ContainsKey("backtrace")) { backtrace = Marshalling.ParseString(table, "backtrace"); } }