Class: OvirtSDK4::FencingPolicy
- 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. -
#enabled ⇒ Boolean
Returns the value of the
enabled
attribute. -
#enabled=(value) ⇒ Object
Sets the value of the
enabled
attribute. -
#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_broken
attribute. -
#skip_if_connectivity_broken=(value) ⇒ Object
Sets the value of the
skip_if_connectivity_broken
attribute. -
#skip_if_gluster_bricks_up ⇒ Boolean
Returns the value of the
skip_if_gluster_bricks_up
attribute. -
#skip_if_gluster_bricks_up=(value) ⇒ Object
Sets the value of the
skip_if_gluster_bricks_up
attribute. -
#skip_if_gluster_quorum_not_met ⇒ Boolean
Returns the value of the
skip_if_gluster_quorum_not_met
attribute. -
#skip_if_gluster_quorum_not_met=(value) ⇒ Object
Sets the value of the
skip_if_gluster_quorum_not_met
attribute. -
#skip_if_sd_active ⇒ SkipIfSdActive
Returns the value of the
skip_if_sd_active
attribute. -
#skip_if_sd_active=(value) ⇒ Object
Sets the value of the
skip_if_sd_active
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ FencingPolicy
Creates a new instance of the OvirtSDK4::FencingPolicy class.
3975 3976 3977 3978 3979 3980 3981 3982 |
# File 'lib/ovirtsdk4/types.rb', line 3975 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.
3987 3988 3989 3990 3991 3992 3993 3994 |
# File 'lib/ovirtsdk4/types.rb', line 3987 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.
3858 3859 3860 |
# File 'lib/ovirtsdk4/types.rb', line 3858 def enabled @enabled end |
#enabled=(value) ⇒ Object
Sets the value of the enabled
attribute.
3867 3868 3869 |
# File 'lib/ovirtsdk4/types.rb', line 3867 def enabled=(value) @enabled = value end |
#hash ⇒ Object
Generates a hash value for this object.
3999 4000 4001 4002 4003 4004 4005 4006 |
# File 'lib/ovirtsdk4/types.rb', line 3999 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.
3876 3877 3878 |
# File 'lib/ovirtsdk4/types.rb', line 3876 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.
3889 3890 3891 3892 3893 3894 |
# File 'lib/ovirtsdk4/types.rb', line 3889 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.
3901 3902 3903 |
# File 'lib/ovirtsdk4/types.rb', line 3901 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.
3910 3911 3912 |
# File 'lib/ovirtsdk4/types.rb', line 3910 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.
3919 3920 3921 |
# File 'lib/ovirtsdk4/types.rb', line 3919 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.
3928 3929 3930 |
# File 'lib/ovirtsdk4/types.rb', line 3928 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.
3937 3938 3939 |
# File 'lib/ovirtsdk4/types.rb', line 3937 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.
3950 3951 3952 3953 3954 3955 |
# File 'lib/ovirtsdk4/types.rb', line 3950 def skip_if_sd_active=(value) if value.is_a?(Hash) value = SkipIfSdActive.new(value) end @skip_if_sd_active = value end |