class OvirtSDK4::HostedEngine

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {HostedEngine} 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] :active The value of attribute `active`.

@option opts [Boolean] :configured The value of attribute `configured`.

@option opts [Boolean] :global_maintenance The value of attribute `global_maintenance`.

@option opts [Boolean] :local_maintenance The value of attribute `local_maintenance`.

@option opts [Integer] :score The value of attribute `score`.

Calls superclass method OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 5460
def initialize(opts = {})
  super(opts)
  self.active = opts[:active]
  self.configured = opts[:configured]
  self.global_maintenance = opts[:global_maintenance]
  self.local_maintenance = opts[:local_maintenance]
  self.score = opts[:score]
end

Public Instance Methods

==(other) click to toggle source

Returns `true` if `self` and `other` have the same attributes and values.

Calls superclass method OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 5472
def ==(other)
  super &&
  @active == other.active &&
  @configured == other.configured &&
  @global_maintenance == other.global_maintenance &&
  @local_maintenance == other.local_maintenance &&
  @score == other.score
end
active() click to toggle source

Returns the value of the `active` attribute.

@return [Boolean]

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

Sets the value of the `active` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 5366
def active=(value)
  @active = value
end
configured() click to toggle source

Returns the value of the `configured` attribute.

@return [Boolean]

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

Sets the value of the `configured` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 5384
def configured=(value)
  @configured = value
end
global_maintenance() click to toggle source

Returns the value of the `global_maintenance` attribute.

@return [Boolean]

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

Sets the value of the `global_maintenance` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 5402
def global_maintenance=(value)
  @global_maintenance = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 5484
def hash
  super +
  @active.hash +
  @configured.hash +
  @global_maintenance.hash +
  @local_maintenance.hash +
  @score.hash
end
local_maintenance() click to toggle source

Returns the value of the `local_maintenance` attribute.

@return [Boolean]

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

Sets the value of the `local_maintenance` attribute.

@param value [Boolean]

# File lib/ovirtsdk4/types.rb, line 5420
def local_maintenance=(value)
  @local_maintenance = value
end
score() click to toggle source

Returns the value of the `score` attribute.

@return [Integer]

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

Sets the value of the `score` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 5438
def score=(value)
  @score = value
end