Class Network
The Network class represents a single virtual network
-
OpenCloud\Common\Base
-
OpenCloud\Common\Resource\BaseResource
-
OpenCloud\Common\Resource\PersistentResource
-
OpenCloud\Common\PersistentObject
-
OpenCloud\Compute\Resource\Network
Methods summary
public
OpenCloud\Compute\Resource\Network
|
#
__construct( OpenCloud\Compute\Service $service, string|null $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
$service The compute service associated with the network
- $id
string|null $id The ID of the network (this handles the pseudo-networks Network::RAX_PUBLIC
and Network::RAX_PRIVATE
Returns
Overrides
|
public
Guzzle\Http\Message\Response
|
#
update( array $params = array() )
Always throws an error; updates are not permitted
Always throws an error; updates are not permitted
Parameters
Returns
Guzzle\Http\Message\Response
Throws
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
Api
Overrides
|
protected
object
|
#
createJson( )
Creates the JSON object for the Create() method
Creates the JSON object for the Create() method
Returns
object
Throws
Overrides
|
public
mixed
|
#
getUrl( null $path = null, array $query = array() )
Rackspace Cloud Networks operates on a different URI than OpenStack Neutron.
Get this resource's URL
Rackspace Cloud Networks operates on a different URI than OpenStack Neutron.
Get this resource's URL
Parameters
- $path
null $path URI path to add on
- $query
array $query Query to add on
Returns
mixed
Overrides
|
public
string
|
#
getResourcePath( )
Ascertain the correct URI path.
Ascertain the correct URI path.
Returns
string
|
Methods inherited from OpenCloud\Common\Resource\BaseResource
findLink(),
getClient(),
getMetadata(),
getParent(),
getService(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
parseResponse(),
primaryKeyField(),
resourceName(),
setMetadata(),
setParent(),
setService()
|
Methods inherited from OpenCloud\Common\Base
__call(),
checkJsonError(),
generateUuid(),
getInstance(),
getJsonHeader(),
getLogger(),
getProperty(),
makeResourceIteratorOptions(),
populate(),
propertyExists(),
setLogger(),
setProperty(),
stripNamespace(),
toCamel(),
toUnderscores()
|