Class: Google::Apis::MigrationcenterV1::FstabEntry

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb

Overview

Single fstab entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FstabEntry

Returns a new instance of FstabEntry.



1482
1483
1484
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1482

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#fileString

The mount point for the filesystem. Corresponds to the JSON property file

Returns:

  • (String)


1454
1455
1456
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1454

def file
  @file
end

#freqFixnum

Used by dump to determine which filesystems need to be dumped. Corresponds to the JSON property freq

Returns:

  • (Fixnum)


1459
1460
1461
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1459

def freq
  @freq
end

#mntopsString

Mount options associated with the filesystem. Corresponds to the JSON property mntops

Returns:

  • (String)


1464
1465
1466
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1464

def mntops
  @mntops
end

#passnoFixnum

Used by the fsck(8) program to determine the order in which filesystem checks are done at reboot time. Corresponds to the JSON property passno

Returns:

  • (Fixnum)


1470
1471
1472
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1470

def passno
  @passno
end

#specString

The block special device or remote filesystem to be mounted. Corresponds to the JSON property spec

Returns:

  • (String)


1475
1476
1477
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1475

def spec
  @spec
end

#vfstypeString

The type of the filesystem. Corresponds to the JSON property vfstype

Returns:

  • (String)


1480
1481
1482
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1480

def vfstype
  @vfstype
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1487
1488
1489
1490
1491
1492
1493
1494
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1487

def update!(**args)
  @file = args[:file] if args.key?(:file)
  @freq = args[:freq] if args.key?(:freq)
  @mntops = args[:mntops] if args.key?(:mntops)
  @passno = args[:passno] if args.key?(:passno)
  @spec = args[:spec] if args.key?(:spec)
  @vfstype = args[:vfstype] if args.key?(:vfstype)
end