Sha256: ad14ed56641156748073fe3842cbc6d0dba7a977a9a7707d6d761d6a95e0da74

Contents?: true

Size: 728 Bytes

Versions: 11

Compression:

Stored size: 728 Bytes

Contents

require 'fog/core/model'

module Fog
  module Compute
    class HP

      class Image < Fog::Model

        identity :id

        attribute :name
        attribute :created_at,  :aliases => 'created'
        attribute :updated_at,  :aliases => 'updated'
        attribute :progress
        attribute :status
        attribute :minDisk,     :aliases => 'min_disk'
        attribute :minRam,      :aliases => 'min_ram'
        attribute :server,   :aliases => 'server'
        attribute :metadata       
        attribute :links

        def destroy
          requires :id

          connection.delete_image(id)
          true
        end

        def ready?
          status == 'ACTIVE'
        end

      end

    end
  end
end

Version data entries

11 entries across 11 versions & 7 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/hp/models/compute/image.rb
fog-nirvanix-1.8.1 lib/fog/hp/models/compute/image.rb
fog-parser-fix-1.6.1 lib/fog/hp/models/compute/image.rb
fog-test-again-1.6.0 lib/fog/hp/models/compute/image.rb
fog-parser-fix-1.6.0 lib/fog/hp/models/compute/image.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/hp/models/compute/image.rb
fog-sgonyea-1.8.1 lib/fog/hp/models/compute/image.rb
fog-1.8.0 lib/fog/hp/models/compute/image.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/hp/models/compute/image.rb
fog-1.7.0 lib/fog/hp/models/compute/image.rb
fog-1.6.0 lib/fog/hp/models/compute/image.rb