internal void UpdateFromProxy(Proxy_PUSB proxy) { uuid = proxy.uuid == null ? null : proxy.uuid; USB_group = proxy.USB_group == null ? null : XenRef <USB_group> .Create(proxy.USB_group); host = proxy.host == null ? null : XenRef <Host> .Create(proxy.host); path = proxy.path == null ? null : proxy.path; vendor_id = proxy.vendor_id == null ? null : proxy.vendor_id; vendor_desc = proxy.vendor_desc == null ? null : proxy.vendor_desc; product_id = proxy.product_id == null ? null : proxy.product_id; product_desc = proxy.product_desc == null ? null : proxy.product_desc; serial = proxy.serial == null ? null : proxy.serial; version = proxy.version == null ? null : proxy.version; description = proxy.description == null ? null : proxy.description; passthrough_enabled = (bool)proxy.passthrough_enabled; other_config = proxy.other_config == null ? null : Maps.convert_from_proxy_string_string(proxy.other_config); }
public Proxy_PUSB ToProxy() { Proxy_PUSB result_ = new Proxy_PUSB(); result_.uuid = uuid ?? ""; result_.USB_group = USB_group ?? ""; result_.host = host ?? ""; result_.path = path ?? ""; result_.vendor_id = vendor_id ?? ""; result_.vendor_desc = vendor_desc ?? ""; result_.product_id = product_id ?? ""; result_.product_desc = product_desc ?? ""; result_.serial = serial ?? ""; result_.version = version ?? ""; result_.description = description ?? ""; result_.passthrough_enabled = passthrough_enabled; result_.other_config = Maps.convert_to_proxy_string_string(other_config); return(result_); }
/// <summary> /// Creates a new PUSB from a Proxy_PUSB. /// </summary> /// <param name="proxy"></param> public PUSB(Proxy_PUSB proxy) { this.UpdateFromProxy(proxy); }
/// <summary> /// Creates a new PUSB from a Proxy_PUSB. /// </summary> /// <param name="proxy"></param> public PUSB(Proxy_PUSB proxy) { UpdateFrom(proxy); }