The karbor.objects.plan
Module¶
-
class
karbor.objects.plan.
Plan
(*args, **kwargs)¶ Bases:
karbor.objects.base.KarborPersistentObject
,karbor.objects.base.KarborObject
,karbor.objects.base.KarborObjectDictCompat
,karbor.objects.base.KarborComparableObject
-
DEFAULT_EXPECTED_ATTR
= (‘resources’,)¶
-
OPTIONAL_FIELDS
= (‘resources’,)¶
-
VERSION
= ‘1.0’¶
-
create
(*args, **kwargs)¶
-
created_at
¶
-
deleted
¶
-
deleted_at
¶
-
description
¶
-
destroy
(*args, **kwargs)¶
-
fields
= {‘id’: UUID(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘description’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘provider_id’: UUID(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘updated_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘status’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘project_id’: UUID(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘deleted_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘created_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘parameters’: Dict(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘name’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘resources’: List(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘deleted’: Boolean(default=False,nullable=False)}¶
-
id
¶
-
name
¶
-
obj_extra_fields
= [‘plan_resources’]¶
-
obj_reset_changes
(fields=None)¶
-
obj_what_changed
()¶
-
parameters
¶
-
project_id
¶
-
provider_id
¶
-
resources
¶
-
save
(*args, **kwargs)¶
-
status
¶
-
updated_at
¶
-
-
class
karbor.objects.plan.
PlanList
(*args, **kwargs)¶ Bases:
karbor.objects.base.ObjectListBase
,karbor.objects.base.KarborObject
-
VERSION
= ‘1.0’¶
-
fields
= {‘objects’: List(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False)}¶
-
classmethod
get_all
(context, *args, **kwargs)¶
-
classmethod
get_all_by_project
(context, *args, **kwargs)¶
-
objects
¶
-