Sha256: dd3da06086edb2422ecaa88a8dc76f4b8b8b4d6ebb5d67d53d42a8a2a5ab8e11

Contents?: true

Size: 427 Bytes

Versions: 15

Compression:

Stored size: 427 Bytes

Contents

module Fog
  module Compute
    class Ovirt
      class AffinityGroup < Fog::Model
        identity :id

        attribute :name
        attribute :positive
        attribute :enforcing

        def vms
          id.nil? ? [] : service.list_affinity_group_vms(id)
        end

        def destroy
          service.destroy_affinity_group(id)
        end

        def to_s
          name
        end
      end
    end
  end
end

Version data entries

15 entries across 13 versions & 2 rubygems

Version Path
fog-ovirt-1.1.6 lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.1.5 lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.1.4 lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.1.3 lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.1.2 lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.1.1 lib/fog/ovirt/models/compute/affinity_group.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/models/compute/affinity_group.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/models/compute/affinity_group.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ovirt-1.1.0/lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.1.0 lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.0.4 lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.0.3 lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.0.2 lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.0.1 lib/fog/ovirt/models/compute/affinity_group.rb
fog-ovirt-1.0.0 lib/fog/ovirt/models/compute/affinity_group.rb