Sha256: 4ce2c9205558379264b36546147f801f331b1dea256d0f8e1c69ea28f641da3c

Contents?: true

Size: 1.39 KB

Versions: 11

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

11 entries across 11 versions & 3 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/cloudsigma/models/lib_volume.rb
ns-fog-1.22.11 lib/fog/cloudsigma/models/lib_volume.rb
ns-fog-1.22.10 lib/fog/cloudsigma/models/lib_volume.rb
ns-fog-1.22.9 lib/fog/cloudsigma/models/lib_volume.rb
ns-fog-1.22.8 lib/fog/cloudsigma/models/lib_volume.rb
ns-fog-1.22.7 lib/fog/cloudsigma/models/lib_volume.rb
ns-fog-1.22.6 lib/fog/cloudsigma/models/lib_volume.rb
ns-fog-1.22.4 lib/fog/cloudsigma/models/lib_volume.rb
ns-fog-1.22.3 lib/fog/cloudsigma/models/lib_volume.rb
ns-fog-1.22.2 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.22.1 lib/fog/cloudsigma/models/lib_volume.rb