Sha256: ac49067cc9ba293d5446578acefda21596faebfe0416511eeebd0451f6de0ef0
Contents?: true
Size: 954 Bytes
Versions: 7
Compression:
Stored size: 954 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) pp data merge_attributes(data.headers) end def destroy requires :name service.delete_container(name) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems