Class Network
The Network class represents a single virtual network
-
OpenCloud\Common\Base
-
OpenCloud\Common\Resource\BaseResource
-
OpenCloud\Common\Resource\PersistentResource
-
OpenCloud\Compute\Resource\Network
implements
OpenCloud\Networking\Resource\NetworkInterface
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
- The compute service associated with the network
- $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 \Guzzle\Http\Message\Response
Throws
Overrides
|
public
OpenCloud\HttpResponse
|
#
delete( )
Deletes an isolated network
Deletes an isolated network
Returns
OpenCloud\HttpResponse \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 string
Throws
NameError NameError
Api
|
protected
object
|
#
createJson( )
Creates the JSON object for the Create() method
Creates the JSON object for the Create() method
Returns
object 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
- URI path to add on
- $query
- Query to add on
Returns
mixed mixed
Overrides
|
public
string
|
#
getResourcePath( )
Ascertain the correct URI path.
Ascertain the correct URI path.
Returns
string string
|
public
string
|
#
getId( )
Returns
string string
Implementation of
|
Methods inherited from OpenCloud\Common\Resource\PersistentResource
checkExtension(),
create(),
generateJsonPatch(),
getAlias(),
getUpdateablePropertiesAsArray(),
noCreate(),
noDelete(),
noUpdate(),
recursivelyAliasPropertyValue(),
refresh(),
refreshFromLocationUrl(),
refreshFromParent(),
updateJson(),
waitFor()
|
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(),
getPatchHeaders(),
getProperty(),
hasLogger(),
makeResourceIteratorOptions(),
populate(),
propertyExists(),
setLogger(),
setProperty(),
stripNamespace(),
toCamel(),
toUnderscores()
|