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

  • AbstractResource
  • AsyncResponse
  • Domain
  • PtrRecord
  • Record
  • Subdomain

Interfaces

  • HasPtrRecordsInterface
  • Overview
  • Namespace
  • Class
  • Tree

Class PtrRecord

PTR records are used for reverse DNS

The PtrRecord object is nearly identical with the Record object. However, the PtrRecord is a child of the service, and not a child of a Domain.

OpenCloud\Common\Base
Extended by OpenCloud\Common\Resource\BaseResource
Extended by OpenCloud\Common\Resource\PersistentResource
Extended by OpenCloud\DNS\Resource\AbstractResource
Extended by OpenCloud\DNS\Resource\Record
Extended by OpenCloud\DNS\Resource\PtrRecord
Namespace: OpenCloud\DNS\Resource
Located at OpenCloud/DNS/Resource/PtrRecord.php
Methods summary
public
# __construct( ServiceInterface $service, mixed $info = null )

Parameters

$service
The service that this resource belongs to
$info
$data

Overrides

OpenCloud\Common\Resource\BaseResource::__construct()
protected
# populateRecord( array $params = array() )

Used to internally populate this object with the appropriate type checks

Used to internally populate this object with the appropriate type checks

Parameters

$params

Throws

InvalidArgumentException
If no parent device set
public
# setDeviceParent( OpenCloud\DNS\Resource\HasPtrRecordsInterface $parent )

Set the parent device

Set the parent device

Parameters

$parent
public OpenCloud\DNS\Resource\HasPtrRecordsInterface
# getDeviceParent( )

Returns

OpenCloud\DNS\Resource\HasPtrRecordsInterface
HasPtrRecordsInterface
public Guzzle\Http\Message\Response
# create( array $params = array() )

Create a new resource

Create a new resource

Parameters

$params

Returns

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

Overrides

OpenCloud\DNS\Resource\AbstractResource::create()
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\DNS\Resource\AbstractResource::update()
public Guzzle\Http\Message\Response
# delete( )

Delete this resource

Delete this resource

Returns

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

Overrides

OpenCloud\DNS\Resource\AbstractResource::delete()
protected object
# createJson( )

Provides JSON for create request body

Provides JSON for create request body

Returns

object
object

Throws

RuntimeException
\RuntimeException

Overrides

OpenCloud\DNS\Resource\AbstractResource::createJson()
protected
# updateJson( mixed $params = array() )

Provides JSON for update request body

Provides JSON for update request body

Overrides

OpenCloud\DNS\Resource\AbstractResource::updateJson()
Methods inherited from OpenCloud\DNS\Resource\AbstractResource
getCreateKeys(), getUpdateKeys()
Methods inherited from OpenCloud\Common\Resource\PersistentResource
checkExtension(), generateJsonPatch(), getAlias(), getUpdateablePropertiesAsArray(), noCreate(), noDelete(), noUpdate(), recursivelyAliasPropertyValue(), refresh(), refreshFromLocationUrl(), refreshFromParent(), waitFor()
Methods inherited from OpenCloud\Common\Resource\BaseResource
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
public OpenCloud\DNS\Resource\HasPtrRecordsInterface $server

The device which this record refers to

The device which this record refers to

#
protected static boolean $json_name
#false
protected static string $json_collection_name
#'records'
protected static string $url_resource
#'rdns'
Properties inherited from OpenCloud\DNS\Resource\Record
$comment, $createKeys, $created, $data, $id, $name, $parent, $priority, $ttl, $type, $updateKeys, $updated
Properties inherited from OpenCloud\Common\Resource\BaseResource
$metadata, $service
Properties inherited from OpenCloud\Common\Base
$aliases
API documentation generated by ApiGen 2.8.0