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

Traits

Properties

$domainId string
$parentId string
$enabled bool
$description string
$id string
$links
$name 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.

listUserRoles (array $options = array()) : Generator

No description

grantUserRole (array $options)

No description

checkUserRole (array $options) : bool

No description

revokeUserRole (array $options)

No description

listGroupRoles (array $options = array()) : Generator

No description

grantGroupRole (array $options)

No description

checkGroupRole (array $options) : bool

No description

revokeGroupRole (array $options)

No description

Details

create(array $data)

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

Parameters

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

Return value

Creatable

Example code

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

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$project->retrieve();

update()

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

Return value

void

Example code

$project->update();

delete()

Permanently delete this resource.

Return value

void

Example code

$project->delete();

listUserRoles(array $options = array())

Parameters

$options array {see \OpenStack\Identity\v3\Api::getProjectUserRoles}

Return value

Generator

Example code

$generator = $project->listUserRoles($options);

grantUserRole(array $options)

Parameters

$options array {see \OpenStack\Identity\v3\Api::putProjectUserRole}

Example code

$project->grantUserRole($options);

checkUserRole(array $options)

Parameters

$options array {see \OpenStack\Identity\v3\Api::headProjectUserRole}

Return value

bool

Example code

$bool = $project->checkUserRole($options);

revokeUserRole(array $options)

Parameters

$options array {see \OpenStack\Identity\v3\Api::deleteProjectUserRole}

Example code

$project->revokeUserRole($options);

listGroupRoles(array $options = array())

Parameters

$options array {see \OpenStack\Identity\v3\Api::getProjectGroupRoles}

Return value

Generator

Example code

$generator = $project->listGroupRoles($options);

grantGroupRole(array $options)

Parameters

$options array {see \OpenStack\Identity\v3\Api::putProjectGroupRole}

Example code

$project->grantGroupRole($options);

checkGroupRole(array $options)

Parameters

$options array {see \OpenStack\Identity\v3\Api::headProjectGroupRole}

Return value

bool

Example code

$bool = $project->checkGroupRole($options);

revokeGroupRole(array $options)

Parameters

$options array {see \OpenStack\Identity\v3\Api::deleteProjectGroupRole}

Example code

$project->revokeGroupRole($options);