Merge "Add attribute types to Mistral resources"

This commit is contained in:
Jenkins 2015-08-18 09:02:02 +00:00 committed by Gerrit Code Review
commit d988bf57c4
2 changed files with 10 additions and 5 deletions

View File

@ -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
)
}

View File

@ -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
)
}