|
21 | 21 | import java.util.LinkedHashSet; |
22 | 22 | import java.util.Set; |
23 | 23 |
|
24 | | -import com.cloud.hypervisor.Hypervisor; |
25 | 24 | import org.apache.cloudstack.api.ApiConstants; |
26 | 25 | import org.apache.cloudstack.api.BaseResponseWithTagInformation; |
27 | 26 | import org.apache.cloudstack.api.EntityReference; |
28 | 27 |
|
| 28 | +import com.cloud.hypervisor.Hypervisor; |
29 | 29 | import com.cloud.serializer.Param; |
30 | 30 | import com.cloud.vm.snapshot.VMSnapshot; |
31 | 31 | import com.google.gson.annotations.SerializedName; |
@@ -57,9 +57,17 @@ public class VMSnapshotResponse extends BaseResponseWithTagInformation implement |
57 | 57 | @Param(description = "the Zone ID of the vm snapshot") |
58 | 58 | private String zoneId; |
59 | 59 |
|
| 60 | + @SerializedName(ApiConstants.ZONE_NAME) |
| 61 | + @Param(description = "the Zone name of the vm snapshot", since = "4.15.1") |
| 62 | + private String zoneName; |
| 63 | + |
60 | 64 | @SerializedName(ApiConstants.VIRTUAL_MACHINE_ID) |
61 | 65 | @Param(description = "the vm ID of the vm snapshot") |
62 | | - private String virtualMachineid; |
| 66 | + private String virtualMachineId; |
| 67 | + |
| 68 | + @SerializedName(ApiConstants.VIRTUAL_MACHINE_NAME) |
| 69 | + @Param(description = "the vm name of the vm snapshot", since = "4.15.1") |
| 70 | + private String virtualMachineName; |
63 | 71 |
|
64 | 72 | @SerializedName("parent") |
65 | 73 | @Param(description = "the parent ID of the vm snapshot") |
@@ -154,12 +162,28 @@ public void setZoneId(String zoneId) { |
154 | 162 | this.zoneId = zoneId; |
155 | 163 | } |
156 | 164 |
|
157 | | - public String getVirtualMachineid() { |
158 | | - return virtualMachineid; |
| 165 | + public String getZoneName() { |
| 166 | + return zoneName; |
| 167 | + } |
| 168 | + |
| 169 | + public void setZoneName(String zoneName) { |
| 170 | + this.zoneName = zoneName; |
| 171 | + } |
| 172 | + |
| 173 | + public String getVirtualMachineId() { |
| 174 | + return virtualMachineId; |
| 175 | + } |
| 176 | + |
| 177 | + public void setVirtualMachineId(String virtualMachineId) { |
| 178 | + this.virtualMachineId = virtualMachineId; |
| 179 | + } |
| 180 | + |
| 181 | + public String getVirtualMachineName() { |
| 182 | + return virtualMachineName; |
159 | 183 | } |
160 | 184 |
|
161 | | - public void setVirtualMachineid(String virtualMachineid) { |
162 | | - this.virtualMachineid = virtualMachineid; |
| 185 | + public void setVirtualMachineName(String virtualMachineName) { |
| 186 | + this.virtualMachineName = virtualMachineName; |
163 | 187 | } |
164 | 188 |
|
165 | 189 | public void setName(String name) { |
|
0 commit comments