LaunchConfiguration.php
1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* PHP OpenCloud library.
*
* @copyright 2014 Rackspace Hosting, Inc. See LICENSE for information.
* @license https://www.apache.org/licenses/LICENSE-2.0
* @author Jamie Hannaford <jamie.hannaford@rackspace.com>
*/
namespace OpenCloud\Autoscale\Resource;
/**
* This configuration specifies what to do when we want to create a new server.
* What image to boot, on what flavor, and which load balancer to connect it to.
*
* The Launch Configuration Contains:
*
* - Launch Configuration Type (Only type currently supported is "launch_server")
* - Arguments:
* - Server
* - name
* - flavor
* - imageRef (This is the ID of the Cloud Server image you will boot)
* - Load Balancer
* - loadBalancerId
* - port
*
* @link https://github.com/rackerlabs/otter/blob/master/doc/getting_started.rst
* @link http://docs.autoscale.apiary.io/
*/
class LaunchConfiguration extends AbstractResource
{
public $type;
public $args;
protected static $json_name = 'launchConfiguration';
protected static $url_resource = 'launch';
public $createKeys = array(
'type',
'args'
);
/**
* {@inheritDoc}
*/
public function create($params = array())
{
return $this->noCreate();
}
/**
* {@inheritDoc}
*/
public function delete()
{
return $this->noDelete();
}
}