mirror of https://github.com/apache/cloudstack.git
Add the mirrored property to the disk offering response
This commit is contained in:
parent
e7b478f43d
commit
335613a8a9
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue