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.
44940 44941 44942 44943 44944 44945 44946 44947 44948 44949 44950 44951 44952 44953 44954 44955 44956 44957 44958 44959 44960 44961 |
# File 'lib/ovirtsdk4/types.rb', line 44940 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.
44966 44967 44968 44969 44970 44971 44972 44973 44974 44975 44976 44977 44978 44979 44980 44981 44982 44983 44984 44985 44986 44987 |
# File 'lib/ovirtsdk4/types.rb', line 44966 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.
44439 44440 44441 |
# File 'lib/ovirtsdk4/types.rb', line 44439 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
44448 44449 44450 |
# File 'lib/ovirtsdk4/types.rb', line 44448 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
44457 44458 44459 |
# File 'lib/ovirtsdk4/types.rb', line 44457 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
44466 44467 44468 |
# File 'lib/ovirtsdk4/types.rb', line 44466 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
44475 44476 44477 |
# File 'lib/ovirtsdk4/types.rb', line 44475 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
44484 44485 44486 |
# File 'lib/ovirtsdk4/types.rb', line 44484 def description=(value) @description = value end |
#driver_options ⇒ Array<Property>
Returns the value of the driver_options
attribute.
44493 44494 44495 |
# File 'lib/ovirtsdk4/types.rb', line 44493 def @driver_options end |
#driver_options=(list) ⇒ Object
Sets the value of the driver_options
attribute.
44502 44503 44504 44505 44506 44507 44508 44509 44510 44511 44512 |
# File 'lib/ovirtsdk4/types.rb', line 44502 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.
44519 44520 44521 |
# File 'lib/ovirtsdk4/types.rb', line 44519 def @driver_sensitive_options end |
#driver_sensitive_options=(list) ⇒ Object
Sets the value of the driver_sensitive_options
attribute.
44528 44529 44530 44531 44532 44533 44534 44535 44536 44537 44538 |
# File 'lib/ovirtsdk4/types.rb', line 44528 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.
44992 44993 44994 44995 44996 44997 44998 44999 45000 45001 45002 45003 45004 45005 45006 45007 45008 45009 45010 45011 45012 45013 |
# File 'lib/ovirtsdk4/types.rb', line 44992 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.
44545 44546 44547 |
# File 'lib/ovirtsdk4/types.rb', line 44545 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.
44558 44559 44560 44561 44562 44563 |
# File 'lib/ovirtsdk4/types.rb', line 44558 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.
44570 44571 44572 |
# File 'lib/ovirtsdk4/types.rb', line 44570 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
44579 44580 44581 |
# File 'lib/ovirtsdk4/types.rb', line 44579 def id=(value) @id = value end |
#logical_units ⇒ Array<LogicalUnit>
Returns the value of the logical_units
attribute.
44588 44589 44590 |
# File 'lib/ovirtsdk4/types.rb', line 44588 def logical_units @logical_units end |
#logical_units=(list) ⇒ Object
Sets the value of the logical_units
attribute.
44597 44598 44599 44600 44601 44602 44603 44604 44605 44606 44607 |
# File 'lib/ovirtsdk4/types.rb', line 44597 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.
44614 44615 44616 |
# File 'lib/ovirtsdk4/types.rb', line 44614 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
44623 44624 44625 |
# File 'lib/ovirtsdk4/types.rb', line 44623 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
44632 44633 44634 |
# File 'lib/ovirtsdk4/types.rb', line 44632 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
44641 44642 44643 |
# File 'lib/ovirtsdk4/types.rb', line 44641 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
44650 44651 44652 |
# File 'lib/ovirtsdk4/types.rb', line 44650 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
44659 44660 44661 |
# File 'lib/ovirtsdk4/types.rb', line 44659 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
44668 44669 44670 |
# File 'lib/ovirtsdk4/types.rb', line 44668 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
44677 44678 44679 |
# File 'lib/ovirtsdk4/types.rb', line 44677 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
44686 44687 44688 |
# File 'lib/ovirtsdk4/types.rb', line 44686 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
44695 44696 44697 |
# File 'lib/ovirtsdk4/types.rb', line 44695 def nfs_version=(value) @nfs_version = value end |
#override_luns ⇒ Boolean
Returns the value of the override_luns
attribute.
44704 44705 44706 |
# File 'lib/ovirtsdk4/types.rb', line 44704 def override_luns @override_luns end |
#override_luns=(value) ⇒ Object
Sets the value of the override_luns
attribute.
44713 44714 44715 |
# File 'lib/ovirtsdk4/types.rb', line 44713 def override_luns=(value) @override_luns = value end |
#password ⇒ String
Returns the value of the password
attribute.
44722 44723 44724 |
# File 'lib/ovirtsdk4/types.rb', line 44722 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
44731 44732 44733 |
# File 'lib/ovirtsdk4/types.rb', line 44731 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
44740 44741 44742 |
# File 'lib/ovirtsdk4/types.rb', line 44740 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
44749 44750 44751 |
# File 'lib/ovirtsdk4/types.rb', line 44749 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
44758 44759 44760 |
# File 'lib/ovirtsdk4/types.rb', line 44758 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
44767 44768 44769 |
# File 'lib/ovirtsdk4/types.rb', line 44767 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
44776 44777 44778 |
# File 'lib/ovirtsdk4/types.rb', line 44776 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
44785 44786 44787 |
# File 'lib/ovirtsdk4/types.rb', line 44785 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
44794 44795 44796 |
# File 'lib/ovirtsdk4/types.rb', line 44794 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
44803 44804 44805 |
# File 'lib/ovirtsdk4/types.rb', line 44803 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
44812 44813 44814 |
# File 'lib/ovirtsdk4/types.rb', line 44812 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
44821 44822 44823 |
# File 'lib/ovirtsdk4/types.rb', line 44821 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
44830 44831 44832 |
# File 'lib/ovirtsdk4/types.rb', line 44830 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
44839 44840 44841 |
# File 'lib/ovirtsdk4/types.rb', line 44839 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
44848 44849 44850 |
# File 'lib/ovirtsdk4/types.rb', line 44848 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
44857 44858 44859 |
# File 'lib/ovirtsdk4/types.rb', line 44857 def vfs_type=(value) @vfs_type = value end |
#volume_group ⇒ VolumeGroup
Returns the value of the volume_group
attribute.
44866 44867 44868 |
# File 'lib/ovirtsdk4/types.rb', line 44866 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.
44879 44880 44881 44882 44883 44884 |
# File 'lib/ovirtsdk4/types.rb', line 44879 def volume_group=(value) if value.is_a?(Hash) value = VolumeGroup.new(value) end @volume_group = value end |