Skip to content

Commit 6d497cf

Browse files
author
Mike Kistler
committed
Replace latest_version with named version dates
1 parent 9b425cc commit 6d497cf

8 files changed

Lines changed: 12 additions & 8 deletions

watson_developer_cloud/conversation_v1.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ class ConversationV1(WatsonService):
3333
"""The Conversation V1 service."""
3434

3535
default_url = 'https://gateway.watsonplatform.net/conversation/api'
36-
latest_version = '2017-05-26'
36+
VERSION_DATE_2017_05_26 = '2017-05-26'
37+
VERSION_DATE_2017_04_21 = '2017-04-21'
38+
VERSION_DATE_2017_02_03 = '2017-02-03'
39+
VERSION_DATE_2016_09_20 = '2016-09-20'
40+
VERSION_DATE_2016_07_11 = '2016-07-11'
3741

3842
def __init__(self, version, url=default_url, username=None, password=None):
3943
"""

watson_developer_cloud/discovery_v1.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ class DiscoveryV1(WatsonService):
3535
"""The Discovery V1 service."""
3636

3737
default_url = 'https://gateway.watsonplatform.net/discovery/api'
38-
latest_version = '2017-09-01'
38+
VERSION_DATE_2017_09_01 = '2017-09-01'
39+
VERSION_DATE_2017_08_01 = '2017-08-01'
40+
VERSION_DATE_2017_07_19 = '2017-07-19'
41+
VERSION_DATE_2017_06_25 = '2017-06-25'
42+
VERSION_DATE_2016_12_01 = '2016-12-01'
3943

4044
def __init__(self, version, url=default_url, username=None, password=None):
4145
"""

watson_developer_cloud/language_translator_v2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class LanguageTranslatorV2(WatsonService):
3434
"""The Language Translator V2 service."""
3535

3636
default_url = 'https://gateway.watsonplatform.net/language-translator/api'
37-
latest_version = ''
3837

3938
def __init__(self, url=default_url, username=None, password=None):
4039
"""

watson_developer_cloud/natural_language_classifier_v1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class NaturalLanguageClassifierV1(WatsonService):
3434
"""The Natural Language Classifier V1 service."""
3535

3636
default_url = 'https://gateway.watsonplatform.net/natural-language-classifier/api'
37-
latest_version = ''
3837

3938
def __init__(self, url=default_url, username=None, password=None):
4039
"""

watson_developer_cloud/natural_language_understanding_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class NaturalLanguageUnderstandingV1(WatsonService):
7676
"""The Natural Language Understanding V1 service."""
7777

7878
default_url = 'https://gateway.watsonplatform.net/natural-language-understanding/api'
79-
latest_version = '2017-02-27'
79+
VERSION_DATE_2017_02_27 = '2017-02-27'
8080

8181
def __init__(self, version, url=default_url, username=None, password=None):
8282
"""

watson_developer_cloud/personality_insights_v3.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ class PersonalityInsightsV3(WatsonService):
6969
"""The Personality Insights V3 service."""
7070

7171
default_url = 'https://gateway.watsonplatform.net/personality-insights/api'
72-
latest_version = ''
7372

7473
def __init__(self, version, url=default_url, username=None, password=None):
7574
"""

watson_developer_cloud/tone_analyzer_v3.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ class ToneAnalyzerV3(WatsonService):
6565
"""The Tone Analyzer V3 service."""
6666

6767
default_url = 'https://gateway.watsonplatform.net/tone-analyzer/api'
68-
latest_version = ''
6968

7069
def __init__(self, version, url=default_url, username=None, password=None):
7170
"""

watson_developer_cloud/visual_recognition_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class VisualRecognitionV3(WatsonService):
4040
"""The Visual Recognition V3 service."""
4141

4242
default_url = 'https://gateway-a.watsonplatform.net/visual-recognition/api'
43-
latest_version = '2016-05-20'
43+
VERSION_DATE_2016_05_20 = '2016-05-20'
4444

4545
def __init__(self, version, url=default_url, api_key=None):
4646
"""

0 commit comments

Comments
 (0)