Skip to content

Commit 2fc5521

Browse files
authored
Revert "api,server: encryptformat in volume response (#9106)"
This reverts commit fcca3e8.
1 parent 7aacbcb commit 2fc5521

File tree

4 files changed

+2
-19
lines changed

4 files changed

+2
-19
lines changed

api/src/main/java/org/apache/cloudstack/api/response/VolumeResponse.java

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,17 +290,13 @@ public class VolumeResponse extends BaseResponseWithTagInformation implements Co
290290
private String externalUuid;
291291

292292
@SerializedName(ApiConstants.VOLUME_CHECK_RESULT)
293-
@Param(description = "details for the volume check result, they may vary for different hypervisors", since = "4.19.1")
293+
@Param(description = "details for the volume check result, they may vary for different hypervisors, since = 4.19.1")
294294
private Map<String, String> volumeCheckResult;
295295

296296
@SerializedName(ApiConstants.VOLUME_REPAIR_RESULT)
297-
@Param(description = "details for the volume repair result, they may vary for different hypervisors", since = "4.19.1")
297+
@Param(description = "details for the volume repair result, they may vary for different hypervisors, since = 4.19.1")
298298
private Map<String, String> volumeRepairResult;
299299

300-
@SerializedName(ApiConstants.ENCRYPT_FORMAT)
301-
@Param(description = "the encrypt format of the volume", since = "4.19.1")
302-
private String encryptFormat;
303-
304300
public String getPath() {
305301
return path;
306302
}
@@ -846,8 +842,4 @@ public Map<String, String> getVolumeRepairResult() {
846842
public void setVolumeRepairResult(Map<String, String> volumeRepairResult) {
847843
this.volumeRepairResult = volumeRepairResult;
848844
}
849-
850-
public void setEncryptFormat(String encryptFormat) {
851-
this.encryptFormat = encryptFormat;
852-
}
853845
}

engine/schema/src/main/resources/META-INF/db/views/cloud.volume_view.sql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ SELECT
3939
`volumes`.`path` AS `path`,
4040
`volumes`.`chain_info` AS `chain_info`,
4141
`volumes`.`external_uuid` AS `external_uuid`,
42-
`volumes`.`encrypt_format` AS `encrypt_format`,
4342
`account`.`id` AS `account_id`,
4443
`account`.`uuid` AS `account_uuid`,
4544
`account`.`account_name` AS `account_name`,

server/src/main/java/com/cloud/api/query/dao/VolumeJoinDaoImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ public VolumeResponse newVolumeResponse(ResponseView view, VolumeJoinVO volume)
180180

181181
if (view == ResponseView.Full) {
182182
volResponse.setPath(volume.getPath());
183-
volResponse.setEncryptFormat(volume.getEncryptFormat());
184183
}
185184

186185
// populate owner.

server/src/main/java/com/cloud/api/query/vo/VolumeJoinVO.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,6 @@ public class VolumeJoinVO extends BaseViewWithTagInformationVO implements Contro
275275
@Column(name = "external_uuid")
276276
private String externalUuid = null;
277277

278-
@Column(name = "encrypt_format")
279-
private String encryptFormat;
280-
281278
public VolumeJoinVO() {
282279
}
283280

@@ -613,10 +610,6 @@ public void setExternalUuid(String externalUuid) {
613610
this.externalUuid = externalUuid;
614611
}
615612

616-
public String getEncryptFormat() {
617-
return encryptFormat;
618-
}
619-
620613
@Override
621614
public Class<?> getEntityType() {
622615
return Volume.class;

0 commit comments

Comments
 (0)