Sha256: ae24134bb441e2f8e45a7b8eadfe0876b360d5fd0746a3384f01becd0c1e56ec

Contents?: true

Size: 625 Bytes

Versions: 12

Compression:

Stored size: 625 Bytes

Contents

# frozen_string_literal: true

module Fog
  module Storage
    class Aliyun
      class Real
        # Delete an existing bucket
        #
        # ==== Parameters
        # * bucket<~String> - Name of bucket to delete
        #
        def delete_bucket(bucket)
          location = get_bucket_location(bucket)
          endpoint = 'http://' + location + '.aliyuncs.com'
          resource = bucket + '/'
          request(
            expects: 204,
            method: 'DELETE',
            bucket: bucket,
            resource: resource,
            endpoint: endpoint
          )
        end
      end
    end
  end
end

Version data entries

12 entries across 10 versions & 2 rubygems

Version Path
fog-aliyun-0.3.10 lib/fog/aliyun/requests/storage/delete_bucket.rb
fog-aliyun-0.3.9 lib/fog/aliyun/requests/storage/delete_bucket.rb
fog-aliyun-0.3.8 lib/fog/aliyun/requests/storage/delete_bucket.rb
fog-aliyun-0.3.7 lib/fog/aliyun/requests/storage/delete_bucket.rb
fog-aliyun-0.3.6 lib/fog/aliyun/requests/storage/delete_bucket.rb
fog-aliyun-0.3.5 lib/fog/aliyun/requests/storage/delete_bucket.rb
fog-aliyun-0.3.4 lib/fog/aliyun/requests/storage/delete_bucket.rb
fog-aliyun-0.3.3 lib/fog/aliyun/requests/storage/delete_bucket.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aliyun-0.3.2/lib/fog/aliyun/requests/storage/delete_bucket.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aliyun-0.3.2/lib/fog/aliyun/requests/storage/delete_bucket.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-aliyun-0.3.2/lib/fog/aliyun/requests/storage/delete_bucket.rb
fog-aliyun-0.3.2 lib/fog/aliyun/requests/storage/delete_bucket.rb