Skip to content

Commit 11c08e4

Browse files
authored
Merge pull request #1014 from watson-developer-cloud/compare-and-comply
Release 6.10.0
2 parents e6d6537 + 539d724 commit 11c08e4

File tree

202 files changed

+10261
-2552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

202 files changed

+10261
-2552
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[bumpversion]
2-
current_version = 6.9.3
2+
current_version = 6.10.0
33
commit = True
4-
message = docs: Update version numbers from {current_version} -> {new_version}
4+
message = [skip ci] docs: Update version numbers from {current_version} -> {new_version}
55

66
[bumpversion:file:README.md]
77

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ docs
2121
conversation/src/test/java/com/ibm/watson/developer_cloud/conversation/v1/ConversationTest.java
2222
.swagger-codegen/VERSION
2323
*.orig
24-
*.rej
24+
*.rej
25+
compare-comply/src/test/resources/compare_comply/cloud-object-storage-credentials-input.json
26+
compare-comply/src/test/resources/compare_comply/cloud-object-storage-credentials-output.json
27+
secrets.tar

.travis.yml

Lines changed: 36 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,58 @@ language: java
22
sudo: required
33
dist: trusty
44
jdk:
5-
- openjdk7
6-
- oraclejdk8
7-
5+
- openjdk7
6+
- oraclejdk8
87
branches:
98
except:
109
- gh-pages
11-
1210
before_cache:
13-
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
14-
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
15-
11+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
12+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
1613
cache:
1714
directories:
18-
- $HOME/.m2
19-
- $HOME/.gradle/caches/
20-
- $HOME/.gradle/wrapper/
15+
- "$HOME/.m2"
16+
- "$HOME/.gradle/caches/"
17+
- "$HOME/.gradle/wrapper/"
2118
env:
2219
global:
2320
- secure: S2KIWOJX35j1FczyV7JRFrFpTftb8Hmkf6C50bJh8E03IbPu7tnX2znPKBbRWcIQndO6qd5dL7+BqtXabByOzd5Slj5/NBdXPcGffsO7B0cpFQS8ngpIMAGReCXQ12PbOiO8CIk2f/20lU3L0kqcP1TaPyZYIlSwkUg98ls8p90=
2421
- secure: eLv41LVZoRCqQehOM29RLodZ6NZhrIdLWklAkMdLGlFDEiVY5f0shaPLffpUiuv/3pg+CuQk9ffBc72m8lwTsimex9unC/WVsqQJhqQEWJEaPGL0UamV/HqHMeBQEpKiCcKHaBRHFGk7QQJVtiXvVvlbwk7Jks5giUR7+s/Q6iI=
2522
- secure: l0dde5NSGedD6fny5aMr1ll90FYVd7IKDsZ0Kd1GWnB+iDd3rjDBwz5q6NUwN2LTqw3jWFqmqdEnGUGO3Er0rdfdtPh3K194sTK3XuCZz8GEjFvYAEDRQ59oyK8fhw60c86cWppBQ4gluLKLstm12DLkARTUvJiIsTQTnuc2YGg=
26-
2723
before_install:
28-
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
29-
# Work around missing crypto in openjdk7
30-
- |
31-
if [ "$TRAVIS_JDK_VERSION" == "openjdk7" ]; then
32-
sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}/jre/lib/ext/bcprov-ext-jdk15on-158.jar"
33-
sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
34-
echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
35-
fi
36-
24+
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g'
25+
~/.m2/settings.xml
26+
- |
27+
if [ "$TRAVIS_JDK_VERSION" == "openjdk7" ]; then
28+
sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}/jre/lib/ext/bcprov-ext-jdk15on-158.jar"
29+
sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
30+
echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
31+
fi
3732
install:
38-
- 'if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then cd appscan; make asoc-tool; cd ../; fi'
39-
33+
- if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then cd appscan; make asoc-tool; cd
34+
../; fi
4035
before_script:
41-
- 'if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then chmod a+x ./appscan/ASOC.sh; fi'
42-
36+
- if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then chmod a+x ./appscan/ASOC.sh; fi
4337
script:
44-
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_42d9c68e608d_key -iv $encrypted_42d9c68e608d_iv -in config.properties.enc -out core/src/test/resources/config.properties -d || true'
45-
- 'if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then ./appscan/ASOC.sh; fi'
46-
- ./gradlew install -x check
47-
- ./gradlew checkstyleMain
48-
- ./gradlew checkstyleTest
49-
- ./gradlew codeCoverageReport --continue
50-
- ./gradlew docs > /dev/null # build the javadoc
51-
38+
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ]
39+
&& openssl aes-256-cbc -K $encrypted_42d9c68e608d_key -iv $encrypted_42d9c68e608d_iv -in secrets.tar.enc -out secrets.tar -d
40+
&& tar xvf secrets.tar
41+
|| true'
42+
- if [ "${TRAVIS_TAG}" = "${TRAVIS_BRANCH}" ]; then ./appscan/ASOC.sh; fi
43+
- "./gradlew install -x check"
44+
- "./gradlew checkstyleMain"
45+
- "./gradlew checkstyleTest"
46+
- "./gradlew codeCoverageReport --continue"
47+
- "./gradlew docs > /dev/null"
5248
after_success:
53-
- bash <(curl -s https://codecov.io/bash)
54-
49+
- bash <(curl -s https://codecov.io/bash)
5550
deploy:
56-
- provider: script
57-
script: .utility/push-javadoc-to-gh-pages.sh
58-
skip_cleanup: true
59-
on:
60-
repo: watson-developer-cloud/java-sdk
61-
jdk: openjdk7
62-
tags: true
63-
51+
- provider: script
52+
script: ".utility/push-javadoc-to-gh-pages.sh"
53+
skip_cleanup: true
54+
on:
55+
repo: watson-developer-cloud/java-sdk
56+
jdk: openjdk7
57+
tags: true
6458
notifications:
6559
email: true

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Java client library to use the [Watson APIs][wdc].
2222
* [API key](#api-key)
2323
* IBM Watson Services
2424
* [Assistant](assistant)
25+
* [Compare and Comply](compare-comply)
2526
* [Discovery](discovery)
2627
* [Language Translator](language-translator)
2728
* [Natural Language Classifier](natural-language-classifier)
@@ -60,7 +61,7 @@ All the services:
6061
<dependency>
6162
<groupId>com.ibm.watson.developer_cloud</groupId>
6263
<artifactId>java-sdk</artifactId>
63-
<version>6.9.3</version>
64+
<version>6.10.0</version>
6465
</dependency>
6566
```
6667

@@ -70,7 +71,7 @@ Only Discovery:
7071
<dependency>
7172
<groupId>com.ibm.watson.developer_cloud</groupId>
7273
<artifactId>discovery</artifactId>
73-
<version>6.9.3</version>
74+
<version>6.10.0</version>
7475
</dependency>
7576
```
7677

@@ -79,13 +80,13 @@ Only Discovery:
7980
All the services:
8081

8182
```gradle
82-
'com.ibm.watson.developer_cloud:java-sdk:6.9.3'
83+
'com.ibm.watson.developer_cloud:java-sdk:6.10.0'
8384
```
8485

8586
Only Assistant:
8687

8788
```gradle
88-
'com.ibm.watson.developer_cloud:assistant:6.9.3'
89+
'com.ibm.watson.developer_cloud:assistant:6.10.0'
8990
```
9091

9192
##### Development snapshots
@@ -108,7 +109,7 @@ And then reference the snapshot version on your app module gradle
108109
Only Speech to Text:
109110

110111
```gradle
111-
'com.ibm.watson.developer_cloud:speech-to-text:6.9.4-SNAPSHOT'
112+
'com.ibm.watson.developer_cloud:speech-to-text:6.10.1-SNAPSHOT'
112113
```
113114

114115
##### JAR
@@ -347,7 +348,7 @@ Gradle:
347348

348349
```sh
349350
cd java-sdk
350-
gradle jar # build jar file (build/libs/watson-developer-cloud-6.9.3.jar)
351+
gradle jar # build jar file (build/libs/watson-developer-cloud-6.10.0.jar)
351352
gradle test # run tests
352353
gradle check # performs quality checks on source files and generates reports
353354
gradle testReport # run tests and generate the aggregated test report (build/reports/allTests)
@@ -400,4 +401,4 @@ or [Stack Overflow](http://stackoverflow.com/questions/ask?tags=ibm-watson).
400401
[ibm-cloud-onboarding]: http://console.bluemix.net/registration?target=/developer/watson&cm_sp=WatsonPlatform-WatsonServices-_-OnPageNavLink-IBMWatson_SDKs-_-Java
401402

402403

403-
[jar]: https://github.com/watson-developer-cloud/java-sdk/releases/download/java-sdk-6.9.3/java-sdk-6.9.3-jar-with-dependencies.jar
404+
[jar]: https://github.com/watson-developer-cloud/java-sdk/releases/download/java-sdk-6.10.0/java-sdk-6.10.0-jar-with-dependencies.jar

assistant/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ This service is currently in **private beta** and requires access to use. To lea
1010
<dependency>
1111
<groupId>com.ibm.watson.developer_cloud</groupId>
1212
<artifactId>assistant</artifactId>
13-
<version>6.9.3</version>
13+
<version>6.10.0</version>
1414
</dependency>
1515
```
1616

1717
##### Gradle
1818
```gradle
19-
'com.ibm.watson.developer_cloud:assistant:6.9.3'
19+
'com.ibm.watson.developer_cloud:assistant:6.10.0'
2020
```
2121

2222
## Usage

assistant/src/main/java/com/ibm/watson/developer_cloud/assistant/v1/Assistant.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ public Assistant(String versionDate, IamOptions iamOptions) {
152152
/**
153153
* Get response to user input.
154154
*
155-
* Get a response to a user's input.
155+
* Send user input to a workspace and receive a response.
156156
*
157157
* There is no rate limit for this operation.
158158
*
@@ -303,6 +303,9 @@ public ServiceCall<WorkspaceExport> getWorkspace(GetWorkspaceOptions getWorkspac
303303
if (getWorkspaceOptions.includeAudit() != null) {
304304
builder.query("include_audit", String.valueOf(getWorkspaceOptions.includeAudit()));
305305
}
306+
if (getWorkspaceOptions.sort() != null) {
307+
builder.query("sort", getWorkspaceOptions.sort());
308+
}
306309
return createServiceCall(builder.build(), ResponseConverterUtils.getObject(WorkspaceExport.class));
307310
}
308311

@@ -820,7 +823,7 @@ public ServiceCall<Counterexample> updateCounterexample(UpdateCounterexampleOpti
820823
/**
821824
* Create entity.
822825
*
823-
* Create a new entity.
826+
* Create a new entity, or enable a system entity.
824827
*
825828
* This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
826829
*
@@ -855,7 +858,7 @@ public ServiceCall<Entity> createEntity(CreateEntityOptions createEntityOptions)
855858
/**
856859
* Delete entity.
857860
*
858-
* Delete an entity from a workspace.
861+
* Delete an entity from a workspace, or disable a system entity.
859862
*
860863
* This operation is limited to 1000 requests per 30 minutes. For more information, see **Rate limiting**.
861864
*

assistant/src/main/java/com/ibm/watson/developer_cloud/assistant/v1/model/Context.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public class Context extends DynamicModel {
2626
}.getType();
2727
private Type systemType = new TypeToken<SystemResponse>() {
2828
}.getType();
29+
private Type metadataType = new TypeToken<MessageContextMetadata>() {
30+
}.getType();
2931

3032
/**
3133
* Gets the conversationId.
@@ -45,6 +47,15 @@ public SystemResponse getSystem() {
4547
return GsonSerializationHelper.serializeDynamicModelProperty(this.get("system"), systemType);
4648
}
4749

50+
/**
51+
* Gets the metadata.
52+
*
53+
* @return the metadata
54+
*/
55+
public MessageContextMetadata getMetadata() {
56+
return GsonSerializationHelper.serializeDynamicModelProperty(this.get("metadata"), metadataType);
57+
}
58+
4859
/**
4960
* Sets the conversationId.
5061
*
@@ -62,4 +73,13 @@ public void setConversationId(final String conversationId) {
6273
public void setSystem(final SystemResponse system) {
6374
this.put("system", system);
6475
}
76+
77+
/**
78+
* Sets the metadata.
79+
*
80+
* @param metadata the new metadata
81+
*/
82+
public void setMetadata(final MessageContextMetadata metadata) {
83+
this.put("metadata", metadata);
84+
}
6585
}

assistant/src/main/java/com/ibm/watson/developer_cloud/assistant/v1/model/CreateDialogNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ public Map metadata() {
541541
/**
542542
* Gets the nextStep.
543543
*
544-
* The next step to be executed in dialog processing.
544+
* The next step to execute following this dialog node.
545545
*
546546
* @return the nextStep
547547
*/

assistant/src/main/java/com/ibm/watson/developer_cloud/assistant/v1/model/CreateDialogNodeOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ public Map metadata() {
560560
/**
561561
* Gets the nextStep.
562562
*
563-
* The next step to be executed in dialog processing.
563+
* The next step to execute following this dialog node.
564564
*
565565
* @return the nextStep
566566
*/

assistant/src/main/java/com/ibm/watson/developer_cloud/assistant/v1/model/CreateEntity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,11 @@ public Builder newBuilder() {
169169
*
170170
* The name of the entity. This string must conform to the following restrictions:
171171
* - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
172-
* - It cannot begin with the reserved prefix `sys-`.
173172
* - It must be no longer than 64 characters.
174173
*
174+
* If you specify an entity name beginning with the reserved prefix `sys-`, it must be the name of a system entity
175+
* that you want to enable. (Any entity content specified with the request is ignored.).
176+
*
175177
* @return the entity
176178
*/
177179
public String entity() {

0 commit comments

Comments
 (0)