The karbor.objects.plan Module

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 = {'project_id': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'resources': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'id': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted': Boolean(default=False,nullable=False), 'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'provider_id': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'status': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'parameters': Dict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'description': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
id
model

alias of Plan

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
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.