Class Flavor
The Flavor class represents a flavor defined by the Compute service
At its simplest, a Flavor represents a combination of RAM, disk space, and
compute CPUs, though there are other extended attributes.
-
OpenCloud\Common\Base
-
OpenCloud\Common\PersistentObject
-
OpenCloud\Compute\Flavor
Methods summary
public
HttpResponse
|
#
create( array $params = array() )
Creates a new object
Parameters
- $params
array $params array of values to set when creating the object
Returns
HttpResponse
Throws
VolumeCreateError if HTTP status is not Success
Overrides
|
public
HttpResponse
|
#
update( array $params = array() )
Updates an existing object
Updates an existing object
Parameters
- $params
array $params array of values to set when updating the object
Returns
HttpResponse
Throws
VolumeCreateError if HTTP status is not Success
Overrides
|
public
HttpResponse
|
#
delete( )
Deletes an object
Returns
HttpResponse
Throws
DeleteError if HTTP status is not Success
Overrides
|
Methods inherited from OpenCloud\Common\PersistentObject
__construct(),
__set(),
action(),
checkExtension(),
createJson(),
createUrl(),
customAction(),
findLink(),
getParent(),
getService(),
id(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
name(),
noCreate(),
noDelete(),
noUpdate(),
parent(),
primaryKeyField(),
refresh(),
region(),
resourceName(),
service(),
setParent(),
setService(),
status(),
updateJson(),
url(),
waitFor()
|