Sha256: 85dd3aa54e24d5b05f72d6dcee89f5ad29af2ee18ebed43dcdf7e05bb8851f50
Contents?: true
Size: 935 Bytes
Versions: 5
Compression:
Stored size: 935 Bytes
Contents
module Fog module Storage class OracleCloud class Container < Fog::Model identity :name attribute :count, :aliases => 'X-Container-Object-Count' attribute :bytes, :aliases => 'X-Container-Bytes-Used' attribute :deleteTimestamp attribute :containerId attribute :read_acl, :aliases => 'X-Container-Read' attribute :write_acl, :aliases => 'X-Container-Write' attribute :createdTimestamp, :aliases => 'X-Timestamp' def objects @objects ||= Fog::Storage::OracleCloud::Objects.new(:container=>self, :service=>service) end def save requires :name data = service.create_container(name) merge_attributes(data.headers) end def destroy requires :name service.delete_container(name) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems