2009-07-13 22:14:59 -04:00
|
|
|
module Fog
|
|
|
|
module AWS
|
|
|
|
class SimpleDB
|
|
|
|
|
|
|
|
# List SimpleDB domains
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * options<~Hash> - options, defaults to {}
|
2009-07-31 02:13:48 -04:00
|
|
|
# * 'MaxNumberOfDomains'<~Integer> - number of domains to return
|
2009-07-13 22:14:59 -04:00
|
|
|
# between 1 and 100, defaults to 100
|
2009-07-31 02:13:48 -04:00
|
|
|
# * 'NextToken'<~String> - Offset token to start listing, defaults to nil
|
2009-07-13 22:14:59 -04:00
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Fog::AWS::Response>:
|
|
|
|
# * body<~Hash>:
|
2009-07-31 02:13:48 -04:00
|
|
|
# * 'BoxUsage'
|
|
|
|
# * 'Domains' - array of domain names.
|
|
|
|
# * 'NextToken' - offset to start with if there are are more domains to list
|
|
|
|
# * 'RequestId'
|
2009-07-13 22:14:59 -04:00
|
|
|
def list_domains(options = {})
|
|
|
|
request({
|
|
|
|
'Action' => 'ListDomains',
|
2009-07-31 02:13:48 -04:00
|
|
|
'MaxNumberOfDomains' => options['MaxNumberOfDomains'],
|
|
|
|
'NextToken' => options['NextToken']
|
2009-07-13 22:14:59 -04:00
|
|
|
}, Fog::Parsers::AWS::SimpleDB::ListDomains.new(@nil_string))
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|