class OvirtSDK4::StorageConnection

Public Class Methods

new(opts = {}) click to toggle source

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 [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`.

Calls superclass method OvirtSDK4::Identified.new
# File lib/ovirtsdk4/types.rb, line 16034
def initialize(opts = {})
  super(opts)
  self.address = opts[:address]
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.host = opts[:host]
  self.id = opts[:id]
  self.mount_options = opts[:mount_options]
  self.name = opts[:name]
  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

address() click to toggle source

Returns the value of the `address` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15664
def address
  return @address
end
address=(value) click to toggle source

Sets the value of the `address` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15673
def address=(value)
  @address = value
end
comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15682
def comment
  return @comment
end
comment=(value) click to toggle source

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15691
def comment=(value)
  @comment = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15700
def description
  return @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15709
def description=(value)
  @description = value
end
host() click to toggle source

Returns the value of the `host` attribute.

@return [Host]

# File lib/ovirtsdk4/types.rb, line 15718
def host
  return @host
end
host=(value) click to toggle source

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 15731
def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15743
def id
  return @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15752
def id=(value)
  @id = value
end
mount_options() click to toggle source

Returns the value of the `mount_options` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15761
def mount_options
  return @mount_options
end
mount_options=(value) click to toggle source

Sets the value of the `mount_options` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15770
def mount_options=(value)
  @mount_options = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15779
def name
  return @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15788
def name=(value)
  @name = value
end
nfs_retrans() click to toggle source

Returns the value of the `nfs_retrans` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 15797
def nfs_retrans
  return @nfs_retrans
end
nfs_retrans=(value) click to toggle source

Sets the value of the `nfs_retrans` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 15806
def nfs_retrans=(value)
  @nfs_retrans = value
end
nfs_timeo() click to toggle source

Returns the value of the `nfs_timeo` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 15815
def nfs_timeo
  return @nfs_timeo
end
nfs_timeo=(value) click to toggle source

Sets the value of the `nfs_timeo` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 15824
def nfs_timeo=(value)
  @nfs_timeo = value
end
nfs_version() click to toggle source

Returns the value of the `nfs_version` attribute.

@return [NfsVersion]

# File lib/ovirtsdk4/types.rb, line 15833
def nfs_version
  return @nfs_version
end
nfs_version=(value) click to toggle source

Sets the value of the `nfs_version` attribute.

@param value [NfsVersion]

# File lib/ovirtsdk4/types.rb, line 15842
def nfs_version=(value)
  @nfs_version = value
end
password() click to toggle source

Returns the value of the `password` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15851
def password
  return @password
end
password=(value) click to toggle source

Sets the value of the `password` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15860
def password=(value)
  @password = value
end
path() click to toggle source

Returns the value of the `path` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15869
def path
  return @path
end
path=(value) click to toggle source

Sets the value of the `path` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15878
def path=(value)
  @path = value
end
port() click to toggle source

Returns the value of the `port` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 15887
def port
  return @port
end
port=(value) click to toggle source

Sets the value of the `port` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 15896
def port=(value)
  @port = value
end
portal() click to toggle source

Returns the value of the `portal` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15905
def portal
  return @portal
end
portal=(value) click to toggle source

Sets the value of the `portal` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15914
def portal=(value)
  @portal = value
end
target() click to toggle source

Returns the value of the `target` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15923
def target
  return @target
end
target=(value) click to toggle source

Sets the value of the `target` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15932
def target=(value)
  @target = value
end
type() click to toggle source

Returns the value of the `type` attribute.

@return [StorageType]

# File lib/ovirtsdk4/types.rb, line 15941
def type
  return @type
end
type=(value) click to toggle source

Sets the value of the `type` attribute.

@param value [StorageType]

# File lib/ovirtsdk4/types.rb, line 15950
def type=(value)
  @type = value
end
username() click to toggle source

Returns the value of the `username` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15959
def username
  return @username
end
username=(value) click to toggle source

Sets the value of the `username` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15968
def username=(value)
  @username = value
end
vfs_type() click to toggle source

Returns the value of the `vfs_type` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 15977
def vfs_type
  return @vfs_type
end
vfs_type=(value) click to toggle source

Sets the value of the `vfs_type` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 15986
def vfs_type=(value)
  @vfs_type = value
end