class documentation
class Instance(TaggableObject):
Config object representing an instance.
Class Method |
|
Custom function for instances. |
Method |
|
Find a disk given having a specified index. |
Method |
|
Instance-specific conversion to standard python types. |
Method |
|
Fill defaults for missing configuration values. |
Class Variable | __slots__ |
Undocumented |
Instance Variable | admin |
Undocumented |
Instance Variable | disks |
Undocumented |
Instance Variable | disks |
Undocumented |
Instance Variable | osparams |
Undocumented |
Instance Variable | osparams |
Undocumented |
Inherited from TaggableObject
:
Class Method |
|
Check if a tag is valid. |
Method |
|
Add a new tag. |
Method |
|
Return the tags list. |
Method |
|
Remove a tag. |
Constant | VALID |
Undocumented |
Instance Variable | tags |
Undocumented |
Inherited from ConfigObject
(via TaggableObject
):
Method | __getattr__ |
Undocumented |
Method | __repr__ |
Implement __repr__ for ConfigObjects. |
Method | __setstate__ |
Undocumented |
Method |
|
Makes a deep copy of the current object and its children. |
Method |
|
Validates the slots. |
Inherited from ValidatedSlots
(via TaggableObject
, ConfigObject
):
Class Method |
|
Compute the list of all declared slots for a class. |
Method | __init__ |
Constructor for BaseOpCode. |
Find a disk given having a specified index.
This is just a wrapper that does validation of the index.
Parameters | |
idx:int | the disk index |
Returns | |
string | the corresponding disk's uuid |
Raises | |
errors.OpPrereqError | when the given index is not valid |
overrides
ganeti.objects.TaggableObject.ToDict
Instance-specific conversion to standard python types.
This replaces the children lists of objects with lists of standard python types.