Sha256: 59d5286ec2f56f1761cd43f4e32c6b500c0357a9958efd457c81d14f7749a679

Contents?: true

Size: 1.39 KB

Versions: 51

Compression:

Stored size: 1.39 KB

Contents

require 'fog/core/model'

module Fog
  module Compute
    class CloudSigma
      class LibVolume < Fog::Model
        identity :uuid

        attribute :mounted_on, :type => :related
        attribute :licenses
        attribute :meta
        attribute :owner
        attribute :affinities
        attribute :image_format, :type => :string
        attribute :size, :type => :integer
        attribute :category
        attribute :image_type, :type => :string
        attribute :media, :type => :string
        attribute :state, :type => :string
        attribute :status, :type => :string
        attribute :jobs
        attribute :description, :type => :string
        attribute :tags
        attribute :favourite, :type => :boolean
        attribute :paid, :type => :boolean
        attribute :allow_multimount, :type => :boolean
        attribute :install_notes, :type => :string
        attribute :arch, :type => :string
        attribute :name, :type => :string
        attribute :url, :type => :string
        attribute :os, :type => :string
        attribute :resource_uri, :type => :string



        def reload
          requires :identity
          collection.get(identity)
        end

        def clone(clone_params={})
          requires :identity
          response = service.clone_volume(identity, clone_params)

          self.class.new(response.body['objects'].first)
        end
      end
    end
  end
end

Version data entries

51 entries across 51 versions & 3 rubygems

Version Path
fog-maestrodev-1.20.0.20140305101839 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.20.0.20140305101305 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.19.0.20140212012611 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.20.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.19.0.20140110004459 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.19.0.20140110003812 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.19.0.20140109202555 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.19.0.20140107192102 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.19.0.20140107142106 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.19.0.20131219203941 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.18.0.20131219193542 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.19.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.18.0.20131219033443 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.18.0.20131219032002 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.18.0.20131219030716 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.18.0.20131219022322 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.18.0.20131218202447 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.18.0.20131209091424 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.18.0.20131209090811 lib/fog/cloudsigma/models/lib_volume.rb
fog-maestrodev-1.18.0.20131206115947 lib/fog/cloudsigma/models/lib_volume.rb