Class: Google::Apis::RunV1::CsiVolumeSource
- Inherits:
-
Object
- Object
- Google::Apis::RunV1::CsiVolumeSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/run_v1/classes.rb,
lib/google/apis/run_v1/representations.rb,
lib/google/apis/run_v1/representations.rb
Overview
Storage volume source using the Container Storage Interface.
Instance Attribute Summary collapse
-
#driver ⇒ String
name of the CSI driver for the requested storage system.
-
#read_only ⇒ Boolean
(also: #read_only?)
If true, mount the volume as read only.
-
#volume_attributes ⇒ Hash<String,String>
stores driver specific attributes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CsiVolumeSource
constructor
A new instance of CsiVolumeSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CsiVolumeSource
Returns a new instance of CsiVolumeSource.
266 267 268 |
# File 'lib/google/apis/run_v1/classes.rb', line 266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#driver ⇒ String
name of the CSI driver for the requested storage system. Cloud Run supports
the following drivers: * gcsfuse.run.googleapis.com : Mount a Cloud Storage
Bucket as a volume.
Corresponds to the JSON property driver
250 251 252 |
# File 'lib/google/apis/run_v1/classes.rb', line 250 def driver @driver end |
#read_only ⇒ Boolean Also known as: read_only?
If true, mount the volume as read only. Defaults to false.
Corresponds to the JSON property readOnly
255 256 257 |
# File 'lib/google/apis/run_v1/classes.rb', line 255 def read_only @read_only end |
#volume_attributes ⇒ Hash<String,String>
stores driver specific attributes. For Google Cloud Storage volumes, the
following attributes are supported: * bucketName: the name of the Cloud
Storage bucket to mount. The Cloud Run Service identity must have access to
this bucket.
Corresponds to the JSON property volumeAttributes
264 265 266 |
# File 'lib/google/apis/run_v1/classes.rb', line 264 def volume_attributes @volume_attributes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
271 272 273 274 275 |
# File 'lib/google/apis/run_v1/classes.rb', line 271 def update!(**args) @driver = args[:driver] if args.key?(:driver) @read_only = args[:read_only] if args.key?(:read_only) @volume_attributes = args[:volume_attributes] if args.key?(:volume_attributes) end |