|
16 | 16 | // under the License. |
17 | 17 | package org.apache.cloudstack.api.command.admin.offering; |
18 | 18 |
|
19 | | -import java.util.ArrayList; |
20 | 19 | import java.util.List; |
21 | 20 |
|
22 | | -import org.apache.cloudstack.api.response.DomainResponse; |
23 | | -import org.apache.cloudstack.api.response.ZoneResponse; |
24 | | -import org.apache.log4j.Logger; |
25 | | - |
26 | 21 | import org.apache.cloudstack.api.APICommand; |
27 | 22 | import org.apache.cloudstack.api.ApiConstants; |
28 | 23 | import org.apache.cloudstack.api.ApiErrorCode; |
29 | 24 | import org.apache.cloudstack.api.BaseCmd; |
30 | 25 | import org.apache.cloudstack.api.Parameter; |
31 | 26 | import org.apache.cloudstack.api.ServerApiException; |
32 | 27 | 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; |
33 | 31 |
|
34 | 32 | import com.cloud.offering.DiskOffering; |
35 | 33 | import com.cloud.user.Account; |
@@ -64,12 +62,6 @@ public class UpdateDiskOfferingCmd extends BaseCmd { |
64 | 62 | description = "an optional field, whether to display the offering to the end user or not.") |
65 | 63 | private Boolean displayOffering; |
66 | 64 |
|
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 | | - |
73 | 65 | @Parameter(name = ApiConstants.DOMAIN_ID_LIST, |
74 | 66 | type = CommandType.LIST, |
75 | 67 | collectionType = CommandType.UUID, |
@@ -112,17 +104,7 @@ public Boolean getDisplayOffering() { |
112 | 104 | return displayOffering; |
113 | 105 | } |
114 | 106 |
|
115 | | - public Long getDomainId() { |
116 | | - return domainId; |
117 | | - } |
118 | | - |
119 | 107 | public List<Long> getDomainIds() { |
120 | | - if (domainId != null) { |
121 | | - if (domainIds == null) { |
122 | | - domainIds = new ArrayList<>(); |
123 | | - } |
124 | | - domainIds.add(domainId); |
125 | | - } |
126 | 108 | return domainIds; |
127 | 109 | } |
128 | 110 |
|
|
0 commit comments