예제 #1
0
        internal void UpdateFromProxy(Proxy_Host_patch proxy)
        {
            this.uuid             = (proxy.uuid == null) ? null : proxy.uuid;
            this.name_label       = (proxy.name_label == null) ? null : proxy.name_label;
            this.name_description = (proxy.name_description == null) ? null : proxy.name_description;
            this.version          = (proxy.version == null) ? null : proxy.version;
            this.host             = (proxy.host == null) ? null : XenRef <Host> .Create(proxy.host);

            this.applied           = proxy.applied;
            this.timestamp_applied = proxy.timestamp_applied;
            this.size       = (proxy.size == null) ? 0L : long.Parse(proxy.size);
            this.pool_patch = (proxy.pool_patch == null) ? null : XenRef <Pool_patch> .Create(proxy.pool_patch);

            this.other_config = (proxy.other_config == null) ? null : Maps.convert_from_proxy_string_string(proxy.other_config);
        }
예제 #2
0
 public Host_patch(Proxy_Host_patch proxy)
 {
     this.UpdateFromProxy(proxy);
 }