Class: OvirtSDK4::HostedEngine

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

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ HostedEngine

Creates a new instance of the OvirtSDK4::HostedEngine 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):

  • :active (Boolean)

    The value of attribute active.

  • :configured (Boolean)

    The value of attribute configured.

  • :global_maintenance (Boolean)

    The value of attribute global_maintenance.

  • :local_maintenance (Boolean)

    The value of attribute local_maintenance.

  • :score (Integer)

    The value of attribute score.


5073
5074
5075
5076
5077
5078
5079
5080
# File 'lib/ovirtsdk4/types.rb', line 5073

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

Instance Method Details

#==(other) ⇒ Object

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


5085
5086
5087
5088
5089
5090
5091
5092
# File 'lib/ovirtsdk4/types.rb', line 5085

def ==(other)
  super &&
  @active == other.active &&
  @configured == other.configured &&
  @global_maintenance == other.global_maintenance &&
  @local_maintenance == other.local_maintenance &&
  @score == other.score
end

#activeBoolean

Returns the value of the active attribute.

Returns:

  • (Boolean)

4970
4971
4972
# File 'lib/ovirtsdk4/types.rb', line 4970

def active
  @active
end

#active=(value) ⇒ Object

Sets the value of the active attribute.

Parameters:

  • value (Boolean)

4979
4980
4981
# File 'lib/ovirtsdk4/types.rb', line 4979

def active=(value)
  @active = value
end

#configuredBoolean

Returns the value of the configured attribute.

Returns:

  • (Boolean)

4988
4989
4990
# File 'lib/ovirtsdk4/types.rb', line 4988

def configured
  @configured
end

#configured=(value) ⇒ Object

Sets the value of the configured attribute.

Parameters:

  • value (Boolean)

4997
4998
4999
# File 'lib/ovirtsdk4/types.rb', line 4997

def configured=(value)
  @configured = value
end

#global_maintenanceBoolean

Returns the value of the global_maintenance attribute.

Returns:

  • (Boolean)

5006
5007
5008
# File 'lib/ovirtsdk4/types.rb', line 5006

def global_maintenance
  @global_maintenance
end

#global_maintenance=(value) ⇒ Object

Sets the value of the global_maintenance attribute.

Parameters:

  • value (Boolean)

5015
5016
5017
# File 'lib/ovirtsdk4/types.rb', line 5015

def global_maintenance=(value)
  @global_maintenance = value
end

#hashObject

Generates a hash value for this object.


5097
5098
5099
5100
5101
5102
5103
5104
# File 'lib/ovirtsdk4/types.rb', line 5097

def hash
  super +
  @active.hash +
  @configured.hash +
  @global_maintenance.hash +
  @local_maintenance.hash +
  @score.hash
end

#local_maintenanceBoolean

Returns the value of the local_maintenance attribute.

Returns:

  • (Boolean)

5024
5025
5026
# File 'lib/ovirtsdk4/types.rb', line 5024

def local_maintenance
  @local_maintenance
end

#local_maintenance=(value) ⇒ Object

Sets the value of the local_maintenance attribute.

Parameters:

  • value (Boolean)

5033
5034
5035
# File 'lib/ovirtsdk4/types.rb', line 5033

def local_maintenance=(value)
  @local_maintenance = value
end

#scoreInteger

Returns the value of the score attribute.

Returns:

  • (Integer)

5042
5043
5044
# File 'lib/ovirtsdk4/types.rb', line 5042

def score
  @score
end

#score=(value) ⇒ Object

Sets the value of the score attribute.

Parameters:

  • value (Integer)

5051
5052
5053
# File 'lib/ovirtsdk4/types.rb', line 5051

def score=(value)
  @score = value
end