Esempio n. 1
0
 public Role(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.subroles         = Marshalling.ParseSetRef <Role>(table, "subroles");
 }
Esempio n. 2
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");
 }
Esempio n. 3
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"));
 }
Esempio n. 4
0
 public VM_appliance(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 <vm_appliance_operation>(Marshalling.ParseStringArray(table, "allowed_operations"));
     this.current_operations = Maps.convert_from_proxy_string_vm_appliance_operation(Marshalling.ParseHashTable(table, "current_operations"));
     this.VMs = Marshalling.ParseSetRef <VM>(table, "VMs");
 }
Esempio n. 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"));
 }
Esempio n. 6
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");
 }
Esempio n. 7
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"));
 }
Esempio n. 8
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"));
 }
Esempio n. 9
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");
 }
Esempio n. 10
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");
 }
Esempio n. 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"));
 }
Esempio n. 12
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");
 }
Esempio n. 13
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. 14
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");
 }
Esempio n. 15
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");
 }
Esempio n. 16
0
 public DR_task(Hashtable table)
 {
     this.uuid           = Marshalling.ParseString(table, "uuid");
     this.introduced_SRs = Marshalling.ParseSetRef <WinAPI.SR>(table, "introduced_SRs");
 }