Overview

Namespaces

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

Classes

  • AsyncResponse
  • Domain
  • Object
  • PtrRecord
  • Record
  • Subdomain
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 1: <?php
 2: /**
 3:  * PHP OpenCloud library.
 4:  * 
 5:  * @copyright 2013 Rackspace Hosting, Inc. See LICENSE for information.
 6:  * @license   https://www.apache.org/licenses/LICENSE-2.0
 7:  * @author    Glen Campbell <glen.campbell@rackspace.com>
 8:  * @author    Jamie Hannaford <jamie.hannaford@rackspace.com>
 9:  */
10: 
11: namespace OpenCloud\DNS\Resource;
12: 
13: use OpenCloud\DNS\Service;
14: 
15: /**
16:  * The Record class represents a single domain record
17:  *
18:  * This is also used for PTR records.
19:  */
20: class Record extends Object 
21: {
22: 
23:     public $ttl;
24:     public $updated;
25:     public $created;
26:     public $name;
27:     public $id;
28:     public $type;
29:     public $data;
30:     public $priority;
31:     public $comment;
32: 
33:     protected static $json_name = false;
34:     protected static $json_collection_name = 'records';
35:     protected static $url_resource = 'records';
36: 
37:     protected $parent;
38:     
39:     protected $updateKeys = array(
40:         'name',
41:         'ttl',
42:         'data',
43:         'priority',
44:         'comment'
45:     );
46:     
47:     protected $createKeys = array(
48:         'type',
49:         'name',
50:         'ttl',
51:         'data',
52:         'priority',
53:         'comment'
54:     );
55: 
56: }
57: 
PHP OpenCloud API API documentation generated by ApiGen 2.8.0