class Policy extends OperatorResource implements Creatable, Listable, Retrievable, Updateable, Deletable

Traits

Properties

$blob string
$id string
$links
$projectId string
$type string
$userId string

Methods

create (array $data) : Creatable

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

retrieve () : void

Retrieve details of the current resource from the remote API.

update () : void

Update the current resource with the configuration set out in the user 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::postPolicies}

Return value

Creatable

Example code

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

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$policy->retrieve();

update()

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

Return value

void

Example code

$policy->update();

delete()

Permanently delete this resource.

Return value

void

Example code

$policy->delete();