public Proxy_Network ToProxy() { Proxy_Network result_ = new Proxy_Network(); result_.uuid = (uuid != null) ? uuid : ""; result_.name_label = (name_label != null) ? name_label : ""; result_.name_description = (name_description != null) ? name_description : ""; result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {}; result_.current_operations = Maps.convert_to_proxy_string_network_operations(current_operations); result_.VIFs = (VIFs != null) ? Helper.RefListToStringArray(VIFs) : new string[] {}; result_.PIFs = (PIFs != null) ? Helper.RefListToStringArray(PIFs) : new string[] {}; result_.MTU = MTU.ToString(); result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.bridge = (bridge != null) ? bridge : ""; result_.blobs = Maps.convert_to_proxy_string_XenRefBlob(blobs); result_.tags = tags; result_.default_locking_mode = network_default_locking_mode_helper.ToString(default_locking_mode); result_.assigned_ips = Maps.convert_to_proxy_XenRefVIF_string(assigned_ips); return(result_); }