Beispiel #1
0
 public VGPU_type(Hashtable table)
 {
     this.uuid                    = Marshalling.ParseString(table, "uuid");
     this.vendor_name             = Marshalling.ParseString(table, "vendor_name");
     this.model_name              = Marshalling.ParseString(table, "model_name");
     this.framebuffer_size        = Marshalling.ParseLong(table, "framebuffer_size");
     this.max_heads               = Marshalling.ParseLong(table, "max_heads");
     this.max_resolution_x        = Marshalling.ParseLong(table, "max_resolution_x");
     this.max_resolution_y        = Marshalling.ParseLong(table, "max_resolution_y");
     this.supported_on_PGPUs      = Marshalling.ParseSetRef <PGPU>(table, "supported_on_PGPUs");
     this.enabled_on_PGPUs        = Marshalling.ParseSetRef <PGPU>(table, "enabled_on_PGPUs");
     this.VGPUs                   = Marshalling.ParseSetRef <VGPU>(table, "VGPUs");
     this.supported_on_GPU_groups = Marshalling.ParseSetRef <GPU_group>(table, "supported_on_GPU_groups");
     this.enabled_on_GPU_groups   = Marshalling.ParseSetRef <GPU_group>(table, "enabled_on_GPU_groups");
     this.implementation          = (vgpu_type_implementation)Helper.EnumParseDefault(typeof(vgpu_type_implementation), Marshalling.ParseString(table, "implementation"));
     this.identifier              = Marshalling.ParseString(table, "identifier");
     this.experimental            = Marshalling.ParseBool(table, "experimental");
 }
Beispiel #2
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");
 }
Beispiel #3
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");
 }
Beispiel #4
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"));
     this.supported_VGPU_types          = Marshalling.ParseSetRef <VGPU_type>(table, "supported_VGPU_types");
     this.enabled_VGPU_types            = Marshalling.ParseSetRef <VGPU_type>(table, "enabled_VGPU_types");
     this.resident_VGPUs                = Marshalling.ParseSetRef <VGPU>(table, "resident_VGPUs");
     this.supported_VGPU_max_capacities = Maps.convert_from_proxy_XenRefVGPU_type_long(Marshalling.ParseHashTable(table, "supported_VGPU_max_capacities"));
     this.dom0_access                   = (pgpu_dom0_access)Helper.EnumParseDefault(typeof(pgpu_dom0_access), Marshalling.ParseString(table, "dom0_access"));
     this.is_system_display_device      = Marshalling.ParseBool(table, "is_system_display_device");
 }
Beispiel #5
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");
 }
Beispiel #6
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");
 }
Beispiel #7
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");
     this.backtrace          = Marshalling.ParseString(table, "backtrace");
 }
Beispiel #8
0
 public DR_task(Hashtable table)
 {
     this.uuid           = Marshalling.ParseString(table, "uuid");
     this.introduced_SRs = Marshalling.ParseSetRef <WinAPI.SR>(table, "introduced_SRs");
 }
Beispiel #9
0
 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");
 }
Beispiel #10
0
 public VTPM(Hashtable table)
 {
     this.uuid    = Marshalling.ParseString(table, "uuid");
     this.VM      = Marshalling.ParseRef <WinAPI.VM>(table, "VM");
     this.backend = Marshalling.ParseRef <WinAPI.VM>(table, "backend");
 }
Beispiel #11
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"));
     this.assigned_ips         = Maps.convert_from_proxy_XenRefVIF_string(Marshalling.ParseHashTable(table, "assigned_ips"));
 }
Beispiel #12
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"));
 }
Beispiel #13
0
 public LVHD(Hashtable table)
 {
     this.uuid = Marshalling.ParseString(table, "uuid");
 }