Overview

Namespaces

  • None
  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Exceptions
      • Log
      • Request
        • Response
    • Compute
    • Database
    • DNS
    • LoadBalancer
      • Resources
    • ObjectStore
      • Resource
    • Orchestration
    • Volume
  • PHP

Classes

  • Flavor
  • Image
  • Network
  • Server
  • ServerMetadata
  • Service
  • VolumeAttachment
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 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 Flavor class represents a flavor defined by the Compute service
18:  *
19:  * At its simplest, a Flavor represents a combination of RAM, disk space,
20:  * and compute CPUs, though there are other extended attributes.
21:  */
22: class Flavor extends PersistentObject 
23: {
24: 
25:     public $status;
26:     public $updated;
27:     public $vcpus;
28:     public $disk;
29:     public $name;
30:     public $links;
31:     public $rxtx_factor;
32:     public $ram;
33:     public $id;
34:     public $swap;
35: 
36:     protected static $json_name = 'flavor';
37:     protected static $url_resource = 'flavors';
38:     
39:     /**
40:      * {@inheritDoc}
41:      */
42:     public function create($params = array()) 
43:     { 
44:         return $this->noCreate(); 
45:     }
46:     
47:     /**
48:      * {@inheritDoc}
49:      */
50:     public function update($params = array()) 
51:     { 
52:         return $this->noUpdate(); 
53:     }
54:     
55:     /**
56:      * {@inheritDoc}
57:      */
58:     public function delete() 
59:     { 
60:         return $this->noDelete(); 
61:     }
62: 
63: }
64: 
PHP OpenCloud API API documentation generated by ApiGen 2.8.0