code: public PagedList<UpgradeOperationHistoricalStatusInfoInner> getOSUpgradeHistory(final String resourceGroupName, final String vmScaleSetName) {
          ServiceResponse<Page<UpgradeOperationHistoricalStatusInfoInner>> response = getOSUpgradeHistorySinglePageAsync(resourceGroupName, vmScaleSetName).toBlocking().single();
          return new PagedList<UpgradeOperationHistoricalStatusInfoInner>(response.body()) {
              @Override
              public Page<UpgradeOperationHistoricalStatusInfoInner> nextPage(String nextPageLink) {
                  return getOSUpgradeHistoryNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets list of OS upgrades on a VM scale set instance.
  
  @param resourceGroupName The name of the resource group.
  @param vmScaleSetName The name of the VM scale set.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the PagedList&lt;UpgradeOperationHistoricalStatusInfoInner&gt; object if successful.