code: function(details, callback) {
          var self = this;
  
          if (typeof(details) === 'function') {
              callback = details;
              details = {};
          }
  
          var requestOptions = {
              uri: '/domains',
              endpoint: rackspace.Endpoints.CloudDns
          };
  
          requestOptions.qs = _.pick(details,
              'name');
  
          self.authorizedRequest(requestOptions, function(err, res, body) {
              if (err || !body.domains) {
                  callback(err);
                  return;
              }
  
              var domains = [];
  
              for (var i = 0; i < body.domains.length; i++) {
                  domains.push(new rackspace.Domain(self, body.domains[i]));
              }
  
              callback(err, domains);
          });
      }
docs: @name Client.getDomains
  
  @description getDomains retrieves your list of domains
  
  @param {Object|Function}     details     provides filters on your domains request
  @param {Function}            callback    handles the callback of your api call