public Proxy_VBD ToProxy() { Proxy_VBD result_ = new Proxy_VBD(); result_.uuid = (uuid != null) ? uuid : ""; result_.allowed_operations = (allowed_operations != null) ? Helper.ObjectListToStringArray(allowed_operations) : new string[] {}; result_.current_operations = Maps.convert_to_proxy_string_vbd_operations(current_operations); result_.VM = (VM != null) ? VM : ""; result_.VDI = (VDI != null) ? VDI : ""; result_.device = (device != null) ? device : ""; result_.userdevice = (userdevice != null) ? userdevice : ""; result_.bootable = bootable; result_.mode = vbd_mode_helper.ToString(mode); result_.type = vbd_type_helper.ToString(type); result_.unpluggable = unpluggable; result_.storage_lock = storage_lock; result_.empty = empty; result_.other_config = Maps.convert_to_proxy_string_string(other_config); result_.currently_attached = currently_attached; result_.status_code = status_code.ToString(); result_.status_detail = (status_detail != null) ? status_detail : ""; result_.runtime_properties = Maps.convert_to_proxy_string_string(runtime_properties); result_.qos_algorithm_type = (qos_algorithm_type != null) ? qos_algorithm_type : ""; result_.qos_algorithm_params = Maps.convert_to_proxy_string_string(qos_algorithm_params); result_.qos_supported_algorithms = qos_supported_algorithms; result_.metrics = (metrics != null) ? metrics : ""; return(result_); }