Class: OvirtSDK4::DiskAttachment
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::DiskAttachment
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Boolean) bootable
Returns the value of the
bootable
attribute. -
- (Object) bootable=(value)
Sets the value of the
bootable
attribute. -
- (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. -
- (Disk) disk
Returns the value of the
disk
attribute. -
- (Object) disk=(value)
Sets the value of the
disk
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (DiskAttachment) initialize(opts = {})
constructor
Creates a new instance of the DiskAttachment class.
-
- (DiskInterface) interface
Returns the value of the
interface
attribute. -
- (Object) interface=(value)
Sets the value of the
interface
attribute. -
- (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
- (DiskAttachment) initialize(opts = {})
Creates a new instance of the OvirtSDK4::DiskAttachment class.
26768 26769 26770 26771 26772 26773 26774 26775 26776 26777 26778 |
# File 'lib/ovirtsdk4/types.rb', line 26768 def initialize(opts = {}) super(opts) self.bootable = opts[:bootable] self.comment = opts[:comment] self.description = opts[:description] self.disk = opts[:disk] self.id = opts[:id] self.interface = opts[:interface] self.name = opts[:name] self.vm = opts[:vm] end |
Instance Method Details
- (Boolean) bootable
Returns the value of the bootable
attribute.
26591 26592 26593 |
# File 'lib/ovirtsdk4/types.rb', line 26591 def bootable return @bootable end |
- (Object) bootable=(value)
Sets the value of the bootable
attribute.
26600 26601 26602 |
# File 'lib/ovirtsdk4/types.rb', line 26600 def bootable=(value) @bootable = value end |
- (String) comment
Returns the value of the comment
attribute.
26609 26610 26611 |
# File 'lib/ovirtsdk4/types.rb', line 26609 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
26618 26619 26620 |
# File 'lib/ovirtsdk4/types.rb', line 26618 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
26627 26628 26629 |
# File 'lib/ovirtsdk4/types.rb', line 26627 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
26636 26637 26638 |
# File 'lib/ovirtsdk4/types.rb', line 26636 def description=(value) @description = value end |
- (Disk) disk
Returns the value of the disk
attribute.
26645 26646 26647 |
# File 'lib/ovirtsdk4/types.rb', line 26645 def disk return @disk end |
- (Object) disk=(value)
Sets the value of the disk
attribute.
The value
parameter can be an instance of OvirtSDK4::Disk 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.
26658 26659 26660 26661 26662 26663 |
# File 'lib/ovirtsdk4/types.rb', line 26658 def disk=(value) if value.is_a?(Hash) value = Disk.new(value) end @disk = value end |
- (String) id
Returns the value of the id
attribute.
26670 26671 26672 |
# File 'lib/ovirtsdk4/types.rb', line 26670 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
26679 26680 26681 |
# File 'lib/ovirtsdk4/types.rb', line 26679 def id=(value) @id = value end |
- (DiskInterface) interface
Returns the value of the interface
attribute.
26688 26689 26690 |
# File 'lib/ovirtsdk4/types.rb', line 26688 def interface return @interface end |
- (Object) interface=(value)
Sets the value of the interface
attribute.
26697 26698 26699 |
# File 'lib/ovirtsdk4/types.rb', line 26697 def interface=(value) @interface = value end |
- (String) name
Returns the value of the name
attribute.
26706 26707 26708 |
# File 'lib/ovirtsdk4/types.rb', line 26706 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
26715 26716 26717 |
# File 'lib/ovirtsdk4/types.rb', line 26715 def name=(value) @name = value end |
- (Vm) vm
Returns the value of the vm
attribute.
26724 26725 26726 |
# File 'lib/ovirtsdk4/types.rb', line 26724 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.
26737 26738 26739 26740 26741 26742 |
# File 'lib/ovirtsdk4/types.rb', line 26737 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |