Method: OvirtSDK4::FencingPolicy#initialize

Defined in:
lib/ovirtsdk4/types.rb

#initialize(opts = {}) ⇒ FencingPolicy

Creates a new instance of the OvirtSDK4::FencingPolicy class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :enabled (Boolean)

    The value of attribute enabled.

  • :skip_if_connectivity_broken (SkipIfConnectivityBroken, Hash)

    The value of attribute skip_if_connectivity_broken.

  • :skip_if_gluster_bricks_up (Boolean)

    The value of attribute skip_if_gluster_bricks_up.

  • :skip_if_gluster_quorum_not_met (Boolean)

    The value of attribute skip_if_gluster_quorum_not_met.

  • :skip_if_sd_active (SkipIfSdActive, Hash)

    The value of attribute skip_if_sd_active.



4394
4395
4396
4397
4398
4399
4400
4401
# File 'lib/ovirtsdk4/types.rb', line 4394

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