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.
46590 46591 46592 46593 46594 46595 46596 46597 46598 46599 46600 46601 46602 46603 46604 46605 46606 46607 46608 46609 46610 46611 |
# File 'lib/ovirtsdk4/types.rb', line 46590 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.
46616 46617 46618 46619 46620 46621 46622 46623 46624 46625 46626 46627 46628 46629 46630 46631 46632 46633 46634 46635 46636 46637 |
# File 'lib/ovirtsdk4/types.rb', line 46616 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.
46089 46090 46091 |
# File 'lib/ovirtsdk4/types.rb', line 46089 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
46098 46099 46100 |
# File 'lib/ovirtsdk4/types.rb', line 46098 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
46107 46108 46109 |
# File 'lib/ovirtsdk4/types.rb', line 46107 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
46116 46117 46118 |
# File 'lib/ovirtsdk4/types.rb', line 46116 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
46125 46126 46127 |
# File 'lib/ovirtsdk4/types.rb', line 46125 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
46134 46135 46136 |
# File 'lib/ovirtsdk4/types.rb', line 46134 def description=(value) @description = value end |
#driver_options ⇒ Array<Property>
Returns the value of the driver_options
attribute.
46143 46144 46145 |
# File 'lib/ovirtsdk4/types.rb', line 46143 def @driver_options end |
#driver_options=(list) ⇒ Object
Sets the value of the driver_options
attribute.
46152 46153 46154 46155 46156 46157 46158 46159 46160 46161 46162 |
# File 'lib/ovirtsdk4/types.rb', line 46152 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.
46169 46170 46171 |
# File 'lib/ovirtsdk4/types.rb', line 46169 def @driver_sensitive_options end |
#driver_sensitive_options=(list) ⇒ Object
Sets the value of the driver_sensitive_options
attribute.
46178 46179 46180 46181 46182 46183 46184 46185 46186 46187 46188 |
# File 'lib/ovirtsdk4/types.rb', line 46178 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.
46642 46643 46644 46645 46646 46647 46648 46649 46650 46651 46652 46653 46654 46655 46656 46657 46658 46659 46660 46661 46662 46663 |
# File 'lib/ovirtsdk4/types.rb', line 46642 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.
46195 46196 46197 |
# File 'lib/ovirtsdk4/types.rb', line 46195 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.
46208 46209 46210 46211 46212 46213 |
# File 'lib/ovirtsdk4/types.rb', line 46208 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.
46220 46221 46222 |
# File 'lib/ovirtsdk4/types.rb', line 46220 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
46229 46230 46231 |
# File 'lib/ovirtsdk4/types.rb', line 46229 def id=(value) @id = value end |
#logical_units ⇒ Array<LogicalUnit>
Returns the value of the logical_units
attribute.
46238 46239 46240 |
# File 'lib/ovirtsdk4/types.rb', line 46238 def logical_units @logical_units end |
#logical_units=(list) ⇒ Object
Sets the value of the logical_units
attribute.
46247 46248 46249 46250 46251 46252 46253 46254 46255 46256 46257 |
# File 'lib/ovirtsdk4/types.rb', line 46247 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.
46264 46265 46266 |
# File 'lib/ovirtsdk4/types.rb', line 46264 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
46273 46274 46275 |
# File 'lib/ovirtsdk4/types.rb', line 46273 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
46282 46283 46284 |
# File 'lib/ovirtsdk4/types.rb', line 46282 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
46291 46292 46293 |
# File 'lib/ovirtsdk4/types.rb', line 46291 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
46300 46301 46302 |
# File 'lib/ovirtsdk4/types.rb', line 46300 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
46309 46310 46311 |
# File 'lib/ovirtsdk4/types.rb', line 46309 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
46318 46319 46320 |
# File 'lib/ovirtsdk4/types.rb', line 46318 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
46327 46328 46329 |
# File 'lib/ovirtsdk4/types.rb', line 46327 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
46336 46337 46338 |
# File 'lib/ovirtsdk4/types.rb', line 46336 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
46345 46346 46347 |
# File 'lib/ovirtsdk4/types.rb', line 46345 def nfs_version=(value) @nfs_version = value end |
#override_luns ⇒ Boolean
Returns the value of the override_luns
attribute.
46354 46355 46356 |
# File 'lib/ovirtsdk4/types.rb', line 46354 def override_luns @override_luns end |
#override_luns=(value) ⇒ Object
Sets the value of the override_luns
attribute.
46363 46364 46365 |
# File 'lib/ovirtsdk4/types.rb', line 46363 def override_luns=(value) @override_luns = value end |
#password ⇒ String
Returns the value of the password
attribute.
46372 46373 46374 |
# File 'lib/ovirtsdk4/types.rb', line 46372 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
46381 46382 46383 |
# File 'lib/ovirtsdk4/types.rb', line 46381 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
46390 46391 46392 |
# File 'lib/ovirtsdk4/types.rb', line 46390 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
46399 46400 46401 |
# File 'lib/ovirtsdk4/types.rb', line 46399 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
46408 46409 46410 |
# File 'lib/ovirtsdk4/types.rb', line 46408 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
46417 46418 46419 |
# File 'lib/ovirtsdk4/types.rb', line 46417 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
46426 46427 46428 |
# File 'lib/ovirtsdk4/types.rb', line 46426 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
46435 46436 46437 |
# File 'lib/ovirtsdk4/types.rb', line 46435 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
46444 46445 46446 |
# File 'lib/ovirtsdk4/types.rb', line 46444 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
46453 46454 46455 |
# File 'lib/ovirtsdk4/types.rb', line 46453 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
46462 46463 46464 |
# File 'lib/ovirtsdk4/types.rb', line 46462 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
46471 46472 46473 |
# File 'lib/ovirtsdk4/types.rb', line 46471 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
46480 46481 46482 |
# File 'lib/ovirtsdk4/types.rb', line 46480 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
46489 46490 46491 |
# File 'lib/ovirtsdk4/types.rb', line 46489 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
46498 46499 46500 |
# File 'lib/ovirtsdk4/types.rb', line 46498 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
46507 46508 46509 |
# File 'lib/ovirtsdk4/types.rb', line 46507 def vfs_type=(value) @vfs_type = value end |
#volume_group ⇒ VolumeGroup
Returns the value of the volume_group
attribute.
46516 46517 46518 |
# File 'lib/ovirtsdk4/types.rb', line 46516 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.
46529 46530 46531 46532 46533 46534 |
# File 'lib/ovirtsdk4/types.rb', line 46529 def volume_group=(value) if value.is_a?(Hash) value = VolumeGroup.new(value) end @volume_group = value end |