Sha256: fcc4e158066eca2b68869120b1d8863a3d690652814804172dcff07759d6f4cf

Contents?: true

Size: 1.37 KB

Versions: 32

Compression:

Stored size: 1.37 KB

Contents

require 'fog/core/model'

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

        attribute :mounted_on
        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

32 entries across 30 versions & 5 rubygems

Version Path
fog-2.3.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-ifeel-2.2.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-2.2.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-2.1.0 lib/fog/cloudsigma/models/lib_volume.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/cloudsigma/models/lib_volume.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/cloudsigma/models/lib_volume.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/cloudsigma/models/lib_volume.rb
fog-1.42.1 lib/fog/cloudsigma/models/lib_volume.rb
fog-2.0.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.42.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.41.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.40.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.39.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.38.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.37.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.36.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-1.35.0 lib/fog/cloudsigma/models/lib_volume.rb
fog-2.0.0.pre.0 lib/fog/cloudsigma/models/lib_volume.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/cloudsigma/models/lib_volume.rb
fog-1.34.0 lib/fog/cloudsigma/models/lib_volume.rb