Class: OvirtSDK4::ClusterLevel
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::ClusterLevel
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (Array<CpuType>) cpu_types
Returns the value of the
cpu_types
attribute. -
- (Object) cpu_types=(list)
Sets the value of the
cpu_types
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (ClusterLevel) initialize(opts = {})
constructor
Creates a new instance of the ClusterLevel class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute.
Methods included from Type
Constructor Details
- (ClusterLevel) initialize(opts = {})
Creates a new instance of the OvirtSDK4::ClusterLevel class.
24871 24872 24873 24874 24875 24876 24877 24878 |
# File 'lib/ovirtsdk4/types.rb', line 24871 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.cpu_types = opts[:cpu_types] self.description = opts[:description] self.id = opts[:id] self.name = opts[:name] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
24761 24762 24763 |
# File 'lib/ovirtsdk4/types.rb', line 24761 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
24770 24771 24772 |
# File 'lib/ovirtsdk4/types.rb', line 24770 def comment=(value) @comment = value end |
- (Array<CpuType>) cpu_types
Returns the value of the cpu_types
attribute.
24779 24780 24781 |
# File 'lib/ovirtsdk4/types.rb', line 24779 def cpu_types return @cpu_types end |
- (Object) cpu_types=(list)
Sets the value of the cpu_types
attribute.
24787 24788 24789 24790 24791 24792 24793 24794 24795 24796 24797 |
# File 'lib/ovirtsdk4/types.rb', line 24787 def cpu_types=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = CpuType.new(value) end end end @cpu_types = list end |
- (String) description
Returns the value of the description
attribute.
24804 24805 24806 |
# File 'lib/ovirtsdk4/types.rb', line 24804 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
24813 24814 24815 |
# File 'lib/ovirtsdk4/types.rb', line 24813 def description=(value) @description = value end |
- (String) id
Returns the value of the id
attribute.
24822 24823 24824 |
# File 'lib/ovirtsdk4/types.rb', line 24822 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
24831 24832 24833 |
# File 'lib/ovirtsdk4/types.rb', line 24831 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
24840 24841 24842 |
# File 'lib/ovirtsdk4/types.rb', line 24840 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
24849 24850 24851 |
# File 'lib/ovirtsdk4/types.rb', line 24849 def name=(value) @name = value end |