code: public PagedResult<Workspace> listWorkspaces(PaginationParameters parameters) throws SmartsheetException {
          String path = "workspaces";
  
          if (parameters != null) {
              path += parameters.toQueryString();
          }
          return this.listResourcesWithWrapper(path, Workspace.class);
      }
docs: List all workspaces.
  
  It mirrors to the following Smartsheet REST API method: GET /workspaces
  
  Exceptions:
  
  - InvalidRequestException : if there is any problem with the REST API request
  
  - AuthorizationException : if there is any problem with the REST API authorization(access token)
  
  - ServiceUnavailableException : if the REST API service is not available (possibly due to rate limiting)
  
  - SmartsheetRestException : if there is any other REST API related error occurred during the operation
  
  - SmartsheetException : if there is any other error occurred during the operation
  
  @param parameters the object containing the pagination parameters
  @return all workspaces (note that empty list will be returned if there is none)
  @throws SmartsheetException the smartsheet exception