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 Stephen Sugden <openstack@stephensugden.com>
8: */
9:
10: namespace OpenCloud\Orchestration;
11:
12: use OpenCloud\Common\Service\AbstractService;
13: use OpenCloud\OpenStack;
14:
15: /**
16: * The Orchestration class represents the OpenStack Heat service.
17: *
18: * Heat is a service to orchestrate multiple composite cloud applications using
19: * the AWS CloudFormation template format, through both an OpenStack-native ReST
20: * API and a CloudFormation-compatible Query API.
21: *
22: * @codeCoverageIgnore
23: */
24: class Service extends AbstractService
25: {
26: const DEFAULT_TYPE = 'orchestration';
27: const DEFAULT_NAME = 'cloudOrchestration';
28:
29: /**
30: * Returns a Stack object associated with this Orchestration service
31: *
32: * @api
33: * @param string $id - the stack with the ID is retrieved
34: * @returns Stack object
35: */
36: public function stack($id = null)
37: {
38: return new Stack($this, $id);
39: }
40:
41: /**
42: * Return namespaces.
43: *
44: * @return array
45: */
46: public function namespaces()
47: {
48: return array();
49: }
50: }
51: