Class: OvirtSDK4::Application
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Application
- 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. -
- (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. -
- (Application) initialize(opts = {})
constructor
Creates a new instance of the Application class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Vm) vm
Returns the value of the
vm
attribute. -
- (Object) vm=(value)
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
- (Application) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Application class.
23185 23186 23187 23188 23189 23190 23191 23192 |
# File 'lib/ovirtsdk4/types.rb', line 23185 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.id = opts[:id] self.name = opts[:name] self.vm = opts[:vm] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
23075 23076 23077 |
# File 'lib/ovirtsdk4/types.rb', line 23075 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
23084 23085 23086 |
# File 'lib/ovirtsdk4/types.rb', line 23084 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
23093 23094 23095 |
# File 'lib/ovirtsdk4/types.rb', line 23093 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
23102 23103 23104 |
# File 'lib/ovirtsdk4/types.rb', line 23102 def description=(value) @description = value end |
- (String) id
Returns the value of the id
attribute.
23111 23112 23113 |
# File 'lib/ovirtsdk4/types.rb', line 23111 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
23120 23121 23122 |
# File 'lib/ovirtsdk4/types.rb', line 23120 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
23129 23130 23131 |
# File 'lib/ovirtsdk4/types.rb', line 23129 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
23138 23139 23140 |
# File 'lib/ovirtsdk4/types.rb', line 23138 def name=(value) @name = value end |
- (Vm) vm
Returns the value of the vm
attribute.
23147 23148 23149 |
# File 'lib/ovirtsdk4/types.rb', line 23147 def vm return @vm end |
- (Object) vm=(value)
Sets the value of the vm
attribute.
The value
parameter can be an instance of Vm or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
23160 23161 23162 23163 23164 23165 |
# File 'lib/ovirtsdk4/types.rb', line 23160 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |