Sharad Mishra has uploaded a new change for review.

Change subject: api: WIP: Add support for vmconfig
......................................................................

api: WIP: Add support for vmconfig

Change-Id: I795813b9c0d2be17a2e5f2a0d78976e1ffeadc19
Signed-off-by: Sharad Mishra <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmDynamic.java
M 
backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
3 files changed, 33 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/19/14719/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
index 877867c..8067c07 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VM.java
@@ -423,6 +423,14 @@
         this.vmDynamic.setVmPid(value);
     }
 
+    public String getVmConfig() {
+        return this.vmDynamic.getVmConfig();
+    }
+
+    public void setVmConfig(String value) {
+        this.vmDynamic.setVmConfig(value);
+    }
+
     public Date getLastStartTime() {
         return this.vmDynamic.getLastStartTime();
     }
diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmDynamic.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmDynamic.java
index 88f1544..a41c084 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmDynamic.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/businessentities/VmDynamic.java
@@ -19,6 +19,7 @@
     private Date lastStartTime;
     private String guestCurUserName;
     private String consoleCurUserName;
+    private String VmConfig;
     private NGuid consoleUserId;
     private Date guestLastLoginTime;
     private Date guestLastLogoutTime;
@@ -61,6 +62,7 @@
         result = prime * result + ((displaySecurePort == null) ? 0 : 
displaySecurePort.hashCode());
         result = prime * result + displayType.hashCode();
         result = prime * result + ((consoleCurUserName == null) ? 0 : 
consoleCurUserName.hashCode());
+        result = prime * result + ((VmConfig == null) ? 0 : 
VmConfig.hashCode());
         result = prime * result + ((guestCurUserName == null) ? 0 : 
guestCurUserName.hashCode());
         result = prime * result + ((consoleUserId == null) ? 0 : 
consoleUserId.hashCode());
         result = prime * result + ((guestLastLoginTime == null) ? 0 : 
guestLastLoginTime.hashCode());
@@ -109,6 +111,7 @@
                 && ObjectUtils.objectsEqual(displaySecurePort, 
other.displaySecurePort)
                 && displayType == other.displayType
                 && ObjectUtils.objectsEqual(consoleCurUserName, 
other.consoleCurUserName)
+                && ObjectUtils.objectsEqual(VmConfig, other.VmConfig)
                 && ObjectUtils.objectsEqual(guestCurUserName, 
other.guestCurUserName)
                 && ObjectUtils.objectsEqual(consoleUserId, other.consoleUserId)
                 && ObjectUtils.objectsEqual(guestLastLoginTime, 
other.guestLastLoginTime)
@@ -199,6 +202,14 @@
         this.appList = value;
     }
 
+    public String getVmConfig() {
+        return VmConfig;
+    }
+
+    public void setVmConfig(String VmConfig) {
+        this.VmConfig = VmConfig;
+    }
+
     public String getConsoleCurrentUserName() {
         return consoleCurUserName;
     }
diff --git 
a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
 
b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
index 422423e..3a70d52 100644
--- 
a/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
+++ 
b/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
@@ -648,6 +648,20 @@
       signatures: []
     urlparams: {}
     headers: {}
+- name: /api/vms/{vm:id}/snapshots/{snapshot:id}/vmconfig|rel=get
+  request:
+    body:
+      parameterType: null
+      signatures: []
+    urlparams: {}
+    headers: {}
+- name: /api/vms/{vm:id}/snapshots/{snapshot:id}/vmconfig/{vmconfig:id}|rel=get
+  request:
+    body:
+      parameterType: null
+      signatures: []
+    urlparams: {}
+    headers: {}
 - name: /api/vms/{vm:id}/tags|rel=get
   request:
     body:


--
To view, visit http://gerrit.ovirt.org/14719
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I795813b9c0d2be17a2e5f2a0d78976e1ffeadc19
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Sharad Mishra <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to