code: public PagedList<RuntimeScriptActionDetailInner> listByCluster(final String resourceGroupName, final String clusterName) {
          ServiceResponse<Page<RuntimeScriptActionDetailInner>> response = listByClusterSinglePageAsync(resourceGroupName, clusterName).toBlocking().single();
          return new PagedList<RuntimeScriptActionDetailInner>(response.body()) {
              @Override
              public Page<RuntimeScriptActionDetailInner> nextPage(String nextPageLink) {
                  return listByClusterNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Lists all the persisted script actions for the specified cluster.
  
  @param resourceGroupName The name of the resource group.
  @param clusterName The name of the cluster.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ErrorResponseException 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;RuntimeScriptActionDetailInner&gt; object if successful.