Sha256: dce3321819fb5368022e9468b3331faae8f650e8ea92fc484e6a67346fa661ec
Contents?: true
Size: 816 Bytes
Versions: 4
Compression:
Stored size: 816 Bytes
Contents
require 'fog/huaweicloud/models/model' require 'uri' module Fog module KeyManager class HuaweiCloud class Container < Fog::HuaweiCloud::Model identity :container_ref attribute :uuid attribute :name attribute :type attribute :status attribute :creator_id attribute :secret_refs attribute :consumers attribute :created attribute :updated def uuid URI(self.container_ref).path.split('/').last rescue nil end def create merge_attributes(service.create_container(attributes).body) self end def destroy requires :container_ref service.delete_container(uuid) true end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems