/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Blob /// 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("size")) { size = Marshalling.ParseLong(table, "size"); } if (table.ContainsKey("pubblic")) { pubblic = Marshalling.ParseBool(table, "pubblic"); } if (table.ContainsKey("last_updated")) { last_updated = Marshalling.ParseDateTime(table, "last_updated"); } if (table.ContainsKey("mime_type")) { mime_type = Marshalling.ParseString(table, "mime_type"); } }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Host_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_total")) { memory_total = Marshalling.ParseLong(table, "memory_total"); } if (table.ContainsKey("memory_free")) { memory_free = Marshalling.ParseLong(table, "memory_free"); } if (table.ContainsKey("live")) { live = Marshalling.ParseBool(table, "live"); } 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")); } }
/// <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 Message /// 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")) { name = Marshalling.ParseString(table, "name"); } if (table.ContainsKey("priority")) { priority = Marshalling.ParseLong(table, "priority"); } if (table.ContainsKey("cls")) { cls = (cls)Helper.EnumParseDefault(typeof(cls), Marshalling.ParseString(table, "cls")); } if (table.ContainsKey("obj_uuid")) { obj_uuid = Marshalling.ParseString(table, "obj_uuid"); } if (table.ContainsKey("timestamp")) { timestamp = Marshalling.ParseDateTime(table, "timestamp"); } if (table.ContainsKey("body")) { body = Marshalling.ParseString(table, "body"); } }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Bond /// 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("master")) { master = Marshalling.ParseRef <PIF>(table, "master"); } if (table.ContainsKey("slaves")) { slaves = Marshalling.ParseSetRef <PIF>(table, "slaves"); } if (table.ContainsKey("other_config")) { other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); } if (table.ContainsKey("primary_slave")) { primary_slave = Marshalling.ParseRef <PIF>(table, "primary_slave"); } if (table.ContainsKey("mode")) { mode = (bond_mode)Helper.EnumParseDefault(typeof(bond_mode), Marshalling.ParseString(table, "mode")); } if (table.ContainsKey("properties")) { properties = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "properties")); } if (table.ContainsKey("links_up")) { links_up = Marshalling.ParseLong(table, "links_up"); } }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Sr_stat /// 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("free_space")) { free_space = Marshalling.ParseLong(table, "free_space"); } if (table.ContainsKey("total_space")) { total_space = Marshalling.ParseLong(table, "total_space"); } if (table.ContainsKey("clustered")) { clustered = Marshalling.ParseBool(table, "clustered"); } if (table.ContainsKey("health")) { health = (sr_health)Helper.EnumParseDefault(typeof(sr_health), Marshalling.ParseString(table, "health")); } }
/// <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> /// 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 PVS_cache_storage /// 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("host")) { host = Marshalling.ParseRef <Host>(table, "host"); } if (table.ContainsKey("SR")) { SR = Marshalling.ParseRef <SR>(table, "SR"); } if (table.ContainsKey("site")) { site = Marshalling.ParseRef <PVS_site>(table, "site"); } if (table.ContainsKey("size")) { size = Marshalling.ParseLong(table, "size"); } if (table.ContainsKey("VDI")) { VDI = Marshalling.ParseRef <VDI>(table, "VDI"); } }
/// <summary> /// Creates a new VLAN from a Hashtable. /// </summary> /// <param name="table"></param> public VLAN(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); tagged_PIF = Marshalling.ParseRef <PIF>(table, "tagged_PIF"); untagged_PIF = Marshalling.ParseRef <PIF>(table, "untagged_PIF"); tag = Marshalling.ParseLong(table, "tag"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); }
/// <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 Vdi_nbd_server_info from a Hashtable. /// </summary> /// <param name="table"></param> public Vdi_nbd_server_info(Hashtable table) { exportname = Marshalling.ParseString(table, "exportname"); address = Marshalling.ParseString(table, "address"); port = Marshalling.ParseLong(table, "port"); cert = Marshalling.ParseString(table, "cert"); subject = Marshalling.ParseString(table, "subject"); }
/// <summary> /// Creates a new Host_crashdump from a Hashtable. /// </summary> /// <param name="table"></param> public Host_crashdump(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); host = Marshalling.ParseRef <Host>(table, "host"); timestamp = Marshalling.ParseDateTime(table, "timestamp"); size = Marshalling.ParseLong(table, "size"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); }
/// <summary> /// Creates a new Host_metrics from a Hashtable. /// </summary> /// <param name="table"></param> public Host_metrics(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); memory_total = Marshalling.ParseLong(table, "memory_total"); memory_free = Marshalling.ParseLong(table, "memory_free"); live = Marshalling.ParseBool(table, "live"); last_updated = Marshalling.ParseDateTime(table, "last_updated"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); }
/// <summary> /// Creates a new PVS_cache_storage from a Hashtable. /// </summary> /// <param name="table"></param> public PVS_cache_storage(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); host = Marshalling.ParseRef <Host>(table, "host"); SR = Marshalling.ParseRef <SR>(table, "SR"); site = Marshalling.ParseRef <PVS_site>(table, "site"); size = Marshalling.ParseLong(table, "size"); VDI = Marshalling.ParseRef <VDI>(table, "VDI"); }
/// <summary> /// Creates a new Message from a Hashtable. /// </summary> /// <param name="table"></param> public Message(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name = Marshalling.ParseString(table, "name"); priority = Marshalling.ParseLong(table, "priority"); cls = (cls)Helper.EnumParseDefault(typeof(cls), Marshalling.ParseString(table, "cls")); obj_uuid = Marshalling.ParseString(table, "obj_uuid"); timestamp = Marshalling.ParseDateTime(table, "timestamp"); body = Marshalling.ParseString(table, "body"); }
/// <summary> /// Creates a new Blob from a Hashtable. /// </summary> /// <param name="table"></param> public Blob(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); name_label = Marshalling.ParseString(table, "name_label"); name_description = Marshalling.ParseString(table, "name_description"); size = Marshalling.ParseLong(table, "size"); pubblic = Marshalling.ParseBool(table, "pubblic"); last_updated = Marshalling.ParseDateTime(table, "last_updated"); mime_type = Marshalling.ParseString(table, "mime_type"); }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this PIF_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("io_read_kbs")) { io_read_kbs = Marshalling.ParseDouble(table, "io_read_kbs"); } if (table.ContainsKey("io_write_kbs")) { io_write_kbs = Marshalling.ParseDouble(table, "io_write_kbs"); } if (table.ContainsKey("carrier")) { carrier = Marshalling.ParseBool(table, "carrier"); } if (table.ContainsKey("vendor_id")) { vendor_id = Marshalling.ParseString(table, "vendor_id"); } if (table.ContainsKey("vendor_name")) { vendor_name = Marshalling.ParseString(table, "vendor_name"); } if (table.ContainsKey("device_id")) { device_id = Marshalling.ParseString(table, "device_id"); } if (table.ContainsKey("device_name")) { device_name = Marshalling.ParseString(table, "device_name"); } if (table.ContainsKey("speed")) { speed = Marshalling.ParseLong(table, "speed"); } if (table.ContainsKey("duplex")) { duplex = Marshalling.ParseBool(table, "duplex"); } if (table.ContainsKey("pci_bus_path")) { pci_bus_path = Marshalling.ParseString(table, "pci_bus_path"); } 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")); } }
/// <summary> /// Given a Hashtable with field-value pairs, it updates the fields of this Host_cpu /// 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("host")) { host = Marshalling.ParseRef <Host>(table, "host"); } if (table.ContainsKey("number")) { number = Marshalling.ParseLong(table, "number"); } if (table.ContainsKey("vendor")) { vendor = Marshalling.ParseString(table, "vendor"); } if (table.ContainsKey("speed")) { speed = Marshalling.ParseLong(table, "speed"); } if (table.ContainsKey("modelname")) { modelname = Marshalling.ParseString(table, "modelname"); } if (table.ContainsKey("family")) { family = Marshalling.ParseLong(table, "family"); } if (table.ContainsKey("model")) { model = Marshalling.ParseLong(table, "model"); } if (table.ContainsKey("stepping")) { stepping = Marshalling.ParseString(table, "stepping"); } if (table.ContainsKey("flags")) { flags = Marshalling.ParseString(table, "flags"); } if (table.ContainsKey("features")) { features = Marshalling.ParseString(table, "features"); } if (table.ContainsKey("utilisation")) { utilisation = Marshalling.ParseDouble(table, "utilisation"); } 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> /// Creates a new Bond from a Hashtable. /// </summary> /// <param name="table"></param> public Bond(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); master = Marshalling.ParseRef <PIF>(table, "master"); slaves = Marshalling.ParseSetRef <PIF>(table, "slaves"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); primary_slave = Marshalling.ParseRef <PIF>(table, "primary_slave"); mode = (bond_mode)Helper.EnumParseDefault(typeof(bond_mode), Marshalling.ParseString(table, "mode")); properties = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "properties")); links_up = Marshalling.ParseLong(table, "links_up"); }
/// <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")); 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> /// Creates a new Host_patch from a Hashtable. /// </summary> /// <param name="table"></param> public Host_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"); host = Marshalling.ParseRef <Host>(table, "host"); applied = Marshalling.ParseBool(table, "applied"); timestamp_applied = Marshalling.ParseDateTime(table, "timestamp_applied"); size = Marshalling.ParseLong(table, "size"); pool_patch = Marshalling.ParseRef <Pool_patch>(table, "pool_patch"); 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 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("network")) { network = Marshalling.ParseRef <Network>(table, "network"); } 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 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 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"); }
/// <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 Host_cpu from a Hashtable. /// </summary> /// <param name="table"></param> public Host_cpu(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); host = Marshalling.ParseRef <Host>(table, "host"); number = Marshalling.ParseLong(table, "number"); vendor = Marshalling.ParseString(table, "vendor"); speed = Marshalling.ParseLong(table, "speed"); modelname = Marshalling.ParseString(table, "modelname"); family = Marshalling.ParseLong(table, "family"); model = Marshalling.ParseLong(table, "model"); stepping = Marshalling.ParseString(table, "stepping"); flags = Marshalling.ParseString(table, "flags"); features = Marshalling.ParseString(table, "features"); utilisation = Marshalling.ParseDouble(table, "utilisation"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); }
/// <summary> /// Creates a new PIF_metrics from a Hashtable. /// </summary> /// <param name="table"></param> public PIF_metrics(Hashtable table) { uuid = Marshalling.ParseString(table, "uuid"); io_read_kbs = Marshalling.ParseDouble(table, "io_read_kbs"); io_write_kbs = Marshalling.ParseDouble(table, "io_write_kbs"); carrier = Marshalling.ParseBool(table, "carrier"); vendor_id = Marshalling.ParseString(table, "vendor_id"); vendor_name = Marshalling.ParseString(table, "vendor_name"); device_id = Marshalling.ParseString(table, "device_id"); device_name = Marshalling.ParseString(table, "device_name"); speed = Marshalling.ParseLong(table, "speed"); duplex = Marshalling.ParseBool(table, "duplex"); pci_bus_path = Marshalling.ParseString(table, "pci_bus_path"); last_updated = Marshalling.ParseDateTime(table, "last_updated"); other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config")); }