Skip to content

Release v6.0.0 #948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
May 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
23dc373
Update info about Visual Recognition
SirSpidey May 24, 2018
3d8c12d
Updates after reviews
SirSpidey May 24, 2018
6429bfc
Merge pull request #946 from watson-developer-cloud/SirSpidey-patch-v…
lpatino10 May 24, 2018
33aa867
feat(Assistant): Add newest code directly from generator
lpatino10 May 29, 2018
3234ac4
refactor(Assistant): Eliminate use of adapters for pagination
lpatino10 May 29, 2018
bfba819
feat(Conversation): Add newest code directly from generator
lpatino10 May 29, 2018
de2eb25
refactor(Conversation): Eliminate use of adapters for pagination
lpatino10 May 30, 2018
fd63eea
feat(Personality Insights): Add newest code directly from generator
lpatino10 May 30, 2018
7c603cd
feat(personality-insights): Add manual tweaks
lpatino10 May 30, 2018
0edf894
test(personality-insights): Fix tests for new method name
lpatino10 May 30, 2018
7a40822
feat(speech-to-text): Add newest code directly from generator
lpatino10 May 30, 2018
dd5a203
feat(speech-to-text): Add manual tweaks
lpatino10 May 30, 2018
ad801cd
test(speech-to-text): Add tests for new method
lpatino10 May 30, 2018
ecab49a
feat(text-to-speech): Add newest code directly from generator
lpatino10 May 30, 2018
d377190
test(text-to-speech): Add tests for new method
lpatino10 May 30, 2018
2abcb0e
feat(tone-analyzer): Add newest code directly from generator
lpatino10 May 30, 2018
a5e2544
feat(visual-recognition): Add newest code directly from generator
lpatino10 May 30, 2018
c4153a4
feat(visual-recognition): Add manual tweaks
lpatino10 May 30, 2018
4321df8
test(visual-recognition): Modify tests to use old URL
lpatino10 May 30, 2018
41a40ae
feat(core): Use proper endpoint in visual recognition with API key auth
lpatino10 May 30, 2018
f26e2a2
refactor(visual-recognition): Remove unnecessary dummy API key
lpatino10 May 30, 2018
d6f7578
refactor(general): Fix incorrect usages of setApiKey
lpatino10 May 30, 2018
1b9dbdf
test(visual-recognition): Add tests for new method
lpatino10 May 30, 2018
01a364b
refactor(general): Address codacy complaints
lpatino10 May 30, 2018
789f473
docs(main README): Remove temporary warning for authenticating in Vis…
lpatino10 May 30, 2018
a61c2af
refactor(iam): Use proper default IAM URL
lpatino10 May 30, 2018
11f5917
Merge pull request #947 from watson-developer-cloud/generated-updates
lpatino10 May 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ docs
.swagger-codegen-ignore
.vscode/
conversation/src/test/java/com/ibm/watson/developer_cloud/conversation/v1/ConversationTest.java
.swagger-codegen/VERSION
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ service.setUsernameAndPassword("<username>", "<password>");

### API Key

_Note: This version of instantiation only works with Visual Recognition, as it's the only service that uses an API key rather than a username and password._
_Important: Instantiation with API key works only with Visual Recognition service instances created before May 23, 2018. Visual Recognition instances created after May 22 use IAM._

```java
// in the constructor
Expand All @@ -180,7 +180,7 @@ When authenticating with IAM, you have the option of passing in:
// in the constructor, letting the SDK manage the IAM token
IamOptions options = new IamOptions.Builder()
.apiKey("<iam_api_key>")
.url("<iam_url>") // optional - the default value is https://iam.ng.bluemix.net/identity/token
.url("<iam_url>") // optional - the default value is https://iam.bluemix.net/identity/token
.build();
Discovery service = new Discovery("2017-11-07", options);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,11 @@ public Assistant(String versionDate, String username, String password) {
}

/**
* Instantiates a new `Assistant` with IAM. Note that if the access token is specified in the iamOptions,
* you accept responsibility for managing the access token yourself. You must set a new access token before this one
* expires. Failing to do so will result in authentication errors after this token expires.
* Instantiates a new `Assistant` with IAM. Note that if the access token is specified in the
* iamOptions, you accept responsibility for managing the access token yourself. You must set a new access token
* before this
* one expires or after receiving a 401 error from the service. Failing to do so will result in authentication errors
* after this token expires.
*
* @param versionDate The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
* calls from failing when the service introduces breaking changes.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017 IBM Corp. All Rights Reserved.
* Copyright 2018 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -12,49 +12,24 @@
*/
package com.ibm.watson.developer_cloud.assistant.v1.model;

import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.ibm.watson.developer_cloud.assistant.v1.model.util.LogPaginationTypeAdapter;
import com.ibm.watson.developer_cloud.service.model.GenericModel;

/**
* The pagination data for the returned objects.
*/
@JsonAdapter(LogPaginationTypeAdapter.class)
public class LogPagination extends GenericModel {

@SerializedName("next_url")
private String nextUrl;
private Long matched;

/**
* A token identifying the last value from the previous page of results.
*/
private String cursor;

/**
* Gets the cursor.
* A token identifying the last value from the previous page of results.
*
* @return the cursor
*/
public String getCursor() {
return cursor;
}

/**
* Sets the cursor.
*
* @param cursor the new cursor
*/
public void setCursor(String cursor) {
this.cursor = cursor;
}
@SerializedName("next_cursor")
private String nextCursor;

/**
* Gets the nextUrl.
*
* The URL that will return the next page of results.
* The URL that will return the next page of results, if any.
*
* @return the nextUrl
*/
Expand All @@ -74,20 +49,13 @@ public Long getMatched() {
}

/**
* Sets the nextUrl.
* Gets the nextCursor.
*
* @param nextUrl the new nextUrl
*/
public void setNextUrl(final String nextUrl) {
this.nextUrl = nextUrl;
}

/**
* Sets the matched.
* A token identifying the next page of results.
*
* @param matched the new matched
* @return the nextCursor
*/
public void setMatched(final long matched) {
this.matched = matched;
public String getNextCursor() {
return nextCursor;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017 IBM Corp. All Rights Reserved.
* Copyright 2018 IBM Corp. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -12,15 +12,12 @@
*/
package com.ibm.watson.developer_cloud.assistant.v1.model;

import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.ibm.watson.developer_cloud.assistant.v1.model.util.PaginationTypeAdapter;
import com.ibm.watson.developer_cloud.service.model.GenericModel;

/**
* The pagination data for the returned objects.
*/
@JsonAdapter(PaginationTypeAdapter.class)
public class Pagination extends GenericModel {

@SerializedName("refresh_url")
Expand All @@ -29,30 +26,10 @@ public class Pagination extends GenericModel {
private String nextUrl;
private Long total;
private Long matched;

/**
* A token identifying the last value from the previous page of results.
*/
private String cursor;

/**
* Gets the cursor.
* A token identifying the last value from the previous page of results.
*
* @return the cursor
*/
public String getCursor() {
return cursor;
}

/**
* Sets the cursor.
*
* @param cursor the new cursor
*/
public void setCursor(String cursor) {
this.cursor = cursor;
}
@SerializedName("refresh_cursor")
private String refreshCursor;
@SerializedName("next_cursor")
private String nextCursor;

/**
* Gets the refreshUrl.
Expand Down Expand Up @@ -99,38 +76,24 @@ public Long getMatched() {
}

/**
* Sets the refreshUrl.
* Gets the refreshCursor.
*
* @param refreshUrl the new refreshUrl
*/
public void setRefreshUrl(final String refreshUrl) {
this.refreshUrl = refreshUrl;
}

/**
* Sets the nextUrl.
* A token identifying the current page of results.
*
* @param nextUrl the new nextUrl
* @return the refreshCursor
*/
public void setNextUrl(final String nextUrl) {
this.nextUrl = nextUrl;
public String getRefreshCursor() {
return refreshCursor;
}

/**
* Sets the total.
* Gets the nextCursor.
*
* @param total the new total
*/
public void setTotal(final long total) {
this.total = total;
}

/**
* Sets the matched.
* A token identifying the next page of results.
*
* @param matched the new matched
* @return the nextCursor
*/
public void setMatched(final long matched) {
this.matched = matched;
public String getNextCursor() {
return nextCursor;
}
}

This file was deleted.

This file was deleted.

Loading