Class: OvirtSDK4::HostDevice
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::HostDevice
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#capability ⇒ String
Returns the value of the
capabilityattribute. -
#capability=(value) ⇒ Object
Sets the value of the
capabilityattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#driver ⇒ String
Returns the value of the
driverattribute. -
#driver=(value) ⇒ Object
Sets the value of the
driverattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#initialize(opts = {}) ⇒ HostDevice
constructor
Creates a new instance of the HostDevice class.
-
#iommu_group ⇒ Integer
Returns the value of the
iommu_groupattribute. -
#iommu_group=(value) ⇒ Object
Sets the value of the
iommu_groupattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#parent_device ⇒ HostDevice
Returns the value of the
parent_deviceattribute. -
#parent_device=(value) ⇒ Object
Sets the value of the
parent_deviceattribute. -
#physical_function ⇒ HostDevice
Returns the value of the
physical_functionattribute. -
#physical_function=(value) ⇒ Object
Sets the value of the
physical_functionattribute. -
#placeholder ⇒ Boolean
Returns the value of the
placeholderattribute. -
#placeholder=(value) ⇒ Object
Sets the value of the
placeholderattribute. -
#product ⇒ Product
Returns the value of the
productattribute. -
#product=(value) ⇒ Object
Sets the value of the
productattribute. -
#vendor ⇒ Vendor
Returns the value of the
vendorattribute. -
#vendor=(value) ⇒ Object
Sets the value of the
vendorattribute. -
#virtual_functions ⇒ Integer
Returns the value of the
virtual_functionsattribute. -
#virtual_functions=(value) ⇒ Object
Sets the value of the
virtual_functionsattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ HostDevice
Creates a new instance of the OvirtSDK4::HostDevice class.
42932 42933 42934 42935 42936 42937 42938 42939 42940 42941 42942 42943 42944 42945 |
# File 'lib/ovirtsdk4/types.rb', line 42932 def initialize(opts = {}) super(opts) self.capability = opts[:capability] self.driver = opts[:driver] self.host = opts[:host] self.iommu_group = opts[:iommu_group] 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
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
42950 42951 42952 42953 42954 42955 42956 42957 42958 42959 42960 42961 42962 42963 |
# File 'lib/ovirtsdk4/types.rb', line 42950 def ==(other) super && @capability == other.capability && @driver == other.driver && @host == other.host && @iommu_group == other.iommu_group && @parent_device == other.parent_device && @physical_function == other.physical_function && @placeholder == other.placeholder && @product == other.product && @vendor == other.vendor && @virtual_functions == other.virtual_functions && @vm == other.vm end |
#capability ⇒ String
Returns the value of the capability attribute.
42587 42588 42589 |
# File 'lib/ovirtsdk4/types.rb', line 42587 def capability @capability end |
#capability=(value) ⇒ Object
Sets the value of the capability attribute.
42596 42597 42598 |
# File 'lib/ovirtsdk4/types.rb', line 42596 def capability=(value) @capability = value end |
#comment ⇒ String
Returns the value of the comment attribute.
42605 42606 42607 |
# File 'lib/ovirtsdk4/types.rb', line 42605 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
42614 42615 42616 |
# File 'lib/ovirtsdk4/types.rb', line 42614 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
42623 42624 42625 |
# File 'lib/ovirtsdk4/types.rb', line 42623 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
42632 42633 42634 |
# File 'lib/ovirtsdk4/types.rb', line 42632 def description=(value) @description = value end |
#driver ⇒ String
Returns the value of the driver attribute.
42641 42642 42643 |
# File 'lib/ovirtsdk4/types.rb', line 42641 def driver @driver end |
#driver=(value) ⇒ Object
Sets the value of the driver attribute.
42650 42651 42652 |
# File 'lib/ovirtsdk4/types.rb', line 42650 def driver=(value) @driver = value end |
#hash ⇒ Object
Generates a hash value for this object.
42968 42969 42970 42971 42972 42973 42974 42975 42976 42977 42978 42979 42980 42981 |
# File 'lib/ovirtsdk4/types.rb', line 42968 def hash super + @capability.hash + @driver.hash + @host.hash + @iommu_group.hash + @parent_device.hash + @physical_function.hash + @placeholder.hash + @product.hash + @vendor.hash + @virtual_functions.hash + @vm.hash end |
#host ⇒ Host
Returns the value of the host attribute.
42659 42660 42661 |
# File 'lib/ovirtsdk4/types.rb', line 42659 def host @host end |
#host=(value) ⇒ Object
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.
42672 42673 42674 42675 42676 42677 |
# File 'lib/ovirtsdk4/types.rb', line 42672 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#id ⇒ String
Returns the value of the id attribute.
42684 42685 42686 |
# File 'lib/ovirtsdk4/types.rb', line 42684 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
42693 42694 42695 |
# File 'lib/ovirtsdk4/types.rb', line 42693 def id=(value) @id = value end |
#iommu_group ⇒ Integer
Returns the value of the iommu_group attribute.
42702 42703 42704 |
# File 'lib/ovirtsdk4/types.rb', line 42702 def iommu_group @iommu_group end |
#iommu_group=(value) ⇒ Object
Sets the value of the iommu_group attribute.
42711 42712 42713 |
# File 'lib/ovirtsdk4/types.rb', line 42711 def iommu_group=(value) @iommu_group = value end |
#name ⇒ String
Returns the value of the name attribute.
42720 42721 42722 |
# File 'lib/ovirtsdk4/types.rb', line 42720 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
42729 42730 42731 |
# File 'lib/ovirtsdk4/types.rb', line 42729 def name=(value) @name = value end |
#parent_device ⇒ HostDevice
Returns the value of the parent_device attribute.
42738 42739 42740 |
# File 'lib/ovirtsdk4/types.rb', line 42738 def parent_device @parent_device end |
#parent_device=(value) ⇒ Object
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.
42751 42752 42753 42754 42755 42756 |
# File 'lib/ovirtsdk4/types.rb', line 42751 def parent_device=(value) if value.is_a?(Hash) value = HostDevice.new(value) end @parent_device = value end |
#physical_function ⇒ HostDevice
Returns the value of the physical_function attribute.
42763 42764 42765 |
# File 'lib/ovirtsdk4/types.rb', line 42763 def physical_function @physical_function end |
#physical_function=(value) ⇒ Object
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.
42776 42777 42778 42779 42780 42781 |
# File 'lib/ovirtsdk4/types.rb', line 42776 def physical_function=(value) if value.is_a?(Hash) value = HostDevice.new(value) end @physical_function = value end |
#placeholder ⇒ Boolean
Returns the value of the placeholder attribute.
42788 42789 42790 |
# File 'lib/ovirtsdk4/types.rb', line 42788 def placeholder @placeholder end |
#placeholder=(value) ⇒ Object
Sets the value of the placeholder attribute.
42797 42798 42799 |
# File 'lib/ovirtsdk4/types.rb', line 42797 def placeholder=(value) @placeholder = value end |
#product ⇒ Product
Returns the value of the product attribute.
42806 42807 42808 |
# File 'lib/ovirtsdk4/types.rb', line 42806 def product @product end |
#product=(value) ⇒ Object
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.
42819 42820 42821 42822 42823 42824 |
# File 'lib/ovirtsdk4/types.rb', line 42819 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.
42831 42832 42833 |
# File 'lib/ovirtsdk4/types.rb', line 42831 def vendor @vendor end |
#vendor=(value) ⇒ Object
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.
42844 42845 42846 42847 42848 42849 |
# File 'lib/ovirtsdk4/types.rb', line 42844 def vendor=(value) if value.is_a?(Hash) value = Vendor.new(value) end @vendor = value end |
#virtual_functions ⇒ Integer
Returns the value of the virtual_functions attribute.
42856 42857 42858 |
# File 'lib/ovirtsdk4/types.rb', line 42856 def virtual_functions @virtual_functions end |
#virtual_functions=(value) ⇒ Object
Sets the value of the virtual_functions attribute.
42865 42866 42867 |
# File 'lib/ovirtsdk4/types.rb', line 42865 def virtual_functions=(value) @virtual_functions = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
42874 42875 42876 |
# File 'lib/ovirtsdk4/types.rb', line 42874 def vm @vm end |
#vm=(value) ⇒ Object
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.
42887 42888 42889 42890 42891 42892 |
# File 'lib/ovirtsdk4/types.rb', line 42887 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |