예제 #1
0
파일: Cluster.cs 프로젝트: RoryBG/xenadmin
        public Proxy_Cluster ToProxy()
        {
            Proxy_Cluster result_ = new Proxy_Cluster();

            result_.uuid                      = uuid ?? "";
            result_.cluster_hosts             = cluster_hosts == null ? new string[] {} : Helper.RefListToStringArray(cluster_hosts);
            result_.cluster_token             = cluster_token ?? "";
            result_.cluster_stack             = cluster_stack ?? "";
            result_.allowed_operations        = allowed_operations == null ? new string[] {} : Helper.ObjectListToStringArray(allowed_operations);
            result_.current_operations        = Maps.convert_to_proxy_string_cluster_operation(current_operations);
            result_.pool_auto_join            = pool_auto_join;
            result_.token_timeout             = token_timeout.ToString();
            result_.token_timeout_coefficient = token_timeout_coefficient.ToString();
            result_.cluster_config            = Maps.convert_to_proxy_string_string(cluster_config);
            result_.other_config              = Maps.convert_to_proxy_string_string(other_config);
            return(result_);
        }