Related: #647, #652
Right now, we sometimes kind of blindly pass the user's provided object to the API. We should be sure to only pass through what we say in our docs we accept.
I'm thinking something like:
/**
* @param query.maxResults
* @param query.pageSize
*/
Service.prototype.method = function(query, callback) {
var allowedQueryParameters = ['maxResults', 'pageSize'];
var requestQuery = util.pluck(query, allowedQueryParameters);
// If `query` had more on it, we get a new object back with just the
// params we want the API to receive.
callApi('POST', '/path', requestQuery);
};