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 [SkipIfSdActive, Hash] :skip_if_sd_active The value of attribute `skip_if_sd_active`.
# File lib/ovirtsdk4/types.rb, line 2660 def initialize(opts = {}) super(opts) self.enabled = opts[:enabled] self.skip_if_connectivity_broken = opts[:skip_if_connectivity_broken] self.skip_if_sd_active = opts[:skip_if_sd_active] end
Returns the value of the `enabled` attribute.
@return [Boolean]
# File lib/ovirtsdk4/types.rb, line 2583 def enabled return @enabled end
Sets the value of the `enabled` attribute.
@param value [Boolean]
# File lib/ovirtsdk4/types.rb, line 2592 def enabled=(value) @enabled = value end
Returns the value of the `skip_if_connectivity_broken` attribute.
@return [SkipIfConnectivityBroken]
# File lib/ovirtsdk4/types.rb, line 2601 def skip_if_connectivity_broken return @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 2614 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_sd_active` attribute.
@return [SkipIfSdActive]
# File lib/ovirtsdk4/types.rb, line 2626 def skip_if_sd_active return @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 2639 def skip_if_sd_active=(value) if value.is_a?(Hash) value = SkipIfSdActive.new(value) end @skip_if_sd_active = value end