Sha256: b0a8312c002118c9d2bab9ba5aaf87f7a2576c3c6d0dd124cb58b4bf802a920b
Contents?: true
Size: 983 Bytes
Versions: 12
Compression:
Stored size: 983 Bytes
Contents
require 'fog/core/model' module Fog module Compute class OracleCloud class Image < Fog::Model identity :name attribute :account attribute :sizes attribute :hypervisor attribute :uri attribute :quota attribute :platform attribute :no_upload attribute :state attribute :signed_by attribute :file attribute :signature attribute :checksums attribute :error_reason attribute :image_format attribute :audited def save #identity ? update : create create end def create requires :account, :name, :no_upload, :file, :sizes data = service.create_image(account, name, no_upload, file, sizes) end def delete requires :image_list_name service.delete_image(image_list_name, version) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems