class Flavor extends OperatorResource implements Listable, Retrievable, Creatable, Deletable

Represents a Compute v2 Flavor.

Traits

Properties

$disk int
$id string
$name string
$ram int
$swap int
$vcpus int
$links

Methods

retrieve () : void

Retrieve details of the current resource from the remote API.

create (array $userOptions) : Creatable

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

delete () : void

Permanently delete this resource.

Details

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$flavor->retrieve();

create(array $userOptions)

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

Parameters

$userOptions array

Return value

Creatable

Example code

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

delete()

Permanently delete this resource.

Return value

void

Example code

$flavor->delete();