Class: OVIRT::InstanceType

Inherits:
BaseObject show all
Defined in:
lib/ovirt/instance_type.rb

Overview

Instance types are added to oVirt 3.5 and have been updated in oVirt 3.6

Instance Attribute Summary collapse

Attributes inherited from BaseObject

#client, #href, #id

Instance Method Summary collapse

Methods inherited from BaseObject

#parse_bool, #parse_version

Constructor Details

#initialize(client, xml) ⇒ InstanceType

Returns a new instance of InstanceType.



15
16
17
18
19
# File 'lib/ovirt/instance_type.rb', line 15

def initialize(client, xml)
  super(client, xml[:id], xml[:href], (xml/'name').first.text)
  parse_xml_attributes!(xml)
  self
end

Instance Attribute Details

#boot_menuObject (readonly)

oVirt 3.5 attributes



9
10
11
# File 'lib/ovirt/instance_type.rb', line 9

def boot_menu
  @boot_menu
end

#coresObject (readonly)

Common attributes to all oVirt version supported at this time



5
6
7
# File 'lib/ovirt/instance_type.rb', line 5

def cores
  @cores
end

#cpu_sharesObject (readonly)

oVirt 3.5 attributes



9
10
11
# File 'lib/ovirt/instance_type.rb', line 9

def cpu_shares
  @cpu_shares
end

#creation_timeObject (readonly)

Common attributes to all oVirt version supported at this time



5
6
7
# File 'lib/ovirt/instance_type.rb', line 5

def creation_time
  @creation_time
end

#delete_protectedObject (readonly)

Returns the value of attribute delete_protected.



10
11
12
# File 'lib/ovirt/instance_type.rb', line 10

def delete_protected
  @delete_protected
end

#descriptionObject (readonly)

Common attributes to all oVirt version supported at this time



5
6
7
# File 'lib/ovirt/instance_type.rb', line 5

def description
  @description
end

#displayObject (readonly)

Returns the value of attribute display.



6
7
8
# File 'lib/ovirt/instance_type.rb', line 6

def display
  @display
end

#haObject (readonly)

Returns the value of attribute ha.



6
7
8
# File 'lib/ovirt/instance_type.rb', line 6

def ha
  @ha
end

#ha_priorityObject (readonly)

Returns the value of attribute ha_priority.



6
7
8
# File 'lib/ovirt/instance_type.rb', line 6

def ha_priority
  @ha_priority
end

#io_threadsObject (readonly)

oVirt 3.6 attributes



13
14
15
# File 'lib/ovirt/instance_type.rb', line 13

def io_threads
  @io_threads
end

#memoryObject (readonly)

Common attributes to all oVirt version supported at this time



5
6
7
# File 'lib/ovirt/instance_type.rb', line 5

def memory
  @memory
end

#memory_guaranteedObject (readonly)

oVirt 3.6 attributes



13
14
15
# File 'lib/ovirt/instance_type.rb', line 13

def memory_guaranteed
  @memory_guaranteed
end

#migrationObject (readonly)

oVirt 3.6 attributes



13
14
15
# File 'lib/ovirt/instance_type.rb', line 13

def migration
  @migration
end

#migration_downtimeObject (readonly)

Returns the value of attribute migration_downtime.



6
7
8
# File 'lib/ovirt/instance_type.rb', line 6

def migration_downtime
  @migration_downtime
end

#nameObject (readonly)

Common attributes to all oVirt version supported at this time



5
6
7
# File 'lib/ovirt/instance_type.rb', line 5

def name
  @name
end

#originObject (readonly)

oVirt 3.5 attributes



9
10
11
# File 'lib/ovirt/instance_type.rb', line 9

def origin
  @origin
end

#osObject (readonly)

Common attributes to all oVirt version supported at this time



5
6
7
# File 'lib/ovirt/instance_type.rb', line 5

def os
  @os
end

#ssoObject (readonly)

Returns the value of attribute sso.



10
11
12
# File 'lib/ovirt/instance_type.rb', line 10

def sso
  @sso
end

#statelessObject (readonly)

oVirt 3.5 attributes



9
10
11
# File 'lib/ovirt/instance_type.rb', line 9

def stateless
  @stateless
end

#statusObject (readonly)

oVirt 3.5 attributes



9
10
11
# File 'lib/ovirt/instance_type.rb', line 9

def status
  @status
end

#timezoneObject (readonly)

Returns the value of attribute timezone.



10
11
12
# File 'lib/ovirt/instance_type.rb', line 10

def timezone
  @timezone
end

#typeObject (readonly)

oVirt 3.5 attributes



9
10
11
# File 'lib/ovirt/instance_type.rb', line 9

def type
  @type
end

#usbObject (readonly)

Returns the value of attribute usb.



6
7
8
# File 'lib/ovirt/instance_type.rb', line 6

def usb
  @usb
end