HPCloud-PHP
1.2.0
PHP bindings for HPCloud and OpenStack services.
|
Class for working with Database Flavors. More...
Public Member Functions | |
__construct ($token, $projectId, $endpoint) | |
listFlavors () | |
Retrieve a list of available instance flavors. | |
getFlavorByName ($name) | |
Get a FlavorDetails object by its name. |
Protected Attributes | |
$token | |
$projectId | |
$url | |
$client | |
Protected Attributes inherited from Operations | |
$token | |
$projectId |
Additional Inherited Members | |
Protected Member Functions inherited from Operations | |
headers ($merge=array()) | |
Generate the base headers needed by DBaaS requests. |
Class for working with Database Flavors.
Definition at line 35 of file Flavor.php.
__construct | ( | $token, | |
$projectId, | |||
$endpoint | |||
) |
Definition at line 42 of file Flavor.php.
References $endpoint, DBaaS\$projectId, DBaaS\$token, DBaaS\instance(), DBaaS\projectId(), and DBaaS\url().
getFlavorByName | ( | $name | ) |
Get a FlavorDetails object by its name.
string | $name | The name of the flavor. |
HPCloud::Services::DBaaS::FlavorDetails |
Definition at line 80 of file Flavor.php.
References $name, and Flavor\listFlavors().
listFlavors | ( | ) |
Retrieve a list of available instance flavors.
array |
Definition at line 57 of file Flavor.php.
References DBaaS\$url, Operations\headers(), and DBaaS\url().
Referenced by Flavor\getFlavorByName().
|
protected |
Definition at line 40 of file Flavor.php.
|
protected |
Definition at line 38 of file Flavor.php.
|
protected |
Definition at line 37 of file Flavor.php.
|
protected |
Definition at line 39 of file Flavor.php.