Class Network
The Network class represents a single virtual network
-
OpenCloud\Common\Base
-
OpenCloud\Common\PersistentObject
-
OpenCloud\Compute\Network
Methods summary
public
|
#
__construct( OpenCloud\Compute\Service $service, string $id = null )
Creates a new isolated Network object
Creates a new isolated Network object
NOTE: contains hacks to recognize the Rackspace public and private networks.
These are not really networks, but they show up in lists.
Parameters
- $service
OpenCloud\Compute $service The compute service associated with the network
- $id
string $id The ID of the network (this handles the pseudo-networks RAX_PUBLIC and
RAX_PRIVATE
Overrides
|
public
|
#
Update( mixed $params = array() )
Always throws an error; updates are not permitted
Always throws an error; updates are not permitted
Throws
NetworkUpdateError always
|
public
OpenCloud\HttpResponse
|
#
Delete( )
Deletes an isolated network
Deletes an isolated network
Returns
OpenCloud\HttpResponse
Throws
NetworkDeleteError if HTTP status is not Success
Api
|
public
string
|
#
Name( )
returns the visible name (label) of the network
returns the visible name (label) of the network
Returns
string
Api
|
protected
|
#
CreateJson( )
Creates the JSON object for the Create() method
Creates the JSON object for the Create() method
|
Methods inherited from OpenCloud\Common\PersistentObject
__set(),
action(),
checkExtension(),
create(),
createJson(),
createUrl(),
customAction(),
delete(),
findLink(),
getParent(),
getService(),
id(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
name(),
noCreate(),
noDelete(),
noUpdate(),
parent(),
primaryKeyField(),
refresh(),
region(),
resourceName(),
service(),
setParent(),
setService(),
status(),
update(),
updateJson(),
url(),
waitFor()
|