Class Database
This class represents a Database in the Rackspace "Red Dwarf"
database-as-a-service product.
-
OpenCloud\Common\Base
-
OpenCloud\Common\Resource\BaseResource
-
OpenCloud\Common\Resource\PersistentResource
-
OpenCloud\Database\Resource\Database
Methods summary
public
|
|
public
type
|
#
getName( )
Returns name of this database. Because it's so important (i.e. as an
identifier), it will throw an error if not set/empty.
Returns name of this database. Because it's so important (i.e. as an
identifier), it will throw an error if not set/empty.
Returns
type
Throws
|
public
string
|
#
primaryKeyField( )
Returns the primary key field for the object
Returns the primary key field for the object
Returns
string
Overrides
|
public
OpenCloud\Database\Resource\Instance
|
#
instance( )
Returns the Instance of the database
Returns the Instance of the database
Returns
|
public
OpenCloud\HttpResponse
|
#
create( array $params = array() )
Creates a new database
Parameters
- $params
array $params array of attributes to set prior to Create
Returns
OpenCloud\HttpResponse
Api
Overrides
|
public
|
#
update( array $params = array() )
Updates an existing database
Updates an existing database
Parameters
- $params
array $params ignored
Throws
DatabaseUpdateError always; updates are not permitted
Overrides
|
protected
object
|
#
createJson( array $params = array() )
Returns the JSON object for creating the database
Returns the JSON object for creating the database
Returns
object
Throws
Overrides
|
Methods inherited from OpenCloud\Common\Resource\BaseResource
findLink(),
getClient(),
getMetadata(),
getParent(),
getService(),
getUrl(),
jsonCollectionElement(),
jsonCollectionName(),
jsonName(),
parseResponse(),
resourceName(),
setMetadata(),
setParent(),
setService()
|
Methods inherited from OpenCloud\Common\Base
__call(),
checkJsonError(),
generateUuid(),
getInstance(),
getJsonHeader(),
getLogger(),
getProperty(),
makeResourceIteratorOptions(),
populate(),
propertyExists(),
setLogger(),
setProperty(),
stripNamespace(),
toCamel(),
toUnderscores()
|