Class Volume
The Volume class represents a single block storage volume
-
OpenCloud\Common\Base
-
OpenCloud\Common\PersistentObject
-
OpenCloud\Volume\Resource\Volume
Methods summary
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
string
|
#
name( )
Returns the displayable name of the object
Returns the displayable name of the object
Can be overridden by child objects; must be overridden by child
objects if the object does not have a name attribute defined.
Returns
string
Throws
NameError if attribute 'name' is not defined
Api
Overrides
|
protected
|
#
createJson( )
Returns an object for the Create() method JSON Must be overridden in a child
class.
Returns an object for the Create() method JSON Must be overridden in a child
class.
Throws
CreateError if not overridden
Overrides
|
Methods inherited from OpenCloud\Common\PersistentObject
__construct(),
action(),
checkExtension(),
create(),
createUrl(),
delete(),
findLink(),
getClient(),
getMetadata(),
getParent(),
getService(),
getUrl(),
id(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
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()
|