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

Represents a Networking v2 Network.

Traits

Properties

$id string
$name string
$enableDhcp bool
$networkId string
$dnsNameservers array
$allocationPools array
$hostRoutes array
$ipVersion int
$gatewayIp string
$cidr string
$tenantId string
$links

Methods

retrieve () : void

Retrieve details of the current resource from the remote API.

bulkCreate (array $data) : Subnet[]

Creates multiple subnets in a single request.

create (array $data) : Creatable

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

update () : void

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

delete () : void

Permanently delete this resource.

Details

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$subnet->retrieve();

bulkCreate(array $data)

Creates multiple subnets in a single request.

Parameters

$data array {see \OpenStack\Networking\v2\Api::postSubnets}

Return value

Subnet[]

Example code

$subnet = $subnet->bulkCreate($data);

create(array $data)

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

Parameters

$data array {see \OpenStack\Networking\v2\Api::postSubnet}

Return value

Creatable

Example code

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

update()

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

Return value

void

Example code

$subnet->update();

delete()

Permanently delete this resource.

Return value

void

Example code

$subnet->delete();