class OvirtSDK4::FencingPolicy

Public Class Methods

new(opts = {}) click to toggle source

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`.

Calls superclass method OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 3114
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

Public Instance Methods

enabled() click to toggle source

Returns the value of the `enabled` attribute.

@return [Boolean]

# File lib/ovirtsdk4/types.rb, line 3037
def enabled
  return @enabled
end
enabled=(value) click to toggle source

Sets the value of the `enabled` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 3046
def enabled=(value)
  @enabled = value
end
skip_if_connectivity_broken() click to toggle source

Returns the value of the `skip_if_connectivity_broken` attribute.

@return [SkipIfConnectivityBroken]

# File lib/ovirtsdk4/types.rb, line 3055
def skip_if_connectivity_broken
  return @skip_if_connectivity_broken
end
skip_if_connectivity_broken=(value) click to toggle source

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 3068
def skip_if_connectivity_broken=(value)
  if value.is_a?(Hash)
    value = SkipIfConnectivityBroken.new(value)
  end
  @skip_if_connectivity_broken = value
end
skip_if_sd_active() click to toggle source

Returns the value of the `skip_if_sd_active` attribute.

@return [SkipIfSdActive]

# File lib/ovirtsdk4/types.rb, line 3080
def skip_if_sd_active
  return @skip_if_sd_active
end
skip_if_sd_active=(value) click to toggle source

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 3093
def skip_if_sd_active=(value)
  if value.is_a?(Hash)
    value = SkipIfSdActive.new(value)
  end
  @skip_if_sd_active = value
end