Class: OvirtSDK4::HostDevice

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (HostDevice) initialize(opts = {})

Creates a new instance of the OvirtSDK4::HostDevice class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :capability (String)

    The value of attribute capability.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :iommu_group (Integer)

    The value of attribute iommu_group.

  • :name (String)

    The value of attribute name.

  • :parent_device (HostDevice, Hash)

    The value of attribute parent_device.

  • :physical_function (HostDevice, Hash)

    The value of attribute physical_function.

  • :placeholder (Boolean)

    The value of attribute placeholder.

  • :product (Product, Hash)

    The value of attribute product.

  • :vendor (Vendor, Hash)

    The value of attribute vendor.

  • :virtual_functions (Integer)

    The value of attribute virtual_functions.

  • :vm (Vm, Hash)

    The value of attribute vm.



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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:

  • value (Host, Hash)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:

  • (Boolean)


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.

Parameters:

  • value (Boolean)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:



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.

Parameters:

  • value (Vm, Hash)


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