You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9ef6f9f
Browse filesBrowse the repository at this point in the historyBrowse files
@Parameter(name=ApiConstants.ACCOUNT, type=CommandType.STRING, description="The account of the snapshot. The account parameter must be used with the domainId parameter.")
46
+
@Parameter(name = ApiConstants.ACCOUNT, type = CommandType.STRING, description = "The account of the snapshot. The account parameter must be used with the domainId parameter.")
47
47
privateStringaccountName;
48
48
49
-
@Parameter(name=ApiConstants.DOMAIN_ID, type=CommandType.LONG, description="The domain ID of the snapshot. If used with the account parameter, specifies a domain for the account associated with the disk volume.")
49
+
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.LONG, description = "The domain ID of the snapshot. If used with the account parameter, specifies a domain for the account associated with the disk volume.")
50
50
privateLongdomainId;
51
51
52
-
@Parameter(name=ApiConstants.VOLUME_ID, type=CommandType.LONG, required=true, description="The ID of the disk volume")
52
+
@Parameter(name = ApiConstants.VOLUME_ID, type = CommandType.LONG, required = true, description = "The ID of the disk volume")
53
53
privateLongvolumeId;
54
54
55
-
@Parameter(name=ApiConstants.POLICY_ID, type=CommandType.LONG, description="policy id of the snapshot, if this is null, then use MANUAL_POLICY.")
55
+
@Parameter(name = ApiConstants.POLICY_ID, type = CommandType.LONG, description = "policy id of the snapshot, if this is null, then use MANUAL_POLICY.")
thrownewCloudRuntimeException("Creating snapshot failed due to volume:" + volumeId + " doesn't exist");
1167
+
thrownewInvalidParameterValueException("Creating snapshot failed due to volume:" + volumeId + " doesn't exist");
1178
1168
}
1179
1169
if (volume.getState() != Volume.State.Ready) {
1180
-
thrownewInvalidParameterValueException("VolumeId: " + volumeId + " is not in Created state but " + volume.getState() + ". Cannot take snapshot.");
1170
+
thrownewInvalidParameterValueException("VolumeId: " + volumeId + " is not in " + Volume.State.Ready + " state but " + volume.getState() + ". Cannot take snapshot.");
if (_accountMgr.resourceLimitExceeded(owner, ResourceType.snapshot)) {
1189
1182
ResourceAllocationExceptionrae = newResourceAllocationException("Maximum number of snapshots for account: " + owner.getAccountName() + " has been exceeded.");
0 commit comments