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

            result_.uuid              = (uuid != null) ? uuid : "";
            result_.memory_actual     = memory_actual.ToString();
            result_.VCPUs_number      = VCPUs_number.ToString();
            result_.VCPUs_utilisation = Maps.convert_to_proxy_long_double(VCPUs_utilisation);
            result_.VCPUs_CPU         = Maps.convert_to_proxy_long_long(VCPUs_CPU);
            result_.VCPUs_params      = Maps.convert_to_proxy_string_string(VCPUs_params);
            result_.VCPUs_flags       = Maps.convert_to_proxy_long_string_array(VCPUs_flags);
            result_.state             = state;
            result_.start_time        = start_time;
            result_.install_time      = install_time;
            result_.last_updated      = last_updated;
            result_.other_config      = Maps.convert_to_proxy_string_string(other_config);
            return(result_);
        }
Пример #2
0
        public Proxy_VM_metrics ToProxy()
        {
            Proxy_VM_metrics result_ = new Proxy_VM_metrics();

            result_.uuid              = uuid ?? "";
            result_.memory_actual     = memory_actual.ToString();
            result_.VCPUs_number      = VCPUs_number.ToString();
            result_.VCPUs_utilisation = Maps.convert_to_proxy_long_double(VCPUs_utilisation);
            result_.VCPUs_CPU         = Maps.convert_to_proxy_long_long(VCPUs_CPU);
            result_.VCPUs_params      = Maps.convert_to_proxy_string_string(VCPUs_params);
            result_.VCPUs_flags       = Maps.convert_to_proxy_long_string_array(VCPUs_flags);
            result_.state             = state;
            result_.start_time        = start_time;
            result_.install_time      = install_time;
            result_.last_updated      = last_updated;
            result_.other_config      = Maps.convert_to_proxy_string_string(other_config);
            result_.hvm                 = hvm;
            result_.nested_virt         = nested_virt;
            result_.nomigrate           = nomigrate;
            result_.current_domain_type = domain_type_helper.ToString(current_domain_type);
            return(result_);
        }