Skip to content

Commit c3e1f07

Browse files
committed
feat: regenerate using current api def and add deprecation warnings
1 parent e915dce commit c3e1f07

File tree

4 files changed

+19
-6
lines changed

4 files changed

+19
-6
lines changed

ibm_watson/personality_insights_v3.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,9 @@ class Profile():
911911
:attr List[Warning] warnings: An array of warning messages that are associated
912912
with the input text for the request. The array is empty if the input generated
913913
no warnings.
914+
Deprecated On 1 December 2021, Personality Insights will no longer be available.
915+
Consider migrating to Watson Natural Language Understanding.
916+
For more information, see [Personality Insights Deprecation](https://github.com/watson-developer-cloud/ruby-sdk/tree/master#personality-insights-deprecation).
914917
"""
915918

916919
def __init__(
@@ -958,6 +961,7 @@ def __init__(
958961
array provides information inferred from the input text for the individual
959962
preferences of that category.
960963
"""
964+
print('warning: On 1 December 2021, Personality Insights will no longer be available. For more information, see the README.')
961965
self.processed_language = processed_language
962966
self.word_count = word_count
963967
self.word_count_message = word_count_message

ibm_watson/text_to_speech_v1.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,6 @@ class Language(Enum):
11101110
are to be returned. Omit the parameter to see all custom models that are owned by
11111111
the requester.
11121112
"""
1113-
AR_AR = 'ar-AR'
11141113
DE_DE = 'de-DE'
11151114
EN_GB = 'en-GB'
11161115
EN_US = 'en-US'

ibm_watson/visual_recognition_v3.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
"""
17-
The IBM Watson™ Visual Recognition service uses deep learning algorithms to identify
18-
scenes and objects in images that you upload to the service. You can create and train a
19-
custom classifier to identify subjects that suit your needs.
17+
IBM Watson™ Visual Recognition is discontinued. Existing instances are supported
18+
until 1 December 2021, but as of 7 January 2021, you can't create instances. Any instance
19+
that is provisioned on 1 December 2021 will be deleted.
20+
{: deprecated}
21+
The IBM Watson Visual Recognition service uses deep learning algorithms to identify scenes
22+
and objects in images that you upload to the service. You can create and train a custom
23+
classifier to identify subjects that suit your needs.
2024
"""
2125

2226
import json
@@ -68,6 +72,7 @@ def __init__(
6872
Get up to date information from https://github.com/IBM/python-sdk-core/blob/master/README.md
6973
about initializing the authenticator of your choice.
7074
"""
75+
print('warning: On 1 December 2021, Visual Recognition will no longer be available. For more information, see the README.')
7176
if not authenticator:
7277
authenticator = get_authenticator_from_environment(service_name)
7378
BaseService.__init__(self,

ibm_watson/visual_recognition_v4.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,12 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
"""
17-
Provide images to the IBM Watson™ Visual Recognition service for analysis. The
18-
service detects objects based on a set of images with training data.
17+
IBM Watson™ Visual Recognition is discontinued. Existing instances are supported
18+
until 1 December 2021, but as of 7 January 2021, you can't create instances. Any instance
19+
that is provisioned on 1 December 2021 will be deleted.
20+
{: deprecated}
21+
Provide images to the IBM Watson Visual Recognition service for analysis. The service
22+
detects objects based on a set of images with training data.
1923
"""
2024

2125
import json
@@ -68,6 +72,7 @@ def __init__(
6872
Get up to date information from https://github.com/IBM/python-sdk-core/blob/master/README.md
6973
about initializing the authenticator of your choice.
7074
"""
75+
print('warning: On 1 December 2021, Visual Recognition will no longer be available. For more information, see the README.')
7176
if not authenticator:
7277
authenticator = get_authenticator_from_environment(service_name)
7378
BaseService.__init__(self,

0 commit comments

Comments
 (0)