Class Flavor
A resource configuration for a server. Each flavor is a unique combination of
disk, memory, vCPUs, and network bandwidth.
-
OpenCloud\Common\Base
-
OpenCloud\Common\PersistentObject
-
OpenCloud\Compute\Resource\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
Api
Overrides
|
public
HttpResponse
|
#
delete( )
Deletes an object
Returns
HttpResponse
Throws
DeleteError if HTTP status is not Success
Api
Overrides
|
Methods inherited from OpenCloud\Common\PersistentObject
__construct(),
action(),
checkExtension(),
createJson(),
createUrl(),
findLink(),
getClient(),
getMetadata(),
getParent(),
getService(),
getUrl(),
id(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
name(),
noCreate(),
noDelete(),
noUpdate(),
parseResponse(),
primaryKeyField(),
refresh(),
refreshFromLocationUrl(),
region(),
resourceName(),
setMetadata(),
setParent(),
setService(),
status(),
updateJson(),
url(),
waitFor()
|
Methods inherited from OpenCloud\Common\Base
__call(),
checkJsonError(),
generateUuid(),
getLogger(),
getProperty(),
makeResourceIteratorOptions(),
populate(),
propertyExists(),
setLogger(),
setProperty(),
stripNamespace(),
toCamel(),
toUnderscores()
|