2009-07-13 22:14:59 -04:00
|
|
|
module Fog
|
|
|
|
module AWS
|
|
|
|
class S3
|
|
|
|
|
|
|
|
# List information about S3 buckets for authorized user
|
|
|
|
#
|
2009-07-20 22:47:48 -04:00
|
|
|
# ==== Returns
|
|
|
|
# * response<~Fog::AWS::Response>:
|
|
|
|
# * body<~Hash>:
|
|
|
|
# * :buckets<~Hash>:
|
|
|
|
# * :name<~String> - Name of bucket
|
|
|
|
# * :creation_time<~Time> - Timestamp of bucket creation
|
|
|
|
# * :owner<~Hash>:
|
|
|
|
# * :display_name<~String> - Display name of bucket owner
|
|
|
|
# * :id<~String> - Id of bucket owner
|
2009-07-13 22:14:59 -04:00
|
|
|
def get_service
|
|
|
|
request({
|
2009-07-14 19:04:39 -04:00
|
|
|
:expects => 200,
|
2009-07-13 22:14:59 -04:00
|
|
|
:headers => {},
|
|
|
|
:host => @host,
|
|
|
|
:method => 'GET',
|
|
|
|
:parser => Fog::Parsers::AWS::S3::GetService.new,
|
|
|
|
:url => @host
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|