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.
20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 20728 |
# File 'lib/ovirtsdk4/types.rb', line 20712 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.
20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 |
# File 'lib/ovirtsdk4/types.rb', line 20733 def ==(other) super && @address == other.address && @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 |
#hash ⇒ Object
Generates a hash value for this object.
20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 |
# File 'lib/ovirtsdk4/types.rb', line 20754 def hash super + @address.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.
20396 20397 20398 |
# File 'lib/ovirtsdk4/types.rb', line 20396 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.
20409 20410 20411 20412 20413 20414 |
# File 'lib/ovirtsdk4/types.rb', line 20409 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.
20421 20422 20423 |
# File 'lib/ovirtsdk4/types.rb', line 20421 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
20430 20431 20432 |
# File 'lib/ovirtsdk4/types.rb', line 20430 def id=(value) @id = value end |
#mount_options ⇒ String
Returns the value of the mount_options
attribute.
20439 20440 20441 |
# File 'lib/ovirtsdk4/types.rb', line 20439 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
20448 20449 20450 |
# File 'lib/ovirtsdk4/types.rb', line 20448 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
20457 20458 20459 |
# File 'lib/ovirtsdk4/types.rb', line 20457 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
20466 20467 20468 |
# File 'lib/ovirtsdk4/types.rb', line 20466 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
20475 20476 20477 |
# File 'lib/ovirtsdk4/types.rb', line 20475 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
20484 20485 20486 |
# File 'lib/ovirtsdk4/types.rb', line 20484 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
20493 20494 20495 |
# File 'lib/ovirtsdk4/types.rb', line 20493 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
20502 20503 20504 |
# File 'lib/ovirtsdk4/types.rb', line 20502 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
20511 20512 20513 |
# File 'lib/ovirtsdk4/types.rb', line 20511 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
20520 20521 20522 |
# File 'lib/ovirtsdk4/types.rb', line 20520 def nfs_version=(value) @nfs_version = value end |
#password ⇒ String
Returns the value of the password
attribute.
20529 20530 20531 |
# File 'lib/ovirtsdk4/types.rb', line 20529 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
20538 20539 20540 |
# File 'lib/ovirtsdk4/types.rb', line 20538 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
20547 20548 20549 |
# File 'lib/ovirtsdk4/types.rb', line 20547 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
20556 20557 20558 |
# File 'lib/ovirtsdk4/types.rb', line 20556 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
20565 20566 20567 |
# File 'lib/ovirtsdk4/types.rb', line 20565 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
20574 20575 20576 |
# File 'lib/ovirtsdk4/types.rb', line 20574 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
20583 20584 20585 |
# File 'lib/ovirtsdk4/types.rb', line 20583 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
20592 20593 20594 |
# File 'lib/ovirtsdk4/types.rb', line 20592 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
20601 20602 20603 |
# File 'lib/ovirtsdk4/types.rb', line 20601 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
20610 20611 20612 |
# File 'lib/ovirtsdk4/types.rb', line 20610 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
20619 20620 20621 |
# File 'lib/ovirtsdk4/types.rb', line 20619 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
20628 20629 20630 |
# File 'lib/ovirtsdk4/types.rb', line 20628 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
20637 20638 20639 |
# File 'lib/ovirtsdk4/types.rb', line 20637 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
20646 20647 20648 |
# File 'lib/ovirtsdk4/types.rb', line 20646 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
20655 20656 20657 |
# File 'lib/ovirtsdk4/types.rb', line 20655 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
20664 20665 20666 |
# File 'lib/ovirtsdk4/types.rb', line 20664 def vfs_type=(value) @vfs_type = value end |