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
-
OpenCloud\Common\PersistentObject
-
OpenCloud\DNS\Resource\Object
-
OpenCloud\DNS\Resource\Record
-
OpenCloud\DNS\Resource\PtrRecord
Methods summary
public
|
#
__construct( mixed $parent, mixed $info = null )
constructur ensures that the record type is PTR
constructur ensures that the record type is PTR
Parameters
- $parent
mixed $service The service object for this resource
- $info
mixed $info The ID or array/object of data
Overrides
|
public
OpenCloud\DNS\Resource\AsyncResponse
|
#
create( array $params = array() )
DNS PTR Create() method requires a server
DNS PTR Create() method requires a server
Generally called as Create(array('server'=>$server))
Parameters
- $params
array $params array of key/value pairs
Returns
Throws
VolumeCreateError if HTTP status is not Success
Overrides
|
public
OpenCloud\DNS\Resource\AsyncResponse
|
#
update( array $params = array() )
DNS PTR Update() method requires a server
DNS PTR Update() method requires a server
Parameters
- $params
array $params array of key/value pairs
Returns
Throws
VolumeCreateError if HTTP status is not Success
Overrides
|
public
OpenCloud\DNS\Resource\AsyncResponse
|
#
delete( )
DNS PTR Delete() method requires a server
DNS PTR Delete() method requires a server
Note that delete will remove ALL PTR records associated with the device
unless you pass in the parameter ip={ip address}
Returns
Throws
DeleteError if HTTP status is not Success
Overrides
|
protected
stdClass
|
#
createJson( )
Specialized JSON for DNS PTR creates and updates
Specialized JSON for DNS PTR creates and updates
Returns
Throws
CreateError if not overridden
Overrides
|
protected
stdClass
|
#
updateJson( mixed $params = array() )
The Update() JSON requires a record ID
The Update() JSON requires a record ID
Returns
Throws
UpdateError if not overridden
Overrides
|
Methods inherited from OpenCloud\Common\PersistentObject
action(),
checkExtension(),
createUrl(),
findLink(),
getClient(),
getMetadata(),
getParent(),
getService(),
getUrl(),
id(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
name(),
noCreate(),
noDelete(),
noUpdate(),
parseResponse(),
primaryKeyField(),
refresh(),
refreshFromLocationUrl(),
region(),
resourceName(),
setMetadata(),
setParent(),
setService(),
status(),
url(),
waitFor()
|
Methods inherited from OpenCloud\Common\Base
__call(),
checkJsonError(),
generateUuid(),
getLogger(),
getProperty(),
makeResourceIteratorOptions(),
populate(),
propertyExists(),
setLogger(),
setProperty(),
stripNamespace(),
toCamel(),
toUnderscores()
|
Properties inherited from OpenCloud\DNS\Resource\Record
$comment,
$createKeys,
$created,
$data,
$id,
$name,
$parent,
$priority,
$ttl,
$type,
$updateKeys,
$updated
|