Class: OvirtSDK4::StorageConnection

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (StorageConnection) initialize(opts = {})

Creates a new instance of the OvirtSDK4::StorageConnection class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :address (String)

    The value of attribute address.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :mount_options (String)

    The value of attribute mount_options.

  • :name (String)

    The value of attribute name.

  • :nfs_retrans (Integer)

    The value of attribute nfs_retrans.

  • :nfs_timeo (Integer)

    The value of attribute nfs_timeo.

  • :nfs_version (NfsVersion)

    The value of attribute nfs_version.

  • :password (String)

    The value of attribute password.

  • :path (String)

    The value of attribute path.

  • :port (Integer)

    The value of attribute port.

  • :portal (String)

    The value of attribute portal.

  • :target (String)

    The value of attribute target.

  • :type (StorageType)

    The value of attribute type.

  • :username (String)

    The value of attribute username.

  • :vfs_type (String)

    The value of attribute vfs_type.



15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
# File 'lib/ovirtsdk4/types.rb', line 15665

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

Instance Method Details

- (String) address

Returns the value of the address attribute.

Returns:

  • (String)


15295
15296
15297
# File 'lib/ovirtsdk4/types.rb', line 15295

def address
  return @address
end

- (Object) address=(value)

Sets the value of the address attribute.

Parameters:

  • value (String)


15304
15305
15306
# File 'lib/ovirtsdk4/types.rb', line 15304

def address=(value)
  @address = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


15313
15314
15315
# File 'lib/ovirtsdk4/types.rb', line 15313

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


15322
15323
15324
# File 'lib/ovirtsdk4/types.rb', line 15322

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


15331
15332
15333
# File 'lib/ovirtsdk4/types.rb', line 15331

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


15340
15341
15342
# File 'lib/ovirtsdk4/types.rb', line 15340

def description=(value)
  @description = value
end

- (Host) host

Returns the value of the host attribute.

Returns:



15349
15350
15351
# File 'lib/ovirtsdk4/types.rb', line 15349

def host
  return @host
end

- (Object) host=(value)

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.

Parameters:

  • value (Host, Hash)


15362
15363
15364
15365
15366
15367
# File 'lib/ovirtsdk4/types.rb', line 15362

def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


15374
15375
15376
# File 'lib/ovirtsdk4/types.rb', line 15374

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


15383
15384
15385
# File 'lib/ovirtsdk4/types.rb', line 15383

def id=(value)
  @id = value
end

- (String) mount_options

Returns the value of the mount_options attribute.

Returns:

  • (String)


15392
15393
15394
# File 'lib/ovirtsdk4/types.rb', line 15392

def mount_options
  return @mount_options
end

- (Object) mount_options=(value)

Sets the value of the mount_options attribute.

Parameters:

  • value (String)


15401
15402
15403
# File 'lib/ovirtsdk4/types.rb', line 15401

def mount_options=(value)
  @mount_options = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


15410
15411
15412
# File 'lib/ovirtsdk4/types.rb', line 15410

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


15419
15420
15421
# File 'lib/ovirtsdk4/types.rb', line 15419

def name=(value)
  @name = value
end

- (Integer) nfs_retrans

Returns the value of the nfs_retrans attribute.

Returns:

  • (Integer)


15428
15429
15430
# File 'lib/ovirtsdk4/types.rb', line 15428

def nfs_retrans
  return @nfs_retrans
end

- (Object) nfs_retrans=(value)

Sets the value of the nfs_retrans attribute.

Parameters:

  • value (Integer)


15437
15438
15439
# File 'lib/ovirtsdk4/types.rb', line 15437

def nfs_retrans=(value)
  @nfs_retrans = value
end

- (Integer) nfs_timeo

Returns the value of the nfs_timeo attribute.

Returns:

  • (Integer)


15446
15447
15448
# File 'lib/ovirtsdk4/types.rb', line 15446

def nfs_timeo
  return @nfs_timeo
end

- (Object) nfs_timeo=(value)

Sets the value of the nfs_timeo attribute.

Parameters:

  • value (Integer)


15455
15456
15457
# File 'lib/ovirtsdk4/types.rb', line 15455

def nfs_timeo=(value)
  @nfs_timeo = value
end

- (NfsVersion) nfs_version

Returns the value of the nfs_version attribute.

Returns:



15464
15465
15466
# File 'lib/ovirtsdk4/types.rb', line 15464

def nfs_version
  return @nfs_version
end

- (Object) nfs_version=(value)

Sets the value of the nfs_version attribute.

Parameters:



15473
15474
15475
# File 'lib/ovirtsdk4/types.rb', line 15473

def nfs_version=(value)
  @nfs_version = value
end

- (String) password

Returns the value of the password attribute.

Returns:

  • (String)


15482
15483
15484
# File 'lib/ovirtsdk4/types.rb', line 15482

def password
  return @password
end

- (Object) password=(value)

Sets the value of the password attribute.

Parameters:

  • value (String)


15491
15492
15493
# File 'lib/ovirtsdk4/types.rb', line 15491

def password=(value)
  @password = value
end

- (String) path

Returns the value of the path attribute.

Returns:

  • (String)


15500
15501
15502
# File 'lib/ovirtsdk4/types.rb', line 15500

def path
  return @path
end

- (Object) path=(value)

Sets the value of the path attribute.

Parameters:

  • value (String)


15509
15510
15511
# File 'lib/ovirtsdk4/types.rb', line 15509

def path=(value)
  @path = value
end

- (Integer) port

Returns the value of the port attribute.

Returns:

  • (Integer)


15518
15519
15520
# File 'lib/ovirtsdk4/types.rb', line 15518

def port
  return @port
end

- (Object) port=(value)

Sets the value of the port attribute.

Parameters:

  • value (Integer)


15527
15528
15529
# File 'lib/ovirtsdk4/types.rb', line 15527

def port=(value)
  @port = value
end

- (String) portal

Returns the value of the portal attribute.

Returns:

  • (String)


15536
15537
15538
# File 'lib/ovirtsdk4/types.rb', line 15536

def portal
  return @portal
end

- (Object) portal=(value)

Sets the value of the portal attribute.

Parameters:

  • value (String)


15545
15546
15547
# File 'lib/ovirtsdk4/types.rb', line 15545

def portal=(value)
  @portal = value
end

- (String) target

Returns the value of the target attribute.

Returns:

  • (String)


15554
15555
15556
# File 'lib/ovirtsdk4/types.rb', line 15554

def target
  return @target
end

- (Object) target=(value)

Sets the value of the target attribute.

Parameters:

  • value (String)


15563
15564
15565
# File 'lib/ovirtsdk4/types.rb', line 15563

def target=(value)
  @target = value
end

- (StorageType) type

Returns the value of the type attribute.

Returns:



15572
15573
15574
# File 'lib/ovirtsdk4/types.rb', line 15572

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:



15581
15582
15583
# File 'lib/ovirtsdk4/types.rb', line 15581

def type=(value)
  @type = value
end

- (String) username

Returns the value of the username attribute.

Returns:

  • (String)


15590
15591
15592
# File 'lib/ovirtsdk4/types.rb', line 15590

def username
  return @username
end

- (Object) username=(value)

Sets the value of the username attribute.

Parameters:

  • value (String)


15599
15600
15601
# File 'lib/ovirtsdk4/types.rb', line 15599

def username=(value)
  @username = value
end

- (String) vfs_type

Returns the value of the vfs_type attribute.

Returns:

  • (String)


15608
15609
15610
# File 'lib/ovirtsdk4/types.rb', line 15608

def vfs_type
  return @vfs_type
end

- (Object) vfs_type=(value)

Sets the value of the vfs_type attribute.

Parameters:

  • value (String)


15617
15618
15619
# File 'lib/ovirtsdk4/types.rb', line 15617

def vfs_type=(value)
  @vfs_type = value
end