Skip to content
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

Storage: regenerate for next link fix #1269

Merged
merged 4 commits into from
Sep 4, 2020
Merged

Storage: regenerate for next link fix #1269

merged 4 commits into from
Sep 4, 2020

Conversation

xseeseesee
Copy link
Contributor

Fix: #1266

/**
* The link to the next page.
*/
@JsonProperty("nextLink")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jejner This is new class named PageImpl1 for those have next link in the response.

@@ -836,7 +847,7 @@ public StorageAccountInner call(ServiceResponse<StorageAccountInner> response) {
@Override
public Observable<ServiceResponse<Page<StorageAccountInner>>> call(Response<ResponseBody> response) {
try {
ServiceResponse<PageImpl<StorageAccountInner>> result = listDelegate(response);
ServiceResponse<PageImpl1<StorageAccountInner>> result = listDelegate(response);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now the operation of listing storage accounts is using PageImpl1. And PageImpl will only work for those don't have next link.

@xseeseesee xseeseesee merged commit 009e38b into master Sep 4, 2020
@xseeseesee xseeseesee deleted the add-nextlink branch September 4, 2020 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Next page link missing while listing Storage accounts
2 participants