Class: OvirtSDK4::StorageConnection
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::StorageConnection
- 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 = {}) ⇒ StorageConnection
constructor
Creates a new instance of the StorageConnection class.
-
#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. -
#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.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ StorageConnection
Creates a new instance of the OvirtSDK4::StorageConnection class.
20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 |
# File 'lib/ovirtsdk4/types.rb', line 20542 def initialize(opts = {}) super(opts) self.address = opts[:address] self.host = opts[:host] self. = opts[:mount_options] self.nfs_retrans = opts[:nfs_retrans] self.nfs_timeo = opts[:nfs_timeo] self.nfs_version = opts[:nfs_version] 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] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 |
# File 'lib/ovirtsdk4/types.rb', line 20563 def ==(other) super && @address == other.address && @host == other.host && == other. && @nfs_retrans == other.nfs_retrans && @nfs_timeo == other.nfs_timeo && @nfs_version == other.nfs_version && @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 end |
#address ⇒ String
Returns the value of the address
attribute.
20172 20173 20174 |
# File 'lib/ovirtsdk4/types.rb', line 20172 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
20181 20182 20183 |
# File 'lib/ovirtsdk4/types.rb', line 20181 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
20190 20191 20192 |
# File 'lib/ovirtsdk4/types.rb', line 20190 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
20199 20200 20201 |
# File 'lib/ovirtsdk4/types.rb', line 20199 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
20208 20209 20210 |
# File 'lib/ovirtsdk4/types.rb', line 20208 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
20217 20218 20219 |
# File 'lib/ovirtsdk4/types.rb', line 20217 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 |
# File 'lib/ovirtsdk4/types.rb', line 20584 def hash super + @address.hash + @host.hash + .hash + @nfs_retrans.hash + @nfs_timeo.hash + @nfs_version.hash + @password.hash + @path.hash + @port.hash + @portal.hash + @target.hash + @type.hash + @username.hash + @vfs_type.hash end |
#host ⇒ Host
Returns the value of the host
attribute.
20226 20227 20228 |
# File 'lib/ovirtsdk4/types.rb', line 20226 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host
attribute.
The value
parameter can be an instance of 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.
20239 20240 20241 20242 20243 20244 |
# File 'lib/ovirtsdk4/types.rb', line 20239 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.
20251 20252 20253 |
# File 'lib/ovirtsdk4/types.rb', line 20251 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
20260 20261 20262 |
# File 'lib/ovirtsdk4/types.rb', line 20260 def id=(value) @id = value end |
#mount_options ⇒ String
Returns the value of the mount_options
attribute.
20269 20270 20271 |
# File 'lib/ovirtsdk4/types.rb', line 20269 def end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
20278 20279 20280 |
# File 'lib/ovirtsdk4/types.rb', line 20278 def (value) = value end |
#name ⇒ String
Returns the value of the name
attribute.
20287 20288 20289 |
# File 'lib/ovirtsdk4/types.rb', line 20287 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
20296 20297 20298 |
# File 'lib/ovirtsdk4/types.rb', line 20296 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
20305 20306 20307 |
# File 'lib/ovirtsdk4/types.rb', line 20305 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
20314 20315 20316 |
# File 'lib/ovirtsdk4/types.rb', line 20314 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
20323 20324 20325 |
# File 'lib/ovirtsdk4/types.rb', line 20323 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
20332 20333 20334 |
# File 'lib/ovirtsdk4/types.rb', line 20332 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
20341 20342 20343 |
# File 'lib/ovirtsdk4/types.rb', line 20341 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
20350 20351 20352 |
# File 'lib/ovirtsdk4/types.rb', line 20350 def nfs_version=(value) @nfs_version = value end |
#password ⇒ String
Returns the value of the password
attribute.
20359 20360 20361 |
# File 'lib/ovirtsdk4/types.rb', line 20359 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
20368 20369 20370 |
# File 'lib/ovirtsdk4/types.rb', line 20368 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
20377 20378 20379 |
# File 'lib/ovirtsdk4/types.rb', line 20377 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
20386 20387 20388 |
# File 'lib/ovirtsdk4/types.rb', line 20386 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
20395 20396 20397 |
# File 'lib/ovirtsdk4/types.rb', line 20395 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
20404 20405 20406 |
# File 'lib/ovirtsdk4/types.rb', line 20404 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
20413 20414 20415 |
# File 'lib/ovirtsdk4/types.rb', line 20413 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
20422 20423 20424 |
# File 'lib/ovirtsdk4/types.rb', line 20422 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
20431 20432 20433 |
# File 'lib/ovirtsdk4/types.rb', line 20431 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
20440 20441 20442 |
# File 'lib/ovirtsdk4/types.rb', line 20440 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
20449 20450 20451 |
# File 'lib/ovirtsdk4/types.rb', line 20449 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
20458 20459 20460 |
# File 'lib/ovirtsdk4/types.rb', line 20458 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
20467 20468 20469 |
# File 'lib/ovirtsdk4/types.rb', line 20467 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
20476 20477 20478 |
# File 'lib/ovirtsdk4/types.rb', line 20476 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
20485 20486 20487 |
# File 'lib/ovirtsdk4/types.rb', line 20485 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
20494 20495 20496 |
# File 'lib/ovirtsdk4/types.rb', line 20494 def vfs_type=(value) @vfs_type = value end |