internal void UpdateFromProxy(Proxy_PBD proxy) { this.uuid = (proxy.uuid == null) ? null : proxy.uuid; this.host = (proxy.host == null) ? null : XenRef <Host> .Create(proxy.host); this.SR = (proxy.SR == null) ? null : XenRef <WinAPI.SR> .Create(proxy.SR); this.device_config = (proxy.device_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.device_config); this.currently_attached = proxy.currently_attached; this.other_config = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config); }
public override string SaveChanges(Session session, string opaqueRef, PBD server) { if (opaqueRef == null) { Proxy_PBD y_pbd = this.ToProxy(); return(session.proxy.pbd_create(session.uuid, y_pbd).parse()); } if (!Helper.AreEqual2 <Dictionary <string, string> >(this._other_config, server._other_config)) { set_other_config(session, opaqueRef, this._other_config); } if (!Helper.AreEqual2 <Dictionary <string, string> >(this._device_config, server._device_config)) { set_device_config(session, opaqueRef, this._device_config); } return(null); }
public PBD(Proxy_PBD proxy) { this.UpdateFromProxy(proxy); }