cc1
v2.1
CC1 source code docs
|
TEMPLATE Model Class for virtual machine templates. More...
Classes | |
class | Meta |
Public Member Functions | |
def | __unicode__ |
def | dict |
Static Public Member Functions | |
def | get |
Static Public Attributes | |
tuple | cpu = models.IntegerField() |
tuple | description = models.CharField(max_length=512) |
tuple | ec2name = models.IntegerField(default=0) |
tuple | memory = models.IntegerField() |
tuple | name = models.CharField(max_length=45) |
tuple | points = models.IntegerField() |
tuple | state = models.IntegerField(choices=template_states) |
tuple | template_states |
TEMPLATE Model Class for virtual machine templates.
Template is what defines virtual hardware params: CPU and memory. Each template specifies amount of points consumed from user's quota per hour. Template is described by its name and description.
Definition at line 41 of file template.py.
def src.cm.models.template.Template.__unicode__ | ( | self | ) |
Definition at line 58 of file template.py.
def src.cm.models.template.Template.dict | ( | self | ) |
dict
) this Template's data id
(int
)name
(string
) human-readable this Template's name displayed in web-interfacecpu
(int
) Number of CPUs for VM started from this Templatememory
(int
) amount of memory [MB] booked by VM started from this Templatepoints
(int
) amount of points consumed by this VMdescription
(string
) human-readable description of this Templateec2name
(string
) Template's name for EC2 interface Definition at line 74 of file template.py.
|
static |
|
static |
Definition at line 45 of file template.py.
|
static |
Definition at line 43 of file template.py.
|
static |
Definition at line 52 of file template.py.
|
static |
Definition at line 44 of file template.py.
|
static |
Definition at line 42 of file template.py.
|
static |
Definition at line 51 of file template.py.
|
static |
Definition at line 50 of file template.py.
|
static |
Definition at line 46 of file template.py.