Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CDN
      • Resource
    • CloudMonitoring
      • Collection
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Log
      • Resource
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Collection
      • Resource
    • Identity
      • Constants
      • Resource
    • Image
      • Enum
      • Resource
        • JsonPatch
        • Schema
    • LoadBalancer
      • Collection
      • Enum
      • Resource
    • Networking
      • Resource
    • ObjectStore
      • Constants
      • Enum
      • Exception
      • Resource
      • Upload
    • Orchestration
      • Resource
    • Queues
      • Collection
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • Network
  • Port
  • SecurityGroup
  • SecurityGroupRule
  • Subnet

Interfaces

  • NetworkInterface
  • Overview
  • Namespace
  • Class
  • Tree

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
Extended by OpenCloud\Common\Resource\BaseResource
Extended by OpenCloud\Common\Resource\PersistentResource
Extended by 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
Methods summary
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 OpenCloud\Networking\Service.

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 OpenCloud\Networking\Service.

Returns

object
object

Throws

RuntimeException
\RuntimeException

Overrides

OpenCloud\Common\Resource\PersistentResource::createJson()
Methods inherited from OpenCloud\Common\Resource\PersistentResource
checkExtension(), create(), delete(), generateJsonPatch(), getAlias(), getUpdateablePropertiesAsArray(), noCreate(), noDelete(), noUpdate(), recursivelyAliasPropertyValue(), refresh(), refreshFromLocationUrl(), refreshFromParent(), update(), updateJson(), waitFor()
Methods inherited from OpenCloud\Common\Resource\BaseResource
__construct(), findLink(), getClient(), getMetadata(), getParent(), getService(), getUrl(), 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()
Constants inherited from OpenCloud\Common\Base
PATCH_CONTENT_TYPE
Properties summary
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.

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' )
Properties inherited from OpenCloud\Common\Resource\BaseResource
$metadata, $parent, $service
API documentation generated by ApiGen 2.8.0