SQLAlchemy models for heat data.
-
class heat.db.sqlalchemy.models.Event(**kwargs)[source]
Bases: sqlalchemy.ext.declarative.Base, heat.db.sqlalchemy.models.HeatBase
Represents an event generated by the heat engine.
-
created_at
-
id
-
logical_resource_id
-
name
-
physical_resource_id
-
resource_properties
-
resource_status_reason
-
resource_type
-
stack
-
stack_id
-
updated_at
-
class heat.db.sqlalchemy.models.HeatBase[source]
Bases: object
Base class for Heat Models.
-
created_at = Column(None, DateTime(), table=None, default=ColumnDefault(<function <lambda> at 0x5f859b0>))
-
delete(session=None)[source]
Delete this object.
-
expire(session=None, attrs=None)[source]
Expire this object ().
-
get(key, default=None)[source]
-
iteritems()[source]
Make the model object behave like a dict.
Includes attributes from joins.
-
next()[source]
-
refresh(session=None, attrs=None)[source]
Refresh this object.
-
save(session=None)[source]
Save this object.
-
update(values)[source]
Make the model object behave like a dict
-
update_and_save(values, session=None)[source]
-
updated_at = Column(None, DateTime(), table=None, onupdate=ColumnDefault(<function <lambda> at 0x5f85a28>))
-
class heat.db.sqlalchemy.models.Json(*args, **kwargs)[source]
Bases: sqlalchemy.types.TypeDecorator, sqlalchemy.types.MutableType
-
impl
alias of Text
-
process_bind_param(value, dialect)[source]
-
process_result_value(value, dialect)[source]
-
class heat.db.sqlalchemy.models.RawTemplate(**kwargs)[source]
Bases: sqlalchemy.ext.declarative.Base, heat.db.sqlalchemy.models.HeatBase
Represents an unparsed template which should be in JSON format.
-
created_at
-
id
-
template
-
updated_at
-
class heat.db.sqlalchemy.models.Resource(**kwargs)[source]
Bases: sqlalchemy.ext.declarative.Base, heat.db.sqlalchemy.models.HeatBase
Represents a resource created by the heat engine.
-
created_at
-
id
-
name
-
nova_instance
-
rsrc_metadata
-
stack
-
stack_id
-
state
-
state_description
-
updated_at
-
class heat.db.sqlalchemy.models.Stack(**kwargs)[source]
Bases: sqlalchemy.ext.declarative.Base, heat.db.sqlalchemy.models.HeatBase
Represents a stack created by the heat engine.
-
created_at
-
disable_rollback
-
id
-
name
-
owner_id
-
parameters
-
raw_template
-
raw_template_id
-
status
-
status_reason
-
tenant
-
timeout
-
updated_at
-
user_creds_id
-
username
-
class heat.db.sqlalchemy.models.UserCreds(**kwargs)[source]
Bases: sqlalchemy.ext.declarative.Base, heat.db.sqlalchemy.models.HeatBase
Represents user credentials and mirrors the ‘context’
handed in by wsgi.
-
auth_url
-
aws_auth_url
-
aws_creds
-
created_at
-
id
-
password
-
service_password
-
service_user
-
stack
-
tenant
-
tenant_id
-
updated_at
-
username
-
class heat.db.sqlalchemy.models.WatchData(**kwargs)[source]
Bases: sqlalchemy.ext.declarative.Base, heat.db.sqlalchemy.models.HeatBase
Represents a watch_data created by the heat engine.
-
created_at
-
data
-
id
-
updated_at
-
watch_rule
-
watch_rule_id
-
class heat.db.sqlalchemy.models.WatchRule(**kwargs)[source]
Bases: sqlalchemy.ext.declarative.Base, heat.db.sqlalchemy.models.HeatBase
Represents a watch_rule created by the heat engine.
-
created_at
-
id
-
last_evaluated
-
name
-
rule
-
stack
-
stack_id
-
state
-
updated_at