pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions
CloudDatabaseManager Class Reference

This class manages communication with Cloud Database instances. More...

Inheritance diagram for CloudDatabaseManager:
BaseManager

List of all members.

Public Member Functions

def get
 This additional code is necessary to properly return the 'volume' attribute of the instance as a CloudDatabaseVolume object instead of a raw dict.
def create_backup
 Creates a backup of the specified instance, giving it the specified name along with an optional description.
def restore_backup
 Restores a backup to a new database instance.
def list_backups
 Returns a list of all backups by default, or just for a particular instance.

Detailed Description

This class manages communication with Cloud Database instances.


Member Function Documentation

def create_backup (   self,
  instance,
  name,
  description = None 
)

Creates a backup of the specified instance, giving it the specified name along with an optional description.

def get (   self,
  item 
)

This additional code is necessary to properly return the 'volume' attribute of the instance as a CloudDatabaseVolume object instead of a raw dict.

Reimplemented from BaseManager.

def list_backups (   self,
  instance = None 
)

Returns a list of all backups by default, or just for a particular instance.

def restore_backup (   self,
  backup,
  name,
  flavor,
  volume 
)

Restores a backup to a new database instance.

You must supply a backup (either the ID or a CloudDatabaseBackup object), a name for the new instance, as well as a flavor and volume size (in GB) for the instance.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties