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: * 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: /**
43: * {@inheritDoc}
44: */
45: public function create($params = array())
46: {
47: return $this->noCreate();
48: }
49:
50: /**
51: * {@inheritDoc}
52: */
53: public function delete()
54: {
55: return $this->noDelete();
56: }
57:
58: }