Skip to content

Commit 61ccd85

Browse files
authored
Merge pull request #951 from watson-developer-cloud/develop
Changes for release v6.1.0
2 parents f774d19 + 0f9864e commit 61ccd85

File tree

127 files changed

+4676
-1003
lines changed

Some content is hidden

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

127 files changed

+4676
-1003
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ docs
2020
.vscode/
2121
conversation/src/test/java/com/ibm/watson/developer_cloud/conversation/v1/ConversationTest.java
2222
.swagger-codegen/VERSION
23+
*.orig
24+
*.rej

.utility/generate-api-diff.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Author: Hanbin Cho ([email protected])
33
# Description: This script 1) downloads the latest java-sdk jar published in Maven Repo 2) builds the jar of current java-sdk version, then 3) generate an API diff report of the two versions.
44
# Assumptions
5-
# 1. This script is placed in the project root of java-sdk.
5+
# 1. This script is placed in .utility folder of the java-sdk.
66
# 2. Version format is [0-9].[0-9].[0-9]
77

88
# Step 1: Download the latest release of java-sdk published in Maven Repository.
@@ -34,7 +34,7 @@ popd
3434
./gradlew shadowJar
3535

3636
# Step 5: Construct the filepath to the current version of java-sdk.
37-
CURRENT_VERSION=`cat gradle.properties | grep "version=[0-9]\.[0-9]\.[0-9]" | cut -d '=' -f 2`
37+
CURRENT_VERSION=`cat ../gradle.properties | grep "version=[0-9]\.[0-9]\.[0-9]" | cut -d '=' -f 2`
3838
CURRENT_JAR_FILENAME="java-sdk-${CURRENT_VERSION}-jar-with-dependencies.jar"
3939
CURRENT_JAR_BASEPATH="java-sdk/build/libs"
4040
CURRENT_JAR_PATH="${CURRENT_JAR_BASEPATH}/${CURRENT_JAR_FILENAME}"
@@ -46,5 +46,4 @@ if [ ! -f $CURRENT_JAR_PATH ]; then
4646
fi
4747

4848
# Step 7: Produce an API diff between the latest release and the current version using japicmp module.
49-
# TODO: Figure out how to set japicmp task's properties (oldClasspath and newClasspath) through command-line invocation.
5049
./gradlew japicmp -PoldJarPath="${LATEST_RELEASE_JAR_PATH}" -PnewJarPath="${CURRENT_JAR_PATH}" -PoldJarVersion="${LATEST_RELEASE_VERSION}" -PnewJarVersion="${CURRENT_VERSION}"

.utility/generate_apidiff_index_html.sh

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22

33
# based on https://odoepner.wordpress.com/2012/02/17/shell-script-to-generate-simple-index-html/
44

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,9 @@ public String workspaceId() {
452452
/**
453453
* Gets the dialogNode.
454454
*
455-
* The dialog node ID. This string must conform to the following restrictions: - It can contain only Unicode
456-
* alphanumeric, space, underscore, hyphen, and dot characters. - It must be no longer than 1024 characters.
455+
* The dialog node ID. This string must conform to the following restrictions:
456+
* - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
457+
* - It must be no longer than 1024 characters.
457458
*
458459
* @return the dialogNode
459460
*/
@@ -566,9 +567,9 @@ public List<DialogNodeAction> actions() {
566567
/**
567568
* Gets the title.
568569
*
569-
* The alias used to identify the dialog node. This string must conform to the following restrictions: - It can
570-
* contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters. - It must be no longer than 64
571-
* characters.
570+
* The alias used to identify the dialog node. This string must conform to the following restrictions:
571+
* - It can contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters.
572+
* - It must be no longer than 64 characters.
572573
*
573574
* @return the title
574575
*/

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,10 @@ public Builder newBuilder() {
167167
/**
168168
* Gets the entity.
169169
*
170-
* The name of the entity. This string must conform to the following restrictions: - It can contain only Unicode
171-
* alphanumeric, underscore, and hyphen characters. - It cannot begin with the reserved prefix `sys-`. - It must be no
172-
* longer than 64 characters.
170+
* The name of the entity. This string must conform to the following restrictions:
171+
* - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
172+
* - It cannot begin with the reserved prefix `sys-`.
173+
* - It must be no longer than 64 characters.
173174
*
174175
* @return the entity
175176
*/

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,10 @@ public String workspaceId() {
194194
/**
195195
* Gets the entity.
196196
*
197-
* The name of the entity. This string must conform to the following restrictions: - It can contain only Unicode
198-
* alphanumeric, underscore, and hyphen characters. - It cannot begin with the reserved prefix `sys-`. - It must be no
199-
* longer than 64 characters.
197+
* The name of the entity. This string must conform to the following restrictions:
198+
* - It can contain only Unicode alphanumeric, underscore, and hyphen characters.
199+
* - It cannot begin with the reserved prefix `sys-`.
200+
* - It must be no longer than 64 characters.
200201
*
201202
* @return the entity
202203
*/

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,10 @@ public Builder newBuilder() {
8585
/**
8686
* Gets the text.
8787
*
88-
* The text of a user input example. This string must conform to the following restrictions: - It cannot contain
89-
* carriage return, newline, or tab characters. - It cannot consist of only whitespace characters. - It must be no
90-
* longer than 1024 characters.
88+
* The text of a user input example. This string must conform to the following restrictions:
89+
* - It cannot contain carriage return, newline, or tab characters.
90+
* - It cannot consist of only whitespace characters.
91+
* - It must be no longer than 1024 characters.
9192
*
9293
* @return the text
9394
*/

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,10 @@ public String intent() {
143143
/**
144144
* Gets the text.
145145
*
146-
* The text of a user input example. This string must conform to the following restrictions: - It cannot contain
147-
* carriage return, newline, or tab characters. - It cannot consist of only whitespace characters. - It must be no
148-
* longer than 1024 characters.
146+
* The text of a user input example. This string must conform to the following restrictions:
147+
* - It cannot contain carriage return, newline, or tab characters.
148+
* - It cannot consist of only whitespace characters.
149+
* - It must be no longer than 1024 characters.
149150
*
150151
* @return the text
151152
*/

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,10 @@ public Builder newBuilder() {
134134
/**
135135
* Gets the intent.
136136
*
137-
* The name of the intent. This string must conform to the following restrictions: - It can contain only Unicode
138-
* alphanumeric, underscore, hyphen, and dot characters. - It cannot begin with the reserved prefix `sys-`. - It must
139-
* be no longer than 128 characters.
137+
* The name of the intent. This string must conform to the following restrictions:
138+
* - It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
139+
* - It cannot begin with the reserved prefix `sys-`.
140+
* - It must be no longer than 128 characters.
140141
*
141142
* @return the intent
142143
*/

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,10 @@ public String workspaceId() {
163163
/**
164164
* Gets the intent.
165165
*
166-
* The name of the intent. This string must conform to the following restrictions: - It can contain only Unicode
167-
* alphanumeric, underscore, hyphen, and dot characters. - It cannot begin with the reserved prefix `sys-`. - It must
168-
* be no longer than 128 characters.
166+
* The name of the intent. This string must conform to the following restrictions:
167+
* - It can contain only Unicode alphanumeric, underscore, hyphen, and dot characters.
168+
* - It cannot begin with the reserved prefix `sys-`.
169+
* - It must be no longer than 128 characters.
169170
*
170171
* @return the intent
171172
*/

0 commit comments

Comments
 (0)