Overview

Namespaces

  • OpenCloud
    • Autoscale
      • Resource
    • CloudMonitoring
      • Exception
      • Resource
    • Common
      • Collection
      • Constants
      • Exceptions
      • Http
        • Message
      • Identity
      • Log
      • Service
    • Compute
      • Constants
      • Exception
      • Resource
    • Database
      • Resource
    • DNS
      • Resource
    • LoadBalancer
      • Resource
    • ObjectStore
      • Constants
      • Exception
      • Resource
      • Upload
    • Orchestration
    • Queues
      • Exception
      • Resource
    • Volume
      • Resource
  • PHP

Classes

  • Flavor
  • Image
  • KeyPair
  • Network
  • Server
  • ServerMetadata
  • VolumeAttachment
  • Overview
  • Namespace
  • Class
  • Tree
  • Download
 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    Glen Campbell <glen.campbell@rackspace.com>
 8:  * @author    Jamie Hannaford <jamie.hannaford@rackspace.com>
 9:  */
10: 
11: namespace OpenCloud\Compute\Resource;
12: 
13: use OpenCloud\Common\PersistentObject;
14: 
15: /**
16:  * A resource configuration for a server. Each flavor is a unique combination 
17:  * of disk, memory, vCPUs, and network bandwidth.
18:  */
19: class Flavor extends PersistentObject 
20: {
21: 
22:     public $status;
23:     public $updated;
24:     public $vcpus;
25:     public $disk;
26:     public $name;
27:     public $links;
28:     public $rxtx_factor;
29:     public $ram;
30:     public $id;
31:     public $swap;
32: 
33:     protected static $json_name = 'flavor';
34:     protected static $url_resource = 'flavors';
35: 
36:     public function create($params = array()) 
37:     { 
38:         return $this->noCreate(); 
39:     }
40: 
41:     public function update($params = array()) 
42:     { 
43:         return $this->noUpdate(); 
44:     }
45: 
46:     public function delete() 
47:     {
48:         return $this->noDelete();
49:     }
50: 
51: }
52: 
PHP OpenCloud API API documentation generated by ApiGen 2.8.0