heat.db.sqlalchemy.models module

SQLAlchemy models for heat data.

class heat.db.sqlalchemy.models.Event(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

Represents an event generated by the heat engine.

created_at
id
physical_resource_id
resource_action
resource_name
resource_properties
resource_status
property resource_status_reason
resource_type
rsrc_prop_data
rsrc_prop_data_id
stack
stack_id
updated_at
uuid
class heat.db.sqlalchemy.models.HeatBase[source]

Bases: oslo_db.sqlalchemy.models.ModelBase, oslo_db.sqlalchemy.models.TimestampMixin

Base class for Heat Models.

class heat.db.sqlalchemy.models.RawTemplate(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

Represents an unparsed template which should be in JSON format.

created_at
environment
files
files_id
id
template
updated_at
class heat.db.sqlalchemy.models.RawTemplateFiles(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

Where template files json dicts are stored.

created_at
files
id
updated_at
class heat.db.sqlalchemy.models.Resource(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase, heat.db.sqlalchemy.models.StateAware

Represents a resource created by the heat engine.

action
atomic_key
attr_data
attr_data_id
created_at
current_template_id
data
engine_id
id
name
needed_by
physical_resource_id
properties_data
properties_data_encrypted
replaced_by
replaces
requires
root_stack_id
rsrc_metadata
rsrc_prop_data
rsrc_prop_data_id
stack
stack_id
status
status_reason
updated_at
uuid
class heat.db.sqlalchemy.models.ResourceData(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

Key/value store of arbitrary, resource-specific data.

created_at
decrypt_method
id
key
redact
resource_id
updated_at
value
class heat.db.sqlalchemy.models.ResourcePropertiesData(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

Represents resource properties data, current or older

created_at
data
encrypted
id
updated_at
class heat.db.sqlalchemy.models.Service(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase, heat.db.sqlalchemy.models.SoftDelete

binary
created_at
deleted_at
engine_id
host
hostname
id
report_interval
topic
updated_at
class heat.db.sqlalchemy.models.Snapshot(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

created_at
data
id
name
stack
stack_id
status
status_reason
tenant
updated_at
class heat.db.sqlalchemy.models.SoftDelete[source]

Bases: object

deleted_at = Column(None, DateTime(), table=None)
class heat.db.sqlalchemy.models.SoftwareConfig(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

Represents a software configuration resource.

Represents a software configuration resource to be applied to one or more servers.

config
created_at
group
id
name
tenant
updated_at
class heat.db.sqlalchemy.models.SoftwareDeployment(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase, heat.db.sqlalchemy.models.StateAware

Represents a software deployment resource.

Represents applying a software configuration resource to a single server resource.

action
config
config_id
created_at
id
input_values
output_values
server_id
stack_user_project_id
status
status_reason
tenant
updated_at
class heat.db.sqlalchemy.models.Stack(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase, heat.db.sqlalchemy.models.SoftDelete, heat.db.sqlalchemy.models.StateAware

Represents a stack created by the heat engine.

action
backup
convergence
created_at
current_deps
current_traversal
deleted_at
disable_rollback
id
name
nested_depth
owner_id
parent_resource_name
prev_raw_template
prev_raw_template_id
raw_template
raw_template_id
stack_user_project_id
status
status_reason
tags
tenant
timeout
updated_at
user_creds_id
username
class heat.db.sqlalchemy.models.StackLock(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

Store stack locks for deployments with multiple-engines.

created_at
engine_id
stack_id
updated_at
class heat.db.sqlalchemy.models.StackTag(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

Key/value store of arbitrary stack tags.

created_at
id
stack_id
tag
updated_at
class heat.db.sqlalchemy.models.StateAware[source]

Bases: object

action = Column('action', String(length=255), table=None)
status = Column('status', String(length=255), table=None)
status_reason = Column('status_reason', Text(), table=None)
class heat.db.sqlalchemy.models.SyncPoint(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

Represents a syncpoint for a stack that is being worked on.

atomic_key
created_at
entity_id
input_data
is_update
stack_id
traversal_id
updated_at
class heat.db.sqlalchemy.models.UserCreds(**kwargs)[source]

Bases: sqlalchemy.orm.decl_api.Base, heat.db.sqlalchemy.models.HeatBase

Represents user credentials.

Also, mirrors the ‘context’ handed in by wsgi.

auth_url
created_at
decrypt_method
id
password
region_name
stack
tenant
tenant_id
trust_id
trustor_user_id
updated_at
username