class VolumeType extends OperatorResource implements Listable, Creatable, Updateable, Deletable

Traits

Properties

$id string
$name string

Methods

create (array $userOptions) : Creatable

Create a new resource according to the configuration set in the options.

update () : void

Update the current resource with the configuration set out in the user options.

delete () : void

Permanently delete this resource.

Details

create(array $userOptions)

Create a new resource according to the configuration set in the options.

Parameters

$userOptions array {see \OpenStack\BlockStorage\v2\Api::postTypes}

Return value

Creatable

Example code

$creatable = $volumeType->create($userOptions);

update()

Update the current resource with the configuration set out in the user options.

Return value

void

Example code

$volumeType->update();

delete()

Permanently delete this resource.

Return value

void

Example code

$volumeType->delete();