code: func (client *Client) GetSpaces(filters ...Filter) ([]Space, Warnings, error) {
  	params := ConvertFilterParameters(filters)
  	params.Add("order-by", "name")
  	request, err := client.newHTTPRequest(requestOptions{
  		RequestName: internal.GetSpacesRequest,
  		Query:       params,
  	})
  	if err != nil {
  		return nil, nil, err
  	}
  
  	var fullSpacesList []Space
  	warnings, err := client.paginate(request, Space{}, func(item interface{}) error {
  		if space, ok := item.(Space); ok {
  			fullSpacesList = append(fullSpacesList, space)
  		} else {
  			return ccerror.UnknownObjectInListError{
  				Expected:   Space{},
  				Unexpected: item,
  			}
  		}
  		return nil
  	})
  
  	return fullSpacesList, warnings, err
  }
docs: // GetSpaces returns a list of Spaces based off of the provided filters.