The nova.objects.security_group
Module¶
-
class
SecurityGroup
(context=None, **kwargs)¶ Bases:
nova.objects.base.NovaPersistentObject
,nova.objects.base.NovaObject
,nova.objects.base.NovaObjectDictCompat
-
VERSION
= '1.1'¶
-
created_at
¶
-
deleted
¶
-
deleted_at
¶
-
description
¶
-
fields
= {'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'user_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'description': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'deleted': Boolean(default=False,nullable=False), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'project_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}¶
-
classmethod
get
(context, *args, **kwargs)¶
-
classmethod
get_by_name
(context, *args, **kwargs)¶
-
id
¶
-
in_use
(*args, **kwargs)¶
-
name
¶
-
project_id
¶
-
refresh
(*args, **kwargs)¶
-
save
(*args, **kwargs)¶
-
updated_at
¶
-
user_id
¶
-
-
class
SecurityGroupList
(*args, **kwargs)¶ Bases:
nova.objects.base.ObjectListBase
,nova.objects.base.NovaObject
-
VERSION
= '1.0'¶
-
fields
= {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}¶
-
classmethod
get_all
(context, *args, **kwargs)¶
-
classmethod
get_by_instance
(context, *args, **kwargs)¶
-
classmethod
get_by_project
(context, *args, **kwargs)¶
-
objects
¶
-
-
make_secgroup_list
(security_groups)¶ A helper to make security group objects from a list of names.
Note that this does not make them save-able or have the rest of the attributes they would normally have, but provides a quick way to fill, for example, an instance object during create.