Class: OvirtSDK4::FencingPolicy
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::FencingPolicy
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Boolean) enabled
Returns the value of the
enabled
attribute. -
- (Object) enabled=(value)
Sets the value of the
enabled
attribute. -
- (FencingPolicy) initialize(opts = {})
constructor
Creates a new instance of the FencingPolicy class.
-
- (SkipIfConnectivityBroken) skip_if_connectivity_broken
Returns the value of the
skip_if_connectivity_broken
attribute. -
- (Object) skip_if_connectivity_broken=(value)
Sets the value of the
skip_if_connectivity_broken
attribute. -
- (SkipIfSdActive) skip_if_sd_active
Returns the value of the
skip_if_sd_active
attribute. -
- (Object) skip_if_sd_active=(value)
Sets the value of the
skip_if_sd_active
attribute.
Methods included from Type
Constructor Details
- (FencingPolicy) initialize(opts = {})
Creates a new instance of the OvirtSDK4::FencingPolicy class.
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.
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.
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.
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.
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.
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 |