Esempio n. 1
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"));
 }
Esempio n. 2
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"));
 }
Esempio n. 3
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"));
 }
Esempio n. 4
0
 public Blob(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.size             = Marshalling.ParseLong(table, "size");
     this.pubblic          = Marshalling.ParseBool(table, "pubblic");
     this.last_updated     = Marshalling.ParseDateTime(table, "last_updated");
     this.mime_type        = Marshalling.ParseString(table, "mime_type");
 }
Esempio n. 5
0
 public Message(Hashtable table)
 {
     this.uuid      = Marshalling.ParseString(table, "uuid");
     this.name      = Marshalling.ParseString(table, "name");
     this.priority  = Marshalling.ParseLong(table, "priority");
     this.cls       = (WinAPI.cls)Helper.EnumParseDefault(typeof(WinAPI.cls), Marshalling.ParseString(table, "cls"));
     this.obj_uuid  = Marshalling.ParseString(table, "obj_uuid");
     this.timestamp = Marshalling.ParseDateTime(table, "timestamp");
     this.body      = Marshalling.ParseString(table, "body");
 }
Esempio n. 6
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"));
 }
Esempio n. 7
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");
 }
Esempio n. 8
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"));
 }
Esempio n. 9
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"));
 }
Esempio n. 10
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");
 }
Esempio n. 11
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");
 }