code: func (client *Client) GetApplicationTasks(appGUID string, query ...Query) ([]Task, Warnings, error) {
  	request, err := client.newHTTPRequest(requestOptions{
  		RequestName: internal.GetApplicationTasksRequest,
  		URIParams: internal.Params{
  			"app_guid": appGUID,
  		},
  		Query: query,
  	})
  	if err != nil {
  		return nil, nil, err
  	}
  
  	var fullTasksList []Task
  	warnings, err := client.paginate(request, Task{}, func(item interface{}) error {
  		if task, ok := item.(Task); ok {
  			fullTasksList = append(fullTasksList, task)
  		} else {
  			return ccerror.UnknownObjectInListError{
  				Expected:   Task{},
  				Unexpected: item,
  			}
  		}
  		return nil
  	})
  
  	return fullTasksList, warnings, err
  }
docs: // GetApplicationTasks returns a list of tasks associated with the provided
  // application GUID. Results can be filtered by providing URL queries.