Skip to content

Commit

Permalink
feat(assistantv1): New param include_audit in create_value
Browse files Browse the repository at this point in the history
  • Loading branch information
ehdsouza committed Feb 11, 2020
1 parent e36783d commit 4d32257
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ibm_watson/assistant_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -1904,6 +1904,7 @@ def create_value(self,
type: str = None,
synonyms: List[str] = None,
patterns: List[str] = None,
include_audit: bool = None,
**kwargs) -> 'DetailedResponse':
"""
Create entity value.
Expand Down Expand Up @@ -1932,7 +1933,9 @@ def create_value(self,
value. A value can specify either synonyms or patterns (depending on the
value type), but not both. A pattern is a regular expression; for more
information about how to specify a pattern, see the
[documentation](https://cloud.ibm.com/docs/services/assistant?topic=assistant-entities#entities-create-dictionary-based).
[documentation](https://cloud.ibm.com/docs/assistant?topic=assistant-entities#entities-create-dictionary-based).
:param bool include_audit: (optional) Whether to include the audit
properties (`created` and `updated` timestamps) in the response.
:param dict headers: A `dict` containing the request headers
:return: A `DetailedResponse` containing the result, headers and HTTP status code.
:rtype: DetailedResponse
Expand All @@ -1953,7 +1956,7 @@ def create_value(self,
operation_id='create_value')
headers.update(sdk_headers)

params = {'version': self.version}
params = {'version': self.version, 'include_audit': include_audit}

data = {
'value': value,
Expand Down

0 comments on commit 4d32257

Please sign in to comment.