Class: Google::Apis::RunV1::CsiVolumeSource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#driverString

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

Returns:

  • (String)


250
251
252
# File 'lib/google/apis/run_v1/classes.rb', line 250

def driver
  @driver
end

#read_onlyBoolean Also known as: read_only?

If true, mount the volume as read only. Defaults to false. Corresponds to the JSON property readOnly

Returns:

  • (Boolean)


255
256
257
# File 'lib/google/apis/run_v1/classes.rb', line 255

def read_only
  @read_only
end

#volume_attributesHash<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

Returns:

  • (Hash<String,String>)


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