Пример #1
0
        internal void UpdateFrom(Proxy_PVS_site proxy)
        {
            uuid             = proxy.uuid == null ? null : proxy.uuid;
            name_label       = proxy.name_label == null ? null : proxy.name_label;
            name_description = proxy.name_description == null ? null : proxy.name_description;
            PVS_uuid         = proxy.PVS_uuid == null ? null : proxy.PVS_uuid;
            cache_storage    = proxy.cache_storage == null ? null : XenRef <PVS_cache_storage> .Create(proxy.cache_storage);

            servers = proxy.servers == null ? null : XenRef <PVS_server> .Create(proxy.servers);

            proxies = proxy.proxies == null ? null : XenRef <PVS_proxy> .Create(proxy.proxies);
        }
Пример #2
0
        public Proxy_PVS_site ToProxy()
        {
            Proxy_PVS_site result_ = new Proxy_PVS_site();

            result_.uuid             = uuid ?? "";
            result_.name_label       = name_label ?? "";
            result_.name_description = name_description ?? "";
            result_.PVS_uuid         = PVS_uuid ?? "";
            result_.cache_storage    = cache_storage == null ? new string[] {} : Helper.RefListToStringArray(cache_storage);
            result_.servers          = servers == null ? new string[] {} : Helper.RefListToStringArray(servers);
            result_.proxies          = proxies == null ? new string[] {} : Helper.RefListToStringArray(proxies);
            return(result_);
        }
Пример #3
0
        public Proxy_PVS_site ToProxy()
        {
            Proxy_PVS_site result_ = new Proxy_PVS_site();

            result_.uuid             = (uuid != null) ? uuid : "";
            result_.name_label       = (name_label != null) ? name_label : "";
            result_.name_description = (name_description != null) ? name_description : "";
            result_.PVS_uuid         = (PVS_uuid != null) ? PVS_uuid : "";
            result_.cache_storage    = (cache_storage != null) ? Helper.RefListToStringArray(cache_storage) : new string[] {};
            result_.servers          = (servers != null) ? Helper.RefListToStringArray(servers) : new string[] {};
            result_.proxies          = (proxies != null) ? Helper.RefListToStringArray(proxies) : new string[] {};
            return(result_);
        }
Пример #4
0
 /// <summary>
 /// Creates a new PVS_site from a Proxy_PVS_site.
 /// </summary>
 /// <param name="proxy"></param>
 public PVS_site(Proxy_PVS_site proxy)
 {
     UpdateFrom(proxy);
 }
Пример #5
0
 /// <summary>
 /// Creates a new PVS_site from a Proxy_PVS_site.
 /// </summary>
 /// <param name="proxy"></param>
 public PVS_site(Proxy_PVS_site proxy)
 {
     this.UpdateFromProxy(proxy);
 }