コード例 #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");
 }
コード例 #2
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"));
 }
コード例 #3
0
ファイル: Host_metrics.cs プロジェクト: hl10502/WCM
 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"));
 }
コード例 #4
0
ファイル: VGPU.cs プロジェクト: radtek/WinCenterClient
 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"));
 }
コード例 #5
0
ファイル: PBD.cs プロジェクト: 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"));
 }
コード例 #6
0
ファイル: Blob.cs プロジェクト: radtek/WinCenterClient
 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");
 }
コード例 #7
0
ファイル: Data_source.cs プロジェクト: radtek/WinCenterClient
 public Data_source(Hashtable table)
 {
     this.name_label       = Marshalling.ParseString(table, "name_label");
     this.name_description = Marshalling.ParseString(table, "name_description");
     this.enabled          = Marshalling.ParseBool(table, "enabled");
     this.standard         = Marshalling.ParseBool(table, "standard");
     this.units            = Marshalling.ParseString(table, "units");
     this.min   = Marshalling.ParseDouble(table, "min");
     this.max   = Marshalling.ParseDouble(table, "max");
     this.value = Marshalling.ParseDouble(table, "value");
 }
コード例 #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"));
 }
コード例 #9
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"));
 }
コード例 #10
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");
 }
コード例 #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"));
     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");
 }
コード例 #12
0
ファイル: PIF_metrics.cs プロジェクト: hl10502/WCM
 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"));
 }
コード例 #13
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");
 }
コード例 #14
0
ファイル: SR.cs プロジェクト: radtek/WinCenterClient
 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");
 }
コード例 #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");
 }
コード例 #16
0
ファイル: VIF.cs プロジェクト: 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");
 }