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.
20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 |
# File 'lib/ovirtsdk4/types.rb', line 20841 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.
20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 |
# File 'lib/ovirtsdk4/types.rb', line 20863 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.
20444 20445 20446 |
# File 'lib/ovirtsdk4/types.rb', line 20444 def address @address end |
#address=(value) ⇒ Object
Sets the value of the address
attribute.
20453 20454 20455 |
# File 'lib/ovirtsdk4/types.rb', line 20453 def address=(value) @address = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
20462 20463 20464 |
# File 'lib/ovirtsdk4/types.rb', line 20462 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
20471 20472 20473 |
# File 'lib/ovirtsdk4/types.rb', line 20471 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
20480 20481 20482 |
# File 'lib/ovirtsdk4/types.rb', line 20480 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
20489 20490 20491 |
# File 'lib/ovirtsdk4/types.rb', line 20489 def description=(value) @description = value end |
#gluster_volume ⇒ GlusterVolume
Returns the value of the gluster_volume
attribute.
20498 20499 20500 |
# File 'lib/ovirtsdk4/types.rb', line 20498 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.
20511 20512 20513 20514 20515 20516 |
# File 'lib/ovirtsdk4/types.rb', line 20511 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.
20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 |
# File 'lib/ovirtsdk4/types.rb', line 20885 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.
20523 20524 20525 |
# File 'lib/ovirtsdk4/types.rb', line 20523 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.
20536 20537 20538 20539 20540 20541 |
# File 'lib/ovirtsdk4/types.rb', line 20536 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.
20548 20549 20550 |
# File 'lib/ovirtsdk4/types.rb', line 20548 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
20557 20558 20559 |
# File 'lib/ovirtsdk4/types.rb', line 20557 def id=(value) @id = value end |
#mount_options ⇒ String
Returns the value of the mount_options
attribute.
20566 20567 20568 |
# File 'lib/ovirtsdk4/types.rb', line 20566 def @mount_options end |
#mount_options=(value) ⇒ Object
Sets the value of the mount_options
attribute.
20575 20576 20577 |
# File 'lib/ovirtsdk4/types.rb', line 20575 def (value) @mount_options = value end |
#name ⇒ String
Returns the value of the name
attribute.
20584 20585 20586 |
# File 'lib/ovirtsdk4/types.rb', line 20584 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
20593 20594 20595 |
# File 'lib/ovirtsdk4/types.rb', line 20593 def name=(value) @name = value end |
#nfs_retrans ⇒ Integer
Returns the value of the nfs_retrans
attribute.
20602 20603 20604 |
# File 'lib/ovirtsdk4/types.rb', line 20602 def nfs_retrans @nfs_retrans end |
#nfs_retrans=(value) ⇒ Object
Sets the value of the nfs_retrans
attribute.
20611 20612 20613 |
# File 'lib/ovirtsdk4/types.rb', line 20611 def nfs_retrans=(value) @nfs_retrans = value end |
#nfs_timeo ⇒ Integer
Returns the value of the nfs_timeo
attribute.
20620 20621 20622 |
# File 'lib/ovirtsdk4/types.rb', line 20620 def nfs_timeo @nfs_timeo end |
#nfs_timeo=(value) ⇒ Object
Sets the value of the nfs_timeo
attribute.
20629 20630 20631 |
# File 'lib/ovirtsdk4/types.rb', line 20629 def nfs_timeo=(value) @nfs_timeo = value end |
#nfs_version ⇒ NfsVersion
Returns the value of the nfs_version
attribute.
20638 20639 20640 |
# File 'lib/ovirtsdk4/types.rb', line 20638 def nfs_version @nfs_version end |
#nfs_version=(value) ⇒ Object
Sets the value of the nfs_version
attribute.
20647 20648 20649 |
# File 'lib/ovirtsdk4/types.rb', line 20647 def nfs_version=(value) @nfs_version = value end |
#password ⇒ String
Returns the value of the password
attribute.
20656 20657 20658 |
# File 'lib/ovirtsdk4/types.rb', line 20656 def password @password end |
#password=(value) ⇒ Object
Sets the value of the password
attribute.
20665 20666 20667 |
# File 'lib/ovirtsdk4/types.rb', line 20665 def password=(value) @password = value end |
#path ⇒ String
Returns the value of the path
attribute.
20674 20675 20676 |
# File 'lib/ovirtsdk4/types.rb', line 20674 def path @path end |
#path=(value) ⇒ Object
Sets the value of the path
attribute.
20683 20684 20685 |
# File 'lib/ovirtsdk4/types.rb', line 20683 def path=(value) @path = value end |
#port ⇒ Integer
Returns the value of the port
attribute.
20692 20693 20694 |
# File 'lib/ovirtsdk4/types.rb', line 20692 def port @port end |
#port=(value) ⇒ Object
Sets the value of the port
attribute.
20701 20702 20703 |
# File 'lib/ovirtsdk4/types.rb', line 20701 def port=(value) @port = value end |
#portal ⇒ String
Returns the value of the portal
attribute.
20710 20711 20712 |
# File 'lib/ovirtsdk4/types.rb', line 20710 def portal @portal end |
#portal=(value) ⇒ Object
Sets the value of the portal
attribute.
20719 20720 20721 |
# File 'lib/ovirtsdk4/types.rb', line 20719 def portal=(value) @portal = value end |
#target ⇒ String
Returns the value of the target
attribute.
20728 20729 20730 |
# File 'lib/ovirtsdk4/types.rb', line 20728 def target @target end |
#target=(value) ⇒ Object
Sets the value of the target
attribute.
20737 20738 20739 |
# File 'lib/ovirtsdk4/types.rb', line 20737 def target=(value) @target = value end |
#type ⇒ StorageType
Returns the value of the type
attribute.
20746 20747 20748 |
# File 'lib/ovirtsdk4/types.rb', line 20746 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
20755 20756 20757 |
# File 'lib/ovirtsdk4/types.rb', line 20755 def type=(value) @type = value end |
#username ⇒ String
Returns the value of the username
attribute.
20764 20765 20766 |
# File 'lib/ovirtsdk4/types.rb', line 20764 def username @username end |
#username=(value) ⇒ Object
Sets the value of the username
attribute.
20773 20774 20775 |
# File 'lib/ovirtsdk4/types.rb', line 20773 def username=(value) @username = value end |
#vfs_type ⇒ String
Returns the value of the vfs_type
attribute.
20782 20783 20784 |
# File 'lib/ovirtsdk4/types.rb', line 20782 def vfs_type @vfs_type end |
#vfs_type=(value) ⇒ Object
Sets the value of the vfs_type
attribute.
20791 20792 20793 |
# File 'lib/ovirtsdk4/types.rb', line 20791 def vfs_type=(value) @vfs_type = value end |