Class: OvirtSDK4::HostStorage
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::HostStorage
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#address ⇒ String
Returns the value of the
address
attribute. -
#address=(value) ⇒ Object
Sets the value of the
address
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#driver_options ⇒ Array<Property>
Returns the value of the
driver_options
attribute. -
#driver_options=(list) ⇒ Object
Sets the value of the
driver_options
attribute. -
#driver_sensitive_options ⇒ Array<Property>
Returns the value of the
driver_sensitive_options
attribute. -
#driver_sensitive_options=(list) ⇒ Object
Sets the value of the
driver_sensitive_options
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ HostStorage
constructor
Creates a new instance of the HostStorage class.
-
#logical_units ⇒ Array<LogicalUnit>
Returns the value of the
logical_units
attribute. -
#logical_units=(list) ⇒ Object
Sets the value of the
logical_units
attribute. -
#mount_options ⇒ String
Returns the value of the
mount_options
attribute. -
#mount_options=(value) ⇒ Object
Sets the value of the
mount_options
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#nfs_retrans ⇒ Integer
Returns the value of the
nfs_retrans
attribute. -
#nfs_retrans=(value) ⇒ Object
Sets the value of the
nfs_retrans
attribute. -
#nfs_timeo ⇒ Integer
Returns the value of the
nfs_timeo
attribute. -
#nfs_timeo=(value) ⇒ Object
Sets the value of the
nfs_timeo
attribute. -
#nfs_version ⇒ NfsVersion
Returns the value of the
nfs_version
attribute. -
#nfs_version=(value) ⇒ Object
Sets the value of the
nfs_version
attribute. -
#override_luns ⇒ Boolean
Returns the value of the
override_luns
attribute. -
#override_luns=(value) ⇒ Object
Sets the value of the
override_luns
attribute. -
#password ⇒ String
Returns the value of the
password
attribute. -
#password=(value) ⇒ Object
Sets the value of the
password
attribute. -
#path ⇒ String
Returns the value of the
path
attribute. -
#path=(value) ⇒ Object
Sets the value of the
path
attribute. -
#port ⇒ Integer
Returns the value of the
port
attribute. -
#port=(value) ⇒ Object
Sets the value of the
port
attribute. -
#portal ⇒ String
Returns the value of the
portal
attribute. -
#portal=(value) ⇒ Object
Sets the value of the
portal
attribute. -
#target ⇒ String
Returns the value of the
target
attribute. -
#target=(value) ⇒ Object
Sets the value of the
target
attribute. -
#type ⇒ StorageType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#username ⇒ String
Returns the value of the
username
attribute. -
#username=(value) ⇒ Object
Sets the value of the
username
attribute. -
#vfs_type ⇒ String
Returns the value of the
vfs_type
attribute. -
#vfs_type=(value) ⇒ Object
Sets the value of the
vfs_type
attribute. -
#volume_group ⇒ VolumeGroup
Returns the value of the
volume_group
attribute. -
#volume_group=(value) ⇒ Object
Sets the value of the
volume_group
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ HostStorage
Creates a new instance of the OvirtSDK4::HostStorage class.
47732 47733 47734 47735 47736 47737 47738 47739 47740 47741 47742 47743 47744 47745 47746 47747 47748 47749 47750 47751 47752 47753 |
# File 'lib/ovirtsdk4/types.rb', line 47732 def initialize(opts = {}) super(opts) self.address = opts[:address] self. = opts[:driver_options] self. = opts[:driver_sensitive_options] self.host = opts[:host] self.logical_units = opts[:logical_units] self. = opts[:mount_options] self.nfs_retrans = opts[:nfs_retrans] self.nfs_timeo = opts[:nfs_timeo] self.nfs_version = opts[:nfs_version] self.override_luns = opts[:override_luns] self.password = opts[:password] self.path = opts[:path] self.port = opts[:port] self.portal = opts[:portal] self.target = opts[:target] self.type = opts[:type] self.username = opts[:username] self.vfs_type = opts[:vfs_type] self.volume_group = opts[:volume_group] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
47758 47759 47760 47761 47762 47763 47764 47765 47766 47767 47768 47769 47770 47771 47772 47773 47774 47775 47776 47777 47778 47779 |
# File 'lib/ovirtsdk4/types.rb', line 47758 def ==(other) super && @address == other.address && @driver_options == other. && @driver_sensitive_options == other. && @host == other.host && @logical_units == other.logical_units && @mount_options == other. && @nfs_retrans == other.nfs_retrans && @nfs_timeo == other.nfs_timeo && @nfs_version == other.nfs_version && @override_luns == other.override_luns && @password == other.password && @path == other.path && @port == other.port && @portal == other.portal && @target == other.target && @type == other.type && @username == other.username && @vfs_type == other.vfs_type && @volume_group == other.volume_group end |
#address ⇒ String
Returns the value of the address
attribute.
47231 47232 47233 |
# File 'lib/ovirtsdk4/types.rb', line 47231 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
47240 47241 47242 |
# File 'lib/ovirtsdk4/types.rb', line 47240 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
47249 47250 47251 |
# File 'lib/ovirtsdk4/types.rb', line 47249 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
47258 47259 47260 |
# File 'lib/ovirtsdk4/types.rb', line 47258 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
47267 47268 47269 |
# File 'lib/ovirtsdk4/types.rb', line 47267 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
47276 47277 47278 |
# File 'lib/ovirtsdk4/types.rb', line 47276 def description=(value) @description = value end |
#driver_options ⇒ Array<Property>
Returns the value of the driver_options
attribute.
47285 47286 47287 |
# File 'lib/ovirtsdk4/types.rb', line 47285 def @driver_options end |
#driver_options=(list) ⇒ Object
Sets the value of the driver_options
attribute.
47294 47295 47296 47297 47298 47299 47300 47301 47302 47303 47304 |
# File 'lib/ovirtsdk4/types.rb', line 47294 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Property.new(value) end end end @driver_options = list end |
#driver_sensitive_options ⇒ Array<Property>
Returns the value of the driver_sensitive_options
attribute.
47311 47312 47313 |
# File 'lib/ovirtsdk4/types.rb', line 47311 def @driver_sensitive_options end |
#driver_sensitive_options=(list) ⇒ Object
Sets the value of the driver_sensitive_options
attribute.
47320 47321 47322 47323 47324 47325 47326 47327 47328 47329 47330 |
# File 'lib/ovirtsdk4/types.rb', line 47320 def (list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = Property.new(value) end end end @driver_sensitive_options = list end |
#hash ⇒ Object
Generates a hash value for this object.
47784 47785 47786 47787 47788 47789 47790 47791 47792 47793 47794 47795 47796 47797 47798 47799 47800 47801 47802 47803 47804 47805 |
# File 'lib/ovirtsdk4/types.rb', line 47784 def hash super + @address.hash + @driver_options.hash + @driver_sensitive_options.hash + @host.hash + @logical_units.hash + @mount_options.hash + @nfs_retrans.hash + @nfs_timeo.hash + @nfs_version.hash + @override_luns.hash + @password.hash + @path.hash + @port.hash + @portal.hash + @target.hash + @type.hash + @username.hash + @vfs_type.hash + @volume_group.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
47337 47338 47339 |
# File 'lib/ovirtsdk4/types.rb', line 47337 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.
47350 47351 47352 47353 47354 47355 |
# File 'lib/ovirtsdk4/types.rb', line 47350 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.
47362 47363 47364 |
# File 'lib/ovirtsdk4/types.rb', line 47362 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
47371 47372 47373 |
# File 'lib/ovirtsdk4/types.rb', line 47371 def id=(value) @id = value end |
#logical_units ⇒ Array<LogicalUnit>
Returns the value of the logical_units
attribute.
47380 47381 47382 |
# File 'lib/ovirtsdk4/types.rb', line 47380 def logical_units @logical_units end |
#logical_units=(list) ⇒ Object
Sets the value of the logical_units
attribute.
47389 47390 47391 47392 47393 47394 47395 47396 47397 47398 47399 |
# File 'lib/ovirtsdk4/types.rb', line 47389 def logical_units=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = LogicalUnit.new(value) end end end @logical_units = list end |
#mount_options ⇒ String
Returns the value of the mount_options
attribute.
47406 47407 47408 |
# File 'lib/ovirtsdk4/types.rb', line 47406 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
47415 47416 47417 |
# File 'lib/ovirtsdk4/types.rb', line 47415 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
47424 47425 47426 |
# File 'lib/ovirtsdk4/types.rb', line 47424 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
47433 47434 47435 |
# File 'lib/ovirtsdk4/types.rb', line 47433 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
47442 47443 47444 |
# File 'lib/ovirtsdk4/types.rb', line 47442 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
47451 47452 47453 |
# File 'lib/ovirtsdk4/types.rb', line 47451 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
47460 47461 47462 |
# File 'lib/ovirtsdk4/types.rb', line 47460 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
47469 47470 47471 |
# File 'lib/ovirtsdk4/types.rb', line 47469 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
47478 47479 47480 |
# File 'lib/ovirtsdk4/types.rb', line 47478 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
47487 47488 47489 |
# File 'lib/ovirtsdk4/types.rb', line 47487 def nfs_version=(value) @nfs_version = value end |
#override_luns ⇒ Boolean
Returns the value of the override_luns
attribute.
47496 47497 47498 |
# File 'lib/ovirtsdk4/types.rb', line 47496 def override_luns @override_luns end |
#override_luns=(value) ⇒ Object
Sets the value of the override_luns
attribute.
47505 47506 47507 |
# File 'lib/ovirtsdk4/types.rb', line 47505 def override_luns=(value) @override_luns = value end |
#password ⇒ String
Returns the value of the password
attribute.
47514 47515 47516 |
# File 'lib/ovirtsdk4/types.rb', line 47514 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
47523 47524 47525 |
# File 'lib/ovirtsdk4/types.rb', line 47523 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
47532 47533 47534 |
# File 'lib/ovirtsdk4/types.rb', line 47532 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
47541 47542 47543 |
# File 'lib/ovirtsdk4/types.rb', line 47541 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
47550 47551 47552 |
# File 'lib/ovirtsdk4/types.rb', line 47550 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
47559 47560 47561 |
# File 'lib/ovirtsdk4/types.rb', line 47559 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
47568 47569 47570 |
# File 'lib/ovirtsdk4/types.rb', line 47568 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
47577 47578 47579 |
# File 'lib/ovirtsdk4/types.rb', line 47577 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
47586 47587 47588 |
# File 'lib/ovirtsdk4/types.rb', line 47586 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
47595 47596 47597 |
# File 'lib/ovirtsdk4/types.rb', line 47595 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
47604 47605 47606 |
# File 'lib/ovirtsdk4/types.rb', line 47604 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
47613 47614 47615 |
# File 'lib/ovirtsdk4/types.rb', line 47613 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
47622 47623 47624 |
# File 'lib/ovirtsdk4/types.rb', line 47622 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
47631 47632 47633 |
# File 'lib/ovirtsdk4/types.rb', line 47631 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
47640 47641 47642 |
# File 'lib/ovirtsdk4/types.rb', line 47640 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
47649 47650 47651 |
# File 'lib/ovirtsdk4/types.rb', line 47649 def vfs_type=(value) @vfs_type = value end |
#volume_group ⇒ VolumeGroup
Returns the value of the volume_group
attribute.
47658 47659 47660 |
# File 'lib/ovirtsdk4/types.rb', line 47658 def volume_group @volume_group end |
#volume_group=(value) ⇒ Object
Sets the value of the volume_group
attribute.
The value
parameter can be an instance of VolumeGroup 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.
47671 47672 47673 47674 47675 47676 |
# File 'lib/ovirtsdk4/types.rb', line 47671 def volume_group=(value) if value.is_a?(Hash) value = VolumeGroup.new(value) end @volume_group = value end |