internal void UpdateFromProxy(Proxy_VGPU_type proxy) { this.uuid = (proxy.uuid == null) ? null : proxy.uuid; this.vendor_name = (proxy.vendor_name == null) ? null : proxy.vendor_name; this.model_name = (proxy.model_name == null) ? null : proxy.model_name; this.framebuffer_size = (proxy.framebuffer_size == null) ? 0L : long.Parse(proxy.framebuffer_size); this.max_heads = (proxy.max_heads == null) ? 0L : long.Parse(proxy.max_heads); this.max_resolution_x = (proxy.max_resolution_x == null) ? 0L : long.Parse(proxy.max_resolution_x); this.max_resolution_y = (proxy.max_resolution_y == null) ? 0L : long.Parse(proxy.max_resolution_y); this.supported_on_PGPUs = (proxy.supported_on_PGPUs == null) ? null : XenRef <PGPU> .Create(proxy.supported_on_PGPUs); this.enabled_on_PGPUs = (proxy.enabled_on_PGPUs == null) ? null : XenRef <PGPU> .Create(proxy.enabled_on_PGPUs); this.VGPUs = (proxy.VGPUs == null) ? null : XenRef <VGPU> .Create(proxy.VGPUs); this.supported_on_GPU_groups = (proxy.supported_on_GPU_groups == null) ? null : XenRef <GPU_group> .Create(proxy.supported_on_GPU_groups); this.enabled_on_GPU_groups = (proxy.enabled_on_GPU_groups == null) ? null : XenRef <GPU_group> .Create(proxy.enabled_on_GPU_groups); this.implementation = (proxy.implementation == null) ? vgpu_type_implementation.passthrough : ((vgpu_type_implementation)Helper.EnumParseDefault(typeof(vgpu_type_implementation), proxy.implementation)); this.identifier = (proxy.identifier == null) ? null : proxy.identifier; this.experimental = proxy.experimental; }
public VGPU_type(Proxy_VGPU_type proxy) { this.UpdateFromProxy(proxy); }