class Role extends OperatorResource implements Creatable, Listable, Deletable

Traits

Properties

$id string
$name string
$links

Methods

create (array $data) : Creatable

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

delete () : void

Permanently delete this resource.

Details

create(array $data)

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

Parameters

$data array {see \OpenStack\Identity\v3\Api::postRoles}

Return value

Creatable

Example code

$creatable = $role->create($data);

delete()

Permanently delete this resource.

Return value

void

Example code

$role->delete();