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: * This specifies the basic elements of the group. The Group Configuration contains:
15: *
16: * - Group Name
17: * - Group Cooldown (how long a group has to wait before you can scale again in seconds)
18: * - Minimum and Maximum number of entities
19: *
20: * @link https://github.com/rackerlabs/otter/blob/master/doc/getting_started.rst
21: * @link http://docs.autoscale.apiary.io/
22: */
23: class GroupConfiguration extends AbstractResource
24: {
25:
26: public $name;
27: public $cooldown;
28: public $minEntities;
29: public $maxEntities;
30: public $metadata;
31:
32: protected static $json_name = 'groupConfiguration';
33: protected static $url_resource = 'config';
34:
35: public $createKeys = array(
36: 'name',
37: 'cooldown',
38: 'minEntities',
39: 'maxEntities'
40: );
41:
42: public function create($params = array())
43: {
44: return $this->noCreate();
45: }
46:
47: public function delete()
48: {
49: return $this->noDelete();
50: }
51:
52: }