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.
44262 44263 44264 44265 44266 44267 44268 44269 44270 44271 44272 44273 44274 44275 44276 44277 44278 44279 44280 44281 |
# File 'lib/ovirtsdk4/types.rb', line 44262 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.
44286 44287 44288 44289 44290 44291 44292 44293 44294 44295 44296 44297 44298 44299 44300 44301 44302 44303 44304 44305 |
# File 'lib/ovirtsdk4/types.rb', line 44286 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.
43817 43818 43819 |
# File 'lib/ovirtsdk4/types.rb', line 43817 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
43826 43827 43828 |
# File 'lib/ovirtsdk4/types.rb', line 43826 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
43835 43836 43837 |
# File 'lib/ovirtsdk4/types.rb', line 43835 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
43844 43845 43846 |
# File 'lib/ovirtsdk4/types.rb', line 43844 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
43853 43854 43855 |
# File 'lib/ovirtsdk4/types.rb', line 43853 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
43862 43863 43864 |
# File 'lib/ovirtsdk4/types.rb', line 43862 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
44310 44311 44312 44313 44314 44315 44316 44317 44318 44319 44320 44321 44322 44323 44324 44325 44326 44327 44328 44329 |
# File 'lib/ovirtsdk4/types.rb', line 44310 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.
43871 43872 43873 |
# File 'lib/ovirtsdk4/types.rb', line 43871 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.
43884 43885 43886 43887 43888 43889 |
# File 'lib/ovirtsdk4/types.rb', line 43884 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.
43896 43897 43898 |
# File 'lib/ovirtsdk4/types.rb', line 43896 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
43905 43906 43907 |
# File 'lib/ovirtsdk4/types.rb', line 43905 def id=(value) @id = value end |
#logical_units ⇒ Array<LogicalUnit>
Returns the value of the logical_units
attribute.
43914 43915 43916 |
# File 'lib/ovirtsdk4/types.rb', line 43914 def logical_units @logical_units end |
#logical_units=(list) ⇒ Object
Sets the value of the logical_units
attribute.
43923 43924 43925 43926 43927 43928 43929 43930 43931 43932 43933 |
# File 'lib/ovirtsdk4/types.rb', line 43923 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.
43940 43941 43942 |
# File 'lib/ovirtsdk4/types.rb', line 43940 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
43949 43950 43951 |
# File 'lib/ovirtsdk4/types.rb', line 43949 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
43958 43959 43960 |
# File 'lib/ovirtsdk4/types.rb', line 43958 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
43967 43968 43969 |
# File 'lib/ovirtsdk4/types.rb', line 43967 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
43976 43977 43978 |
# File 'lib/ovirtsdk4/types.rb', line 43976 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
43985 43986 43987 |
# File 'lib/ovirtsdk4/types.rb', line 43985 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
43994 43995 43996 |
# File 'lib/ovirtsdk4/types.rb', line 43994 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
44003 44004 44005 |
# File 'lib/ovirtsdk4/types.rb', line 44003 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
44012 44013 44014 |
# File 'lib/ovirtsdk4/types.rb', line 44012 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
44021 44022 44023 |
# File 'lib/ovirtsdk4/types.rb', line 44021 def nfs_version=(value) @nfs_version = value end |
#override_luns ⇒ Boolean
Returns the value of the override_luns
attribute.
44030 44031 44032 |
# File 'lib/ovirtsdk4/types.rb', line 44030 def override_luns @override_luns end |
#override_luns=(value) ⇒ Object
Sets the value of the override_luns
attribute.
44039 44040 44041 |
# File 'lib/ovirtsdk4/types.rb', line 44039 def override_luns=(value) @override_luns = value end |
#password ⇒ String
Returns the value of the password
attribute.
44048 44049 44050 |
# File 'lib/ovirtsdk4/types.rb', line 44048 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
44057 44058 44059 |
# File 'lib/ovirtsdk4/types.rb', line 44057 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
44066 44067 44068 |
# File 'lib/ovirtsdk4/types.rb', line 44066 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
44075 44076 44077 |
# File 'lib/ovirtsdk4/types.rb', line 44075 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
44084 44085 44086 |
# File 'lib/ovirtsdk4/types.rb', line 44084 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
44093 44094 44095 |
# File 'lib/ovirtsdk4/types.rb', line 44093 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
44102 44103 44104 |
# File 'lib/ovirtsdk4/types.rb', line 44102 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
44111 44112 44113 |
# File 'lib/ovirtsdk4/types.rb', line 44111 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
44120 44121 44122 |
# File 'lib/ovirtsdk4/types.rb', line 44120 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
44129 44130 44131 |
# File 'lib/ovirtsdk4/types.rb', line 44129 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
44138 44139 44140 |
# File 'lib/ovirtsdk4/types.rb', line 44138 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
44147 44148 44149 |
# File 'lib/ovirtsdk4/types.rb', line 44147 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
44156 44157 44158 |
# File 'lib/ovirtsdk4/types.rb', line 44156 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
44165 44166 44167 |
# File 'lib/ovirtsdk4/types.rb', line 44165 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
44174 44175 44176 |
# File 'lib/ovirtsdk4/types.rb', line 44174 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
44183 44184 44185 |
# File 'lib/ovirtsdk4/types.rb', line 44183 def vfs_type=(value) @vfs_type = value end |
#volume_group ⇒ VolumeGroup
Returns the value of the volume_group
attribute.
44192 44193 44194 |
# File 'lib/ovirtsdk4/types.rb', line 44192 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.
44205 44206 44207 44208 44209 44210 |
# File 'lib/ovirtsdk4/types.rb', line 44205 def volume_group=(value) if value.is_a?(Hash) value = VolumeGroup.new(value) end @volume_group = value end |