Class: CDK8sPlus25::K8S::AzureFileVolumeSource
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- CDK8sPlus25::K8S::AzureFileVolumeSource
- Defined in:
- k8_s/azure_file_volume_source.rb
Overview
AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
Instance Attribute Summary collapse
-
#read_only ⇒ Boolean?
readonly
readOnly defaults to false (read/write).
-
#secret_name ⇒ String
readonly
secretName is the name of secret that contains Azure Storage Account Name and Key.
-
#share_name ⇒ String
readonly
shareName is the azure share Name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(secret_name:, share_name:, read_only: nil) ⇒ AzureFileVolumeSource
constructor
A new instance of AzureFileVolumeSource.
- #to_jsii ⇒ Object
Constructor Details
#initialize(secret_name:, share_name:, read_only: nil) ⇒ AzureFileVolumeSource
Returns a new instance of AzureFileVolumeSource.
10 11 12 13 14 15 16 17 |
# File 'k8_s/azure_file_volume_source.rb', line 10 def initialize(secret_name:, share_name:, read_only: nil) @secret_name = secret_name Jsii::Type.check_type(@secret_name, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "secretName") @share_name = share_name Jsii::Type.check_type(@share_name, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "shareName") @read_only = read_only Jsii::Type.check_type(@read_only, "eyJwcmltaXRpdmUiOiJib29sZWFuIn0=", "readOnly") unless @read_only.nil? end |
Instance Attribute Details
#read_only ⇒ Boolean? (readonly)
readOnly defaults to false (read/write).
ReadOnly here will force the ReadOnly setting in VolumeMounts.
32 33 34 |
# File 'k8_s/azure_file_volume_source.rb', line 32 def read_only @read_only end |
#secret_name ⇒ String (readonly)
secretName is the name of secret that contains Azure Storage Account Name and Key.
22 23 24 |
# File 'k8_s/azure_file_volume_source.rb', line 22 def secret_name @secret_name end |
#share_name ⇒ String (readonly)
shareName is the azure share Name.
26 27 28 |
# File 'k8_s/azure_file_volume_source.rb', line 26 def share_name @share_name end |
Class Method Details
.jsii_properties ⇒ Object
34 35 36 37 38 39 40 |
# File 'k8_s/azure_file_volume_source.rb', line 34 def self.jsii_properties { :secret_name => "secretName", :share_name => "shareName", :read_only => "readOnly", } end |
Instance Method Details
#to_jsii ⇒ Object
42 43 44 45 46 47 48 49 50 |
# File 'k8_s/azure_file_volume_source.rb', line 42 def to_jsii result = {} result.merge!({ "secretName" => @secret_name, "shareName" => @share_name, "readOnly" => @read_only, }) result.compact end |