Esempio n. 1
0
File: SM.cs Progetto: ywscr/xenadmin
        public Proxy_SM ToProxy()
        {
            Proxy_SM result_ = new Proxy_SM();

            result_.uuid                   = uuid ?? "";
            result_.name_label             = name_label ?? "";
            result_.name_description       = name_description ?? "";
            result_.type                   = type ?? "";
            result_.vendor                 = vendor ?? "";
            result_.copyright              = copyright ?? "";
            result_.version                = version ?? "";
            result_.required_api_version   = required_api_version ?? "";
            result_.configuration          = Maps.convert_to_proxy_string_string(configuration);
            result_.capabilities           = capabilities;
            result_.features               = Maps.convert_to_proxy_string_long(features);
            result_.other_config           = Maps.convert_to_proxy_string_string(other_config);
            result_.driver_filename        = driver_filename ?? "";
            result_.required_cluster_stack = required_cluster_stack;
            return(result_);
        }
Esempio n. 2
0
        public Proxy_SM ToProxy()
        {
            Proxy_SM result_ = new Proxy_SM();

            result_.uuid                   = (uuid != null) ? uuid : "";
            result_.name_label             = (name_label != null) ? name_label : "";
            result_.name_description       = (name_description != null) ? name_description : "";
            result_.type                   = (type != null) ? type : "";
            result_.vendor                 = (vendor != null) ? vendor : "";
            result_.copyright              = (copyright != null) ? copyright : "";
            result_.version                = (version != null) ? version : "";
            result_.required_api_version   = (required_api_version != null) ? required_api_version : "";
            result_.configuration          = Maps.convert_to_proxy_string_string(configuration);
            result_.capabilities           = capabilities;
            result_.features               = Maps.convert_to_proxy_string_long(features);
            result_.other_config           = Maps.convert_to_proxy_string_string(other_config);
            result_.driver_filename        = (driver_filename != null) ? driver_filename : "";
            result_.required_cluster_stack = required_cluster_stack;
            return(result_);
        }
Esempio n. 3
0
 /// <summary>
 /// Creates a new SM from a Proxy_SM.
 /// </summary>
 /// <param name="proxy"></param>
 public SM(Proxy_SM proxy)
 {
     this.UpdateFromProxy(proxy);
 }
Esempio n. 4
0
File: SM.cs Progetto: ywscr/xenadmin
 /// <summary>
 /// Creates a new SM from a Proxy_SM.
 /// </summary>
 /// <param name="proxy"></param>
 public SM(Proxy_SM proxy)
 {
     UpdateFrom(proxy);
 }