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 SecurityGroupRule

Security group rules provide users the ability to specify the types of traffic that are allowed to pass through to and from ports (represented by OpenCloud\Networking\Resource\Port) on a virtual server instance.

OpenCloud\Common\Base
Extended by OpenCloud\Common\Resource\BaseResource
Extended by OpenCloud\Common\Resource\PersistentResource
Extended by OpenCloud\Networking\Resource\SecurityGroupRule
Namespace: OpenCloud\Networking\Resource
Package: OpenCloud\Networking\Resource
See: http://developer.openstack.org/api-ref-networking-v2.html#security_groups
Located at OpenCloud/Networking/Resource/SecurityGroupRule.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()
public Guzzle\Http\Message\Response
# update( array $params = array() )

Update a resource

Update a resource

Parameters

$params

Returns

Guzzle\Http\Message\Response
\Guzzle\Http\Message\Response

Overrides

OpenCloud\Common\Resource\PersistentResource::update()
Methods inherited from OpenCloud\Common\Resource\PersistentResource
checkExtension(), create(), delete(), generateJsonPatch(), getAlias(), getUpdateablePropertiesAsArray(), noCreate(), noDelete(), noUpdate(), recursivelyAliasPropertyValue(), refresh(), refreshFromLocationUrl(), refreshFromParent(), 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
#'security-group-rules'
protected static string $json_name
#'security_group_rule'
protected mixed $id
#
protected mixed $direction
#
protected mixed $ethertype
#
protected mixed $portRangeMin
#
protected mixed $portRangeMax
#
protected mixed $protocol
#
protected mixed $remoteGroupId
#
protected mixed $remoteIpPrefix
#
protected mixed $securityGroupId
#
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( 'port_range_min' => 'portRangeMin', 'port_range_max' => 'portRangeMax', 'remote_group_id' => 'remoteGroupId', 'remote_ip_prefix' => 'remoteIpPrefix', 'security_group_id' => 'securityGroupId', 'tenant_id' => 'tenantId' )
protected array $createKeys
#array( 'direction', 'ethertype', 'securityGroupId', 'portRangeMin', 'portRangeMax', 'protocol', 'remoteGroupId', 'remoteIpPrefix' )
Properties inherited from OpenCloud\Common\Resource\BaseResource
$metadata, $parent, $service
API documentation generated by ApiGen 2.8.0