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

#href, #href=

Constructor Details

- (HostedEngine) initialize(opts = {})

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.



3602
3603
3604
3605
3606
3607
3608
3609
# File 'lib/ovirtsdk4/types.rb', line 3602

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

- (Boolean) active

Returns the value of the active attribute.

Returns:

  • (Boolean)


3499
3500
3501
# File 'lib/ovirtsdk4/types.rb', line 3499

def active
  return @active
end

- (Object) active=(value)

Sets the value of the active attribute.

Parameters:

  • value (Boolean)


3508
3509
3510
# File 'lib/ovirtsdk4/types.rb', line 3508

def active=(value)
  @active = value
end

- (Boolean) configured

Returns the value of the configured attribute.

Returns:

  • (Boolean)


3517
3518
3519
# File 'lib/ovirtsdk4/types.rb', line 3517

def configured
  return @configured
end

- (Object) configured=(value)

Sets the value of the configured attribute.

Parameters:

  • value (Boolean)


3526
3527
3528
# File 'lib/ovirtsdk4/types.rb', line 3526

def configured=(value)
  @configured = value
end

- (Boolean) global_maintenance

Returns the value of the global_maintenance attribute.

Returns:

  • (Boolean)


3535
3536
3537
# File 'lib/ovirtsdk4/types.rb', line 3535

def global_maintenance
  return @global_maintenance
end

- (Object) global_maintenance=(value)

Sets the value of the global_maintenance attribute.

Parameters:

  • value (Boolean)


3544
3545
3546
# File 'lib/ovirtsdk4/types.rb', line 3544

def global_maintenance=(value)
  @global_maintenance = value
end

- (Boolean) local_maintenance

Returns the value of the local_maintenance attribute.

Returns:

  • (Boolean)


3553
3554
3555
# File 'lib/ovirtsdk4/types.rb', line 3553

def local_maintenance
  return @local_maintenance
end

- (Object) local_maintenance=(value)

Sets the value of the local_maintenance attribute.

Parameters:

  • value (Boolean)


3562
3563
3564
# File 'lib/ovirtsdk4/types.rb', line 3562

def local_maintenance=(value)
  @local_maintenance = value
end

- (Integer) score

Returns the value of the score attribute.

Returns:

  • (Integer)


3571
3572
3573
# File 'lib/ovirtsdk4/types.rb', line 3571

def score
  return @score
end

- (Object) score=(value)

Sets the value of the score attribute.

Parameters:

  • value (Integer)


3580
3581
3582
# File 'lib/ovirtsdk4/types.rb', line 3580

def score=(value)
  @score = value
end