Sha256: 7f0e50ef14e8e962f86b1d83fc079eaf45736e10874339b432a912a8f4b14b84
Contents?: true
Size: 907 Bytes
Versions: 1
Compression:
Stored size: 907 Bytes
Contents
# frozen_string_literal: true module Fog module Storage class Aliyun class Real # Delete an existing container # # ==== Parameters # * container<~String> - Name of container to delete # * options # def delete_container(container, options = {}) bucket = options[:bucket] bucket ||= @aliyun_oss_bucket location = get_bucket_location(bucket) endpoint = 'http://' + location + '.aliyuncs.com' object = container + '/' resource = bucket + '/' + object request( expects: 204, method: 'DELETE', path: object, bucket: bucket, resource: resource, endpoint: endpoint ) end end class Mock def delete_container(container, options = {}); end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-aliyun-0.3.1 | lib/fog/aliyun/requests/storage/delete_container.rb |