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
trueifselfandotherhave the same attributes and values. -
#address ⇒ String
Returns the value of the
addressattribute. -
#address=(value) ⇒ Object
Sets the value of the
addressattribute. -
#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. -
#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 = {}) ⇒ HostStorage
constructor
Creates a new instance of the HostStorage class.
-
#logical_units ⇒ Array<LogicalUnit>
Returns the value of the
logical_unitsattribute. -
#logical_units=(list) ⇒ Object
Sets the value of the
logical_unitsattribute. -
#mount_options ⇒ String
Returns the value of the
mount_optionsattribute. -
#mount_options=(value) ⇒ Object
Sets the value of the
mount_optionsattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#nfs_retrans ⇒ Integer
Returns the value of the
nfs_retransattribute. -
#nfs_retrans=(value) ⇒ Object
Sets the value of the
nfs_retransattribute. -
#nfs_timeo ⇒ Integer
Returns the value of the
nfs_timeoattribute. -
#nfs_timeo=(value) ⇒ Object
Sets the value of the
nfs_timeoattribute. -
#nfs_version ⇒ NfsVersion
Returns the value of the
nfs_versionattribute. -
#nfs_version=(value) ⇒ Object
Sets the value of the
nfs_versionattribute. -
#override_luns ⇒ Boolean
Returns the value of the
override_lunsattribute. -
#override_luns=(value) ⇒ Object
Sets the value of the
override_lunsattribute. -
#password ⇒ String
Returns the value of the
passwordattribute. -
#password=(value) ⇒ Object
Sets the value of the
passwordattribute. -
#path ⇒ String
Returns the value of the
pathattribute. -
#path=(value) ⇒ Object
Sets the value of the
pathattribute. -
#port ⇒ Integer
Returns the value of the
portattribute. -
#port=(value) ⇒ Object
Sets the value of the
portattribute. -
#portal ⇒ String
Returns the value of the
portalattribute. -
#portal=(value) ⇒ Object
Sets the value of the
portalattribute. -
#target ⇒ String
Returns the value of the
targetattribute. -
#target=(value) ⇒ Object
Sets the value of the
targetattribute. -
#type ⇒ StorageType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute. -
#username ⇒ String
Returns the value of the
usernameattribute. -
#username=(value) ⇒ Object
Sets the value of the
usernameattribute. -
#vfs_type ⇒ String
Returns the value of the
vfs_typeattribute. -
#vfs_type=(value) ⇒ Object
Sets the value of the
vfs_typeattribute. -
#volume_group ⇒ VolumeGroup
Returns the value of the
volume_groupattribute. -
#volume_group=(value) ⇒ Object
Sets the value of the
volume_groupattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ HostStorage
Creates a new instance of the OvirtSDK4::HostStorage class.
44193 44194 44195 44196 44197 44198 44199 44200 44201 44202 44203 44204 44205 44206 44207 44208 44209 44210 44211 44212 |
# File 'lib/ovirtsdk4/types.rb', line 44193 def initialize(opts = {}) super(opts) self.address = opts[:address] 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.
44217 44218 44219 44220 44221 44222 44223 44224 44225 44226 44227 44228 44229 44230 44231 44232 44233 44234 44235 44236 |
# File 'lib/ovirtsdk4/types.rb', line 44217 def ==(other) super && @address == other.address && @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.
43748 43749 43750 |
# File 'lib/ovirtsdk4/types.rb', line 43748 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address attribute.
43757 43758 43759 |
# File 'lib/ovirtsdk4/types.rb', line 43757 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment attribute.
43766 43767 43768 |
# File 'lib/ovirtsdk4/types.rb', line 43766 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
43775 43776 43777 |
# File 'lib/ovirtsdk4/types.rb', line 43775 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description attribute.
43784 43785 43786 |
# File 'lib/ovirtsdk4/types.rb', line 43784 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
43793 43794 43795 |
# File 'lib/ovirtsdk4/types.rb', line 43793 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
44241 44242 44243 44244 44245 44246 44247 44248 44249 44250 44251 44252 44253 44254 44255 44256 44257 44258 44259 44260 |
# File 'lib/ovirtsdk4/types.rb', line 44241 def hash super + @address.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.
43802 43803 43804 |
# File 'lib/ovirtsdk4/types.rb', line 43802 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.
43815 43816 43817 43818 43819 43820 |
# File 'lib/ovirtsdk4/types.rb', line 43815 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.
43827 43828 43829 |
# File 'lib/ovirtsdk4/types.rb', line 43827 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
43836 43837 43838 |
# File 'lib/ovirtsdk4/types.rb', line 43836 def id=(value) @id = value end |
#logical_units ⇒ Array<LogicalUnit>
Returns the value of the logical_units attribute.
43845 43846 43847 |
# File 'lib/ovirtsdk4/types.rb', line 43845 def logical_units @logical_units end |
#logical_units=(list) ⇒ Object
Sets the value of the logical_units attribute.
43854 43855 43856 43857 43858 43859 43860 43861 43862 43863 43864 |
# File 'lib/ovirtsdk4/types.rb', line 43854 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.
43871 43872 43873 |
# File 'lib/ovirtsdk4/types.rb', line 43871 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options attribute.
43880 43881 43882 |
# File 'lib/ovirtsdk4/types.rb', line 43880 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name attribute.
43889 43890 43891 |
# File 'lib/ovirtsdk4/types.rb', line 43889 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
43898 43899 43900 |
# File 'lib/ovirtsdk4/types.rb', line 43898 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans attribute.
43907 43908 43909 |
# File 'lib/ovirtsdk4/types.rb', line 43907 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans attribute.
43916 43917 43918 |
# File 'lib/ovirtsdk4/types.rb', line 43916 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo attribute.
43925 43926 43927 |
# File 'lib/ovirtsdk4/types.rb', line 43925 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo attribute.
43934 43935 43936 |
# File 'lib/ovirtsdk4/types.rb', line 43934 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version attribute.
43943 43944 43945 |
# File 'lib/ovirtsdk4/types.rb', line 43943 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version attribute.
43952 43953 43954 |
# File 'lib/ovirtsdk4/types.rb', line 43952 def nfs_version=(value) @nfs_version = value end |
#override_luns ⇒ Boolean
Returns the value of the override_luns attribute.
43961 43962 43963 |
# File 'lib/ovirtsdk4/types.rb', line 43961 def override_luns @override_luns end |
#override_luns=(value) ⇒ Object
Sets the value of the override_luns attribute.
43970 43971 43972 |
# File 'lib/ovirtsdk4/types.rb', line 43970 def override_luns=(value) @override_luns = value end |
#password ⇒ String
Returns the value of the password attribute.
43979 43980 43981 |
# File 'lib/ovirtsdk4/types.rb', line 43979 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password attribute.
43988 43989 43990 |
# File 'lib/ovirtsdk4/types.rb', line 43988 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path attribute.
43997 43998 43999 |
# File 'lib/ovirtsdk4/types.rb', line 43997 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path attribute.
44006 44007 44008 |
# File 'lib/ovirtsdk4/types.rb', line 44006 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port attribute.
44015 44016 44017 |
# File 'lib/ovirtsdk4/types.rb', line 44015 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port attribute.
44024 44025 44026 |
# File 'lib/ovirtsdk4/types.rb', line 44024 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal attribute.
44033 44034 44035 |
# File 'lib/ovirtsdk4/types.rb', line 44033 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal attribute.
44042 44043 44044 |
# File 'lib/ovirtsdk4/types.rb', line 44042 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target attribute.
44051 44052 44053 |
# File 'lib/ovirtsdk4/types.rb', line 44051 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target attribute.
44060 44061 44062 |
# File 'lib/ovirtsdk4/types.rb', line 44060 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type attribute.
44069 44070 44071 |
# File 'lib/ovirtsdk4/types.rb', line 44069 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
44078 44079 44080 |
# File 'lib/ovirtsdk4/types.rb', line 44078 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username attribute.
44087 44088 44089 |
# File 'lib/ovirtsdk4/types.rb', line 44087 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username attribute.
44096 44097 44098 |
# File 'lib/ovirtsdk4/types.rb', line 44096 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type attribute.
44105 44106 44107 |
# File 'lib/ovirtsdk4/types.rb', line 44105 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type attribute.
44114 44115 44116 |
# File 'lib/ovirtsdk4/types.rb', line 44114 def vfs_type=(value) @vfs_type = value end |
#volume_group ⇒ VolumeGroup
Returns the value of the volume_group attribute.
44123 44124 44125 |
# File 'lib/ovirtsdk4/types.rb', line 44123 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.
44136 44137 44138 44139 44140 44141 |
# File 'lib/ovirtsdk4/types.rb', line 44136 def volume_group=(value) if value.is_a?(Hash) value = VolumeGroup.new(value) end @volume_group = value end |