예제 #1
0
파일: VM_appliance.cs 프로젝트: hl10502/WCM
 internal void UpdateFromProxy(Proxy_VM_appliance 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.allowed_operations = (proxy.allowed_operations == null) ? null : Helper.StringArrayToEnumList <vm_appliance_operation>(proxy.allowed_operations);
     this.current_operations = (proxy.current_operations == null) ? null : Maps.convert_from_proxy_string_vm_appliance_operation(proxy.current_operations);
     this.VMs = (proxy.VMs == null) ? null : XenRef <VM> .Create(proxy.VMs);
 }
예제 #2
0
파일: VM_appliance.cs 프로젝트: hl10502/WCM
 public override string SaveChanges(Session session, string opaqueRef, VM_appliance server)
 {
     if (opaqueRef == null)
     {
         Proxy_VM_appliance _appliance = this.ToProxy();
         return(session.proxy.vm_appliance_create(session.uuid, _appliance).parse());
     }
     if (!Helper.AreEqual2 <string>(this._name_label, server._name_label))
     {
         set_name_label(session, opaqueRef, this._name_label);
     }
     if (!Helper.AreEqual2 <string>(this._name_description, server._name_description))
     {
         set_name_description(session, opaqueRef, this._name_description);
     }
     return(null);
 }
예제 #3
0
파일: VM_appliance.cs 프로젝트: hl10502/WCM
 public VM_appliance(Proxy_VM_appliance proxy)
 {
     this.UpdateFromProxy(proxy);
 }