Class: OVIRT::InstanceType
- Inherits:
-
BaseObject
- Object
- BaseObject
- OVIRT::InstanceType
- 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
-
#boot_menu ⇒ Object
readonly
oVirt 3.5 attributes.
-
#cores ⇒ Object
readonly
Common attributes to all oVirt version supported at this time.
-
#cpu_shares ⇒ Object
readonly
oVirt 3.5 attributes.
-
#creation_time ⇒ Object
readonly
Common attributes to all oVirt version supported at this time.
-
#delete_protected ⇒ Object
readonly
Returns the value of attribute delete_protected.
-
#description ⇒ Object
readonly
Common attributes to all oVirt version supported at this time.
-
#display ⇒ Object
readonly
Returns the value of attribute display.
-
#ha ⇒ Object
readonly
Returns the value of attribute ha.
-
#ha_priority ⇒ Object
readonly
Returns the value of attribute ha_priority.
-
#io_threads ⇒ Object
readonly
oVirt 3.6 attributes.
-
#memory ⇒ Object
readonly
Common attributes to all oVirt version supported at this time.
-
#memory_guaranteed ⇒ Object
readonly
oVirt 3.6 attributes.
-
#migration ⇒ Object
readonly
oVirt 3.6 attributes.
-
#migration_downtime ⇒ Object
readonly
Returns the value of attribute migration_downtime.
-
#name ⇒ Object
readonly
Common attributes to all oVirt version supported at this time.
-
#origin ⇒ Object
readonly
oVirt 3.5 attributes.
-
#os ⇒ Object
readonly
Common attributes to all oVirt version supported at this time.
-
#sso ⇒ Object
readonly
Returns the value of attribute sso.
-
#stateless ⇒ Object
readonly
oVirt 3.5 attributes.
-
#status ⇒ Object
readonly
oVirt 3.5 attributes.
-
#timezone ⇒ Object
readonly
Returns the value of attribute timezone.
-
#type ⇒ Object
readonly
oVirt 3.5 attributes.
-
#usb ⇒ Object
readonly
Returns the value of attribute usb.
Attributes inherited from BaseObject
Instance Method Summary collapse
-
#initialize(client, xml) ⇒ InstanceType
constructor
A new instance of InstanceType.
Methods inherited from BaseObject
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 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 |