Class: OvirtSDK4::FencingPolicy

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (FencingPolicy) initialize(opts = {})

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_sd_active (SkipIfSdActive, Hash)

    The value of attribute skip_if_sd_active.



2745
2746
2747
2748
2749
2750
# File 'lib/ovirtsdk4/types.rb', line 2745

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

Instance Method Details

- (Boolean) enabled

Returns the value of the enabled attribute.

Returns:

  • (Boolean)


2668
2669
2670
# File 'lib/ovirtsdk4/types.rb', line 2668

def enabled
  return @enabled
end

- (Object) enabled=(value)

Sets the value of the enabled attribute.

Parameters:

  • value (Boolean)


2677
2678
2679
# File 'lib/ovirtsdk4/types.rb', line 2677

def enabled=(value)
  @enabled = value
end

- (SkipIfConnectivityBroken) skip_if_connectivity_broken

Returns the value of the skip_if_connectivity_broken attribute.



2686
2687
2688
# File 'lib/ovirtsdk4/types.rb', line 2686

def skip_if_connectivity_broken
  return @skip_if_connectivity_broken
end

- (Object) skip_if_connectivity_broken=(value)

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.

Parameters:



2699
2700
2701
2702
2703
2704
# File 'lib/ovirtsdk4/types.rb', line 2699

def skip_if_connectivity_broken=(value)
  if value.is_a?(Hash)
    value = SkipIfConnectivityBroken.new(value)
  end
  @skip_if_connectivity_broken = value
end

- (SkipIfSdActive) skip_if_sd_active

Returns the value of the skip_if_sd_active attribute.

Returns:



2711
2712
2713
# File 'lib/ovirtsdk4/types.rb', line 2711

def skip_if_sd_active
  return @skip_if_sd_active
end

- (Object) skip_if_sd_active=(value)

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.

Parameters:



2724
2725
2726
2727
2728
2729
# File 'lib/ovirtsdk4/types.rb', line 2724

def skip_if_sd_active=(value)
  if value.is_a?(Hash)
    value = SkipIfSdActive.new(value)
  end
  @skip_if_sd_active = value
end