public interface GlobalOfferingApi extends OfferingApi
Modifier and Type | Method and Description |
---|---|
DiskOffering |
createDiskOffering(String name,
String displayText,
CreateDiskOfferingOptions... options)
Create a new disk offering
|
ServiceOffering |
createServiceOffering(String name,
String displayText,
int cpuNumber,
int cpuSpeedInMHz,
int memoryInMB,
CreateServiceOfferingOptions... options)
Create a new service offering
|
void |
deleteDiskOffering(String id)
Delete disk offering
|
void |
deleteServiceOffering(String id)
Delete service offering
|
DiskOffering |
updateDiskOffering(String id,
UpdateDiskOfferingOptions... options)
Update a disk offering
|
NetworkOffering |
updateNetworkOffering(String id,
UpdateNetworkOfferingOptions... options)
Update network offering
|
ServiceOffering |
updateServiceOffering(String id,
UpdateServiceOfferingOptions... options)
Update an existing service offering
|
getDiskOffering, getNetworkOffering, getServiceOffering, listDiskOfferings, listNetworkOfferings, listServiceOfferings
@Named(value="createServiceOffering") @GET @Consumes(value="application/json") ServiceOffering createServiceOffering(@QueryParam(value="name") String name, @QueryParam(value="displaytext") String displayText, @QueryParam(value="cpunumber") int cpuNumber, @QueryParam(value="cpuspeed") int cpuSpeedInMHz, @QueryParam(value="memory") int memoryInMB, CreateServiceOfferingOptions... options)
name
- name of the service offeringdisplayText
- display namecpuNumber
- number of CPUscpuSpeedInMHz
- CPU speed in MHzmemoryInMB
- the total memory of the service offering in MBoptions
- optional arguments@Named(value="updateServiceOffering") @GET @Consumes(value="application/json") ServiceOffering updateServiceOffering(@QueryParam(value="id") String id, UpdateServiceOfferingOptions... options)
id
- service offering IDoptions
- optional arguments@Named(value="deleteServiceOffering") @GET @Consumes(value="application/json") void deleteServiceOffering(@QueryParam(value="id") String id)
id
- the ID of the service offering@Named(value="createDiskOffering") @GET @Consumes(value="application/json") DiskOffering createDiskOffering(@QueryParam(value="name") String name, @QueryParam(value="displaytext") String displayText, CreateDiskOfferingOptions... options)
name
- name of the disk offeringdisplayText
- display text for disk offeringoptions
- optional arguments@Named(value="updateDiskOffering") @GET @Consumes(value="application/json") DiskOffering updateDiskOffering(@QueryParam(value="id") String id, UpdateDiskOfferingOptions... options)
id
- disk offering IDoptions
- optional arguments@Named(value="deleteDiskOffering") @GET @Consumes(value="application/json") void deleteDiskOffering(@QueryParam(value="id") String id)
id
- the ID of the disk offering@Named(value="updateNetworkOffering") @GET @Consumes(value="application/json") NetworkOffering updateNetworkOffering(@QueryParam(value="id") String id, UpdateNetworkOfferingOptions... options)
id
- the id of the network offeringoptions
- optional argumentsCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.