Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num Num body Expr Str For NameStore ListLoad NameLoad NameLoad NameLoad NameLoad body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str If BoolOpOr CompareLtE Call NameLoad NameLoad Num CompareLtE Call NameLoad NameLoad Num CompareLt Call NameLoad NameLoad Num body Raise Call AttributeLoad NameLoad attr keyword Call NameLoad Str TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad orelse TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad orelse TryExcept body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults Num body Expr Str Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return Call NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs NameLoad NameLoad body Return Call NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr BinOpMod Call NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Return Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad NameLoad attr keyword NameLoad decorator_list
N/A N/A Built-in instance properties. nova context nova db nova exception nova flags nova log logging N/A FLAGS N/A flags FLAGS N/A LOG N/A N/A logging getLogger nova.instance_types create N/A N/A name memory vcpus local_gb flavorid swap rxtx_quota rxtx_cap N/A 0 0 0 N/A N/A Creates instance types. N/A option N/A memory vcpus local_gb flavorid N/A N/A N/A N/A N/A int option N/A N/A N/A ValueError N/A N/A N/A N/A exception InvalidInput reason N/A _ create arguments must be positive integers N/A N/A N/A N/A int memory 0 N/A N/A int vcpus 0 N/A N/A int local_gb 0 N/A N/A N/A N/A exception InvalidInput reason N/A _ create arguments must be positive integers N/A N/A N/A N/A N/A db instance_type_create N/A N/A context get_admin_context N/A dict name name memory_mb memory vcpus vcpus local_gb local_gb flavorid flavorid swap swap rxtx_quota rxtx_quota rxtx_cap rxtx_cap N/A N/A N/A N/A exception DBError N/A e N/A N/A N/A N/A LOG exception N/A N/A _ DB error: %s e N/A N/A N/A exception ApiError N/A N/A _ Cannot create instance_type with name %(name)s and flavorid %(flavorid)s N/A locals N/A destroy N/A N/A name N/A N/A N/A Marks instance types as deleted. N/A N/A name None N/A N/A N/A N/A exception InvalidInstanceType instance_type name N/A N/A N/A N/A N/A N/A db instance_type_destroy N/A N/A context get_admin_context name N/A N/A N/A N/A exception NotFound N/A N/A N/A N/A LOG exception N/A N/A _ Instance type %s not found for deletion name N/A N/A N/A exception ApiError N/A N/A _ Unknown instance type: %s name N/A purge N/A N/A name N/A N/A N/A Removes instance types from database. N/A N/A name None N/A N/A N/A N/A exception InvalidInstanceType instance_type name N/A N/A N/A N/A N/A N/A db instance_type_purge N/A N/A context get_admin_context name N/A N/A N/A N/A exception NotFound N/A N/A N/A N/A LOG exception N/A N/A _ Instance type %s not found for purge name N/A N/A N/A exception ApiError N/A N/A _ Unknown instance type: %s name N/A get_all_types N/A N/A inactive N/A 0 N/A N/A Get all non-deleted instance_types.

    Pass true as argument if you want deleted instance types returned also.

     N/A N/A N/A db instance_type_get_all N/A N/A context get_admin_context inactive N/A N/A get_all_flavors get_all_types get_default_instance_type N/A N/A N/A N/A N/A Get the default instance type. N/A name N/A FLAGS default_instance_type N/A N/A N/A N/A get_instance_type_by_name name N/A N/A N/A N/A exception DBError N/A N/A N/A N/A exception ApiError N/A N/A _ Unknown instance type: %s name N/A get_instance_type N/A N/A id N/A N/A N/A Retrieves single instance type by id. N/A N/A id None N/A N/A N/A get_default_instance_type N/A N/A N/A ctxt N/A N/A context get_admin_context N/A N/A N/A db instance_type_get ctxt id N/A N/A N/A N/A exception DBError N/A N/A N/A N/A exception ApiError N/A N/A _ Unknown instance type: %s id N/A get_instance_type_by_name N/A N/A name N/A N/A N/A Retrieves single instance type by name. N/A N/A name None N/A N/A N/A get_default_instance_type N/A N/A N/A ctxt N/A N/A context get_admin_context N/A N/A N/A db instance_type_get_by_name ctxt name N/A N/A N/A N/A exception DBError N/A N/A N/A N/A exception ApiError N/A N/A _ Unknown instance type: %s name N/A get_instance_type_by_flavor_id N/A N/A flavor_id N/A N/A N/A Retrieve instance type by flavor_id. N/A ctxt N/A N/A context get_admin_context N/A N/A N/A N/A N/A db instance_type_get_by_flavor_id ctxt flavor_id N/A N/A N/A ValueError N/A N/A N/A N/A exception FlavorNotFound flavor_id flavor_id N/A