2020import java .util .List ;
2121import java .util .Map ;
2222
23+ import org .apache .cloudstack .api .command .admin .vpc .CreateVPCOfferingCmd ;
2324import org .apache .cloudstack .api .command .admin .vpc .UpdateVPCOfferingCmd ;
25+ import org .apache .cloudstack .api .command .user .vpc .ListVPCOfferingsCmd ;
2426
2527import com .cloud .utils .Pair ;
2628
2729public interface VpcProvisioningService {
2830
29- public VpcOffering getVpcOffering (long vpcOfferingId );
31+ VpcOffering getVpcOffering (long vpcOfferingId );
3032
31- public VpcOffering createVpcOffering (String name , String displayText , List <String > supportedServices ,
32- Map <String , List <String >> serviceProviders ,
33- Map serviceCapabilitystList ,
34- Long serviceOfferingId );
33+ VpcOffering createVpcOffering (CreateVPCOfferingCmd cmd );
3534
36- Pair <List <? extends VpcOffering >,Integer > listVpcOfferings (Long id , String name , String displayText , List <String > supportedServicesStr , Boolean isDefault , String keyword ,
37- String state , Long startIndex , Long pageSizeVal );
35+ VpcOffering createVpcOffering (String name , String displayText , List <String > supportedServices ,
36+ Map <String , List <String >> serviceProviders ,
37+ Map serviceCapabilitystList ,
38+ Long serviceOfferingId , List <Long > domainIds , List <Long > zoneIds );
39+
40+ Pair <List <? extends VpcOffering >,Integer > listVpcOfferings (ListVPCOfferingsCmd cmd );
3841
3942 /**
4043 * @param offId
@@ -46,9 +49,22 @@ Pair<List<? extends VpcOffering>,Integer> listVpcOfferings(Long id, String name,
4649 public VpcOffering updateVpcOffering (long vpcOffId , String vpcOfferingName , String displayText , String state );
4750
4851 /**
49- * @param vpcOfferingCmd
52+ * @param cmd
5053 * @return
5154 */
52- public VpcOffering updateVpcOffering (final UpdateVPCOfferingCmd vpcOfferingCmd );
55+ VpcOffering updateVpcOffering (final UpdateVPCOfferingCmd cmd );
56+
57+ /**
58+ * Retrieve ID of domains for a VPC offering
59+ *
60+ * @param vpcOfferingId
61+ */
62+ List <Long > getVpcOfferingDomains (Long vpcOfferingId );
5363
64+ /**
65+ * Retrieve ID of domains for a VPC offering
66+ *
67+ * @param vpcOfferingId
68+ */
69+ List <Long > getVpcOfferingZones (Long vpcOfferingId );
5470}
0 commit comments