Skip to content

Commit e842f5a

Browse files
authored
Regenerate all services (#515)
* new(all-services): Generate all services * feat(all-services)L Hand edits + pylon * fix(VR): Edit Classifier object * chore(VR): Add newline * chore(VR): newline
1 parent 522da1d commit e842f5a

8 files changed

Lines changed: 83 additions & 74 deletions

examples/language_translator_v3.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,3 @@
5050
## Get model details
5151
# model = language_translator.get_model(model_id='fdadfc3b-0b96-4276-a6e5-f5c4a29711fc')
5252
# print(json.dumps(model, indent=2))
53-
54-
55-
56-

watson_developer_cloud/assistant_v1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ def create_value(self,
14691469
- It must be no longer than 64 characters.
14701470
:param list[str] patterns: An array of patterns for the entity value. You can
14711471
provide either synonyms or patterns (as indicated by **type**), but not both. A
1472-
pattern is a regular expression no longer than 128 characters. For more
1472+
pattern is a regular expression no longer than 512 characters. For more
14731473
information about how to specify a pattern, see the
14741474
[documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
14751475
:param str value_type: Specifies the type of value.
@@ -1688,7 +1688,7 @@ def update_value(self,
16881688
- It must be no longer than 64 characters.
16891689
:param list[str] new_patterns: An array of patterns for the entity value. You can
16901690
provide either synonyms or patterns (as indicated by **type**), but not both. A
1691-
pattern is a regular expression no longer than 128 characters. For more
1691+
pattern is a regular expression no longer than 512 characters. For more
16921692
information about how to specify a pattern, see the
16931693
[documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
16941694
:param dict headers: A `dict` containing the request headers
@@ -3257,7 +3257,7 @@ class CreateValue(object):
32573257
- It must be no longer than 64 characters.
32583258
:attr list[str] patterns: (optional) An array of patterns for the entity value. You
32593259
can provide either synonyms or patterns (as indicated by **type**), but not both. A
3260-
pattern is a regular expression no longer than 128 characters. For more information
3260+
pattern is a regular expression no longer than 512 characters. For more information
32613261
about how to specify a pattern, see the
32623262
[documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
32633263
:attr str value_type: (optional) Specifies the type of value.
@@ -3286,7 +3286,7 @@ def __init__(self,
32863286
- It must be no longer than 64 characters.
32873287
:param list[str] patterns: (optional) An array of patterns for the entity value.
32883288
You can provide either synonyms or patterns (as indicated by **type**), but not
3289-
both. A pattern is a regular expression no longer than 128 characters. For more
3289+
both. A pattern is a regular expression no longer than 512 characters. For more
32903290
information about how to specify a pattern, see the
32913291
[documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
32923292
:param str value_type: (optional) Specifies the type of value.

watson_developer_cloud/conversation_v1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ def create_value(self,
14691469
- It must be no longer than 64 characters.
14701470
:param list[str] patterns: An array of patterns for the entity value. You can
14711471
provide either synonyms or patterns (as indicated by **type**), but not both. A
1472-
pattern is a regular expression no longer than 128 characters. For more
1472+
pattern is a regular expression no longer than 512 characters. For more
14731473
information about how to specify a pattern, see the
14741474
[documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
14751475
:param str value_type: Specifies the type of value.
@@ -1688,7 +1688,7 @@ def update_value(self,
16881688
- It must be no longer than 64 characters.
16891689
:param list[str] new_patterns: An array of patterns for the entity value. You can
16901690
provide either synonyms or patterns (as indicated by **type**), but not both. A
1691-
pattern is a regular expression no longer than 128 characters. For more
1691+
pattern is a regular expression no longer than 512 characters. For more
16921692
information about how to specify a pattern, see the
16931693
[documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
16941694
:param dict headers: A `dict` containing the request headers
@@ -3257,7 +3257,7 @@ class CreateValue(object):
32573257
- It must be no longer than 64 characters.
32583258
:attr list[str] patterns: (optional) An array of patterns for the entity value. You
32593259
can provide either synonyms or patterns (as indicated by **type**), but not both. A
3260-
pattern is a regular expression no longer than 128 characters. For more information
3260+
pattern is a regular expression no longer than 512 characters. For more information
32613261
about how to specify a pattern, see the
32623262
[documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
32633263
:attr str value_type: (optional) Specifies the type of value.
@@ -3286,7 +3286,7 @@ def __init__(self,
32863286
- It must be no longer than 64 characters.
32873287
:param list[str] patterns: (optional) An array of patterns for the entity value.
32883288
You can provide either synonyms or patterns (as indicated by **type**), but not
3289-
both. A pattern is a regular expression no longer than 128 characters. For more
3289+
both. A pattern is a regular expression no longer than 512 characters. For more
32903290
information about how to specify a pattern, see the
32913291
[documentation](https://console.bluemix.net/docs/services/conversation/entities.html#creating-entities).
32923292
:param str value_type: (optional) Specifies the type of value.

watson_developer_cloud/discovery_v1.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,8 +1061,8 @@ def delete_document(self, environment_id, collection_id, document_id,
10611061
headers.update(kwargs.get('headers'))
10621062
params = {'version': self.version}
10631063
url = '/v1/environments/{0}/collections/{1}/documents/{2}'.format(
1064-
*self._encode_path_vars(environment_id, collection_id, document_id)
1065-
)
1064+
*self._encode_path_vars(environment_id, collection_id,
1065+
document_id))
10661066
response = self.request(
10671067
method='DELETE',
10681068
url=url,
@@ -1099,8 +1099,8 @@ def get_document_status(self, environment_id, collection_id, document_id,
10991099
headers.update(kwargs.get('headers'))
11001100
params = {'version': self.version}
11011101
url = '/v1/environments/{0}/collections/{1}/documents/{2}'.format(
1102-
*self._encode_path_vars(environment_id, collection_id, document_id)
1103-
)
1102+
*self._encode_path_vars(environment_id, collection_id,
1103+
document_id))
11041104
response = self.request(
11051105
method='GET',
11061106
url=url,
@@ -1164,8 +1164,8 @@ def update_document(self,
11641164
if metadata:
11651165
metadata_tuple = (None, metadata, 'text/plain')
11661166
url = '/v1/environments/{0}/collections/{1}/documents/{2}'.format(
1167-
*self._encode_path_vars(environment_id, collection_id, document_id)
1168-
)
1167+
*self._encode_path_vars(environment_id, collection_id,
1168+
document_id))
11691169
response = self.request(
11701170
method='POST',
11711171
url=url,

watson_developer_cloud/language_translator_v2.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
"""
17+
18+
---
19+
Language Translator v3 is
20+
[available](https://www.ibm.com/watson/developercloud/language-translator/api/v3/). See
21+
the [migration
22+
guide](https://console.bluemix.net/docs/services/language-translator/migrating.html).
23+
---
1724
IBM Watson™ Language Translator translates text from one language to another. The
1825
service offers multiple domain-specific models that you can customize based on your unique
1926
terminology and language. Use Language Translator to take news from across the globe and

watson_developer_cloud/natural_language_classifier_v1.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ class NaturalLanguageClassifierV1(WatsonService):
3636

3737
default_url = 'https://gateway.watsonplatform.net/natural-language-classifier/api'
3838

39-
def __init__(self,
40-
url=default_url,
41-
username=None,
42-
password=None,
43-
iam_api_key=None,
44-
iam_access_token=None,
45-
iam_url=None):
39+
def __init__(
40+
self,
41+
url=default_url,
42+
username=None,
43+
password=None,
44+
iam_api_key=None,
45+
iam_access_token=None,
46+
iam_url=None,
47+
):
4648
"""
4749
Construct a new client for the Natural Language Classifier service.
4850

0 commit comments

Comments
 (0)