Skip to content

Commit 63330a7

Browse files
authored
Merge pull request #619 from watson-developer-cloud/assistant-patch
fix(Assistantv1): Apply manual changes for CreateDialogNode
2 parents 9cc893c + c8f93b3 commit 63330a7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.env.enc

0 Bytes
Binary file not shown.

watson_developer_cloud/assistant_v1.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,6 +3102,8 @@ class CreateDialogNode(object):
31023102
information about how to specify dialog node output, see the
31033103
[documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
31043104
:attr object context: (optional) The context for the dialog node.
3105+
:attr bool disabled: (optional) Whether to consider the dialog node during runtime
3106+
evaluation. Set to `true` to ignore the dialog node.
31053107
:attr object metadata: (optional) The metadata for the dialog node.
31063108
:attr DialogNodeNextStep next_step: (optional) The next step to execute following this
31073109
dialog node.
@@ -3134,6 +3136,7 @@ def __init__(self,
31343136
previous_sibling=None,
31353137
output=None,
31363138
context=None,
3139+
disabled=None,
31373140
metadata=None,
31383141
next_step=None,
31393142
actions=None,
@@ -3165,6 +3168,8 @@ def __init__(self,
31653168
information about how to specify dialog node output, see the
31663169
[documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
31673170
:param object context: (optional) The context for the dialog node.
3171+
:param bool disabled: (optional) Whether to consider the dialog node during
3172+
runtime evaluation. Set to `true` to ignore the dialog node.
31683173
:param object metadata: (optional) The metadata for the dialog node.
31693174
:param DialogNodeNextStep next_step: (optional) The next step to execute following
31703175
this dialog node.
@@ -3196,6 +3201,7 @@ def __init__(self,
31963201
self.previous_sibling = previous_sibling
31973202
self.output = output
31983203
self.context = context
3204+
self.disabled = disabled
31993205
self.metadata = metadata
32003206
self.next_step = next_step
32013207
self.actions = actions
@@ -3230,6 +3236,8 @@ def _from_dict(cls, _dict):
32303236
args['output'] = DialogNodeOutput._from_dict(_dict.get('output'))
32313237
if 'context' in _dict:
32323238
args['context'] = _dict.get('context')
3239+
if 'disabled' in _dict:
3240+
args['disabled'] = _dict.get('disabled')
32333241
if 'metadata' in _dict:
32343242
args['metadata'] = _dict.get('metadata')
32353243
if 'next_step' in _dict:
@@ -3275,6 +3283,8 @@ def _to_dict(self):
32753283
_dict['output'] = self.output._to_dict()
32763284
if hasattr(self, 'context') and self.context is not None:
32773285
_dict['context'] = self.context
3286+
if hasattr(self, 'disabled') and self.disabled is not None:
3287+
_dict['disabled'] = self.disabled
32783288
if hasattr(self, 'metadata') and self.metadata is not None:
32793289
_dict['metadata'] = self.metadata
32803290
if hasattr(self, 'next_step') and self.next_step is not None:

0 commit comments

Comments
 (0)