Class: OvirtSDK4::MigrationOptions
- 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. -
#auto_converge ⇒ InheritableBoolean
Returns the value of the
auto_converge
attribute. -
#auto_converge=(value) ⇒ Object
Sets the value of the
auto_converge
attribute. -
#bandwidth ⇒ MigrationBandwidth
Returns the value of the
bandwidth
attribute. -
#bandwidth=(value) ⇒ Object
Sets the value of the
bandwidth
attribute. -
#compressed ⇒ InheritableBoolean
Returns the value of the
compressed
attribute. -
#compressed=(value) ⇒ Object
Sets the value of the
compressed
attribute. -
#encrypted ⇒ InheritableBoolean
Returns the value of the
encrypted
attribute. -
#encrypted=(value) ⇒ Object
Sets the value of the
encrypted
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ MigrationOptions
constructor
Creates a new instance of the MigrationOptions class.
-
#policy ⇒ MigrationPolicy
Returns the value of the
policy
attribute. -
#policy=(value) ⇒ Object
Sets the value of the
policy
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ MigrationOptions
Creates a new instance of the OvirtSDK4::MigrationOptions class.
9647 9648 9649 9650 9651 9652 9653 9654 |
# File 'lib/ovirtsdk4/types.rb', line 9647 def initialize(opts = {}) super(opts) self.auto_converge = opts[:auto_converge] self.bandwidth = opts[:bandwidth] self.compressed = opts[:compressed] self.encrypted = opts[:encrypted] self.policy = opts[:policy] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
9659 9660 9661 9662 9663 9664 9665 9666 |
# File 'lib/ovirtsdk4/types.rb', line 9659 def ==(other) super && @auto_converge == other.auto_converge && @bandwidth == other.bandwidth && @compressed == other.compressed && @encrypted == other.encrypted && @policy == other.policy end |
#auto_converge ⇒ InheritableBoolean
Returns the value of the auto_converge
attribute.
9530 9531 9532 |
# File 'lib/ovirtsdk4/types.rb', line 9530 def auto_converge @auto_converge end |
#auto_converge=(value) ⇒ Object
Sets the value of the auto_converge
attribute.
9539 9540 9541 |
# File 'lib/ovirtsdk4/types.rb', line 9539 def auto_converge=(value) @auto_converge = value end |
#bandwidth ⇒ MigrationBandwidth
Returns the value of the bandwidth
attribute.
9548 9549 9550 |
# File 'lib/ovirtsdk4/types.rb', line 9548 def bandwidth @bandwidth end |
#bandwidth=(value) ⇒ Object
Sets the value of the bandwidth
attribute.
The value
parameter can be an instance of OvirtSDK4::MigrationBandwidth or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
9561 9562 9563 9564 9565 9566 |
# File 'lib/ovirtsdk4/types.rb', line 9561 def bandwidth=(value) if value.is_a?(Hash) value = MigrationBandwidth.new(value) end @bandwidth = value end |
#compressed ⇒ InheritableBoolean
Returns the value of the compressed
attribute.
9573 9574 9575 |
# File 'lib/ovirtsdk4/types.rb', line 9573 def compressed @compressed end |
#compressed=(value) ⇒ Object
Sets the value of the compressed
attribute.
9582 9583 9584 |
# File 'lib/ovirtsdk4/types.rb', line 9582 def compressed=(value) @compressed = value end |
#encrypted ⇒ InheritableBoolean
Returns the value of the encrypted
attribute.
9591 9592 9593 |
# File 'lib/ovirtsdk4/types.rb', line 9591 def encrypted @encrypted end |
#encrypted=(value) ⇒ Object
Sets the value of the encrypted
attribute.
9600 9601 9602 |
# File 'lib/ovirtsdk4/types.rb', line 9600 def encrypted=(value) @encrypted = value end |
#hash ⇒ Object
Generates a hash value for this object.
9671 9672 9673 9674 9675 9676 9677 9678 |
# File 'lib/ovirtsdk4/types.rb', line 9671 def hash super + @auto_converge.hash + @bandwidth.hash + @compressed.hash + @encrypted.hash + @policy.hash end |
#policy ⇒ MigrationPolicy
Returns the value of the policy
attribute.
9609 9610 9611 |
# File 'lib/ovirtsdk4/types.rb', line 9609 def policy @policy end |
#policy=(value) ⇒ Object
Sets the value of the policy
attribute.
The value
parameter can be an instance of OvirtSDK4::MigrationPolicy or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
9622 9623 9624 9625 9626 9627 |
# File 'lib/ovirtsdk4/types.rb', line 9622 def policy=(value) if value.is_a?(Hash) value = MigrationPolicy.new(value) end @policy = value end |