Exemplo n.º 1
0
        internal void UpdateFromProxy(Proxy_PGPU proxy)
        {
            this.uuid = (proxy.uuid == null) ? null : proxy.uuid;
            this.PCI  = (proxy.PCI == null) ? null : XenRef <WinAPI.PCI> .Create(proxy.PCI);

            this.GPU_group = (proxy.GPU_group == null) ? null : XenRef <WinAPI.GPU_group> .Create(proxy.GPU_group);

            this.host = (proxy.host == null) ? null : XenRef <Host> .Create(proxy.host);

            this.other_config = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config);
        }
Exemplo n.º 2
0
        internal void UpdateFromProxy(Proxy_PGPU proxy)
        {
            this.uuid = (proxy.uuid == null) ? null : proxy.uuid;
            this.PCI  = (proxy.PCI == null) ? null : XenRef <WinAPI.PCI> .Create(proxy.PCI);

            this.GPU_group = (proxy.GPU_group == null) ? null : XenRef <WinAPI.GPU_group> .Create(proxy.GPU_group);

            this.host = (proxy.host == null) ? null : XenRef <Host> .Create(proxy.host);

            this.other_config         = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config);
            this.supported_VGPU_types = (proxy.supported_VGPU_types == null) ? null : XenRef <VGPU_type> .Create(proxy.supported_VGPU_types);

            this.enabled_VGPU_types = (proxy.enabled_VGPU_types == null) ? null : XenRef <VGPU_type> .Create(proxy.enabled_VGPU_types);

            this.resident_VGPUs = (proxy.resident_VGPUs == null) ? null : XenRef <VGPU> .Create(proxy.resident_VGPUs);

            this.supported_VGPU_max_capacities = (proxy.supported_VGPU_max_capacities == null) ? null : Maps.convert_from_proxy_XenRefVGPU_type_long(proxy.supported_VGPU_max_capacities);
            this.dom0_access = (proxy.dom0_access == null) ? pgpu_dom0_access.enabled : ((pgpu_dom0_access)Helper.EnumParseDefault(typeof(pgpu_dom0_access), proxy.dom0_access));
            this.is_system_display_device = proxy.is_system_display_device;
        }
Exemplo n.º 3
0
 public PGPU(Proxy_PGPU proxy)
 {
     this.UpdateFromProxy(proxy);
 }