Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

  • AbstractResource
  • Group
  • GroupConfiguration
  • LaunchConfiguration
  • ScalingPolicy
  • Webhook
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 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    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: }
PHP OpenCloud API API documentation generated by ApiGen 2.8.0