Class: CDK8sPlus25::K8S::AzureDiskVolumeSource
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- CDK8sPlus25::K8S::AzureDiskVolumeSource
- Defined in:
- k8_s/azure_disk_volume_source.rb
Overview
AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
Instance Attribute Summary collapse
-
#caching_mode ⇒ String?
readonly
cachingMode is the Host Caching mode: None, Read Only, Read Write.
-
#disk_name ⇒ String
readonly
diskName is the Name of the data disk in the blob storage.
-
#disk_uri ⇒ String
readonly
diskURI is the URI of data disk in the blob storage.
-
#fs_type ⇒ String?
readonly
fsType is Filesystem type to mount.
-
#kind ⇒ String?
readonly
kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set).
-
#read_only ⇒ Boolean?
readonly
readOnly Defaults to false (read/write).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(disk_name:, disk_uri:, caching_mode: nil, fs_type: nil, kind: nil, read_only: nil) ⇒ AzureDiskVolumeSource
constructor
A new instance of AzureDiskVolumeSource.
- #to_jsii ⇒ Object
Constructor Details
#initialize(disk_name:, disk_uri:, caching_mode: nil, fs_type: nil, kind: nil, read_only: nil) ⇒ AzureDiskVolumeSource
Returns a new instance of AzureDiskVolumeSource.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'k8_s/azure_disk_volume_source.rb', line 13 def initialize(disk_name:, disk_uri:, caching_mode: nil, fs_type: nil, kind: nil, read_only: nil) @disk_name = disk_name Jsii::Type.check_type(@disk_name, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "diskName") @disk_uri = disk_uri Jsii::Type.check_type(@disk_uri, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "diskUri") @caching_mode = caching_mode Jsii::Type.check_type(@caching_mode, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "cachingMode") unless @caching_mode.nil? @fs_type = fs_type Jsii::Type.check_type(@fs_type, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "fsType") unless @fs_type.nil? @kind = kind Jsii::Type.check_type(@kind, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "kind") unless @kind.nil? @read_only = read_only Jsii::Type.check_type(@read_only, "eyJwcmltaXRpdmUiOiJib29sZWFuIn0=", "readOnly") unless @read_only.nil? end |
Instance Attribute Details
#caching_mode ⇒ String? (readonly)
cachingMode is the Host Caching mode: None, Read Only, Read Write.
39 40 41 |
# File 'k8_s/azure_disk_volume_source.rb', line 39 def caching_mode @caching_mode end |
#disk_name ⇒ String (readonly)
diskName is the Name of the data disk in the blob storage.
31 32 33 |
# File 'k8_s/azure_disk_volume_source.rb', line 31 def disk_name @disk_name end |
#disk_uri ⇒ String (readonly)
diskURI is the URI of data disk in the blob storage.
35 36 37 |
# File 'k8_s/azure_disk_volume_source.rb', line 35 def disk_uri @disk_uri end |
#fs_type ⇒ String? (readonly)
fsType is Filesystem type to mount.
Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
45 46 47 |
# File 'k8_s/azure_disk_volume_source.rb', line 45 def fs_type @fs_type end |
#kind ⇒ String? (readonly)
kind expected values are Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set).
defaults to shared
51 52 53 |
# File 'k8_s/azure_disk_volume_source.rb', line 51 def kind @kind end |
#read_only ⇒ Boolean? (readonly)
Default: false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.
readOnly Defaults to false (read/write).
ReadOnly here will force the ReadOnly setting in VolumeMounts.
58 59 60 |
# File 'k8_s/azure_disk_volume_source.rb', line 58 def read_only @read_only end |
Class Method Details
.jsii_properties ⇒ Object
60 61 62 63 64 65 66 67 68 69 |
# File 'k8_s/azure_disk_volume_source.rb', line 60 def self.jsii_properties { :disk_name => "diskName", :disk_uri => "diskUri", :caching_mode => "cachingMode", :fs_type => "fsType", :kind => "kind", :read_only => "readOnly", } end |
Instance Method Details
#to_jsii ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'k8_s/azure_disk_volume_source.rb', line 71 def to_jsii result = {} result.merge!({ "diskName" => @disk_name, "diskUri" => @disk_uri, "cachingMode" => @caching_mode, "fsType" => @fs_type, "kind" => @kind, "readOnly" => @read_only, }) result.compact end |