Skip to content

Commit 3b9e2b5

Browse files
shwstppryadvr
authored andcommitted
api: removed domainid parameter for updateDiskOffering API
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 8bd7674 commit 3b9e2b5

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

api/src/main/java/org/apache/cloudstack/api/command/admin/offering/UpdateDiskOfferingCmd.java

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,18 @@
1616
// under the License.
1717
package org.apache.cloudstack.api.command.admin.offering;
1818

19-
import java.util.ArrayList;
2019
import java.util.List;
2120

22-
import org.apache.cloudstack.api.response.DomainResponse;
23-
import org.apache.cloudstack.api.response.ZoneResponse;
24-
import org.apache.log4j.Logger;
25-
2621
import org.apache.cloudstack.api.APICommand;
2722
import org.apache.cloudstack.api.ApiConstants;
2823
import org.apache.cloudstack.api.ApiErrorCode;
2924
import org.apache.cloudstack.api.BaseCmd;
3025
import org.apache.cloudstack.api.Parameter;
3126
import org.apache.cloudstack.api.ServerApiException;
3227
import org.apache.cloudstack.api.response.DiskOfferingResponse;
28+
import org.apache.cloudstack.api.response.DomainResponse;
29+
import org.apache.cloudstack.api.response.ZoneResponse;
30+
import org.apache.log4j.Logger;
3331

3432
import com.cloud.offering.DiskOffering;
3533
import com.cloud.user.Account;
@@ -64,12 +62,6 @@ public class UpdateDiskOfferingCmd extends BaseCmd {
6462
description = "an optional field, whether to display the offering to the end user or not.")
6563
private Boolean displayOffering;
6664

67-
@Parameter(name = ApiConstants.DOMAIN_ID,
68-
type = CommandType.UUID,
69-
entityType = DomainResponse.class,
70-
description = "the ID of the containing domain, null for public offerings")
71-
private Long domainId;
72-
7365
@Parameter(name = ApiConstants.DOMAIN_ID_LIST,
7466
type = CommandType.LIST,
7567
collectionType = CommandType.UUID,
@@ -112,17 +104,7 @@ public Boolean getDisplayOffering() {
112104
return displayOffering;
113105
}
114106

115-
public Long getDomainId() {
116-
return domainId;
117-
}
118-
119107
public List<Long> getDomainIds() {
120-
if (domainId != null) {
121-
if (domainIds == null) {
122-
domainIds = new ArrayList<>();
123-
}
124-
domainIds.add(domainId);
125-
}
126108
return domainIds;
127109
}
128110

0 commit comments

Comments
 (0)