@@ -195,6 +195,7 @@ def create_workspace(self,
195195 counterexamples = None ,
196196 metadata = None ,
197197 learning_opt_out = None ,
198+ system_settings = None ,
198199 ** kwargs ):
199200 """
200201 Create workspace.
@@ -222,6 +223,7 @@ def create_workspace(self,
222223 :param bool learning_opt_out: Whether training data from the workspace can be used
223224 by IBM for general service improvements. `true` indicates that workspace training
224225 data is not to be used.
226+ :param WorkspaceSystemSettings system_settings: Global settings for the workspace.
225227 :param dict headers: A `dict` containing the request headers
226228 :return: A `dict` containing the `Workspace` response.
227229 :rtype: dict
@@ -239,6 +241,9 @@ def create_workspace(self,
239241 self ._convert_model (x , CreateCounterexample )
240242 for x in counterexamples
241243 ]
244+ if system_settings is not None :
245+ system_settings = self ._convert_model (system_settings ,
246+ WorkspaceSystemSettings )
242247 headers = {}
243248 if 'headers' in kwargs :
244249 headers .update (kwargs .get ('headers' ))
@@ -252,7 +257,8 @@ def create_workspace(self,
252257 'dialog_nodes' : dialog_nodes ,
253258 'counterexamples' : counterexamples ,
254259 'metadata' : metadata ,
255- 'learning_opt_out' : learning_opt_out
260+ 'learning_opt_out' : learning_opt_out ,
261+ 'system_settings' : system_settings
256262 }
257263 url = '/v1/workspaces'
258264 response = self .request (
@@ -394,6 +400,7 @@ def update_workspace(self,
394400 counterexamples = None ,
395401 metadata = None ,
396402 learning_opt_out = None ,
403+ system_settings = None ,
397404 append = None ,
398405 ** kwargs ):
399406 """
@@ -423,6 +430,7 @@ def update_workspace(self,
423430 :param bool learning_opt_out: Whether training data from the workspace can be used
424431 by IBM for general service improvements. `true` indicates that workspace training
425432 data is not to be used.
433+ :param WorkspaceSystemSettings system_settings: Global settings for the workspace.
426434 :param bool append: Whether the new data is to be appended to the existing data in
427435 the workspace. If **append**=`false`, elements included in the new data completely
428436 replace the corresponding existing elements, including all subelements. For
@@ -451,6 +459,9 @@ def update_workspace(self,
451459 self ._convert_model (x , CreateCounterexample )
452460 for x in counterexamples
453461 ]
462+ if system_settings is not None :
463+ system_settings = self ._convert_model (system_settings ,
464+ WorkspaceSystemSettings )
454465 headers = {}
455466 if 'headers' in kwargs :
456467 headers .update (kwargs .get ('headers' ))
@@ -464,7 +475,8 @@ def update_workspace(self,
464475 'dialog_nodes' : dialog_nodes ,
465476 'counterexamples' : counterexamples ,
466477 'metadata' : metadata ,
467- 'learning_opt_out' : learning_opt_out
478+ 'learning_opt_out' : learning_opt_out ,
479+ 'system_settings' : system_settings
468480 }
469481 url = '/v1/workspaces/{0}' .format (
470482 * self ._encode_path_vars (workspace_id ))
0 commit comments