Methods summary
public
|
#
__construct( OpenCloud\Database\Service $service, mixed $info = null )
Creates a new instance object
Creates a new instance object
This could use the default constructor, but we want to make sure that the
volume attribute is an object.
Parameters
- $service
OpenCloud\DbService $service the DbService object associated with this
- $info
mixed $info the ID or array of info for the object
Overrides
|
public
Guzzle\Http\Message\Response
|
#
update( array $params = array() )
Updates a database instance (not permitted)
Updates a database instance (not permitted)
Update() is not supported by database instances; thus, this always throws an
exception.
Parameters
Returns
Guzzle\Http\Message\Response
Throws
InstanceUpdateError always
Overrides
|
public
|
#
restart( )
Restarts the database instance
Restarts the database instance
Api
Returns
\OpenCloud\HttpResponse
|
public
|
#
resize( OpenCloud\Compute\Resource\Flavor $flavor )
Resizes the database instance (sets RAM)
Resizes the database instance (sets RAM)
Parameters
- $flavor
OpenCloud\Compute\Flavor $flavor a flavor object
Api
Returns
\OpenCloud\HttpResponse
|
public
OpenCloud\HttpResponse
|
#
resizeVolume( integer $newvolumesize )
Resizes the volume associated with the database instance (disk space)
Resizes the volume associated with the database instance (disk space)
Parameters
- $newvolumesize
integer $newvolumesize the size of the new volume, in gigabytes
Returns
OpenCloud\HttpResponse
Api
|
public
OpenCloud\Database\Resource\User
|
#
enableRootUser( )
Enables the root user for the instance
Enables the root user for the instance
Returns
Throws
InstanceError if HTTP response is not Success
Api
|
public
boolean
|
#
isRootEnabled( )
Returns TRUE if the root user is enabled
Returns TRUE if the root user is enabled
Returns
boolean TRUE if the root user is enabled; FALSE otherwise
Throws
InstanceError if HTTP status is not Success
Api
|
public
OpenCloud\Database\Resource\Database
|
#
database( string $name = '' )
Returns a new Database object
Returns a new Database object
Parameters
- $name
string $name the database name
Returns
|
public
OpenCloud\Database\Resource\User
|
#
user( string $name = '', array $databases = array() )
Returns a new User object
Returns a new User object
Parameters
- $name
string $name the user name
- $databases
array $databases a simple array of database names
Returns
|
public
OpenCloud\Common\Collection\PaginatedIterator
|
#
databaseList( )
Returns a Collection of all databases in the instance
Returns a Collection of all databases in the instance
Returns
|
public
OpenCloud\Common\Collection\PaginatedIterator
|
#
userList( )
Returns a Collection of all users in the instance
Returns a Collection of all users in the instance
Returns
|
protected
stdClass
|
#
createJson( )
Generates the JSON string for Create()
Generates the JSON string for Create()
Returns
Throws
Overrides
|