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. -
#gluster_volume ⇒ GlusterVolume
Returns the value of the
gluster_volume
attribute. -
#gluster_volume=(value) ⇒ Object
Sets the value of the
gluster_volume
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.
21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 |
# File 'lib/ovirtsdk4/types.rb', line 21594 def initialize(opts = {}) super(opts) self.address = opts[:address] self.gluster_volume = opts[:gluster_volume] 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.
21616 21617 21618 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 |
# File 'lib/ovirtsdk4/types.rb', line 21616 def ==(other) super && @address == other.address && @gluster_volume == other.gluster_volume && @host == other.host && @mount_options == 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.
21197 21198 21199 |
# File 'lib/ovirtsdk4/types.rb', line 21197 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
21206 21207 21208 |
# File 'lib/ovirtsdk4/types.rb', line 21206 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
21215 21216 21217 |
# File 'lib/ovirtsdk4/types.rb', line 21215 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
21224 21225 21226 |
# File 'lib/ovirtsdk4/types.rb', line 21224 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
21233 21234 21235 |
# File 'lib/ovirtsdk4/types.rb', line 21233 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
21242 21243 21244 |
# File 'lib/ovirtsdk4/types.rb', line 21242 def description=(value) @description = value end |
#gluster_volume ⇒ GlusterVolume
Returns the value of the gluster_volume
attribute.
21251 21252 21253 |
# File 'lib/ovirtsdk4/types.rb', line 21251 def gluster_volume @gluster_volume end |
#gluster_volume=(value) ⇒ Object
Sets the value of the gluster_volume
attribute.
The value
parameter can be an instance of GlusterVolume 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.
21264 21265 21266 21267 21268 21269 |
# File 'lib/ovirtsdk4/types.rb', line 21264 def gluster_volume=(value) if value.is_a?(Hash) value = GlusterVolume.new(value) end @gluster_volume = value end |
#hash ⇒ Object
Generates a hash value for this object.
21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 |
# File 'lib/ovirtsdk4/types.rb', line 21638 def hash super + @address.hash + @gluster_volume.hash + @host.hash + @mount_options.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.
21276 21277 21278 |
# File 'lib/ovirtsdk4/types.rb', line 21276 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.
21289 21290 21291 21292 21293 21294 |
# File 'lib/ovirtsdk4/types.rb', line 21289 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.
21301 21302 21303 |
# File 'lib/ovirtsdk4/types.rb', line 21301 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
21310 21311 21312 |
# File 'lib/ovirtsdk4/types.rb', line 21310 def id=(value) @id = value end |
#mount_options ⇒ String
Returns the value of the mount_options
attribute.
21319 21320 21321 |
# File 'lib/ovirtsdk4/types.rb', line 21319 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
21328 21329 21330 |
# File 'lib/ovirtsdk4/types.rb', line 21328 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
21337 21338 21339 |
# File 'lib/ovirtsdk4/types.rb', line 21337 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
21346 21347 21348 |
# File 'lib/ovirtsdk4/types.rb', line 21346 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
21355 21356 21357 |
# File 'lib/ovirtsdk4/types.rb', line 21355 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
21364 21365 21366 |
# File 'lib/ovirtsdk4/types.rb', line 21364 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
21373 21374 21375 |
# File 'lib/ovirtsdk4/types.rb', line 21373 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
21382 21383 21384 |
# File 'lib/ovirtsdk4/types.rb', line 21382 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
21391 21392 21393 |
# File 'lib/ovirtsdk4/types.rb', line 21391 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
21400 21401 21402 |
# File 'lib/ovirtsdk4/types.rb', line 21400 def nfs_version=(value) @nfs_version = value end |
#password ⇒ String
Returns the value of the password
attribute.
21409 21410 21411 |
# File 'lib/ovirtsdk4/types.rb', line 21409 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
21418 21419 21420 |
# File 'lib/ovirtsdk4/types.rb', line 21418 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
21427 21428 21429 |
# File 'lib/ovirtsdk4/types.rb', line 21427 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
21436 21437 21438 |
# File 'lib/ovirtsdk4/types.rb', line 21436 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
21445 21446 21447 |
# File 'lib/ovirtsdk4/types.rb', line 21445 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
21454 21455 21456 |
# File 'lib/ovirtsdk4/types.rb', line 21454 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
21463 21464 21465 |
# File 'lib/ovirtsdk4/types.rb', line 21463 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
21472 21473 21474 |
# File 'lib/ovirtsdk4/types.rb', line 21472 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
21481 21482 21483 |
# File 'lib/ovirtsdk4/types.rb', line 21481 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
21490 21491 21492 |
# File 'lib/ovirtsdk4/types.rb', line 21490 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
21499 21500 21501 |
# File 'lib/ovirtsdk4/types.rb', line 21499 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
21508 21509 21510 |
# File 'lib/ovirtsdk4/types.rb', line 21508 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
21517 21518 21519 |
# File 'lib/ovirtsdk4/types.rb', line 21517 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
21526 21527 21528 |
# File 'lib/ovirtsdk4/types.rb', line 21526 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
21535 21536 21537 |
# File 'lib/ovirtsdk4/types.rb', line 21535 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
21544 21545 21546 |
# File 'lib/ovirtsdk4/types.rb', line 21544 def vfs_type=(value) @vfs_type = value end |