heat.db.models module¶
SQLAlchemy models for heat data.
- class heat.db.models.Event(**kwargs)[source]¶
Bases:
Base
,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.models.RawTemplate(**kwargs)[source]¶
Bases:
Base
,HeatBase
Represents an unparsed template which should be in JSON format.
- created_at¶
- environment¶
- files¶
- files_id¶
- id¶
- template¶
- updated_at¶
- class heat.db.models.RawTemplateFiles(**kwargs)[source]¶
Bases:
Base
,HeatBase
Where template files json dicts are stored.
- created_at¶
- files¶
- id¶
- updated_at¶
- class heat.db.models.Resource(**kwargs)[source]¶
Bases:
Base
,HeatBase
,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.models.ResourceData(**kwargs)[source]¶
Bases:
Base
,HeatBase
Key/value store of arbitrary, resource-specific data.
- created_at¶
- decrypt_method¶
- id¶
- key¶
- redact¶
- resource_id¶
- updated_at¶
- value¶
- class heat.db.models.ResourcePropertiesData(**kwargs)[source]¶
Bases:
Base
,HeatBase
Represents resource properties data, current or older
- created_at¶
- data¶
- encrypted¶
- id¶
- updated_at¶
- class heat.db.models.Service(**kwargs)[source]¶
Bases:
Base
,HeatBase
,SoftDelete
- binary¶
- created_at¶
- deleted_at¶
- engine_id¶
- host¶
- hostname¶
- id¶
- report_interval¶
- topic¶
- updated_at¶
- class heat.db.models.Snapshot(**kwargs)[source]¶
Bases:
Base
,HeatBase
- created_at¶
- data¶
- id¶
- name¶
- stack¶
- stack_id¶
- status¶
- status_reason¶
- tenant¶
- updated_at¶
- class heat.db.models.SoftDelete[source]¶
Bases:
object
- deleted_at = Column(None, DateTime(), table=None)¶
- class heat.db.models.SoftwareConfig(**kwargs)[source]¶
Bases:
Base
,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.models.SoftwareDeployment(**kwargs)[source]¶
Bases:
Base
,HeatBase
,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.models.Stack(**kwargs)[source]¶
Bases:
Base
,HeatBase
,SoftDelete
,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.models.StackLock(**kwargs)[source]¶
Bases:
Base
,HeatBase
Store stack locks for deployments with multiple-engines.
- created_at¶
- engine_id¶
- stack_id¶
- updated_at¶
- class heat.db.models.StackTag(**kwargs)[source]¶
Bases:
Base
,HeatBase
Key/value store of arbitrary stack tags.
- created_at¶
- id¶
- stack_id¶
- tag¶
- updated_at¶
- class heat.db.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)¶