code: public PagedList<ExperimentInner> listByWorkspace(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptions experimentsListByWorkspaceOptions) {
          ServiceResponse<Page<ExperimentInner>> response = listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, experimentsListByWorkspaceOptions).toBlocking().single();
          return new PagedList<ExperimentInner>(response.body()) {
              @Override
              public Page<ExperimentInner> nextPage(String nextPageLink) {
                  return listByWorkspaceNextSinglePageAsync(nextPageLink).toBlocking().single().body();
              }
          };
      }
docs: Gets a list of Experiments within the specified Workspace.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.
  @param experimentsListByWorkspaceOptions Additional parameters for the operation
  @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;ExperimentInner&gt; object if successful.