internal void UpdateFromProxy(Proxy_Host_cpu proxy) { this.uuid = (proxy.uuid == null) ? null : proxy.uuid; this.host = (proxy.host == null) ? null : XenRef <Host> .Create(proxy.host); this.number = (proxy.number == null) ? 0L : long.Parse(proxy.number); this.vendor = (proxy.vendor == null) ? null : proxy.vendor; this.speed = (proxy.speed == null) ? 0L : long.Parse(proxy.speed); this.modelname = (proxy.modelname == null) ? null : proxy.modelname; this.family = (proxy.family == null) ? 0L : long.Parse(proxy.family); this.model = (proxy.model == null) ? 0L : long.Parse(proxy.model); this.stepping = (proxy.stepping == null) ? null : proxy.stepping; this.flags = (proxy.flags == null) ? null : proxy.flags; this.features = (proxy.features == null) ? null : proxy.features; this.utilisation = Convert.ToDouble(proxy.utilisation); this.other_config = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config); }
public Host_cpu(Proxy_Host_cpu proxy) { this.UpdateFromProxy(proxy); }