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.
20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 |
# File 'lib/ovirtsdk4/types.rb', line 20739 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.
20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 |
# File 'lib/ovirtsdk4/types.rb', line 20761 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.
20342 20343 20344 |
# File 'lib/ovirtsdk4/types.rb', line 20342 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
20351 20352 20353 |
# File 'lib/ovirtsdk4/types.rb', line 20351 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
20360 20361 20362 |
# File 'lib/ovirtsdk4/types.rb', line 20360 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
20369 20370 20371 |
# File 'lib/ovirtsdk4/types.rb', line 20369 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
20378 20379 20380 |
# File 'lib/ovirtsdk4/types.rb', line 20378 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
20387 20388 20389 |
# File 'lib/ovirtsdk4/types.rb', line 20387 def description=(value) @description = value end |
#gluster_volume ⇒ GlusterVolume
Returns the value of the gluster_volume
attribute.
20396 20397 20398 |
# File 'lib/ovirtsdk4/types.rb', line 20396 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.
20409 20410 20411 20412 20413 20414 |
# File 'lib/ovirtsdk4/types.rb', line 20409 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.
20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 |
# File 'lib/ovirtsdk4/types.rb', line 20783 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.
20421 20422 20423 |
# File 'lib/ovirtsdk4/types.rb', line 20421 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.
20434 20435 20436 20437 20438 20439 |
# File 'lib/ovirtsdk4/types.rb', line 20434 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.
20446 20447 20448 |
# File 'lib/ovirtsdk4/types.rb', line 20446 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
20455 20456 20457 |
# File 'lib/ovirtsdk4/types.rb', line 20455 def id=(value) @id = value end |
#mount_options ⇒ String
Returns the value of the mount_options
attribute.
20464 20465 20466 |
# File 'lib/ovirtsdk4/types.rb', line 20464 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
20473 20474 20475 |
# File 'lib/ovirtsdk4/types.rb', line 20473 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
20482 20483 20484 |
# File 'lib/ovirtsdk4/types.rb', line 20482 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
20491 20492 20493 |
# File 'lib/ovirtsdk4/types.rb', line 20491 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
20500 20501 20502 |
# File 'lib/ovirtsdk4/types.rb', line 20500 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
20509 20510 20511 |
# File 'lib/ovirtsdk4/types.rb', line 20509 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
20518 20519 20520 |
# File 'lib/ovirtsdk4/types.rb', line 20518 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
20527 20528 20529 |
# File 'lib/ovirtsdk4/types.rb', line 20527 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
20536 20537 20538 |
# File 'lib/ovirtsdk4/types.rb', line 20536 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
20545 20546 20547 |
# File 'lib/ovirtsdk4/types.rb', line 20545 def nfs_version=(value) @nfs_version = value end |
#password ⇒ String
Returns the value of the password
attribute.
20554 20555 20556 |
# File 'lib/ovirtsdk4/types.rb', line 20554 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
20563 20564 20565 |
# File 'lib/ovirtsdk4/types.rb', line 20563 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
20572 20573 20574 |
# File 'lib/ovirtsdk4/types.rb', line 20572 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
20581 20582 20583 |
# File 'lib/ovirtsdk4/types.rb', line 20581 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
20590 20591 20592 |
# File 'lib/ovirtsdk4/types.rb', line 20590 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
20599 20600 20601 |
# File 'lib/ovirtsdk4/types.rb', line 20599 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
20608 20609 20610 |
# File 'lib/ovirtsdk4/types.rb', line 20608 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
20617 20618 20619 |
# File 'lib/ovirtsdk4/types.rb', line 20617 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
20626 20627 20628 |
# File 'lib/ovirtsdk4/types.rb', line 20626 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
20635 20636 20637 |
# File 'lib/ovirtsdk4/types.rb', line 20635 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
20644 20645 20646 |
# File 'lib/ovirtsdk4/types.rb', line 20644 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
20653 20654 20655 |
# File 'lib/ovirtsdk4/types.rb', line 20653 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
20662 20663 20664 |
# File 'lib/ovirtsdk4/types.rb', line 20662 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
20671 20672 20673 |
# File 'lib/ovirtsdk4/types.rb', line 20671 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
20680 20681 20682 |
# File 'lib/ovirtsdk4/types.rb', line 20680 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
20689 20690 20691 |
# File 'lib/ovirtsdk4/types.rb', line 20689 def vfs_type=(value) @vfs_type = value end |