Add Voluptuous to validate the action parameters
We want a simplest way to validate the input parameters of an Action through a schema. APIImpact DocImpact Partially implements: blueprint watcher-add-actions-via-conf Change-Id: I139775f467fe7778c7354b0cfacf796fc27ffcb2
This commit is contained in:
committed by
Vincent Françoise
parent
33ee575936
commit
e3198d25a5
@@ -87,13 +87,13 @@ class BaseSolution(object):
|
||||
@abc.abstractmethod
|
||||
def add_action(self,
|
||||
action_type,
|
||||
applies_to,
|
||||
resource_id,
|
||||
input_parameters=None):
|
||||
"""Add a new Action in the Action Plan
|
||||
|
||||
:param action_type: the unique id of an action type defined in
|
||||
entry point 'watcher_actions'
|
||||
:param applies_to: the unique id of the resource to which the
|
||||
:param resource_id: the unique id of the resource to which the
|
||||
`Action` applies.
|
||||
:param input_parameters: An array of input parameters provided as
|
||||
key-value pairs of strings. Each key-pair contains names and
|
||||
|
||||
Reference in New Issue
Block a user