internal void UpdateFromProxy(Proxy_VIF_metrics proxy) { uuid = proxy.uuid == null ? null : (string)proxy.uuid; io_read_kbs = Convert.ToDouble(proxy.io_read_kbs); io_write_kbs = Convert.ToDouble(proxy.io_write_kbs); last_updated = proxy.last_updated; other_config = proxy.other_config == null ? null : Maps.convert_from_proxy_string_string(proxy.other_config); }
public Proxy_VIF_metrics ToProxy() { Proxy_VIF_metrics result_ = new Proxy_VIF_metrics(); result_.uuid = (uuid != null) ? uuid : ""; result_.io_read_kbs = io_read_kbs; result_.io_write_kbs = io_write_kbs; result_.last_updated = last_updated; result_.other_config = Maps.convert_to_proxy_string_string(other_config); return(result_); }
/// <summary> /// Creates a new VIF_metrics from a Proxy_VIF_metrics. /// </summary> /// <param name="proxy"></param> public VIF_metrics(Proxy_VIF_metrics proxy) { this.UpdateFromProxy(proxy); }
/// <summary> /// Creates a new VIF_metrics from a Proxy_VIF_metrics. /// </summary> /// <param name="proxy"></param> public VIF_metrics(Proxy_VIF_metrics proxy) { UpdateFrom(proxy); }