heat.engine.parameters module¶
-
class
heat.engine.parameters.
BooleanParam
(name, schema, value=None)[source]¶ Bases:
heat.engine.parameters.Parameter
A template parameter of type “Boolean”.
-
class
heat.engine.parameters.
CommaDelimitedListParam
(name, schema, value=None)[source]¶ Bases:
heat.engine.parameters.ParsedParameter
,collections.abc.Sequence
A template parameter of type “CommaDelimitedList”.
-
class
heat.engine.parameters.
JsonParam
(name, schema, value=None)[source]¶ Bases:
heat.engine.parameters.ParsedParameter
A template parameter who’s value is map or list.
-
class
heat.engine.parameters.
NumberParam
(name, schema, value=None)[source]¶ Bases:
heat.engine.parameters.Parameter
A template parameter of type “Number”.
-
class
heat.engine.parameters.
Parameter
(name, schema, value=None)[source]¶ Bases:
object
A template parameter.
Return whether the parameter is hidden.
Hidden parameters should be sanitised in any output to the user.
-
name
¶
-
schema
¶
Return the tags associated with the parameter
-
user_default
¶
-
user_value
¶
-
class
heat.engine.parameters.
Parameters
(stack_identifier, tmpl, user_params=None, param_defaults=None)[source]¶ Bases:
collections.abc.Mapping
Parameters of a stack.
The parameters of a stack, with type checking, defaults, etc. specified by the stack’s template.
-
class
heat.engine.parameters.
ParsedParameter
(name, schema, value=None)[source]¶ Bases:
heat.engine.parameters.Parameter
A template parameter with cached parsed value.
-
property
parsed
¶
-
property
-
class
heat.engine.parameters.
Schema
(data_type, description=None, default=None, schema=None, constraints=None, hidden=False, label=None, immutable=False, tags=None)[source]¶ Bases:
heat.engine.constraints.Schema
Parameter schema.
-
BOOLEAN
= 'Boolean'¶
-
CONSTRAINTS
= 'Constraints'¶
-
DEFAULT
= 'Default'¶
-
DESCRIPTION
= 'Description'¶
-
HIDDEN
= 'NoEcho'¶
-
IMMUTABLE
= 'Immutable'¶
-
KEYS
= ('Type', 'Description', 'Default', 'Schema', 'Constraints', 'NoEcho', 'Label', 'Immutable', 'Tags')¶
-
LABEL
= 'Label'¶
-
LIST
= 'CommaDelimitedList'¶
-
MAP
= 'Json'¶
-
NUMBER
= 'Number'¶
-
PARAMETER_KEYS
= ('Type', 'Default', 'NoEcho', 'AllowedValues', 'AllowedPattern', 'MaxLength', 'MinLength', 'MaxValue', 'MinValue', 'Description', 'ConstraintDescription', 'Label')¶
-
SCHEMA
= 'Schema'¶
-
STRING
= 'String'¶
-
TAGS
= 'Tags'¶
-
TYPE
= 'Type'¶
-
TYPES
= ('String', 'Number', 'CommaDelimitedList', 'Json', 'Boolean')¶
-
-
class
heat.engine.parameters.
StringParam
(name, schema, value=None)[source]¶ Bases:
heat.engine.parameters.Parameter
A template parameter of type “String”.