Merge "Add attribute types to Mistral resources"
This commit is contained in:
commit
d988bf57c4
@ -80,10 +80,12 @@ class CronTrigger(resource.Resource):
|
||||
|
||||
attributes_schema = {
|
||||
NEXT_EXECUTION_TIME: attributes.Schema(
|
||||
_('Time of the next execution in format "YYYY-MM-DD HH:MM:SS".')
|
||||
_('Time of the next execution in format "YYYY-MM-DD HH:MM:SS".'),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
REMAINING_EXECUTIONS: attributes.Schema(
|
||||
_('Number of remaining executions.')
|
||||
_('Number of remaining executions.'),
|
||||
type=attributes.Schema.INTEGER
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -172,17 +172,20 @@ class Workflow(signal_responder.SignalResponder,
|
||||
|
||||
attributes_schema = {
|
||||
WORKFLOW_DATA: attributes.Schema(
|
||||
_('A dictionary which contains name and input of the workflow.')
|
||||
_('A dictionary which contains name and input of the workflow.'),
|
||||
type=attributes.Schema.MAP
|
||||
),
|
||||
ALARM_URL: attributes.Schema(
|
||||
_("A signed url to create executions for workflows specified in "
|
||||
"Workflow resource.")
|
||||
"Workflow resource."),
|
||||
type=attributes.Schema.STRING
|
||||
),
|
||||
EXECUTIONS: attributes.Schema(
|
||||
_("List of workflows' executions, each of them is a dictionary "
|
||||
"with information about execution. Each dictionary returns "
|
||||
"values for next keys: id, workflow_name, created_at, "
|
||||
"updated_at, state for current execution state, input, output.")
|
||||
"updated_at, state for current execution state, input, output."),
|
||||
type=attributes.Schema.LIST
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user