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.



1206
1207
1208
# File 'lib/google/apis/run_v2/classes.rb', line 1206

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)


1193
1194
1195
# File 'lib/google/apis/run_v2/classes.rb', line 1193

def path
  @path
end

#read_onlyBoolean Also known as: read_only?

If true, mount the NFS volume as read only Corresponds to the JSON property readOnly

Returns:

  • (Boolean)


1198
1199
1200
# File 'lib/google/apis/run_v2/classes.rb', line 1198

def read_only
  @read_only
end

#serverString

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

Returns:

  • (String)


1204
1205
1206
# File 'lib/google/apis/run_v2/classes.rb', line 1204

def server
  @server
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1211
1212
1213
1214
1215
# File 'lib/google/apis/run_v2/classes.rb', line 1211

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