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 Glen Campbell <glen.campbell@rackspace.com>
9: * @author Jamie Hannaford <jamie.hannaford@rackspace.com>
10: */
11:
12: namespace OpenCloud\Compute;
13:
14: use OpenCloud\Common\PersistentObject;
15:
16: /**
17: * The Image class represents a stored machine image returned by the
18: * Compute service.
19: *
20: * In the future, this may be abstracted to access
21: * Glance (the OpenStack image store) directly, but it is currently
22: * not available to Rackspace customers, so we're using the /images
23: * resource on the servers API endpoint.
24: */
25: class Image extends PersistentObject
26: {
27:
28: public $status;
29: public $updated;
30: public $links;
31: public $minDisk;
32: public $id;
33: public $name;
34: public $created;
35: public $progress;
36: public $minRam;
37: public $metadata;
38: public $server;
39:
40: protected static $json_name = 'image';
41: protected static $url_resource = 'images';
42:
43: /**
44: * {@inheritDoc}
45: */
46: public function create($params = array())
47: {
48: return $this->noCreate();
49: }
50:
51: /**
52: * {@inheritDoc}
53: */
54: public function update($params = array())
55: {
56: return $this->noUpdate();
57: }
58:
59: }
60: