class OvirtSDK4::StorageConnection
Public Class Methods
Creates a new instance of the {StorageConnection} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [String] :address The value of attribute `address`.
@option opts [String] :comment The value of attribute `comment`.
@option opts [String] :description The value of attribute `description`.
@option opts [GlusterVolume, Hash] :gluster_volume The value of attribute `gluster_volume`.
@option opts [Host, Hash] :host The value of attribute `host`.
@option opts [String] :id The value of attribute `id`.
@option opts [String] :mount_options The value of attribute `mount_options`.
@option opts [String] :name The value of attribute `name`.
@option opts [Integer] :nfs_retrans The value of attribute `nfs_retrans`.
@option opts [Integer] :nfs_timeo The value of attribute `nfs_timeo`.
@option opts [NfsVersion] :nfs_version The value of attribute `nfs_version`.
@option opts [String] :password The value of attribute `password`.
@option opts [String] :path The value of attribute `path`.
@option opts [Integer] :port The value of attribute `port`.
@option opts [String] :portal The value of attribute `portal`.
@option opts [String] :target The value of attribute `target`.
@option opts [StorageType] :type The value of attribute `type`.
@option opts [String] :username The value of attribute `username`.
@option opts [String] :vfs_type The value of attribute `vfs_type`.
# File lib/ovirtsdk4/types.rb, line 20992 def initialize(opts = {}) super(opts) self.address = opts[:address] self.gluster_volume = opts[:gluster_volume] self.host = opts[:host] self.mount_options = 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
Public Instance Methods
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 21014 def ==(other) super && @address == other.address && @gluster_volume == other.gluster_volume && @host == other.host && @mount_options == other.mount_options && @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
Returns the value of the `address` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20595 def address @address end
Sets the value of the `address` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20604 def address=(value) @address = value end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20613 def comment @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20622 def comment=(value) @comment = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20631 def description @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20640 def description=(value) @description = value end
Returns the value of the `gluster_volume` attribute.
@return [GlusterVolume]
# File lib/ovirtsdk4/types.rb, line 20649 def gluster_volume @gluster_volume end
Sets the value of the `gluster_volume` attribute.
@param value [GlusterVolume, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 20662 def gluster_volume=(value) if value.is_a?(Hash) value = GlusterVolume.new(value) end @gluster_volume = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 21036 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
Returns the value of the `host` attribute.
@return [Host]
# File lib/ovirtsdk4/types.rb, line 20674 def host @host end
Sets the value of the `host` attribute.
@param value [Host, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 20687 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20699 def id @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20708 def id=(value) @id = value end
Returns the value of the `mount_options` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20717 def mount_options @mount_options end
Sets the value of the `mount_options` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20726 def mount_options=(value) @mount_options = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20735 def name @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20744 def name=(value) @name = value end
Returns the value of the `nfs_retrans` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 20753 def nfs_retrans @nfs_retrans end
Sets the value of the `nfs_retrans` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 20762 def nfs_retrans=(value) @nfs_retrans = value end
Returns the value of the `nfs_timeo` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 20771 def nfs_timeo @nfs_timeo end
Sets the value of the `nfs_timeo` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 20780 def nfs_timeo=(value) @nfs_timeo = value end
Returns the value of the `nfs_version` attribute.
@return [NfsVersion]
# File lib/ovirtsdk4/types.rb, line 20789 def nfs_version @nfs_version end
Sets the value of the `nfs_version` attribute.
@param value [NfsVersion]
# File lib/ovirtsdk4/types.rb, line 20798 def nfs_version=(value) @nfs_version = value end
Returns the value of the `password` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20807 def password @password end
Sets the value of the `password` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20816 def password=(value) @password = value end
Returns the value of the `path` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20825 def path @path end
Sets the value of the `path` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20834 def path=(value) @path = value end
Returns the value of the `port` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 20843 def port @port end
Sets the value of the `port` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 20852 def port=(value) @port = value end
Returns the value of the `portal` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20861 def portal @portal end
Sets the value of the `portal` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20870 def portal=(value) @portal = value end
Returns the value of the `target` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20879 def target @target end
Sets the value of the `target` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20888 def target=(value) @target = value end
Returns the value of the `type` attribute.
@return [StorageType]
# File lib/ovirtsdk4/types.rb, line 20897 def type @type end
Sets the value of the `type` attribute.
@param value [StorageType]
# File lib/ovirtsdk4/types.rb, line 20906 def type=(value) @type = value end
Returns the value of the `username` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20915 def username @username end
Sets the value of the `username` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20924 def username=(value) @username = value end
Returns the value of the `vfs_type` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 20933 def vfs_type @vfs_type end
Sets the value of the `vfs_type` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 20942 def vfs_type=(value) @vfs_type = value end