Class: OvirtSDK4::FencingPolicy
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#enabled ⇒ Boolean
Returns the value of the
enabledattribute. -
#enabled=(value) ⇒ Object
Sets the value of the
enabledattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ FencingPolicy
constructor
Creates a new instance of the FencingPolicy class.
-
#skip_if_connectivity_broken ⇒ SkipIfConnectivityBroken
Returns the value of the
skip_if_connectivity_brokenattribute. -
#skip_if_connectivity_broken=(value) ⇒ Object
Sets the value of the
skip_if_connectivity_brokenattribute. -
#skip_if_gluster_bricks_up ⇒ Boolean
Returns the value of the
skip_if_gluster_bricks_upattribute. -
#skip_if_gluster_bricks_up=(value) ⇒ Object
Sets the value of the
skip_if_gluster_bricks_upattribute. -
#skip_if_gluster_quorum_not_met ⇒ Boolean
Returns the value of the
skip_if_gluster_quorum_not_metattribute. -
#skip_if_gluster_quorum_not_met=(value) ⇒ Object
Sets the value of the
skip_if_gluster_quorum_not_metattribute. -
#skip_if_sd_active ⇒ SkipIfSdActive
Returns the value of the
skip_if_sd_activeattribute. -
#skip_if_sd_active=(value) ⇒ Object
Sets the value of the
skip_if_sd_activeattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ FencingPolicy
Creates a new instance of the OvirtSDK4::FencingPolicy class.
4618 4619 4620 4621 4622 4623 4624 4625 |
# File 'lib/ovirtsdk4/types.rb', line 4618 def initialize(opts = {}) super(opts) self.enabled = opts[:enabled] self.skip_if_connectivity_broken = opts[:skip_if_connectivity_broken] self.skip_if_gluster_bricks_up = opts[:skip_if_gluster_bricks_up] self.skip_if_gluster_quorum_not_met = opts[:skip_if_gluster_quorum_not_met] self.skip_if_sd_active = opts[:skip_if_sd_active] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
4630 4631 4632 4633 4634 4635 4636 4637 |
# File 'lib/ovirtsdk4/types.rb', line 4630 def ==(other) super && @enabled == other.enabled && @skip_if_connectivity_broken == other.skip_if_connectivity_broken && @skip_if_gluster_bricks_up == other.skip_if_gluster_bricks_up && @skip_if_gluster_quorum_not_met == other.skip_if_gluster_quorum_not_met && @skip_if_sd_active == other.skip_if_sd_active end |
#enabled ⇒ Boolean
Returns the value of the enabled attribute.
4501 4502 4503 |
# File 'lib/ovirtsdk4/types.rb', line 4501 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled attribute.
4510 4511 4512 |
# File 'lib/ovirtsdk4/types.rb', line 4510 def enabled=(value) @enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
4642 4643 4644 4645 4646 4647 4648 4649 |
# File 'lib/ovirtsdk4/types.rb', line 4642 def hash super + @enabled.hash + @skip_if_connectivity_broken.hash + @skip_if_gluster_bricks_up.hash + @skip_if_gluster_quorum_not_met.hash + @skip_if_sd_active.hash end |
#skip_if_connectivity_broken ⇒ SkipIfConnectivityBroken
Returns the value of the skip_if_connectivity_broken attribute.
4519 4520 4521 |
# File 'lib/ovirtsdk4/types.rb', line 4519 def skip_if_connectivity_broken @skip_if_connectivity_broken end |
#skip_if_connectivity_broken=(value) ⇒ Object
Sets the value of the skip_if_connectivity_broken attribute.
The value parameter can be an instance of SkipIfConnectivityBroken 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.
4532 4533 4534 4535 4536 4537 |
# File 'lib/ovirtsdk4/types.rb', line 4532 def skip_if_connectivity_broken=(value) if value.is_a?(Hash) value = SkipIfConnectivityBroken.new(value) end @skip_if_connectivity_broken = value end |
#skip_if_gluster_bricks_up ⇒ Boolean
Returns the value of the skip_if_gluster_bricks_up attribute.
4544 4545 4546 |
# File 'lib/ovirtsdk4/types.rb', line 4544 def skip_if_gluster_bricks_up @skip_if_gluster_bricks_up end |
#skip_if_gluster_bricks_up=(value) ⇒ Object
Sets the value of the skip_if_gluster_bricks_up attribute.
4553 4554 4555 |
# File 'lib/ovirtsdk4/types.rb', line 4553 def skip_if_gluster_bricks_up=(value) @skip_if_gluster_bricks_up = value end |
#skip_if_gluster_quorum_not_met ⇒ Boolean
Returns the value of the skip_if_gluster_quorum_not_met attribute.
4562 4563 4564 |
# File 'lib/ovirtsdk4/types.rb', line 4562 def skip_if_gluster_quorum_not_met @skip_if_gluster_quorum_not_met end |
#skip_if_gluster_quorum_not_met=(value) ⇒ Object
Sets the value of the skip_if_gluster_quorum_not_met attribute.
4571 4572 4573 |
# File 'lib/ovirtsdk4/types.rb', line 4571 def skip_if_gluster_quorum_not_met=(value) @skip_if_gluster_quorum_not_met = value end |
#skip_if_sd_active ⇒ SkipIfSdActive
Returns the value of the skip_if_sd_active attribute.
4580 4581 4582 |
# File 'lib/ovirtsdk4/types.rb', line 4580 def skip_if_sd_active @skip_if_sd_active end |
#skip_if_sd_active=(value) ⇒ Object
Sets the value of the skip_if_sd_active attribute.
The value parameter can be an instance of SkipIfSdActive 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.
4593 4594 4595 4596 4597 4598 |
# File 'lib/ovirtsdk4/types.rb', line 4593 def skip_if_sd_active=(value) if value.is_a?(Hash) value = SkipIfSdActive.new(value) end @skip_if_sd_active = value end |