Skip to content

Commit

Permalink
Merge pull request #619 from watson-developer-cloud/assistant-patch
Browse files Browse the repository at this point in the history
fix(Assistantv1): Apply manual changes for CreateDialogNode
  • Loading branch information
ehdsouza authored Dec 21, 2018
2 parents 9cc893c + c8f93b3 commit 63330a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Binary file modified .env.enc
Binary file not shown.
10 changes: 10 additions & 0 deletions watson_developer_cloud/assistant_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -3102,6 +3102,8 @@ class CreateDialogNode(object):
information about how to specify dialog node output, see the
[documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
:attr object context: (optional) The context for the dialog node.
:attr bool disabled: (optional) Whether to consider the dialog node during runtime
evaluation. Set to `true` to ignore the dialog node.
:attr object metadata: (optional) The metadata for the dialog node.
:attr DialogNodeNextStep next_step: (optional) The next step to execute following this
dialog node.
Expand Down Expand Up @@ -3134,6 +3136,7 @@ def __init__(self,
previous_sibling=None,
output=None,
context=None,
disabled=None,
metadata=None,
next_step=None,
actions=None,
Expand Down Expand Up @@ -3165,6 +3168,8 @@ def __init__(self,
information about how to specify dialog node output, see the
[documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
:param object context: (optional) The context for the dialog node.
:param bool disabled: (optional) Whether to consider the dialog node during
runtime evaluation. Set to `true` to ignore the dialog node.
:param object metadata: (optional) The metadata for the dialog node.
:param DialogNodeNextStep next_step: (optional) The next step to execute following
this dialog node.
Expand Down Expand Up @@ -3196,6 +3201,7 @@ def __init__(self,
self.previous_sibling = previous_sibling
self.output = output
self.context = context
self.disabled = disabled
self.metadata = metadata
self.next_step = next_step
self.actions = actions
Expand Down Expand Up @@ -3230,6 +3236,8 @@ def _from_dict(cls, _dict):
args['output'] = DialogNodeOutput._from_dict(_dict.get('output'))
if 'context' in _dict:
args['context'] = _dict.get('context')
if 'disabled' in _dict:
args['disabled'] = _dict.get('disabled')
if 'metadata' in _dict:
args['metadata'] = _dict.get('metadata')
if 'next_step' in _dict:
Expand Down Expand Up @@ -3275,6 +3283,8 @@ def _to_dict(self):
_dict['output'] = self.output._to_dict()
if hasattr(self, 'context') and self.context is not None:
_dict['context'] = self.context
if hasattr(self, 'disabled') and self.disabled is not None:
_dict['disabled'] = self.disabled
if hasattr(self, 'metadata') and self.metadata is not None:
_dict['metadata'] = self.metadata
if hasattr(self, 'next_step') and self.next_step is not None:
Expand Down

0 comments on commit 63330a7

Please sign in to comment.