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.
44133 44134 44135 44136 44137 44138 44139 44140 44141 44142 44143 44144 44145 44146 44147 44148 44149 44150 44151 44152 |
# File 'lib/ovirtsdk4/types.rb', line 44133 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.
44157 44158 44159 44160 44161 44162 44163 44164 44165 44166 44167 44168 44169 44170 44171 44172 44173 44174 44175 44176 |
# File 'lib/ovirtsdk4/types.rb', line 44157 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.
43688 43689 43690 |
# File 'lib/ovirtsdk4/types.rb', line 43688 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
43697 43698 43699 |
# File 'lib/ovirtsdk4/types.rb', line 43697 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
43706 43707 43708 |
# File 'lib/ovirtsdk4/types.rb', line 43706 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
43715 43716 43717 |
# File 'lib/ovirtsdk4/types.rb', line 43715 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
43724 43725 43726 |
# File 'lib/ovirtsdk4/types.rb', line 43724 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
43733 43734 43735 |
# File 'lib/ovirtsdk4/types.rb', line 43733 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
44181 44182 44183 44184 44185 44186 44187 44188 44189 44190 44191 44192 44193 44194 44195 44196 44197 44198 44199 44200 |
# File 'lib/ovirtsdk4/types.rb', line 44181 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.
43742 43743 43744 |
# File 'lib/ovirtsdk4/types.rb', line 43742 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.
43755 43756 43757 43758 43759 43760 |
# File 'lib/ovirtsdk4/types.rb', line 43755 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.
43767 43768 43769 |
# File 'lib/ovirtsdk4/types.rb', line 43767 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
43776 43777 43778 |
# File 'lib/ovirtsdk4/types.rb', line 43776 def id=(value) @id = value end |
#logical_units ⇒ Array<LogicalUnit>
Returns the value of the logical_units
attribute.
43785 43786 43787 |
# File 'lib/ovirtsdk4/types.rb', line 43785 def logical_units @logical_units end |
#logical_units=(list) ⇒ Object
Sets the value of the logical_units
attribute.
43794 43795 43796 43797 43798 43799 43800 43801 43802 43803 43804 |
# File 'lib/ovirtsdk4/types.rb', line 43794 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.
43811 43812 43813 |
# File 'lib/ovirtsdk4/types.rb', line 43811 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
43820 43821 43822 |
# File 'lib/ovirtsdk4/types.rb', line 43820 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
43829 43830 43831 |
# File 'lib/ovirtsdk4/types.rb', line 43829 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
43838 43839 43840 |
# File 'lib/ovirtsdk4/types.rb', line 43838 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
43847 43848 43849 |
# File 'lib/ovirtsdk4/types.rb', line 43847 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
43856 43857 43858 |
# File 'lib/ovirtsdk4/types.rb', line 43856 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
43865 43866 43867 |
# File 'lib/ovirtsdk4/types.rb', line 43865 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
43874 43875 43876 |
# File 'lib/ovirtsdk4/types.rb', line 43874 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
43883 43884 43885 |
# File 'lib/ovirtsdk4/types.rb', line 43883 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
43892 43893 43894 |
# File 'lib/ovirtsdk4/types.rb', line 43892 def nfs_version=(value) @nfs_version = value end |
#override_luns ⇒ Boolean
Returns the value of the override_luns
attribute.
43901 43902 43903 |
# File 'lib/ovirtsdk4/types.rb', line 43901 def override_luns @override_luns end |
#override_luns=(value) ⇒ Object
Sets the value of the override_luns
attribute.
43910 43911 43912 |
# File 'lib/ovirtsdk4/types.rb', line 43910 def override_luns=(value) @override_luns = value end |
#password ⇒ String
Returns the value of the password
attribute.
43919 43920 43921 |
# File 'lib/ovirtsdk4/types.rb', line 43919 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
43928 43929 43930 |
# File 'lib/ovirtsdk4/types.rb', line 43928 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
43937 43938 43939 |
# File 'lib/ovirtsdk4/types.rb', line 43937 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
43946 43947 43948 |
# File 'lib/ovirtsdk4/types.rb', line 43946 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
43955 43956 43957 |
# File 'lib/ovirtsdk4/types.rb', line 43955 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
43964 43965 43966 |
# File 'lib/ovirtsdk4/types.rb', line 43964 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
43973 43974 43975 |
# File 'lib/ovirtsdk4/types.rb', line 43973 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
43982 43983 43984 |
# File 'lib/ovirtsdk4/types.rb', line 43982 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
43991 43992 43993 |
# File 'lib/ovirtsdk4/types.rb', line 43991 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
44000 44001 44002 |
# File 'lib/ovirtsdk4/types.rb', line 44000 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
44009 44010 44011 |
# File 'lib/ovirtsdk4/types.rb', line 44009 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
44018 44019 44020 |
# File 'lib/ovirtsdk4/types.rb', line 44018 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
44027 44028 44029 |
# File 'lib/ovirtsdk4/types.rb', line 44027 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
44036 44037 44038 |
# File 'lib/ovirtsdk4/types.rb', line 44036 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
44045 44046 44047 |
# File 'lib/ovirtsdk4/types.rb', line 44045 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
44054 44055 44056 |
# File 'lib/ovirtsdk4/types.rb', line 44054 def vfs_type=(value) @vfs_type = value end |
#volume_group ⇒ VolumeGroup
Returns the value of the volume_group
attribute.
44063 44064 44065 |
# File 'lib/ovirtsdk4/types.rb', line 44063 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.
44076 44077 44078 44079 44080 44081 |
# File 'lib/ovirtsdk4/types.rb', line 44076 def volume_group=(value) if value.is_a?(Hash) value = VolumeGroup.new(value) end @volume_group = value end |