Class: OvirtSDK4::HighAvailability

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

- (HighAvailability) initialize(opts = {})

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

  • :priority (Integer)

    The value of attribute priority.



3368
3369
3370
3371
3372
# File 'lib/ovirtsdk4/types.rb', line 3368

def initialize(opts = {})
  super(opts)
  self.enabled = opts[:enabled]
  self.priority = opts[:priority]
end

Instance Method Details

- (Boolean) enabled

Returns the value of the enabled attribute.

Returns:

  • (Boolean)


3325
3326
3327
# File 'lib/ovirtsdk4/types.rb', line 3325

def enabled
  return @enabled
end

- (Object) enabled=(value)

Sets the value of the enabled attribute.

Parameters:

  • value (Boolean)


3334
3335
3336
# File 'lib/ovirtsdk4/types.rb', line 3334

def enabled=(value)
  @enabled = value
end

- (Integer) priority

Returns the value of the priority attribute.

Returns:

  • (Integer)


3343
3344
3345
# File 'lib/ovirtsdk4/types.rb', line 3343

def priority
  return @priority
end

- (Object) priority=(value)

Sets the value of the priority attribute.

Parameters:

  • value (Integer)


3352
3353
3354
# File 'lib/ovirtsdk4/types.rb', line 3352

def priority=(value)
  @priority = value
end