internal void UpdateFromProxy(Proxy_VM_metrics proxy) { this.uuid = (proxy.uuid == null) ? null : proxy.uuid; this.memory_actual = (proxy.memory_actual == null) ? 0L : long.Parse(proxy.memory_actual); this.VCPUs_number = (proxy.VCPUs_number == null) ? 0L : long.Parse(proxy.VCPUs_number); this.VCPUs_utilisation = (proxy.VCPUs_utilisation == null) ? null : Maps.convert_from_proxy_long_double(proxy.VCPUs_utilisation); this.VCPUs_CPU = (proxy.VCPUs_CPU == null) ? null : Maps.convert_from_proxy_long_long(proxy.VCPUs_CPU); this.VCPUs_params = (proxy.VCPUs_params == null) ? null : Maps.convert_from_proxy_string_string(proxy.VCPUs_params); this.VCPUs_flags = (proxy.VCPUs_flags == null) ? null : Maps.convert_from_proxy_long_string_array(proxy.VCPUs_flags); this.state = (proxy.state == null) ? new string[0] : proxy.state; this.start_time = proxy.start_time; this.install_time = proxy.install_time; this.last_updated = proxy.last_updated; this.other_config = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config); }
public VM_metrics(Proxy_VM_metrics proxy) { this.UpdateFromProxy(proxy); }