Class: OvirtSDK4::HostDevice
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::HostDevice
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) capability
Returns the value of the
capability
attribute. -
- (Object) capability=(value)
Sets the value of the
capability
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. -
- (Host) host
Returns the value of the
host
attribute. -
- (Object) host=(value)
Sets the value of the
host
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (HostDevice) initialize(opts = {})
constructor
Creates a new instance of the HostDevice class.
-
- (Integer) iommu_group
Returns the value of the
iommu_group
attribute. -
- (Object) iommu_group=(value)
Sets the value of the
iommu_group
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (HostDevice) parent_device
Returns the value of the
parent_device
attribute. -
- (Object) parent_device=(value)
Sets the value of the
parent_device
attribute. -
- (HostDevice) physical_function
Returns the value of the
physical_function
attribute. -
- (Object) physical_function=(value)
Sets the value of the
physical_function
attribute. -
- (Boolean) placeholder
Returns the value of the
placeholder
attribute. -
- (Object) placeholder=(value)
Sets the value of the
placeholder
attribute. -
- (Product) product
Returns the value of the
product
attribute. -
- (Object) product=(value)
Sets the value of the
product
attribute. -
- (Vendor) vendor
Returns the value of the
vendor
attribute. -
- (Object) vendor=(value)
Sets the value of the
vendor
attribute. -
- (Integer) virtual_functions
Returns the value of the
virtual_functions
attribute. -
- (Object) virtual_functions=(value)
Sets the value of the
virtual_functions
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
- (HostDevice) initialize(opts = {})
Creates a new instance of the OvirtSDK4::HostDevice class.
34073 34074 34075 34076 34077 34078 34079 34080 34081 34082 34083 34084 34085 34086 34087 34088 34089 |
# File 'lib/ovirtsdk4/types.rb', line 34073 def initialize(opts = {}) super(opts) self.capability = opts[:capability] self.comment = opts[:comment] self.description = opts[:description] self.host = opts[:host] self.id = opts[:id] self.iommu_group = opts[:iommu_group] self.name = opts[:name] self.parent_device = opts[:parent_device] self.physical_function = opts[:physical_function] self.placeholder = opts[:placeholder] self.product = opts[:product] self.vendor = opts[:vendor] self.virtual_functions = opts[:virtual_functions] self.vm = opts[:vm] end |
Instance Method Details
- (String) capability
Returns the value of the capability
attribute.
33748 33749 33750 |
# File 'lib/ovirtsdk4/types.rb', line 33748 def capability return @capability end |
- (Object) capability=(value)
Sets the value of the capability
attribute.
33757 33758 33759 |
# File 'lib/ovirtsdk4/types.rb', line 33757 def capability=(value) @capability = value end |
- (String) comment
Returns the value of the comment
attribute.
33766 33767 33768 |
# File 'lib/ovirtsdk4/types.rb', line 33766 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
33775 33776 33777 |
# File 'lib/ovirtsdk4/types.rb', line 33775 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
33784 33785 33786 |
# File 'lib/ovirtsdk4/types.rb', line 33784 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
33793 33794 33795 |
# File 'lib/ovirtsdk4/types.rb', line 33793 def description=(value) @description = value end |
- (Host) host
Returns the value of the host
attribute.
33802 33803 33804 |
# File 'lib/ovirtsdk4/types.rb', line 33802 def host return @host end |
- (Object) host=(value)
Sets the value of the host
attribute.
The value
parameter can be an instance of OvirtSDK4::Host 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.
33815 33816 33817 33818 33819 33820 |
# File 'lib/ovirtsdk4/types.rb', line 33815 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
- (String) id
Returns the value of the id
attribute.
33827 33828 33829 |
# File 'lib/ovirtsdk4/types.rb', line 33827 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
33836 33837 33838 |
# File 'lib/ovirtsdk4/types.rb', line 33836 def id=(value) @id = value end |
- (Integer) iommu_group
Returns the value of the iommu_group
attribute.
33845 33846 33847 |
# File 'lib/ovirtsdk4/types.rb', line 33845 def iommu_group return @iommu_group end |
- (Object) iommu_group=(value)
Sets the value of the iommu_group
attribute.
33854 33855 33856 |
# File 'lib/ovirtsdk4/types.rb', line 33854 def iommu_group=(value) @iommu_group = value end |
- (String) name
Returns the value of the name
attribute.
33863 33864 33865 |
# File 'lib/ovirtsdk4/types.rb', line 33863 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
33872 33873 33874 |
# File 'lib/ovirtsdk4/types.rb', line 33872 def name=(value) @name = value end |
- (HostDevice) parent_device
Returns the value of the parent_device
attribute.
33881 33882 33883 |
# File 'lib/ovirtsdk4/types.rb', line 33881 def parent_device return @parent_device end |
- (Object) parent_device=(value)
Sets the value of the parent_device
attribute.
The value
parameter can be an instance of OvirtSDK4::HostDevice 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.
33894 33895 33896 33897 33898 33899 |
# File 'lib/ovirtsdk4/types.rb', line 33894 def parent_device=(value) if value.is_a?(Hash) value = HostDevice.new(value) end @parent_device = value end |
- (HostDevice) physical_function
Returns the value of the physical_function
attribute.
33906 33907 33908 |
# File 'lib/ovirtsdk4/types.rb', line 33906 def physical_function return @physical_function end |
- (Object) physical_function=(value)
Sets the value of the physical_function
attribute.
The value
parameter can be an instance of OvirtSDK4::HostDevice 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.
33919 33920 33921 33922 33923 33924 |
# File 'lib/ovirtsdk4/types.rb', line 33919 def physical_function=(value) if value.is_a?(Hash) value = HostDevice.new(value) end @physical_function = value end |
- (Boolean) placeholder
Returns the value of the placeholder
attribute.
33931 33932 33933 |
# File 'lib/ovirtsdk4/types.rb', line 33931 def placeholder return @placeholder end |
- (Object) placeholder=(value)
Sets the value of the placeholder
attribute.
33940 33941 33942 |
# File 'lib/ovirtsdk4/types.rb', line 33940 def placeholder=(value) @placeholder = value end |
- (Product) product
Returns the value of the product
attribute.
33949 33950 33951 |
# File 'lib/ovirtsdk4/types.rb', line 33949 def product return @product end |
- (Object) product=(value)
Sets the value of the product
attribute.
The value
parameter can be an instance of Product 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.
33962 33963 33964 33965 33966 33967 |
# File 'lib/ovirtsdk4/types.rb', line 33962 def product=(value) if value.is_a?(Hash) value = Product.new(value) end @product = value end |
- (Vendor) vendor
Returns the value of the vendor
attribute.
33974 33975 33976 |
# File 'lib/ovirtsdk4/types.rb', line 33974 def vendor return @vendor end |
- (Object) vendor=(value)
Sets the value of the vendor
attribute.
The value
parameter can be an instance of Vendor 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.
33987 33988 33989 33990 33991 33992 |
# File 'lib/ovirtsdk4/types.rb', line 33987 def vendor=(value) if value.is_a?(Hash) value = Vendor.new(value) end @vendor = value end |
- (Integer) virtual_functions
Returns the value of the virtual_functions
attribute.
33999 34000 34001 |
# File 'lib/ovirtsdk4/types.rb', line 33999 def virtual_functions return @virtual_functions end |
- (Object) virtual_functions=(value)
Sets the value of the virtual_functions
attribute.
34008 34009 34010 |
# File 'lib/ovirtsdk4/types.rb', line 34008 def virtual_functions=(value) @virtual_functions = value end |
- (Vm) vm
Returns the value of the vm
attribute.
34017 34018 34019 |
# File 'lib/ovirtsdk4/types.rb', line 34017 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.
34030 34031 34032 34033 34034 34035 |
# File 'lib/ovirtsdk4/types.rb', line 34030 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |