Exemplo n.º 1
0
 public VBD(Hashtable table)
 {
     this.uuid = Marshalling.ParseString(table, "uuid");
     this.allowed_operations = Helper.StringArrayToEnumList <vbd_operations>(Marshalling.ParseStringArray(table, "allowed_operations"));
     this.current_operations = Maps.convert_from_proxy_string_vbd_operations(Marshalling.ParseHashTable(table, "current_operations"));
     this.VM                       = Marshalling.ParseRef <WinAPI.VM>(table, "VM");
     this.VDI                      = Marshalling.ParseRef <WinAPI.VDI>(table, "VDI");
     this.device                   = Marshalling.ParseString(table, "device");
     this.userdevice               = Marshalling.ParseString(table, "userdevice");
     this.bootable                 = Marshalling.ParseBool(table, "bootable");
     this.mode                     = (vbd_mode)Helper.EnumParseDefault(typeof(vbd_mode), Marshalling.ParseString(table, "mode"));
     this.type                     = (vbd_type)Helper.EnumParseDefault(typeof(vbd_type), Marshalling.ParseString(table, "type"));
     this.unpluggable              = Marshalling.ParseBool(table, "unpluggable");
     this.storage_lock             = Marshalling.ParseBool(table, "storage_lock");
     this.empty                    = Marshalling.ParseBool(table, "empty");
     this.other_config             = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.currently_attached       = Marshalling.ParseBool(table, "currently_attached");
     this.status_code              = Marshalling.ParseLong(table, "status_code");
     this.status_detail            = Marshalling.ParseString(table, "status_detail");
     this.runtime_properties       = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "runtime_properties"));
     this.qos_algorithm_type       = Marshalling.ParseString(table, "qos_algorithm_type");
     this.qos_algorithm_params     = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "qos_algorithm_params"));
     this.qos_supported_algorithms = Marshalling.ParseStringArray(table, "qos_supported_algorithms");
     this.metrics                  = Marshalling.ParseRef <VBD_metrics>(table, "metrics");
 }
Exemplo n.º 2
0
Arquivo: User.cs Projeto: hl10502/WCM
 public User(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.short_name   = Marshalling.ParseString(table, "short_name");
     this.fullname     = Marshalling.ParseString(table, "fullname");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 3
0
 public Crashdump(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.VM           = Marshalling.ParseRef <WinAPI.VM>(table, "VM");
     this.VDI          = Marshalling.ParseRef <WinAPI.VDI>(table, "VDI");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 4
0
 public Subject(Hashtable table)
 {
     this.uuid = Marshalling.ParseString(table, "uuid");
     this.subject_identifier = Marshalling.ParseString(table, "subject_identifier");
     this.other_config       = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.roles = Marshalling.ParseSetRef <Role>(table, "roles");
 }
Exemplo n.º 5
0
 public PIF(Hashtable table)
 {
     this.uuid                  = Marshalling.ParseString(table, "uuid");
     this.device                = Marshalling.ParseString(table, "device");
     this.network               = Marshalling.ParseRef <Network>(table, "network");
     this.host                  = Marshalling.ParseRef <Host>(table, "host");
     this.MAC                   = Marshalling.ParseString(table, "MAC");
     this.MTU                   = Marshalling.ParseLong(table, "MTU");
     this.VLAN                  = Marshalling.ParseLong(table, "VLAN");
     this.metrics               = Marshalling.ParseRef <PIF_metrics>(table, "metrics");
     this.physical              = Marshalling.ParseBool(table, "physical");
     this.currently_attached    = Marshalling.ParseBool(table, "currently_attached");
     this.ip_configuration_mode = (WinAPI.ip_configuration_mode)Helper.EnumParseDefault(typeof(WinAPI.ip_configuration_mode), Marshalling.ParseString(table, "ip_configuration_mode"));
     this.IP                      = Marshalling.ParseString(table, "IP");
     this.netmask                 = Marshalling.ParseString(table, "netmask");
     this.gateway                 = Marshalling.ParseString(table, "gateway");
     this.DNS                     = Marshalling.ParseString(table, "DNS");
     this.bond_slave_of           = Marshalling.ParseRef <Bond>(table, "bond_slave_of");
     this.bond_master_of          = Marshalling.ParseSetRef <Bond>(table, "bond_master_of");
     this.VLAN_master_of          = Marshalling.ParseRef <WinAPI.VLAN>(table, "VLAN_master_of");
     this.VLAN_slave_of           = Marshalling.ParseSetRef <WinAPI.VLAN>(table, "VLAN_slave_of");
     this.management              = Marshalling.ParseBool(table, "management");
     this.other_config            = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.disallow_unplug         = Marshalling.ParseBool(table, "disallow_unplug");
     this.tunnel_access_PIF_of    = Marshalling.ParseSetRef <Tunnel>(table, "tunnel_access_PIF_of");
     this.tunnel_transport_PIF_of = Marshalling.ParseSetRef <Tunnel>(table, "tunnel_transport_PIF_of");
     this.ipv6_configuration_mode = (WinAPI.ipv6_configuration_mode)Helper.EnumParseDefault(typeof(WinAPI.ipv6_configuration_mode), Marshalling.ParseString(table, "ipv6_configuration_mode"));
     this.IPv6                    = Marshalling.ParseStringArray(table, "IPv6");
     this.ipv6_gateway            = Marshalling.ParseString(table, "ipv6_gateway");
     this.primary_address_type    = (WinAPI.primary_address_type)Helper.EnumParseDefault(typeof(WinAPI.primary_address_type), Marshalling.ParseString(table, "primary_address_type"));
 }
Exemplo n.º 6
0
 public VBD_metrics(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.io_read_kbs  = Marshalling.ParseDouble(table, "io_read_kbs");
     this.io_write_kbs = Marshalling.ParseDouble(table, "io_write_kbs");
     this.last_updated = Marshalling.ParseDateTime(table, "last_updated");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 7
0
 public Host_crashdump(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.host         = Marshalling.ParseRef <Host>(table, "host");
     this.timestamp    = Marshalling.ParseDateTime(table, "timestamp");
     this.size         = Marshalling.ParseLong(table, "size");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 8
0
 public VLAN(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.tagged_PIF   = Marshalling.ParseRef <PIF>(table, "tagged_PIF");
     this.untagged_PIF = Marshalling.ParseRef <PIF>(table, "untagged_PIF");
     this.tag          = Marshalling.ParseLong(table, "tag");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 9
0
 public Tunnel(Hashtable table)
 {
     this.uuid          = Marshalling.ParseString(table, "uuid");
     this.access_PIF    = Marshalling.ParseRef <PIF>(table, "access_PIF");
     this.transport_PIF = Marshalling.ParseRef <PIF>(table, "transport_PIF");
     this.status        = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "status"));
     this.other_config  = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 10
0
 public Console(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.protocol     = (console_protocol)Helper.EnumParseDefault(typeof(console_protocol), Marshalling.ParseString(table, "protocol"));
     this.location     = Marshalling.ParseString(table, "location");
     this.VM           = Marshalling.ParseRef <WinAPI.VM>(table, "VM");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 11
0
 public PGPU(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.PCI          = Marshalling.ParseRef <WinAPI.PCI>(table, "PCI");
     this.GPU_group    = Marshalling.ParseRef <WinAPI.GPU_group>(table, "GPU_group");
     this.host         = Marshalling.ParseRef <Host>(table, "host");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 12
0
 public Host_metrics(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.memory_total = Marshalling.ParseLong(table, "memory_total");
     this.memory_free  = Marshalling.ParseLong(table, "memory_free");
     this.live         = Marshalling.ParseBool(table, "live");
     this.last_updated = Marshalling.ParseDateTime(table, "last_updated");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 13
0
 public VGPU(Hashtable table)
 {
     this.uuid               = Marshalling.ParseString(table, "uuid");
     this.VM                 = Marshalling.ParseRef <WinAPI.VM>(table, "VM");
     this.GPU_group          = Marshalling.ParseRef <WinAPI.GPU_group>(table, "GPU_group");
     this.device             = Marshalling.ParseString(table, "device");
     this.currently_attached = Marshalling.ParseBool(table, "currently_attached");
     this.other_config       = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 14
0
Arquivo: PBD.cs Projeto: hl10502/WCM
 public PBD(Hashtable table)
 {
     this.uuid               = Marshalling.ParseString(table, "uuid");
     this.host               = Marshalling.ParseRef <Host>(table, "host");
     this.SR                 = Marshalling.ParseRef <WinAPI.SR>(table, "SR");
     this.device_config      = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "device_config"));
     this.currently_attached = Marshalling.ParseBool(table, "currently_attached");
     this.other_config       = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 15
0
 public GPU_group(Hashtable table)
 {
     this.uuid             = Marshalling.ParseString(table, "uuid");
     this.name_label       = Marshalling.ParseString(table, "name_label");
     this.name_description = Marshalling.ParseString(table, "name_description");
     this.PGPUs            = Marshalling.ParseSetRef <PGPU>(table, "PGPUs");
     this.VGPUs            = Marshalling.ParseSetRef <VGPU>(table, "VGPUs");
     this.GPU_types        = Marshalling.ParseStringArray(table, "GPU_types");
     this.other_config     = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 16
0
 public PCI(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.class_name   = Marshalling.ParseString(table, "class_name");
     this.vendor_name  = Marshalling.ParseString(table, "vendor_name");
     this.device_name  = Marshalling.ParseString(table, "device_name");
     this.host         = Marshalling.ParseRef <Host>(table, "host");
     this.pci_id       = Marshalling.ParseString(table, "pci_id");
     this.dependencies = Marshalling.ParseSetRef <PCI>(table, "dependencies");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 17
0
 public Bond(Hashtable table)
 {
     this.uuid          = Marshalling.ParseString(table, "uuid");
     this.master        = Marshalling.ParseRef <PIF>(table, "master");
     this.slaves        = Marshalling.ParseSetRef <PIF>(table, "slaves");
     this.other_config  = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.primary_slave = Marshalling.ParseRef <PIF>(table, "primary_slave");
     this.mode          = (bond_mode)Helper.EnumParseDefault(typeof(bond_mode), Marshalling.ParseString(table, "mode"));
     this.properties    = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "properties"));
     this.links_up      = Marshalling.ParseLong(table, "links_up");
 }
Exemplo n.º 18
0
 public Pool_patch(Hashtable table)
 {
     this.uuid                 = Marshalling.ParseString(table, "uuid");
     this.name_label           = Marshalling.ParseString(table, "name_label");
     this.name_description     = Marshalling.ParseString(table, "name_description");
     this.version              = Marshalling.ParseString(table, "version");
     this.size                 = Marshalling.ParseLong(table, "size");
     this.pool_applied         = Marshalling.ParseBool(table, "pool_applied");
     this.host_patches         = Marshalling.ParseSetRef <Host_patch>(table, "host_patches");
     this.after_apply_guidance = Helper.StringArrayToEnumList <WinAPI.after_apply_guidance>(Marshalling.ParseStringArray(table, "after_apply_guidance"));
     this.other_config         = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 19
0
 public GPU_group(Hashtable table)
 {
     this.uuid                 = Marshalling.ParseString(table, "uuid");
     this.name_label           = Marshalling.ParseString(table, "name_label");
     this.name_description     = Marshalling.ParseString(table, "name_description");
     this.PGPUs                = Marshalling.ParseSetRef <PGPU>(table, "PGPUs");
     this.VGPUs                = Marshalling.ParseSetRef <VGPU>(table, "VGPUs");
     this.GPU_types            = Marshalling.ParseStringArray(table, "GPU_types");
     this.other_config         = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.allocation_algorithm = (WinAPI.allocation_algorithm)Helper.EnumParseDefault(typeof(WinAPI.allocation_algorithm), Marshalling.ParseString(table, "allocation_algorithm"));
     this.supported_VGPU_types = Marshalling.ParseSetRef <VGPU_type>(table, "supported_VGPU_types");
     this.enabled_VGPU_types   = Marshalling.ParseSetRef <VGPU_type>(table, "enabled_VGPU_types");
 }
Exemplo n.º 20
0
 public Host_patch(Hashtable table)
 {
     this.uuid              = Marshalling.ParseString(table, "uuid");
     this.name_label        = Marshalling.ParseString(table, "name_label");
     this.name_description  = Marshalling.ParseString(table, "name_description");
     this.version           = Marshalling.ParseString(table, "version");
     this.host              = Marshalling.ParseRef <Host>(table, "host");
     this.applied           = Marshalling.ParseBool(table, "applied");
     this.timestamp_applied = Marshalling.ParseDateTime(table, "timestamp_applied");
     this.size              = Marshalling.ParseLong(table, "size");
     this.pool_patch        = Marshalling.ParseRef <Pool_patch>(table, "pool_patch");
     this.other_config      = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 21
0
 public VM_guest_metrics(Hashtable table)
 {
     this.uuid                  = Marshalling.ParseString(table, "uuid");
     this.os_version            = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "os_version"));
     this.PV_drivers_version    = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "PV_drivers_version"));
     this.PV_drivers_up_to_date = Marshalling.ParseBool(table, "PV_drivers_up_to_date");
     this.memory                = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "memory"));
     this.disks                 = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "disks"));
     this.networks              = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "networks"));
     this.other                 = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other"));
     this.last_updated          = Marshalling.ParseDateTime(table, "last_updated");
     this.other_config          = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.live                  = Marshalling.ParseBool(table, "live");
 }
Exemplo n.º 22
0
 public VM_metrics(Hashtable table)
 {
     this.uuid              = Marshalling.ParseString(table, "uuid");
     this.memory_actual     = Marshalling.ParseLong(table, "memory_actual");
     this.VCPUs_number      = Marshalling.ParseLong(table, "VCPUs_number");
     this.VCPUs_utilisation = Maps.convert_from_proxy_long_double(Marshalling.ParseHashTable(table, "VCPUs_utilisation"));
     this.VCPUs_CPU         = Maps.convert_from_proxy_long_long(Marshalling.ParseHashTable(table, "VCPUs_CPU"));
     this.VCPUs_params      = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "VCPUs_params"));
     this.VCPUs_flags       = Maps.convert_from_proxy_long_string_array(Marshalling.ParseHashTable(table, "VCPUs_flags"));
     this.state             = Marshalling.ParseStringArray(table, "state");
     this.start_time        = Marshalling.ParseDateTime(table, "start_time");
     this.install_time      = Marshalling.ParseDateTime(table, "install_time");
     this.last_updated      = Marshalling.ParseDateTime(table, "last_updated");
     this.other_config      = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 23
0
 public Host_cpu(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.host         = Marshalling.ParseRef <Host>(table, "host");
     this.number       = Marshalling.ParseLong(table, "number");
     this.vendor       = Marshalling.ParseString(table, "vendor");
     this.speed        = Marshalling.ParseLong(table, "speed");
     this.modelname    = Marshalling.ParseString(table, "modelname");
     this.family       = Marshalling.ParseLong(table, "family");
     this.model        = Marshalling.ParseLong(table, "model");
     this.stepping     = Marshalling.ParseString(table, "stepping");
     this.flags        = Marshalling.ParseString(table, "flags");
     this.features     = Marshalling.ParseString(table, "features");
     this.utilisation  = Marshalling.ParseDouble(table, "utilisation");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 24
0
 public PIF_metrics(Hashtable table)
 {
     this.uuid         = Marshalling.ParseString(table, "uuid");
     this.io_read_kbs  = Marshalling.ParseDouble(table, "io_read_kbs");
     this.io_write_kbs = Marshalling.ParseDouble(table, "io_write_kbs");
     this.carrier      = Marshalling.ParseBool(table, "carrier");
     this.vendor_id    = Marshalling.ParseString(table, "vendor_id");
     this.vendor_name  = Marshalling.ParseString(table, "vendor_name");
     this.device_id    = Marshalling.ParseString(table, "device_id");
     this.device_name  = Marshalling.ParseString(table, "device_name");
     this.speed        = Marshalling.ParseLong(table, "speed");
     this.duplex       = Marshalling.ParseBool(table, "duplex");
     this.pci_bus_path = Marshalling.ParseString(table, "pci_bus_path");
     this.last_updated = Marshalling.ParseDateTime(table, "last_updated");
     this.other_config = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
 }
Exemplo n.º 25
0
 public SM(Hashtable table)
 {
     this.uuid                 = Marshalling.ParseString(table, "uuid");
     this.name_label           = Marshalling.ParseString(table, "name_label");
     this.name_description     = Marshalling.ParseString(table, "name_description");
     this.type                 = Marshalling.ParseString(table, "type");
     this.vendor               = Marshalling.ParseString(table, "vendor");
     this.copyright            = Marshalling.ParseString(table, "copyright");
     this.version              = Marshalling.ParseString(table, "version");
     this.required_api_version = Marshalling.ParseString(table, "required_api_version");
     this.configuration        = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "configuration"));
     this.capabilities         = Marshalling.ParseStringArray(table, "capabilities");
     this.features             = Maps.convert_from_proxy_string_long(Marshalling.ParseHashTable(table, "features"));
     this.other_config         = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.driver_filename      = Marshalling.ParseString(table, "driver_filename");
 }
Exemplo n.º 26
0
 public Network(Hashtable table)
 {
     this.uuid               = Marshalling.ParseString(table, "uuid");
     this.name_label         = Marshalling.ParseString(table, "name_label");
     this.name_description   = Marshalling.ParseString(table, "name_description");
     this.allowed_operations = Helper.StringArrayToEnumList <network_operations>(Marshalling.ParseStringArray(table, "allowed_operations"));
     this.current_operations = Maps.convert_from_proxy_string_network_operations(Marshalling.ParseHashTable(table, "current_operations"));
     this.VIFs               = Marshalling.ParseSetRef <VIF>(table, "VIFs");
     this.PIFs               = Marshalling.ParseSetRef <PIF>(table, "PIFs");
     this.MTU                  = Marshalling.ParseLong(table, "MTU");
     this.other_config         = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.bridge               = Marshalling.ParseString(table, "bridge");
     this.blobs                = Maps.convert_from_proxy_string_XenRefBlob(Marshalling.ParseHashTable(table, "blobs"));
     this.tags                 = Marshalling.ParseStringArray(table, "tags");
     this.default_locking_mode = (network_default_locking_mode)Helper.EnumParseDefault(typeof(network_default_locking_mode), Marshalling.ParseString(table, "default_locking_mode"));
 }
Exemplo n.º 27
0
 public Task(Hashtable table)
 {
     this.uuid               = Marshalling.ParseString(table, "uuid");
     this.name_label         = Marshalling.ParseString(table, "name_label");
     this.name_description   = Marshalling.ParseString(table, "name_description");
     this.allowed_operations = Helper.StringArrayToEnumList <task_allowed_operations>(Marshalling.ParseStringArray(table, "allowed_operations"));
     this.current_operations = Maps.convert_from_proxy_string_task_allowed_operations(Marshalling.ParseHashTable(table, "current_operations"));
     this.created            = Marshalling.ParseDateTime(table, "created");
     this.finished           = Marshalling.ParseDateTime(table, "finished");
     this.status             = (task_status_type)Helper.EnumParseDefault(typeof(task_status_type), Marshalling.ParseString(table, "status"));
     this.resident_on        = Marshalling.ParseRef <Host>(table, "resident_on");
     this.progress           = Marshalling.ParseDouble(table, "progress");
     this.type               = Marshalling.ParseString(table, "type");
     this.result             = Marshalling.ParseString(table, "result");
     this.error_info         = Marshalling.ParseStringArray(table, "error_info");
     this.other_config       = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.subtask_of         = Marshalling.ParseRef <Task>(table, "subtask_of");
     this.subtasks           = Marshalling.ParseSetRef <Task>(table, "subtasks");
 }
Exemplo n.º 28
0
 public SR(Hashtable table)
 {
     this.uuid                 = Marshalling.ParseString(table, "uuid");
     this.name_label           = Marshalling.ParseString(table, "name_label");
     this.name_description     = Marshalling.ParseString(table, "name_description");
     this.allowed_operations   = Helper.StringArrayToEnumList <storage_operations>(Marshalling.ParseStringArray(table, "allowed_operations"));
     this.current_operations   = Maps.convert_from_proxy_string_storage_operations(Marshalling.ParseHashTable(table, "current_operations"));
     this.VDIs                 = Marshalling.ParseSetRef <VDI>(table, "VDIs");
     this.PBDs                 = Marshalling.ParseSetRef <PBD>(table, "PBDs");
     this.virtual_allocation   = Marshalling.ParseLong(table, "virtual_allocation");
     this.physical_utilisation = Marshalling.ParseLong(table, "physical_utilisation");
     this.physical_size        = Marshalling.ParseLong(table, "physical_size");
     this.type                 = Marshalling.ParseString(table, "type");
     this.content_type         = Marshalling.ParseString(table, "content_type");
     this.shared               = Marshalling.ParseBool(table, "shared");
     this.other_config         = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.tags                 = Marshalling.ParseStringArray(table, "tags");
     this.sm_config            = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "sm_config"));
     this.blobs                = Maps.convert_from_proxy_string_XenRefBlob(Marshalling.ParseHashTable(table, "blobs"));
     this.local_cache_enabled  = Marshalling.ParseBool(table, "local_cache_enabled");
     this.introduced_by        = Marshalling.ParseRef <DR_task>(table, "introduced_by");
 }
Exemplo n.º 29
0
 public VMPP(Hashtable table)
 {
     this.uuid                   = Marshalling.ParseString(table, "uuid");
     this.name_label             = Marshalling.ParseString(table, "name_label");
     this.name_description       = Marshalling.ParseString(table, "name_description");
     this.is_policy_enabled      = Marshalling.ParseBool(table, "is_policy_enabled");
     this.backup_type            = (vmpp_backup_type)Helper.EnumParseDefault(typeof(vmpp_backup_type), Marshalling.ParseString(table, "backup_type"));
     this.backup_retention_value = Marshalling.ParseLong(table, "backup_retention_value");
     this.backup_frequency       = (vmpp_backup_frequency)Helper.EnumParseDefault(typeof(vmpp_backup_frequency), Marshalling.ParseString(table, "backup_frequency"));
     this.backup_schedule        = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "backup_schedule"));
     this.is_backup_running      = Marshalling.ParseBool(table, "is_backup_running");
     this.backup_last_run_time   = Marshalling.ParseDateTime(table, "backup_last_run_time");
     this.archive_target_type    = (vmpp_archive_target_type)Helper.EnumParseDefault(typeof(vmpp_archive_target_type), Marshalling.ParseString(table, "archive_target_type"));
     this.archive_target_config  = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "archive_target_config"));
     this.archive_frequency      = (vmpp_archive_frequency)Helper.EnumParseDefault(typeof(vmpp_archive_frequency), Marshalling.ParseString(table, "archive_frequency"));
     this.archive_schedule       = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "archive_schedule"));
     this.is_archive_running     = Marshalling.ParseBool(table, "is_archive_running");
     this.archive_last_run_time  = Marshalling.ParseDateTime(table, "archive_last_run_time");
     this.VMs = Marshalling.ParseSetRef <VM>(table, "VMs");
     this.is_alarm_enabled = Marshalling.ParseBool(table, "is_alarm_enabled");
     this.alarm_config     = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "alarm_config"));
     this.recent_alerts    = Marshalling.ParseStringArray(table, "recent_alerts");
 }
Exemplo n.º 30
0
Arquivo: VIF.cs Projeto: hl10502/WCM
 public VIF(Hashtable table)
 {
     this.uuid = Marshalling.ParseString(table, "uuid");
     this.allowed_operations = Helper.StringArrayToEnumList <vif_operations>(Marshalling.ParseStringArray(table, "allowed_operations"));
     this.current_operations = Maps.convert_from_proxy_string_vif_operations(Marshalling.ParseHashTable(table, "current_operations"));
     this.device             = Marshalling.ParseString(table, "device");
     this.network            = Marshalling.ParseRef <Network>(table, "network");
     this.VM                       = Marshalling.ParseRef <WinAPI.VM>(table, "VM");
     this.MAC                      = Marshalling.ParseString(table, "MAC");
     this.MTU                      = Marshalling.ParseLong(table, "MTU");
     this.other_config             = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "other_config"));
     this.currently_attached       = Marshalling.ParseBool(table, "currently_attached");
     this.status_code              = Marshalling.ParseLong(table, "status_code");
     this.status_detail            = Marshalling.ParseString(table, "status_detail");
     this.runtime_properties       = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "runtime_properties"));
     this.qos_algorithm_type       = Marshalling.ParseString(table, "qos_algorithm_type");
     this.qos_algorithm_params     = Maps.convert_from_proxy_string_string(Marshalling.ParseHashTable(table, "qos_algorithm_params"));
     this.qos_supported_algorithms = Marshalling.ParseStringArray(table, "qos_supported_algorithms");
     this.metrics                  = Marshalling.ParseRef <VIF_metrics>(table, "metrics");
     this.MAC_autogenerated        = Marshalling.ParseBool(table, "MAC_autogenerated");
     this.locking_mode             = (vif_locking_mode)Helper.EnumParseDefault(typeof(vif_locking_mode), Marshalling.ParseString(table, "locking_mode"));
     this.ipv4_allowed             = Marshalling.ParseStringArray(table, "ipv4_allowed");
     this.ipv6_allowed             = Marshalling.ParseStringArray(table, "ipv6_allowed");
 }