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_menu ⇒ Object (readonly)

oVirt 3.5 attributes



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

def boot_menu
  @boot_menu
end

#cores ⇒ Object (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_shares ⇒ Object (readonly)

oVirt 3.5 attributes



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

def cpu_shares
  @cpu_shares
end

#creation_time ⇒ Object (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_protected ⇒ Object (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

#description ⇒ Object (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

#display ⇒ Object (readonly)

Returns the value of attribute display.



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

def display
  @display
end

#ha ⇒ Object (readonly)

Returns the value of attribute ha.



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

def ha
  @ha
end

#ha_priority ⇒ Object (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_threads ⇒ Object (readonly)

oVirt 3.6 attributes



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

def io_threads
  @io_threads
end

#memory ⇒ Object (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_guaranteed ⇒ Object (readonly)

oVirt 3.6 attributes



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

def memory_guaranteed
  @memory_guaranteed
end

#migration ⇒ Object (readonly)

oVirt 3.6 attributes



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

def migration
  @migration
end

#migration_downtime ⇒ Object (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

#name ⇒ Object (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

#origin ⇒ Object (readonly)

oVirt 3.5 attributes



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

def origin
  @origin
end

#os ⇒ Object (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

#sso ⇒ Object (readonly)

Returns the value of attribute sso.



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

def sso
  @sso
end

#stateless ⇒ Object (readonly)

oVirt 3.5 attributes



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

def stateless
  @stateless
end

#status ⇒ Object (readonly)

oVirt 3.5 attributes



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

def status
  @status
end

#timezone ⇒ Object (readonly)

Returns the value of attribute timezone.



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

def timezone
  @timezone
end

#type ⇒ Object (readonly)

oVirt 3.5 attributes



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

def type
  @type
end

#usb ⇒ Object (readonly)

Returns the value of attribute usb.



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

def usb
  @usb
end