Class Network
The Network class represents a single virtual network
-
OpenCloud\Common\Base
-
OpenCloud\Common\PersistentObject
-
OpenCloud\Compute\Resource\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 Network::RAX_PUBLIC
and Network::RAX_PRIVATE
Overrides
|
public
HttpResponse
|
#
update( array $params = array() )
Always throws an error; updates are not permitted
Always throws an error; updates are not permitted
Parameters
- $params
array $params array of values to set when updating the object
Returns
HttpResponse
Throws
NetworkUpdateError always
Overrides
|
public
OpenCloud\HttpResponse
|
#
delete( )
Deletes an isolated network
Deletes an isolated network
Returns
OpenCloud\HttpResponse
Throws
NetworkDeleteError if HTTP status is not Success
Api
Overrides
|
public
string
|
#
name( )
returns the visible name (label) of the network
returns the visible name (label) of the network
Returns
string
Throws
NameError if attribute 'name' is not defined
Api
Overrides
|
protected
|
#
createJson( )
Creates the JSON object for the Create() method
Creates the JSON object for the Create() method
Throws
CreateError if not overridden
Overrides
|
Methods inherited from OpenCloud\Common\PersistentObject
action(),
checkExtension(),
create(),
createUrl(),
findLink(),
getClient(),
getMetadata(),
getParent(),
getService(),
getUrl(),
id(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
noCreate(),
noDelete(),
noUpdate(),
parseResponse(),
primaryKeyField(),
refresh(),
refreshFromLocationUrl(),
region(),
resourceName(),
setMetadata(),
setParent(),
setService(),
status(),
updateJson(),
url(),
waitFor()
|
Methods inherited from OpenCloud\Common\Base
__call(),
checkJsonError(),
generateUuid(),
getLogger(),
getProperty(),
makeResourceIteratorOptions(),
populate(),
propertyExists(),
setLogger(),
setProperty(),
stripNamespace(),
toCamel(),
toUnderscores()
|