HPCloud-PHP  1.2.0
PHP bindings for HPCloud and OpenStack services.
 All Classes Namespaces Files Functions Variables Pages
FlavorDetails Class Reference

Class for working with Database Flavors Details. More...

Public Member Functions

 __construct ($name, $id)
 name ()
 Get the name of a flavor (e.g., small).
 id ()
 Get the id of a flavor.
 links ()
 Get the links for a flavor.
 url ()
 Get the callback url for the flavor.
 ram ()
 Get the amount of ram available to this flavor.
 vcpu ()
 Get the number of virtual CPUs available to this flavor.

Static Public Member Functions

static newFromArray (array $array)

Protected Attributes

 $name
 $id
 $url
 $links
 $ram
 $vcpu

Detailed Description

Class for working with Database Flavors Details.

Definition at line 32 of file FlavorDetails.php.

Constructor & Destructor Documentation

__construct (   $name,
  $id 
)

Definition at line 55 of file FlavorDetails.php.

References FlavorDetails\$id, $name, and FlavorDetails\name().

Member Function Documentation

id ( )

Get the id of a flavor.

Returns
int The id of a flavor.

Definition at line 76 of file FlavorDetails.php.

links ( )

Get the links for a flavor.

Return values
array
Returns
array Get an array of links for the flavor.

Definition at line 87 of file FlavorDetails.php.

name ( )

Get the name of a flavor (e.g., small).

Returns
string The name of a flavor.

Definition at line 66 of file FlavorDetails.php.

References $name.

Referenced by FlavorDetails\__construct().

static newFromArray ( array  $array)
static

Definition at line 41 of file FlavorDetails.php.

ram ( )

Get the amount of ram available to this flavor.

Return values
int
Returns
int The amount of ram available to the flavor.

Definition at line 110 of file FlavorDetails.php.

url ( )

Get the callback url for the flavor.

Return values
string
Returns
string The callback url for the flavor. This is in the form [DaaSBaseURI]/{tenant_id}/flavors/{flavorId}

Definition at line 99 of file FlavorDetails.php.

References DBaaS\$url.

vcpu ( )

Get the number of virtual CPUs available to this flavor.

Return values
int
Returns
int The number of virtual CPUs available to the flavor.

Definition at line 121 of file FlavorDetails.php.

Member Data Documentation

$id
protected

Definition at line 35 of file FlavorDetails.php.

Referenced by FlavorDetails\__construct().

$links
protected

Definition at line 37 of file FlavorDetails.php.

$name
protected

Definition at line 34 of file FlavorDetails.php.

$ram
protected

Definition at line 38 of file FlavorDetails.php.

$url
protected

Definition at line 36 of file FlavorDetails.php.

$vcpu
protected

Definition at line 39 of file FlavorDetails.php.


The documentation for this class was generated from the following file: