code: func (client *Client) GetIsolationSegments(query ...Query) ([]IsolationSegment, Warnings, error) {
  	request, err := client.newHTTPRequest(requestOptions{
  		RequestName: internal.GetIsolationSegmentsRequest,
  		Query:       query,
  	})
  	if err != nil {
  		return nil, nil, err
  	}
  
  	var fullIsolationSegmentsList []IsolationSegment
  	warnings, err := client.paginate(request, IsolationSegment{}, func(item interface{}) error {
  		if isolationSegment, ok := item.(IsolationSegment); ok {
  			fullIsolationSegmentsList = append(fullIsolationSegmentsList, isolationSegment)
  		} else {
  			return ccerror.UnknownObjectInListError{
  				Expected:   IsolationSegment{},
  				Unexpected: item,
  			}
  		}
  		return nil
  	})
  
  	return fullIsolationSegmentsList, warnings, err
  }
docs: // GetIsolationSegments lists isolation segments with optional filters.