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\Autoscale\Resource;
12:
13: /**
14: * Description of Webhook
15: *
16: * @link
17: */
18: class Webhook extends AbstractResource
19: {
20:
21: public $id;
22: public $name;
23: public $metadata;
24: public $links;
25:
26: protected static $json_name = 'webhook';
27: protected static $url_resource = 'webhooks';
28:
29: public $createKeys = array(
30: 'name',
31: 'metadata'
32: );
33:
34: public function createJson()
35: {
36: $object = new \stdClass;
37: $object->name = $this->name;
38: $object->metadata = $this->metadata;
39:
40: return $object;
41: }
42:
43: }