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") ServiceOffering createServiceOffering(String name, String displayText, int cpuNumber, int cpuSpeedInMHz, 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") ServiceOffering updateServiceOffering(String id, UpdateServiceOfferingOptions... options)
id
- service offering IDoptions
- optional arguments@Named(value="deleteServiceOffering") void deleteServiceOffering(String id)
id
- the ID of the service offering@Named(value="createDiskOffering") DiskOffering createDiskOffering(String name, String displayText, CreateDiskOfferingOptions... options)
name
- name of the disk offeringdisplayText
- display text for disk offeringoptions
- optional arguments@Named(value="updateDiskOffering") DiskOffering updateDiskOffering(String id, UpdateDiskOfferingOptions... options)
id
- disk offering IDoptions
- optional arguments@Named(value="deleteDiskOffering") void deleteDiskOffering(String id)
id
- the ID of the disk offering@Named(value="updateNetworkOffering") NetworkOffering updateNetworkOffering(String id, UpdateNetworkOfferingOptions... options)
id
- the id of the network offeringoptions
- optional argumentsCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.