Creates a new instance of the {FencingPolicy} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Boolean] :enabled The value of attribute `enabled`.
@option opts [SkipIfConnectivityBroken, Hash] :skip_if_connectivity_broken The value of attribute `skip_if_connectivity_broken`.
@option opts [Boolean] :skip_if_gluster_bricks_up The value of attribute `skip_if_gluster_bricks_up`.
@option opts [Boolean] :skip_if_gluster_quorum_not_met The value of attribute `skip_if_gluster_quorum_not_met`.
@option opts [SkipIfSdActive, Hash] :skip_if_sd_active The value of attribute `skip_if_sd_active`.
# File lib/ovirtsdk4/types.rb, line 3873 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
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 3885 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
Returns the value of the `enabled` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 3756 def enabled @enabled end
Sets the value of the `enabled` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 3765 def enabled=(value) @enabled = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 3897 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
Returns the value of the `skip_if_connectivity_broken` attribute.
@return [SkipIfConnectivityBroken]
# File lib/ovirtsdk4/types.rb, line 3774 def skip_if_connectivity_broken @skip_if_connectivity_broken end
Sets the value of the `skip_if_connectivity_broken` attribute.
@param value [SkipIfConnectivityBroken, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 3787 def skip_if_connectivity_broken=(value) if value.is_a?(Hash) value = SkipIfConnectivityBroken.new(value) end @skip_if_connectivity_broken = value end
Returns the value of the `skip_if_gluster_bricks_up` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 3799 def skip_if_gluster_bricks_up @skip_if_gluster_bricks_up end
Sets the value of the `skip_if_gluster_bricks_up` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 3808 def skip_if_gluster_bricks_up=(value) @skip_if_gluster_bricks_up = value end
Returns the value of the `skip_if_gluster_quorum_not_met` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 3817 def skip_if_gluster_quorum_not_met @skip_if_gluster_quorum_not_met end
Sets the value of the `skip_if_gluster_quorum_not_met` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 3826 def skip_if_gluster_quorum_not_met=(value) @skip_if_gluster_quorum_not_met = value end
Returns the value of the `skip_if_sd_active` attribute.
@return [SkipIfSdActive]
# File lib/ovirtsdk4/types.rb, line 3835 def skip_if_sd_active @skip_if_sd_active end
Sets the value of the `skip_if_sd_active` attribute.
@param value [SkipIfSdActive, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 3848 def skip_if_sd_active=(value) if value.is_a?(Hash) value = SkipIfSdActive.new(value) end @skip_if_sd_active = value end