Пример #1
0
        public Proxy_VIF ToProxy()
        {
            Proxy_VIF result_ = new Proxy_VIF();

            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_vif_operations(current_operations);
            result_.device             = (device != null) ? device : "";
            result_.network            = (network != null) ? network : "";
            result_.VM                       = (VM != null) ? VM : "";
            result_.MAC                      = (MAC != null) ? MAC : "";
            result_.MTU                      = MTU.ToString();
            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 : "";
            result_.MAC_autogenerated        = MAC_autogenerated;
            result_.locking_mode             = vif_locking_mode_helper.ToString(locking_mode);
            result_.ipv4_allowed             = ipv4_allowed;
            result_.ipv6_allowed             = ipv6_allowed;
            return(result_);
        }