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

Traits

Properties

$domainId string
$id string
$description 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.

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

No description

addUser (array $options)

No description

removeUser (array $options)

No description

checkMembership (array $options) : bool

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::postGroups}

Return value

Creatable

Example code

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

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$group->retrieve();

update()

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

Return value

void

Example code

$group->update();

delete()

Permanently delete this resource.

Return value

void

Example code

$group->delete();

listUsers(array $options = array())

Parameters

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

Return value

Generator

Example code

$generator = $group->listUsers($options);

addUser(array $options)

Parameters

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

Example code

$group->addUser($options);

removeUser(array $options)

Parameters

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

Example code

$group->removeUser($options);

checkMembership(array $options)

Parameters

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

Return value

bool

Example code

$bool = $group->checkMembership($options);