Esempio n. 1
0
        public Proxy_PGPU ToProxy()
        {
            Proxy_PGPU result_ = new Proxy_PGPU();

            result_.uuid                          = (uuid != null) ? uuid : "";
            result_.PCI                           = (PCI != null) ? PCI : "";
            result_.GPU_group                     = (GPU_group != null) ? GPU_group : "";
            result_.host                          = (host != null) ? host : "";
            result_.other_config                  = Maps.convert_to_proxy_string_string(other_config);
            result_.supported_VGPU_types          = (supported_VGPU_types != null) ? Helper.RefListToStringArray(supported_VGPU_types) : new string[] {};
            result_.enabled_VGPU_types            = (enabled_VGPU_types != null) ? Helper.RefListToStringArray(enabled_VGPU_types) : new string[] {};
            result_.resident_VGPUs                = (resident_VGPUs != null) ? Helper.RefListToStringArray(resident_VGPUs) : new string[] {};
            result_.supported_VGPU_max_capacities = Maps.convert_to_proxy_XenRefVGPU_type_long(supported_VGPU_max_capacities);
            return(result_);
        }
Esempio n. 2
0
        public Proxy_PGPU ToProxy()
        {
            Proxy_PGPU result_ = new Proxy_PGPU();

            result_.uuid                          = uuid ?? "";
            result_.PCI                           = PCI ?? "";
            result_.GPU_group                     = GPU_group ?? "";
            result_.host                          = host ?? "";
            result_.other_config                  = Maps.convert_to_proxy_string_string(other_config);
            result_.supported_VGPU_types          = (supported_VGPU_types != null) ? Helper.RefListToStringArray(supported_VGPU_types) : new string[] {};
            result_.enabled_VGPU_types            = (enabled_VGPU_types != null) ? Helper.RefListToStringArray(enabled_VGPU_types) : new string[] {};
            result_.resident_VGPUs                = (resident_VGPUs != null) ? Helper.RefListToStringArray(resident_VGPUs) : new string[] {};
            result_.supported_VGPU_max_capacities = Maps.convert_to_proxy_XenRefVGPU_type_long(supported_VGPU_max_capacities);
            result_.dom0_access                   = pgpu_dom0_access_helper.ToString(dom0_access);
            result_.is_system_display_device      = is_system_display_device;
            return(result_);
        }