Skip to content

Commit

Permalink
Merge pull request #795 from watson-developer-cloud/remove-compatibil…
Browse files Browse the repository at this point in the history
…ity-layer

Remove compatibility layer
  • Loading branch information
dpopp07 authored Oct 29, 2018
2 parents b4fbc45 + df82a9e commit 26cd5c2
Show file tree
Hide file tree
Showing 37 changed files with 8,852 additions and 10,522 deletions.
267 changes: 267 additions & 0 deletions UPGRADE-4.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
# Upgrading to watson-developer-cloud@4.0
- [Breaking changes]
- [Removed Services]
- [Constructor Compatibility]
- [Discovery Compatibility]
- [Natural Language Classifier Compatibility]
- [Personality Insights v3 Compatibility]
- [Speech to Text Compatibility]
- [Text to Speech Compatibility]
- [Tone Analyzer Compatibility]
- [Visual Recognition Compatibility]


## Breaking changes
### Removed Services
The following services have been deprecated for an extended period of time and will no longer be supported in the SDK:
- Dialog
- Language Translator v2
- Conversation v1


### Constructor Compatibility
- Parameter name changed: `version_date` -> `version`
- The parameter `apikey` is no longer supported


### Discovery Compatibility
#### getEnvironments
- Method name changed: `getEnvironments` -> `listEnvironments`

#### getCollections
- Method name changed: `getCollections` -> `listCollections`

#### getConfigurations
- Method name changed: `getConfigurations` -> `listConfigurations`

#### getCollectionFields
- Method name changed: `getCollectionFields` -> `listFields`
- Parameter name changed: `collection_id` -> `collection_ids` (`collection_ids` is an Array)

#### addJsonDocument
- Method name changed: `addJsonDocument` -> `addDocument`

#### updateJsonDocument
- Method name changed: `updateJsonDocument` -> `updateDocument`

#### createEnvironment
- Parameter `size` will no longer be set to `1` if not given

#### createConfiguration
- Parameter `name` is now **required**
- Parameter `file` is now split into `conversions`, `enrichments` and `normalizations`

#### updateConfiguration
- Parameter `name` is now **required**
- Parameter `file` is now split into `conversions`, `enrichments` and `normalizations`

#### createCollection
- Parameter name changed: `language_code` -> `language`
- Parameter `language` will no longer be set to `'en_us'` if not given

#### updateCollection
- Parameter name changed: `collection_name` -> `name`

#### query
- Parameter name changed: `return` -> `return_fields`
- `query` and `natural_language_query` can't both be populated - this is no longer corrected internally
- Parameter name changed: `passages.fields` -> `passages_fields`
- Parameter name changed: `passages.count` -> `passages_count`
- Parameter name changed: `passages.characters` -> `passages_characters`


### Natural Language Classifier Compatibility
#### create
- Method name changed: `create` -> `createClassifier`
- Parameter `training_data` is now **required** to be CSV format
- Parameter `metadata` no longer constructed internally

#### classify
- Parameter name changed: `classifier` -> `classifier_id`

#### status
- Method name changed: `status` -> `getClassifier`
- Parameter name changed: `classifier` -> `classifier_id`

#### list
- Method name changed: `list` -> `listClassifiers`

#### remove
- Method name changed: `remove` -> `deleteClassifier`
- Parameter name changed: `classifier` -> `classifier_id`


### Personality Insights v3 Compatibility
#### profile
- Parameters `accept_language`, `content_type`, `content_language` now belong at the top-level of the `params` object, rather than within `headers`
- Parameter `accept` is no longer supported - use `profile()` for `application/json` and `profileAsCsv()` for `text/csv`
- Parameters `text` and `contentItems` are no longer supported
- Parameter `content_items` belongs within the parameter `content` and not at the top level - this is no longer internally corrected

#### profile_csv
- Method name changed: `profile_csv` -> `profileAsCsv`


### Speech to Text Compatibility
#### getModels
- Method name changed: `getModels` -> `listModels`

#### getCustomization
- Method name changed: `getCustomization` -> `getLanguageModel`

#### getRecognitionJob
- Method name changed: `getRecognitionJob` -> `checkJob`

#### createCustomization
- Method name changed: `createCustomization` -> `createLanguageModel`

#### getRecognitionJobs
- Method name changed: `getRecognitionJobs` -> `checkJobs`

#### deleteRecognitionJob
- Method name changed: `deleteRecognitionJob` -> `deleteJob`

#### getCustomizations
- Method name changed: `getCustomizations` -> `listLanguageModels`

#### createRecognitionJob
- Method name changed: `createRecognitionJob` -> `createJob`
- The parameter `events` must be a comma-separated string, **not** an Array. This is no longer corrected internally

#### addCorpus
- Parameter name changed: `name` -> `corpus_name`
- Parameter name changed: `corpus` -> `corpus_file`

#### getCorpus
- Parameter name changed: `name` -> `corpus_name`

#### deleteCorpus
- Parameter name changed: `name` -> `corpus_name`

#### getCorpora
- Method name changed: `getCorpora` -> `listCorpora`

#### addWord
- Parameter name changed: `name` -> `corpus_name`

#### getWords
- Method name changed: `word` -> `word_name`

#### getWord
- Method name changed: `word` -> `word_name`

#### deleteWord
- Method name changed: `word` -> `word_name`

#### trainCustomization
- Method name changed: `trainCustomization` -> `trainLanguageModel`

#### resetCustomization
- Method name changed: `resetCustomization` -> `resetLanguageModel`

#### deleteCustomization
- Method name changed: `deleteCustomization` -> `deleteLanguageModel`

#### createRecognizeStream
- Method name changed: `createRecognizeStream` -> `recognizeUsingWebSocket`

#### recognizeLive
- This method is no longer supported. Use `recognizeUsingWebSocket` instead

#### observeResult
- This method is no longer supported. Use `recognizeUsingWebSocket` instead


### Text to Speech Compatibility
#### getCustomizations
- Method name changed: `getCustomizations` -> `listVoiceModels`

#### getCustomization
- Method name changed: `getCustomization` -> `getVoiceModel`

#### updateCustomization
- Method name changed: `updateCustomization` -> `updateVoiceModel`

#### deleteCustomization
- Method name changed: `deleteCustomization` -> `deleteVoiceModel`

#### createCustomization
- Method name changed: `createCustomization` -> `createVoiceModel`

#### getWords
- Method name changed: `getWords` -> `listWords`

#### voices
- Method name changed: `voices` -> `listVoices`

#### voice
- Method name changed: `voice` -> `getVoice`

#### pronunciation
- Method name changed: `pronunciation` -> `getPronunciation`


### Tone Analyzer Compatibility
#### tone
- Parameter name changed: `text` -> `tone_input`
- Parameter `content_type` is now **required**
- Parameter `tones` is now **required** to be an Array
- Parameter name changed: `language` -> `content_language`

#### tone_chat
- Method name changed: `tone_chat` -> `toneChat`
- Parameter `utterances` is now **required** to be at the top level of the params object


### Visual Recognition Compatibility
#### classify
- Parameter name changed: `image_file` -> `images_file`
- Parameter `parameters` is no longer supported

#### detectFaces
- Parameter name changed: `image_file` -> `images_file`
- Parameter `parameters` is no longer supported

#### retrainClassifier
- Method name changed: `retrainClassifier` -> `updateClassifier`

#### recognizeText
- This method is no longer supported

#### createCollection
- This method is no longer supported

#### getCollection
- This method is no longer supported

#### listCollections
- This method is no longer supported

#### deleteCollection
- This method is no longer supported

#### addImage
- This method is no longer supported

#### listImages
- This method is no longer supported

#### getImage
- This method is no longer supported

#### deleteImage
- This method is no longer supported

#### setImageData
- This method is no longer supported

#### getImageData
- This method is no longer supported

#### deleteImageData
- This method is no longer supported

#### findSimilar
- This method is no longer supported


Loading

0 comments on commit 26cd5c2

Please sign in to comment.