Class: Google::Apis::RunV2::GoogleCloudRunV2NfsVolumeSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV2::GoogleCloudRunV2NfsVolumeSource
- 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
-
#path ⇒ String
Path that is exported by the NFS server.
-
#read_only ⇒ Boolean
(also: #read_only?)
If true, the volume will be mounted as read only for all mounts.
-
#server ⇒ String
Hostname or IP address of the NFS server Corresponds to the JSON property
server
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRunV2NfsVolumeSource
constructor
A new instance of GoogleCloudRunV2NfsVolumeSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRunV2NfsVolumeSource
Returns a new instance of GoogleCloudRunV2NfsVolumeSource.
1438 1439 1440 |
# File 'lib/google/apis/run_v2/classes.rb', line 1438 def initialize(**args) update!(**args) end |
Instance Attribute Details
#path ⇒ String
Path that is exported by the NFS server.
Corresponds to the JSON property path
1425 1426 1427 |
# File 'lib/google/apis/run_v2/classes.rb', line 1425 def path @path end |
#read_only ⇒ Boolean Also known as: read_only?
If true, the volume will be mounted as read only for all mounts.
Corresponds to the JSON property readOnly
1430 1431 1432 |
# File 'lib/google/apis/run_v2/classes.rb', line 1430 def read_only @read_only end |
#server ⇒ String
Hostname or IP address of the NFS server
Corresponds to the JSON property server
1436 1437 1438 |
# File 'lib/google/apis/run_v2/classes.rb', line 1436 def server @server end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1443 1444 1445 1446 1447 |
# File 'lib/google/apis/run_v2/classes.rb', line 1443 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 |