Class: OvirtSDK4::RegistrationConfiguration
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#affinity_group_mappings ⇒ Array<RegistrationAffinityGroupMapping>
Returns the value of the
affinity_group_mappings
attribute. -
#affinity_group_mappings=(list) ⇒ Object
Sets the value of the
affinity_group_mappings
attribute. -
#affinity_label_mappings ⇒ Array<RegistrationAffinityLabelMapping>
Returns the value of the
affinity_label_mappings
attribute. -
#affinity_label_mappings=(list) ⇒ Object
Sets the value of the
affinity_label_mappings
attribute. -
#cluster_mappings ⇒ Array<RegistrationClusterMapping>
Returns the value of the
cluster_mappings
attribute. -
#cluster_mappings=(list) ⇒ Object
Sets the value of the
cluster_mappings
attribute. -
#domain_mappings ⇒ Array<RegistrationDomainMapping>
Returns the value of the
domain_mappings
attribute. -
#domain_mappings=(list) ⇒ Object
Sets the value of the
domain_mappings
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ RegistrationConfiguration
constructor
Creates a new instance of the RegistrationConfiguration class.
-
#lun_mappings ⇒ Array<RegistrationLunMapping>
Returns the value of the
lun_mappings
attribute. -
#lun_mappings=(list) ⇒ Object
Sets the value of the
lun_mappings
attribute. -
#role_mappings ⇒ Array<RegistrationRoleMapping>
Returns the value of the
role_mappings
attribute. -
#role_mappings=(list) ⇒ Object
Sets the value of the
role_mappings
attribute. -
#vnic_profile_mappings ⇒ Array<RegistrationVnicProfileMapping>
Returns the value of the
vnic_profile_mappings
attribute. -
#vnic_profile_mappings=(list) ⇒ Object
Sets the value of the
vnic_profile_mappings
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ RegistrationConfiguration
Creates a new instance of the OvirtSDK4::RegistrationConfiguration class.
17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 |
# File 'lib/ovirtsdk4/types.rb', line 17632 def initialize(opts = {}) super(opts) self.affinity_group_mappings = opts[:affinity_group_mappings] self.affinity_label_mappings = opts[:affinity_label_mappings] self.cluster_mappings = opts[:cluster_mappings] self.domain_mappings = opts[:domain_mappings] self.lun_mappings = opts[:lun_mappings] self.role_mappings = opts[:role_mappings] self.vnic_profile_mappings = opts[:vnic_profile_mappings] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 |
# File 'lib/ovirtsdk4/types.rb', line 17646 def ==(other) super && @affinity_group_mappings == other.affinity_group_mappings && @affinity_label_mappings == other.affinity_label_mappings && @cluster_mappings == other.cluster_mappings && @domain_mappings == other.domain_mappings && @lun_mappings == other.lun_mappings && @role_mappings == other.role_mappings && @vnic_profile_mappings == other.vnic_profile_mappings end |
#affinity_group_mappings ⇒ Array<RegistrationAffinityGroupMapping>
Returns the value of the affinity_group_mappings
attribute.
17433 17434 17435 |
# File 'lib/ovirtsdk4/types.rb', line 17433 def affinity_group_mappings @affinity_group_mappings end |
#affinity_group_mappings=(list) ⇒ Object
Sets the value of the affinity_group_mappings
attribute.
17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 |
# File 'lib/ovirtsdk4/types.rb', line 17442 def affinity_group_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationAffinityGroupMapping.new(value) end end end @affinity_group_mappings = list end |
#affinity_label_mappings ⇒ Array<RegistrationAffinityLabelMapping>
Returns the value of the affinity_label_mappings
attribute.
17459 17460 17461 |
# File 'lib/ovirtsdk4/types.rb', line 17459 def affinity_label_mappings @affinity_label_mappings end |
#affinity_label_mappings=(list) ⇒ Object
Sets the value of the affinity_label_mappings
attribute.
17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 |
# File 'lib/ovirtsdk4/types.rb', line 17468 def affinity_label_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationAffinityLabelMapping.new(value) end end end @affinity_label_mappings = list end |
#cluster_mappings ⇒ Array<RegistrationClusterMapping>
Returns the value of the cluster_mappings
attribute.
17485 17486 17487 |
# File 'lib/ovirtsdk4/types.rb', line 17485 def cluster_mappings @cluster_mappings end |
#cluster_mappings=(list) ⇒ Object
Sets the value of the cluster_mappings
attribute.
17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 |
# File 'lib/ovirtsdk4/types.rb', line 17494 def cluster_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationClusterMapping.new(value) end end end @cluster_mappings = list end |
#domain_mappings ⇒ Array<RegistrationDomainMapping>
Returns the value of the domain_mappings
attribute.
17511 17512 17513 |
# File 'lib/ovirtsdk4/types.rb', line 17511 def domain_mappings @domain_mappings end |
#domain_mappings=(list) ⇒ Object
Sets the value of the domain_mappings
attribute.
17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 |
# File 'lib/ovirtsdk4/types.rb', line 17520 def domain_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationDomainMapping.new(value) end end end @domain_mappings = list end |
#hash ⇒ Object
Generates a hash value for this object.
17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 |
# File 'lib/ovirtsdk4/types.rb', line 17660 def hash super + @affinity_group_mappings.hash + @affinity_label_mappings.hash + @cluster_mappings.hash + @domain_mappings.hash + @lun_mappings.hash + @role_mappings.hash + @vnic_profile_mappings.hash end |
#lun_mappings ⇒ Array<RegistrationLunMapping>
Returns the value of the lun_mappings
attribute.
17537 17538 17539 |
# File 'lib/ovirtsdk4/types.rb', line 17537 def lun_mappings @lun_mappings end |
#lun_mappings=(list) ⇒ Object
Sets the value of the lun_mappings
attribute.
17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 |
# File 'lib/ovirtsdk4/types.rb', line 17546 def lun_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationLunMapping.new(value) end end end @lun_mappings = list end |
#role_mappings ⇒ Array<RegistrationRoleMapping>
Returns the value of the role_mappings
attribute.
17563 17564 17565 |
# File 'lib/ovirtsdk4/types.rb', line 17563 def role_mappings @role_mappings end |
#role_mappings=(list) ⇒ Object
Sets the value of the role_mappings
attribute.
17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 |
# File 'lib/ovirtsdk4/types.rb', line 17572 def role_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationRoleMapping.new(value) end end end @role_mappings = list end |
#vnic_profile_mappings ⇒ Array<RegistrationVnicProfileMapping>
Returns the value of the vnic_profile_mappings
attribute.
17589 17590 17591 |
# File 'lib/ovirtsdk4/types.rb', line 17589 def vnic_profile_mappings @vnic_profile_mappings end |
#vnic_profile_mappings=(list) ⇒ Object
Sets the value of the vnic_profile_mappings
attribute.
17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 |
# File 'lib/ovirtsdk4/types.rb', line 17598 def vnic_profile_mappings=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = RegistrationVnicProfileMapping.new(value) end end end @vnic_profile_mappings = list end |