/// <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> /// Creates a new Console from a Hashtable. /// </summary> /// <param name="table"></param> public Console(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); protocol = (console_protocol)Helper.EnumParseDefault(typeof(console_protocol), Marshalling.ParseString(table, "protocol")); location = Marshalling.ParseString(table, "location"); VM = Marshalling.ParseRef <VM>(table, "VM"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); }
/// <summary> /// Creates a new VMSS from a Hashtable. /// </summary> /// <param name="table"></param> public VMSS(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); enabled = Marshalling.ParseBool(table, "enabled"); type = (vmss_type)Helper.EnumParseDefault(typeof(vmss_type), Marshalling.ParseString(table, "type")); retained_snapshots = Marshalling.ParseLong(table, "retained_snapshots"); frequency = (vmss_frequency)Helper.EnumParseDefault(typeof(vmss_frequency), Marshalling.ParseString(table, "frequency")); schedule = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "schedule")); last_run_time = Marshalling.ParseDateTime(table, "last_run_time"); VMs = Marshalling.ParseSetRef <VM>(table, "VMs"); }
/// <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"); } }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this VMSS /// 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("enabled")) { enabled = Marshalling.ParseBool(table, "enabled"); } if (table.ContainsKey("type")) { type = (vmss_type)Helper.EnumParseDefault(typeof(vmss_type), Marshalling.ParseString(table, "type")); } if (table.ContainsKey("retained_snapshots")) { retained_snapshots = Marshalling.ParseLong(table, "retained_snapshots"); } if (table.ContainsKey("frequency")) { frequency = (vmss_frequency)Helper.EnumParseDefault(typeof(vmss_frequency), Marshalling.ParseString(table, "frequency")); } if (table.ContainsKey("schedule")) { schedule = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "schedule")); } if (table.ContainsKey("last_run_time")) { last_run_time = Marshalling.ParseDateTime(table, "last_run_time"); } if (table.ContainsKey("VMs")) { VMs = Marshalling.ParseSetRef <VM>(table, "VMs"); } }
/// <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> /// Creates a new VM_guest_metrics from a Hashtable. /// </summary> /// <param name="table"></param> public VM_guest_metrics(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); os_version = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "os_version")); PV_drivers_version = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "PV_drivers_version")); PV_drivers_up_to_date = Marshalling.ParseBool(table, "PV_drivers_up_to_date"); network_paths_optimized = Marshalling.ParseBool(table, "network_paths_optimized"); storage_paths_optimized = Marshalling.ParseBool(table, "storage_paths_optimized"); memory = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "memory")); disks = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "disks")); networks = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "networks")); other = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other")); last_updated = Marshalling.ParseDateTime(table, "last_updated"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); live = Marshalling.ParseBool(table, "live"); can_use_hotplug_vbd = (tristate_type)Helper.EnumParseDefault(typeof(tristate_type), Marshalling.ParseString(table, "can_use_hotplug_vbd")); can_use_hotplug_vif = (tristate_type)Helper.EnumParseDefault(typeof(tristate_type), Marshalling.ParseString(table, "can_use_hotplug_vif")); }
/// <summary> /// Creates a new VGPU_type from a Hashtable. /// </summary> /// <param name="table"></param> public VGPU_type(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); vendor_name = Marshalling.ParseString(table, "vendor_name"); model_name = Marshalling.ParseString(table, "model_name"); framebuffer_size = Marshalling.ParseLong(table, "framebuffer_size"); max_heads = Marshalling.ParseLong(table, "max_heads"); max_resolution_x = Marshalling.ParseLong(table, "max_resolution_x"); max_resolution_y = Marshalling.ParseLong(table, "max_resolution_y"); supported_on_PGPUs = Marshalling.ParseSetRef <PGPU>(table, "supported_on_PGPUs"); enabled_on_PGPUs = Marshalling.ParseSetRef <PGPU>(table, "enabled_on_PGPUs"); VGPUs = Marshalling.ParseSetRef <VGPU>(table, "VGPUs"); supported_on_GPU_groups = Marshalling.ParseSetRef <GPU_group>(table, "supported_on_GPU_groups"); enabled_on_GPU_groups = Marshalling.ParseSetRef <GPU_group>(table, "enabled_on_GPU_groups"); implementation = (vgpu_type_implementation)Helper.EnumParseDefault(typeof(vgpu_type_implementation), Marshalling.ParseString(table, "implementation")); identifier = Marshalling.ParseString(table, "identifier"); experimental = Marshalling.ParseBool(table, "experimental"); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this SDN_controller /// 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("protocol")) { protocol = (sdn_controller_protocol)Helper.EnumParseDefault(typeof(sdn_controller_protocol), Marshalling.ParseString(table, "protocol")); } if (table.ContainsKey("address")) { address = Marshalling.ParseString(table, "address"); } if (table.ContainsKey("port")) { port = Marshalling.ParseLong(table, "port"); } }
/// <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> /// Creates a new SDN_controller from a Hashtable. /// </summary> /// <param name="table"></param> public SDN_controller(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); protocol = (sdn_controller_protocol)Helper.EnumParseDefault(typeof(sdn_controller_protocol), Marshalling.ParseString(table, "protocol")); address = Marshalling.ParseString(table, "address"); port = Marshalling.ParseLong(table, "port"); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Console /// 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("protocol")) { protocol = (console_protocol)Helper.EnumParseDefault(typeof(console_protocol), Marshalling.ParseString(table, "protocol")); } if (table.ContainsKey("location")) { location = Marshalling.ParseString(table, "location"); } if (table.ContainsKey("VM")) { VM = Marshalling.ParseRef <VM>(table, "VM"); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } }
/// <summary> /// Creates a new VTPM from a Hashtable. /// </summary> /// <param name="table"></param> public VTPM(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); VM = Marshalling.ParseRef <VM>(table, "VM"); backend = Marshalling.ParseRef <VM>(table, "backend"); }
/// <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"); backtrace = Marshalling.ParseString(table, "backtrace"); }
/// <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 PVS_proxy from a Hashtable. /// </summary> /// <param name="table"></param> public PVS_proxy(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); site = Marshalling.ParseRef <PVS_site>(table, "site"); VIF = Marshalling.ParseRef <VIF>(table, "VIF"); currently_attached = Marshalling.ParseBool(table, "currently_attached"); status = (pvs_proxy_status)Helper.EnumParseDefault(typeof(pvs_proxy_status), Marshalling.ParseString(table, "status")); }
/// <summary> /// Creates a new Secret from a Hashtable. /// </summary> /// <param name="table"></param> public Secret(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); value = Marshalling.ParseString(table, "value"); 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 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 PGPU /// 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("PCI")) { PCI = Marshalling.ParseRef <PCI>(table, "PCI"); } if (table.ContainsKey("GPU_group")) { GPU_group = Marshalling.ParseRef <GPU_group>(table, "GPU_group"); } if (table.ContainsKey("host")) { host = Marshalling.ParseRef <Host>(table, "host"); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } 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"); } if (table.ContainsKey("resident_VGPUs")) { resident_VGPUs = Marshalling.ParseSetRef <VGPU>(table, "resident_VGPUs"); } if (table.ContainsKey("supported_VGPU_max_capacities")) { supported_VGPU_max_capacities = Maps.convert_from_proxy_XenRefVGPU_type_long(Marshalling.ParseHashTable(table, "supported_VGPU_max_capacities")); } if (table.ContainsKey("dom0_access")) { dom0_access = (pgpu_dom0_access)Helper.EnumParseDefault(typeof(pgpu_dom0_access), Marshalling.ParseString(table, "dom0_access")); } if (table.ContainsKey("is_system_display_device")) { is_system_display_device = Marshalling.ParseBool(table, "is_system_display_device"); } if (table.ContainsKey("compatibility_metadata")) { compatibility_metadata = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "compatibility_metadata")); } }
/// <summary> /// Creates a new PGPU from a Hashtable. /// </summary> /// <param name="table"></param> public PGPU(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); PCI = Marshalling.ParseRef <PCI>(table, "PCI"); GPU_group = Marshalling.ParseRef <GPU_group>(table, "GPU_group"); host = Marshalling.ParseRef <Host>(table, "host"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); supported_VGPU_types = Marshalling.ParseSetRef <VGPU_type>(table, "supported_VGPU_types"); enabled_VGPU_types = Marshalling.ParseSetRef <VGPU_type>(table, "enabled_VGPU_types"); resident_VGPUs = Marshalling.ParseSetRef <VGPU>(table, "resident_VGPUs"); supported_VGPU_max_capacities = Maps.convert_from_proxy_XenRefVGPU_type_long(Marshalling.ParseHashTable(table, "supported_VGPU_max_capacities")); dom0_access = (pgpu_dom0_access)Helper.EnumParseDefault(typeof(pgpu_dom0_access), Marshalling.ParseString(table, "dom0_access")); is_system_display_device = Marshalling.ParseBool(table, "is_system_display_device"); compatibility_metadata = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "compatibility_metadata")); }
/// <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> /// 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("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.ParseLong(table, "token_timeout"); } if (table.ContainsKey("token_timeout_coefficient")) { token_timeout_coefficient = Marshalling.ParseLong(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 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"); managed = Marshalling.ParseBool(table, "managed"); 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")); assigned_ips = Maps.convert_from_proxy_XenRefVIF_string(Marshalling.ParseHashTable(table, "assigned_ips")); }
/// <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 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> /// Given a Hashtable with field-value pairs, it updates the fields of this Network_sriov /// 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("physical_PIF")) { physical_PIF = Marshalling.ParseRef <PIF>(table, "physical_PIF"); } if (table.ContainsKey("logical_PIF")) { logical_PIF = Marshalling.ParseRef <PIF>(table, "logical_PIF"); } if (table.ContainsKey("requires_reboot")) { requires_reboot = Marshalling.ParseBool(table, "requires_reboot"); } if (table.ContainsKey("configuration_mode")) { configuration_mode = (sriov_configuration_mode)Helper.EnumParseDefault(typeof(sriov_configuration_mode), Marshalling.ParseString(table, "configuration_mode")); } }
/// <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 PGPU from a Hashtable. /// </summary> /// <param name="table"></param> public PGPU(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); PCI = Marshalling.ParseRef <PCI>(table, "PCI"); GPU_group = Marshalling.ParseRef <GPU_group>(table, "GPU_group"); host = Marshalling.ParseRef <Host>(table, "host"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); supported_VGPU_types = Marshalling.ParseSetRef <VGPU_type>(table, "supported_VGPU_types"); enabled_VGPU_types = Marshalling.ParseSetRef <VGPU_type>(table, "enabled_VGPU_types"); resident_VGPUs = Marshalling.ParseSetRef <VGPU>(table, "resident_VGPUs"); supported_VGPU_max_capacities = Maps.convert_from_proxy_XenRefVGPU_type_long(Marshalling.ParseHashTable(table, "supported_VGPU_max_capacities")); }
/// <summary> /// Creates a new DR_task from a Hashtable. /// </summary> /// <param name="table"></param> public DR_task(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); introduced_SRs = Marshalling.ParseSetRef <SR>(table, "introduced_SRs"); }
/// <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"); }