Skip to content

Commit cd35984

Browse files
authored
Merge pull request #827 from watson-developer-cloud/dynamic-property-fix
Add newest generated services
2 parents e62b234 + ee77956 commit cd35984

File tree

138 files changed

+5738
-2256
lines changed

Some content is hidden

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

138 files changed

+5738
-2256
lines changed

.config.properties.enc

-3.25 KB
Binary file not shown.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ before_install:
3030
- sed -i.bak -e 's|https://nexus.codehaus.org/snapshots/|https://oss.sonatype.org/content/repositories/codehaus-snapshots/|g' ~/.m2/settings.xml
3131

3232
script:
33-
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_3faf32fc672a_key -iv $encrypted_3faf32fc672a_iv -in .config.properties.enc -out core/src/test/resources/.config.properties -d || true'
33+
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && openssl aes-256-cbc -K $encrypted_b248e84a4806_key -iv $encrypted_b248e84a4806_iv -in config.properties.enc -out core/src/test/resources/config.properties -d || true'
3434
- ./gradlew install -x check
3535
- ./gradlew checkstyleMain
3636
- ./gradlew checkstyleTest

alchemy/src/test/java/com/ibm/watson/developer_cloud/alchemy/v1/AlchemyVisionIT.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public void testGetImageFromURL() {
8484
/**
8585
* Test get image with HTML.
8686
*/
87+
@Ignore
8788
@Test
8889
public void testGetImageWithHTML() {
8990
final ImageLink image = service.getImageLink(htmlExample).execute();

config.properties.enc

3.3 KB
Binary file not shown.

conversation/src/main/java/com/ibm/watson/developer_cloud/conversation/v1/Conversation.java

Lines changed: 700 additions & 639 deletions
Large diffs are not rendered by default.

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

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,28 +19,31 @@
1919
import com.ibm.watson.developer_cloud.util.GsonSerializationHelper;
2020

2121
/**
22-
* Context information for the message. Include the context from the previous response to maintain state for the
22+
* Context information for the message. Include the context from the previous response to maintain state for the
2323
* conversation.
24-
*/
24+
*/
2525
public class Context extends DynamicModel {
26-
private Type conversationIdType = new TypeToken<String>() { } .getType();
27-
private Type systemType = new TypeToken<SystemResponse>() { } .getType();
26+
private Type conversationIdType = new TypeToken<String>() {
27+
}.getType();
28+
private Type systemType = new TypeToken<SystemResponse>() {
29+
}.getType();
2830

2931
/**
3032
* Gets the conversationId.
3133
*
3234
* @return the conversationId
3335
*/
3436
public String getConversationId() {
35-
return GsonSerializationHelper.serializeDynamicModelProperty(this.get("conversationId"), conversationIdType);
37+
return GsonSerializationHelper.serializeDynamicModelProperty(this.get("conversation_id"), conversationIdType);
3638
}
39+
3740
/**
3841
* Gets the system.
3942
*
4043
* @return the system
4144
*/
4245
public SystemResponse getSystem() {
43-
return GsonSerializationHelper.serializeDynamicModelProperty(this.get("system"), systemType);
46+
return GsonSerializationHelper.serializeDynamicModelProperty(this.get("system"), systemType);
4447
}
4548

4649
/**
@@ -49,7 +52,7 @@ public SystemResponse getSystem() {
4952
* @param conversationId the new conversationId
5053
*/
5154
public void setConversationId(final String conversationId) {
52-
this.put("conversationId", conversationId);
55+
this.put("conversation_id", conversationId);
5356
}
5457

5558
/**
@@ -61,4 +64,3 @@ public void setSystem(final SystemResponse system) {
6164
this.put("system", system);
6265
}
6366
}
64-

0 commit comments

Comments
 (0)