1: <?php
2: /**
3: * PHP OpenCloud library.
4: *
5: * @copyright Copyright 2013 Rackspace US, Inc. See COPYING for licensing information.
6: * @license https://www.apache.org/licenses/LICENSE-2.0 Apache 2.0
7: * @version 1.6.0
8: * @author Glen Campbell <glen.campbell@rackspace.com>
9: * @author Jamie Hannaford <jamie.hannaford@rackspace.com>
10: */
11:
12: namespace OpenCloud\LoadBalancer\Resources;
13:
14: /**
15: * Sub-resource to manage Metadata
16: */
17: class Metadata extends SubResource
18: {
19:
20: public $id;
21: public $key;
22: public $value;
23:
24: protected static $json_name = 'meta';
25: protected static $json_collection_name = 'metadata';
26: protected static $url_resource = 'metadata';
27:
28: protected $createKeys = array(
29: 'key',
30: 'value'
31: );
32:
33: public function name()
34: {
35: return $this->key;
36: }
37:
38: }
39: