Skip to content

Commit 7052b74

Browse files
committed
fix(AssistantV1): Apply manual changes for DialogNode
1 parent 63330a7 commit 7052b74

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

watson_developer_cloud/assistant_v1.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3102,8 +3102,6 @@ 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.
31073105
:attr object metadata: (optional) The metadata for the dialog node.
31083106
:attr DialogNodeNextStep next_step: (optional) The next step to execute following this
31093107
dialog node.
@@ -3136,7 +3134,6 @@ def __init__(self,
31363134
previous_sibling=None,
31373135
output=None,
31383136
context=None,
3139-
disabled=None,
31403137
metadata=None,
31413138
next_step=None,
31423139
actions=None,
@@ -3168,8 +3165,6 @@ def __init__(self,
31683165
information about how to specify dialog node output, see the
31693166
[documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
31703167
: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.
31733168
:param object metadata: (optional) The metadata for the dialog node.
31743169
:param DialogNodeNextStep next_step: (optional) The next step to execute following
31753170
this dialog node.
@@ -3201,7 +3196,6 @@ def __init__(self,
32013196
self.previous_sibling = previous_sibling
32023197
self.output = output
32033198
self.context = context
3204-
self.disabled = disabled
32053199
self.metadata = metadata
32063200
self.next_step = next_step
32073201
self.actions = actions
@@ -3236,8 +3230,6 @@ def _from_dict(cls, _dict):
32363230
args['output'] = DialogNodeOutput._from_dict(_dict.get('output'))
32373231
if 'context' in _dict:
32383232
args['context'] = _dict.get('context')
3239-
if 'disabled' in _dict:
3240-
args['disabled'] = _dict.get('disabled')
32413233
if 'metadata' in _dict:
32423234
args['metadata'] = _dict.get('metadata')
32433235
if 'next_step' in _dict:
@@ -3283,8 +3275,6 @@ def _to_dict(self):
32833275
_dict['output'] = self.output._to_dict()
32843276
if hasattr(self, 'context') and self.context is not None:
32853277
_dict['context'] = self.context
3286-
if hasattr(self, 'disabled') and self.disabled is not None:
3287-
_dict['disabled'] = self.disabled
32883278
if hasattr(self, 'metadata') and self.metadata is not None:
32893279
_dict['metadata'] = self.metadata
32903280
if hasattr(self, 'next_step') and self.next_step is not None:
@@ -3700,6 +3690,7 @@ class DialogNode(object):
37003690
dialog node.
37013691
:attr list[DialogNodeAction] actions: (optional) The actions for the dialog node.
37023692
:attr str title: (optional) The alias used to identify the dialog node.
3693+
:attr bool disabled: (optional) For internal use only.
37033694
:attr str node_type: (optional) How the dialog node is processed.
37043695
:attr str event_name: (optional) How an `event_handler` node is processed.
37053696
:attr str variable: (optional) The location in the dialog context where output is
@@ -3728,6 +3719,7 @@ def __init__(self,
37283719
updated=None,
37293720
actions=None,
37303721
title=None,
3722+
disabled=None,
37313723
node_type=None,
37323724
event_name=None,
37333725
variable=None,
@@ -3757,6 +3749,7 @@ def __init__(self,
37573749
the dialog node.
37583750
:param list[DialogNodeAction] actions: (optional) The actions for the dialog node.
37593751
:param str title: (optional) The alias used to identify the dialog node.
3752+
:attr bool disabled: (optional) For internal use only.
37603753
:param str node_type: (optional) How the dialog node is processed.
37613754
:param str event_name: (optional) How an `event_handler` node is processed.
37623755
:param str variable: (optional) The location in the dialog context where output is
@@ -3784,6 +3777,7 @@ def __init__(self,
37843777
self.updated = updated
37853778
self.actions = actions
37863779
self.title = title
3780+
self.disabled = disabled
37873781
self.node_type = node_type
37883782
self.event_name = event_name
37893783
self.variable = variable
@@ -3830,6 +3824,8 @@ def _from_dict(cls, _dict):
38303824
]
38313825
if 'title' in _dict:
38323826
args['title'] = _dict.get('title')
3827+
if 'disabled' in _dict:
3828+
args['disabled'] = _dict.get('disabled')
38333829
if 'type' in _dict or 'node_type' in _dict:
38343830
args['node_type'] = _dict.get('type') or _dict.get('node_type')
38353831
if 'event_name' in _dict:
@@ -3876,6 +3872,8 @@ def _to_dict(self):
38763872
_dict['actions'] = [x._to_dict() for x in self.actions]
38773873
if hasattr(self, 'title') and self.title is not None:
38783874
_dict['title'] = self.title
3875+
if hasattr(self, 'disabled') and self.disabled is not None:
3876+
_dict['disabled'] = self.disabled
38793877
if hasattr(self, 'node_type') and self.node_type is not None:
38803878
_dict['type'] = self.node_type
38813879
if hasattr(self, 'event_name') and self.event_name is not None:

0 commit comments

Comments
 (0)