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

Version Path
fog-oraclecloud-0.1.12 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.11 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.10 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.9 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.8 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.7 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.6 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.5 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.4 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.3 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.2 lib/fog/oraclecloud/models/compute/image.rb
fog-oraclecloud-0.1.1 lib/fog/oraclecloud/models/compute/image.rb