class Network extends OperatorResource implements Listable, Retrievable, Creatable, Deletable

Represents a Networking v2 Network.

Traits

Contains reusable functionality for resources that have long operations which require waiting in order to reach a particular state.

Properties

$id string
$name string
$shared bool
$status string
$subnets array
$adminStateUp string
$tenantId string

Methods

retrieve () : void

Retrieve details of the current resource from the remote API.

bulkCreate (array $data) : Network[]

Creates multiple networks in a single request.

create (array $data) : Creatable

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

update ()

{@inheritDoc}

delete () : void

Permanently delete this resource.

Details

retrieve()

Retrieve details of the current resource from the remote API.

Return value

void

Example code

$network->retrieve();

bulkCreate(array $data)

Creates multiple networks in a single request.

Parameters

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

Return value

Network[]

Example code

$network = $network->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::postNetwork}

Return value

Creatable

Example code

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

update()

{@inheritDoc}

Example code

$network->update();

delete()

Permanently delete this resource.

Return value

void

Example code

$network->delete();