# Class Record

The Record class represents a single domain record

This is also used for PTR records.

  OpenCloud\Common\Base
  OpenCloud\Common\Resource\BaseResource
  OpenCloud\Common\Resource\PersistentResource
  OpenCloud\DNS\Resource\AbstractResource
  OpenCloud\DNS\Resource\Record

#### Direct known subclasses

OpenCloud\DNS\Resource\PtrRecord
Namespace: OpenCloud\DNS\Resource
Located at OpenCloud/DNS/Resource/Record.php

Methods inherited from OpenCloud\DNS\Resource\AbstractResource
`create(), createJson(), delete(), getCreateKeys(), getUpdateKeys(), update(), updateJson()`

Methods inherited from OpenCloud\Common\Resource\PersistentResource
`checkExtension(), getAlias(), noCreate(), noDelete(), noUpdate(), refresh(), refreshFromLocationUrl(), 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(), getProperty(), makeResourceIteratorOptions(), populate(), propertyExists(), setLogger(), setProperty(), stripNamespace(), toCamel(), toUnderscores()`

Properties summary
`public mixed` | $ttl | `` | #
`public mixed` | $updated | `` | #
`public mixed` | $created | `` | #
`public mixed` | $name | `` | #
`public mixed` | $id | `` | #
`public mixed` | $type | `` | #
`public mixed` | $data | `` | #
`public mixed` | $priority | `` | #
`public mixed` | $comment | `` | #
`protected static boolean` | $json_name | `false` | #
`protected static string` | $json_collection_name | `'records'` | #
`protected static string` | $url_resource | `'records'` | #
`protected BaseResource` | $parent | `` | #
`protected array` | $updateKeys | `array( 'name', 'ttl', 'data', 'priority', 'comment' )` | #
`protected array` | $createKeys | `array( 'type', 'name', 'ttl', 'data', 'priority', 'comment' )` | #

Properties inherited from OpenCloud\Common\Resource\BaseResource
`$metadata, $service`

Properties inherited from OpenCloud\Common\Base
`$aliases`