1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/requests/s3/get_service.rb

30 lines
763 B
Ruby
Raw Normal View History

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
def get_service
request({
:expects => 200,
:headers => {},
:host => @host,
:method => 'GET',
:parser => Fog::Parsers::AWS::S3::GetService.new,
:url => @host
})
end
end
end
end