Class Subnet
A subnet represents an IP address block that can be used to assign IP
addresses to virtual instances (such as servers created using the OpenCloud\Compute\Service
. Each subnet must have a CIDR and must be associated
with a network.
- OpenCloud\Common\Base
-
OpenCloud\Common\Resource\BaseResource
-
OpenCloud\Common\Resource\PersistentResource
-
OpenCloud\Networking\Resource\Subnet
Namespace: OpenCloud\Networking\Resource
Package: OpenCloud\Networking\Resource
See: http://docs.openstack.org/api/openstack-network/2.0/content/Overview-d1e71.html#Subnet
Located at OpenCloud/Networking/Resource/Subnet.php
Package: OpenCloud\Networking\Resource
See: http://docs.openstack.org/api/openstack-network/2.0/content/Overview-d1e71.html#Subnet
Located at OpenCloud/Networking/Resource/Subnet.php
public
object
|
#
createJson( )
This method is inherited. The inherited method has protected scope but we are
widening the scope to public so this method may be called from other classes
such as |
PATCH_CONTENT_TYPE
|
protected static
string
|
$url_resource
|
# 'subnets' |
protected static
string
|
$json_name
|
# 'subnet' |
protected
mixed
|
$id
|
|
protected
mixed
|
$name
|
|
protected
mixed
|
$enableDhcp
|
|
protected
mixed
|
$networkId
|
|
protected
mixed
|
$dnsNameservers
|
|
protected
mixed
|
$allocationPools
|
|
protected
mixed
|
$hostRoutes
|
|
protected
mixed
|
$ipVersion
|
|
protected
mixed
|
$gatewayIp
|
|
protected
mixed
|
$cidr
|
|
protected
mixed
|
$tenantId
|
|
protected
mixed
|
$links
|
|
protected
array
|
$aliases
The aliases configure for the properties of the instance. |
# array(
'enable_dhcp' => 'enableDhcp',
'network_id' => 'networkId',
'dns_nameservers' => 'dnsNameservers',
'allocation_pools' => 'allocationPools',
'host_routes' => 'hostRoutes',
'ip_version' => 'ipVersion',
'gateway_ip' => 'gatewayIp',
'tenant_id' => 'tenantId'
) |
protected
array
|
$createKeys
|
# array(
'name',
'enableDhcp',
'networkId',
'allocationPools',
'hostRoutes',
'ipVersion',
'gatewayIp',
'cidr',
'tenantId'
) |
protected
array
|
$updateKeys
|
# array(
'name',
'enableDhcp',
'hostRoutes',
'gatewayIp'
) |
$metadata,
$parent,
$service
|