public Proxy_SR ToProxy() { Proxy_SR result_ = new Proxy_SR(); 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_storage_operations(current_operations); result_.VDIs = (VDIs != null) ? Helper.RefListToStringArray(VDIs) : new string[] {}; result_.PBDs = (PBDs != null) ? Helper.RefListToStringArray(PBDs) : new string[] {}; result_.virtual_allocation = virtual_allocation.ToString(); result_.physical_utilisation = physical_utilisation.ToString(); result_.physical_size = physical_size.ToString(); result_.type = (type != null) ? type : ""; result_.content_type = (content_type != null) ? content_type : ""; result_.shared = shared; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.tags = tags; result_.sm_config = Maps.convert_to_proxy_string_string(sm_config); result_.blobs = Maps.convert_to_proxy_string_XenRefBlob(blobs); result_.local_cache_enabled = local_cache_enabled; result_.introduced_by = (introduced_by != null) ? introduced_by : ""; return(result_); }