internal void UpdateFromProxy(Proxy_VGPU proxy) { uuid = proxy.uuid == null ? null : (string)proxy.uuid; VM = proxy.VM == null ? null : XenRef <VM> .Create(proxy.VM); GPU_group = proxy.GPU_group == null ? null : XenRef <GPU_group> .Create(proxy.GPU_group); device = proxy.device == null ? null : (string)proxy.device; currently_attached = (bool)proxy.currently_attached; other_config = proxy.other_config == null ? null : Maps.convert_from_proxy_string_string(proxy.other_config); }
public Proxy_VGPU ToProxy() { Proxy_VGPU result_ = new Proxy_VGPU(); result_.uuid = (uuid != null) ? uuid : ""; result_.VM = (VM != null) ? VM : ""; result_.GPU_group = (GPU_group != null) ? GPU_group : ""; result_.device = (device != null) ? device : ""; result_.currently_attached = currently_attached; result_.other_config = Maps.convert_to_proxy_string_string(other_config); return(result_); }
public Proxy_VGPU ToProxy() { Proxy_VGPU result_ = new Proxy_VGPU(); result_.uuid = uuid ?? ""; result_.VM = VM ?? ""; result_.GPU_group = GPU_group ?? ""; result_.device = device ?? ""; result_.currently_attached = currently_attached; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.type = type ?? ""; result_.resident_on = resident_on ?? ""; return(result_); }
internal void UpdateFromProxy(Proxy_VGPU proxy) { uuid = proxy.uuid == null ? null : (string)proxy.uuid; VM = proxy.VM == null ? null : XenRef <VM> .Create(proxy.VM); GPU_group = proxy.GPU_group == null ? null : XenRef <GPU_group> .Create(proxy.GPU_group); device = proxy.device == null ? null : (string)proxy.device; currently_attached = (bool)proxy.currently_attached; other_config = proxy.other_config == null ? null : Maps.convert_from_proxy_string_string(proxy.other_config); type = proxy.type == null ? null : XenRef <VGPU_type> .Create(proxy.type); resident_on = proxy.resident_on == null ? null : XenRef <PGPU> .Create(proxy.resident_on); scheduled_to_be_resident_on = proxy.scheduled_to_be_resident_on == null ? null : XenRef <PGPU> .Create(proxy.scheduled_to_be_resident_on); }
public Proxy_VGPU ToProxy() { Proxy_VGPU result_ = new Proxy_VGPU(); result_.uuid = uuid ?? ""; result_.VM = VM ?? ""; result_.GPU_group = GPU_group ?? ""; result_.device = device ?? ""; result_.currently_attached = currently_attached; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.type = type ?? ""; result_.resident_on = resident_on ?? ""; result_.scheduled_to_be_resident_on = scheduled_to_be_resident_on ?? ""; result_.compatibility_metadata = Maps.convert_to_proxy_string_string(compatibility_metadata); result_.extra_args = extra_args ?? ""; return(result_); }
internal void UpdateFrom(Proxy_VGPU proxy) { uuid = proxy.uuid == null ? null : proxy.uuid; VM = proxy.VM == null ? null : XenRef <VM> .Create(proxy.VM); GPU_group = proxy.GPU_group == null ? null : XenRef <GPU_group> .Create(proxy.GPU_group); device = proxy.device == null ? null : proxy.device; currently_attached = (bool)proxy.currently_attached; other_config = proxy.other_config == null ? null : Maps.convert_from_proxy_string_string(proxy.other_config); type = proxy.type == null ? null : XenRef <VGPU_type> .Create(proxy.type); resident_on = proxy.resident_on == null ? null : XenRef <PGPU> .Create(proxy.resident_on); scheduled_to_be_resident_on = proxy.scheduled_to_be_resident_on == null ? null : XenRef <PGPU> .Create(proxy.scheduled_to_be_resident_on); compatibility_metadata = proxy.compatibility_metadata == null ? null : Maps.convert_from_proxy_string_string(proxy.compatibility_metadata); extra_args = proxy.extra_args == null ? null : proxy.extra_args; PCI = proxy.PCI == null ? null : XenRef <PCI> .Create(proxy.PCI); }
/// <summary> /// Creates a new VGPU from a Proxy_VGPU. /// </summary> /// <param name="proxy"></param> public VGPU(Proxy_VGPU proxy) { this.UpdateFromProxy(proxy); }
/// <summary> /// Creates a new VGPU from a Proxy_VGPU. /// </summary> /// <param name="proxy"></param> public VGPU(Proxy_VGPU proxy) { UpdateFrom(proxy); }