Add the mirrored property to the disk offering response

This commit is contained in:
Kris McQueen 2010-10-07 14:48:46 -07:00
parent e7b478f43d
commit 335613a8a9
2 changed files with 12 additions and 0 deletions

View File

@ -99,6 +99,7 @@ public class CreateDiskOfferingCmd extends BaseCmd {
response.setDomain(ApiDBUtils.findDomainById(responseObject.getDomainId()).getName());
response.setName(responseObject.getName());
response.setTags(responseObject.getTags());
response.setMirrored(responseObject.isMirrored());
} else {
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, "Failed to create disk offering");
}

View File

@ -43,6 +43,9 @@ public class DiskOfferingResponse extends BaseResponse {
@SerializedName("created")
private Date created;
@SerializedName("ismirrored")
private Boolean mirrored;
@SerializedName("tags")
private String tags;
@ -102,6 +105,14 @@ public class DiskOfferingResponse extends BaseResponse {
this.created = created;
}
public Boolean isMirrored() {
return mirrored;
}
public void setMirrored(Boolean mirrored) {
this.mirrored = mirrored;
}
public String getTags() {
return tags;
}