Class: Google::Apis::RunV2::GoogleCloudRunV2NfsVolumeSource

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

Overview

Represents an NFS mount.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRunV2NfsVolumeSource

Returns a new instance of GoogleCloudRunV2NfsVolumeSource.



1445
1446
1447
# File 'lib/google/apis/run_v2/classes.rb', line 1445

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

Instance Attribute Details

#pathString

Path that is exported by the NFS server. Corresponds to the JSON property path

Returns:

  • (String)


1432
1433
1434
# File 'lib/google/apis/run_v2/classes.rb', line 1432

def path
  @path
end

#read_onlyBoolean Also known as: read_only?

If true, the volume will be mounted as read only for all mounts. Corresponds to the JSON property readOnly

Returns:

  • (Boolean)


1437
1438
1439
# File 'lib/google/apis/run_v2/classes.rb', line 1437

def read_only
  @read_only
end

#serverString

Hostname or IP address of the NFS server Corresponds to the JSON property server

Returns:

  • (String)


1443
1444
1445
# File 'lib/google/apis/run_v2/classes.rb', line 1443

def server
  @server
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1450
1451
1452
1453
1454
# File 'lib/google/apis/run_v2/classes.rb', line 1450

def update!(**args)
  @path = args[:path] if args.key?(:path)
  @read_only = args[:read_only] if args.key?(:read_only)
  @server = args[:server] if args.key?(:server)
end