2011-02-23 13:57:51 -08:00
|
|
|
module Fog
|
2011-06-15 14:26:43 -07:00
|
|
|
module Storage
|
|
|
|
class AWS
|
2011-02-23 13:57:51 -08:00
|
|
|
class Real
|
|
|
|
|
|
|
|
# Delete policy for a bucket
|
|
|
|
#
|
2012-12-31 20:33:14 -06:00
|
|
|
# @param bucket_name [String] name of bucket to delete policy from
|
2011-02-23 13:57:51 -08:00
|
|
|
#
|
2012-12-31 20:33:14 -06:00
|
|
|
# @return [Excon::Response] response:
|
2013-01-02 19:42:54 -06:00
|
|
|
# * status [Integer] - 204
|
2012-12-31 20:33:14 -06:00
|
|
|
#
|
|
|
|
# @see http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTBucketDELETEpolicy.html
|
2011-02-23 13:57:51 -08:00
|
|
|
|
|
|
|
def delete_bucket_policy(bucket_name)
|
|
|
|
request({
|
|
|
|
:expects => 204,
|
|
|
|
:headers => {},
|
2013-04-12 11:31:10 +01:00
|
|
|
:bucket_name => bucket_name,
|
2011-02-23 13:57:51 -08:00
|
|
|
:method => 'DELETE',
|
|
|
|
:query => {'policy' => nil}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|