Class Service
The Rackspace Database As A Service (aka "Red Dwarf")
-
OpenCloud\Common\Base
-
OpenCloud\Common\Service
-
OpenCloud\Common\Nova
-
OpenCloud\Database\Service
Methods summary
public
|
#
__construct( OpenCloud\OpenStack $conn, string $name, string $region, string $urltype )
Creates a new DbService service connection
Creates a new DbService service connection
This is not normally called directly, but via the factory method on the
OpenStack or Rackspace connection object.
Parameters
- $conn
OpenCloud\OpenStack
$conn the connection on which to create the service
- $name
string $name the name of the service (e.g., "cloudDatabases")
- $region
string $region the region of the service (e.g., "DFW" or "LON")
- $urltype
string $urltype the type of URL (normally "publicURL")
Overrides
|
public
string
|
#
url( string $resource = 'instances', array $args = array() )
Returns the URL of this database service, or optionally that of an
instance
Returns the URL of this database service, or optionally that of an
instance
Parameters
- $resource
string $resource the resource required
- $args
array $args extra arguments to pass to the URL as query strings
Returns
string
Throws
UrlError
Overrides
|
public
OpenCloud\Compute\FlavorList
|
#
flavorList( mixed $details = false, array $filter = array() )
Returns a list of flavors
Returns a list of flavors
just call the parent FlavorList() method, but pass FALSE because the
/flavors/detail resource is not supported
Returns
OpenCloud\Compute\FlavorList
Api
|
public
DbService\Instance
|
#
instance( string $id = null )
Creates a Instance object
Creates a Instance object
Parameters
- $id
string $id the ID of the instance to retrieve
Returns
DbService\Instance
Api
|
public
Collection
|
#
instanceList( array $params = array() )
Creates a Collection of Instance objects
Creates a Collection of Instance objects
Parameters
- $params
array $params array of parameters to pass to the request as query strings
Returns
Collection
Api
|
Methods inherited from OpenCloud\Common\Service
collection(),
extensions(),
getConnection(),
getCurrentNamespace(),
getResources(),
limits(),
name(),
namespaces(),
region(),
request(),
resolveResourceClass(),
resource(),
resourceList(),
setConnection()
|