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

Represents a SecurityGroup resource in the Network v2 service

Traits

Properties

$description string
$id string
$name string
$tenantId string

Methods

create (array $userOptions) : Creatable

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

delete () : void

Permanently delete this resource.

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.

Details

create(array $userOptions)

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

Parameters

$userOptions array

Return value

Creatable

Example code

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

delete()

Permanently delete this resource.

Return value

void

Example code

$securityGroup->delete();

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$securityGroup->retrieve();

update()

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

Return value

void

Example code

$securityGroup->update();