예제 #1
0
        internal void UpdateFromProxy(Proxy_GPU_group proxy)
        {
            this.uuid             = (proxy.uuid == null) ? null : proxy.uuid;
            this.name_label       = (proxy.name_label == null) ? null : proxy.name_label;
            this.name_description = (proxy.name_description == null) ? null : proxy.name_description;
            this.PGPUs            = (proxy.PGPUs == null) ? null : XenRef <PGPU> .Create(proxy.PGPUs);

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

            this.GPU_types    = (proxy.GPU_types == null) ? new string[0] : proxy.GPU_types;
            this.other_config = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config);
        }
예제 #2
0
파일: GPU_group.cs 프로젝트: hl10502/WCM
        internal void UpdateFromProxy(Proxy_GPU_group proxy)
        {
            this.uuid             = (proxy.uuid == null) ? null : proxy.uuid;
            this.name_label       = (proxy.name_label == null) ? null : proxy.name_label;
            this.name_description = (proxy.name_description == null) ? null : proxy.name_description;
            this.PGPUs            = (proxy.PGPUs == null) ? null : XenRef <PGPU> .Create(proxy.PGPUs);

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

            this.GPU_types            = (proxy.GPU_types == null) ? new string[0] : proxy.GPU_types;
            this.other_config         = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config);
            this.allocation_algorithm = (proxy.allocation_algorithm == null) ? WinAPI.allocation_algorithm.breadth_first : ((WinAPI.allocation_algorithm)Helper.EnumParseDefault(typeof(WinAPI.allocation_algorithm), proxy.allocation_algorithm));
            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);
        }
예제 #3
0
 public GPU_group(Proxy_GPU_group proxy)
 {
     this.UpdateFromProxy(proxy);
 }