Class: Ansible::Ruby::Modules::Ovirt_affinity_label

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_label.rb,
lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_labels.rb

Overview

This module manage affinity labels in oVirt/RHV. It can also manage assignments of those labels to hosts and VMs.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#clusterString?

Returns Name of the cluster where vms and hosts resides.

Returns:

  • (String, nil)

    Name of the cluster where vms and hosts resides.



20
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_label.rb', line 20

attribute :cluster

#hostsArray<String>, ...

Returns List of the hosts names, which should have assigned this affinity label.

Returns:

  • (Array<String>, String, nil)

    List of the hosts names, which should have assigned this affinity label.



28
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_label.rb', line 28

attribute :hosts

#nameString

Returns Name of the affinity label to manage.

Returns:

  • (String)

    Name of the affinity label to manage.



12
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_label.rb', line 12

attribute :name

#state:present, ...

Returns Should the affinity label be present or absent.

Returns:

  • (:present, :absent, nil)

    Should the affinity label be present or absent.



16
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_label.rb', line 16

attribute :state

#vmsArray<String>, ...

Returns List of the VMs names, which should have assigned this affinity label.

Returns:

  • (Array<String>, String, nil)

    List of the VMs names, which should have assigned this affinity label.



24
# File 'lib/ansible/ruby/modules/generated/cloud/ovirt/ovirt_affinity_label.rb', line 24

attribute :vms