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. -
#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.
44338 44339 44340 44341 44342 44343 44344 44345 44346 44347 44348 44349 44350 44351 44352 44353 44354 44355 44356 44357 |
# File 'lib/ovirtsdk4/types.rb', line 44338 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.
44362 44363 44364 44365 44366 44367 44368 44369 44370 44371 44372 44373 44374 44375 44376 44377 44378 44379 44380 44381 |
# File 'lib/ovirtsdk4/types.rb', line 44362 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.
43893 43894 43895 |
# File 'lib/ovirtsdk4/types.rb', line 43893 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
43902 43903 43904 |
# File 'lib/ovirtsdk4/types.rb', line 43902 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
43911 43912 43913 |
# File 'lib/ovirtsdk4/types.rb', line 43911 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
43920 43921 43922 |
# File 'lib/ovirtsdk4/types.rb', line 43920 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
43929 43930 43931 |
# File 'lib/ovirtsdk4/types.rb', line 43929 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
43938 43939 43940 |
# File 'lib/ovirtsdk4/types.rb', line 43938 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
44386 44387 44388 44389 44390 44391 44392 44393 44394 44395 44396 44397 44398 44399 44400 44401 44402 44403 44404 44405 |
# File 'lib/ovirtsdk4/types.rb', line 44386 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.
43947 43948 43949 |
# File 'lib/ovirtsdk4/types.rb', line 43947 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.
43960 43961 43962 43963 43964 43965 |
# File 'lib/ovirtsdk4/types.rb', line 43960 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.
43972 43973 43974 |
# File 'lib/ovirtsdk4/types.rb', line 43972 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
43981 43982 43983 |
# File 'lib/ovirtsdk4/types.rb', line 43981 def id=(value) @id = value end |
#logical_units ⇒ Array<LogicalUnit>
Returns the value of the logical_units
attribute.
43990 43991 43992 |
# File 'lib/ovirtsdk4/types.rb', line 43990 def logical_units @logical_units end |
#logical_units=(list) ⇒ Object
Sets the value of the logical_units
attribute.
43999 44000 44001 44002 44003 44004 44005 44006 44007 44008 44009 |
# File 'lib/ovirtsdk4/types.rb', line 43999 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.
44016 44017 44018 |
# File 'lib/ovirtsdk4/types.rb', line 44016 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
44025 44026 44027 |
# File 'lib/ovirtsdk4/types.rb', line 44025 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
44034 44035 44036 |
# File 'lib/ovirtsdk4/types.rb', line 44034 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
44043 44044 44045 |
# File 'lib/ovirtsdk4/types.rb', line 44043 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
44052 44053 44054 |
# File 'lib/ovirtsdk4/types.rb', line 44052 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
44061 44062 44063 |
# File 'lib/ovirtsdk4/types.rb', line 44061 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
44070 44071 44072 |
# File 'lib/ovirtsdk4/types.rb', line 44070 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
44079 44080 44081 |
# File 'lib/ovirtsdk4/types.rb', line 44079 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
44088 44089 44090 |
# File 'lib/ovirtsdk4/types.rb', line 44088 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
44097 44098 44099 |
# File 'lib/ovirtsdk4/types.rb', line 44097 def nfs_version=(value) @nfs_version = value end |
#override_luns ⇒ Boolean
Returns the value of the override_luns
attribute.
44106 44107 44108 |
# File 'lib/ovirtsdk4/types.rb', line 44106 def override_luns @override_luns end |
#override_luns=(value) ⇒ Object
Sets the value of the override_luns
attribute.
44115 44116 44117 |
# File 'lib/ovirtsdk4/types.rb', line 44115 def override_luns=(value) @override_luns = value end |
#password ⇒ String
Returns the value of the password
attribute.
44124 44125 44126 |
# File 'lib/ovirtsdk4/types.rb', line 44124 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
44133 44134 44135 |
# File 'lib/ovirtsdk4/types.rb', line 44133 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
44142 44143 44144 |
# File 'lib/ovirtsdk4/types.rb', line 44142 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
44151 44152 44153 |
# File 'lib/ovirtsdk4/types.rb', line 44151 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
44160 44161 44162 |
# File 'lib/ovirtsdk4/types.rb', line 44160 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
44169 44170 44171 |
# File 'lib/ovirtsdk4/types.rb', line 44169 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
44178 44179 44180 |
# File 'lib/ovirtsdk4/types.rb', line 44178 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
44187 44188 44189 |
# File 'lib/ovirtsdk4/types.rb', line 44187 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
44196 44197 44198 |
# File 'lib/ovirtsdk4/types.rb', line 44196 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
44205 44206 44207 |
# File 'lib/ovirtsdk4/types.rb', line 44205 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
44214 44215 44216 |
# File 'lib/ovirtsdk4/types.rb', line 44214 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
44223 44224 44225 |
# File 'lib/ovirtsdk4/types.rb', line 44223 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
44232 44233 44234 |
# File 'lib/ovirtsdk4/types.rb', line 44232 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
44241 44242 44243 |
# File 'lib/ovirtsdk4/types.rb', line 44241 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
44250 44251 44252 |
# File 'lib/ovirtsdk4/types.rb', line 44250 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
44259 44260 44261 |
# File 'lib/ovirtsdk4/types.rb', line 44259 def vfs_type=(value) @vfs_type = value end |
#volume_group ⇒ VolumeGroup
Returns the value of the volume_group
attribute.
44268 44269 44270 |
# File 'lib/ovirtsdk4/types.rb', line 44268 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.
44281 44282 44283 44284 44285 44286 |
# File 'lib/ovirtsdk4/types.rb', line 44281 def volume_group=(value) if value.is_a?(Hash) value = VolumeGroup.new(value) end @volume_group = value end |