Class: CDK8sPlus25::AzureDiskPersistentVolume
- Inherits:
-
PersistentVolume
- Object
- PersistentVolume
- CDK8sPlus25::AzureDiskPersistentVolume
- Defined in:
- azure_disk_persistent_volume.rb
Overview
AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
Class Method Summary collapse
Instance Method Summary collapse
-
#access_modes ⇒ Array<CDK8sPlus25::PersistentVolumeAccessMode>?
Access modes requirement of this claim.
-
#api_group ⇒ String
The group portion of the API version (e.g. "authorization.k8s.io").
-
#api_object ⇒ CDK8s::APIObject
The underlying cdk8s API object.
-
#api_version ⇒ String
The object's API version (e.g. "authorization.k8s.io/v1").
-
#as_api_resource ⇒ CDK8sPlus25::IAPIResource?
Return the IApiResource this object represents.
-
#as_non_api_resource ⇒ String?
Return the non resource url this object represents.
-
#as_volume ⇒ CDK8sPlus25::Volume
Convert the piece of storage into a concrete volume.
-
#azure_kind ⇒ CDK8sPlus25::AzureDiskPersistentVolumeKind
Azure kind of this volume.
-
#bind(claim) ⇒ void
Bind a volume to a specific claim.
-
#caching_mode ⇒ CDK8sPlus25::AzureDiskPersistentVolumeCachingMode
Caching mode of this volume.
-
#claim ⇒ CDK8sPlus25::IPersistentVolumeClaim?
PVC this volume is bound to.
-
#disk_name ⇒ String
Disk name of this volume.
-
#disk_uri ⇒ String
Disk URI of this volume.
-
#fs_type ⇒ String
File system type of this volume.
-
#initialize(scope, id, props, &jsii_block) ⇒ AzureDiskPersistentVolume
constructor
A new instance of AzureDiskPersistentVolume.
-
#kind ⇒ String
The object kind (e.g. "Deployment").
- #metadata ⇒ CDK8s::APIObjectMetadataDefinition
-
#mode ⇒ CDK8sPlus25::PersistentVolumeMode
Volume mode of this volume.
-
#mount_options ⇒ Array<String>?
Mount options of this volume.
-
#name ⇒ String
The name of this API object.
-
#node ⇒ Constructs::Node
The tree node.
- #permissions ⇒ CDK8sPlus25::ResourcePermissions
-
#read_only ⇒ Boolean
Whether or not it is mounted as a read-only volume.
-
#reclaim_policy ⇒ CDK8sPlus25::PersistentVolumeReclaimPolicy
Reclaim policy of this volume.
-
#reserve ⇒ CDK8sPlus25::PersistentVolumeClaim
Reserve a
PersistentVolumeby creating aPersistentVolumeClaimthat is wired to claim this volume. -
#resource_name ⇒ String?
The unique, namespace-global, name of an object inside the Kubernetes cluster.
-
#resource_type ⇒ String
The name of a resource type as it appears in the relevant API endpoint.
-
#storage ⇒ CDK8s::Size?
Storage size of this volume.
-
#storage_class_name ⇒ String?
Storage class this volume belongs to.
-
#to_string ⇒ String
Returns a string representation of this construct.
-
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Constructor Details
#initialize(scope, id, props, &jsii_block) ⇒ AzureDiskPersistentVolume
Returns a new instance of AzureDiskPersistentVolume.
11 12 13 14 15 16 17 |
# File 'azure_disk_persistent_volume.rb', line 11 def initialize(scope, id, props, &jsii_block) props = props.is_a?(Hash) ? ::CDK8sPlus25::AzureDiskPersistentVolumeProps.new(**props.transform_keys(&:to_sym)) : props Jsii::Type.check_type(scope, "eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9", "scope") Jsii::Type.check_type(id, "eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==", "id") Jsii::Type.check_type(props, "eyJmcW4iOiJjZGs4cy1wbHVzLTI1LkF6dXJlRGlza1BlcnNpc3RlbnRWb2x1bWVQcm9wcyJ9", "props") Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props, &jsii_block) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'azure_disk_persistent_volume.rb', line 19 def self.jsii_overridable_methods { :node => { kind: :property, name: "node", is_optional: false }, :api_group => { kind: :property, name: "apiGroup", is_optional: false }, :api_object => { kind: :property, name: "apiObject", is_optional: false }, :api_version => { kind: :property, name: "apiVersion", is_optional: false }, :kind => { kind: :property, name: "kind", is_optional: false }, :metadata => { kind: :property, name: "metadata", is_optional: false }, :name => { kind: :property, name: "name", is_optional: false }, :permissions => { kind: :property, name: "permissions", is_optional: false }, :resource_type => { kind: :property, name: "resourceType", is_optional: false }, :resource_name => { kind: :property, name: "resourceName", is_optional: true }, :mode => { kind: :property, name: "mode", is_optional: false }, :reclaim_policy => { kind: :property, name: "reclaimPolicy", is_optional: false }, :access_modes => { kind: :property, name: "accessModes", is_optional: true }, :claim => { kind: :property, name: "claim", is_optional: true }, :mount_options => { kind: :property, name: "mountOptions", is_optional: true }, :storage => { kind: :property, name: "storage", is_optional: true }, :storage_class_name => { kind: :property, name: "storageClassName", is_optional: true }, :azure_kind => { kind: :property, name: "azureKind", is_optional: false }, :caching_mode => { kind: :property, name: "cachingMode", is_optional: false }, :disk_name => { kind: :property, name: "diskName", is_optional: false }, :disk_uri => { kind: :property, name: "diskUri", is_optional: false }, :fs_type => { kind: :property, name: "fsType", is_optional: false }, :read_only => { kind: :property, name: "readOnly", is_optional: false }, :to_string => { kind: :method, name: "toString", is_optional: false }, :with => { kind: :method, name: "with", is_optional: false }, :as_api_resource => { kind: :method, name: "asApiResource", is_optional: false }, :as_non_api_resource => { kind: :method, name: "asNonApiResource", is_optional: false }, :as_volume => { kind: :method, name: "asVolume", is_optional: false }, :bind => { kind: :method, name: "bind", is_optional: false }, :reserve => { kind: :method, name: "reserve", is_optional: false }, } end |
Instance Method Details
#access_modes ⇒ Array<CDK8sPlus25::PersistentVolumeAccessMode>?
Access modes requirement of this claim.
140 141 142 |
# File 'azure_disk_persistent_volume.rb', line 140 def access_modes() jsii_get_property("accessModes") end |
#api_group ⇒ String
The group portion of the API version (e.g. "authorization.k8s.io").
64 65 66 |
# File 'azure_disk_persistent_volume.rb', line 64 def api_group() jsii_get_property("apiGroup") end |
#api_object ⇒ CDK8s::APIObject
The underlying cdk8s API object.
72 73 74 |
# File 'azure_disk_persistent_volume.rb', line 72 def api_object() jsii_get_property("apiObject") end |
#api_version ⇒ String
The object's API version (e.g. "authorization.k8s.io/v1").
79 80 81 |
# File 'azure_disk_persistent_volume.rb', line 79 def api_version() jsii_get_property("apiVersion") end |
#as_api_resource ⇒ CDK8sPlus25::IAPIResource?
Return the IApiResource this object represents.
243 244 245 |
# File 'azure_disk_persistent_volume.rb', line 243 def as_api_resource() jsii_call_method("asApiResource", []) end |
#as_non_api_resource ⇒ String?
Return the non resource url this object represents.
250 251 252 |
# File 'azure_disk_persistent_volume.rb', line 250 def as_non_api_resource() jsii_call_method("asNonApiResource", []) end |
#as_volume ⇒ CDK8sPlus25::Volume
Convert the piece of storage into a concrete volume.
257 258 259 |
# File 'azure_disk_persistent_volume.rb', line 257 def as_volume() jsii_call_method("asVolume", []) end |
#azure_kind ⇒ CDK8sPlus25::AzureDiskPersistentVolumeKind
Azure kind of this volume.
178 179 180 |
# File 'azure_disk_persistent_volume.rb', line 178 def azure_kind() jsii_get_property("azureKind") end |
#bind(claim) ⇒ void
This method returns an undefined value.
Bind a volume to a specific claim.
Note that you must also bind the claim to the volume.
268 269 270 271 |
# File 'azure_disk_persistent_volume.rb', line 268 def bind(claim) Jsii::Type.check_type(claim, "eyJmcW4iOiJjZGs4cy1wbHVzLTI1LklQZXJzaXN0ZW50Vm9sdW1lQ2xhaW0ifQ==", "claim") jsii_call_method("bind", [claim]) end |
#caching_mode ⇒ CDK8sPlus25::AzureDiskPersistentVolumeCachingMode
Caching mode of this volume.
185 186 187 |
# File 'azure_disk_persistent_volume.rb', line 185 def caching_mode() jsii_get_property("cachingMode") end |
#claim ⇒ CDK8sPlus25::IPersistentVolumeClaim?
PVC this volume is bound to.
Undefined means this volume is not yet claimed by any PVC.
150 151 152 |
# File 'azure_disk_persistent_volume.rb', line 150 def claim() jsii_get_property("claim") end |
#disk_name ⇒ String
Disk name of this volume.
192 193 194 |
# File 'azure_disk_persistent_volume.rb', line 192 def disk_name() jsii_get_property("diskName") end |
#disk_uri ⇒ String
Disk URI of this volume.
199 200 201 |
# File 'azure_disk_persistent_volume.rb', line 199 def disk_uri() jsii_get_property("diskUri") end |
#fs_type ⇒ String
File system type of this volume.
206 207 208 |
# File 'azure_disk_persistent_volume.rb', line 206 def fs_type() jsii_get_property("fsType") end |
#kind ⇒ String
The object kind (e.g. "Deployment").
86 87 88 |
# File 'azure_disk_persistent_volume.rb', line 86 def kind() jsii_get_property("kind") end |
#metadata ⇒ CDK8s::APIObjectMetadataDefinition
91 92 93 |
# File 'azure_disk_persistent_volume.rb', line 91 def () jsii_get_property("metadata") end |
#mode ⇒ CDK8sPlus25::PersistentVolumeMode
Volume mode of this volume.
126 127 128 |
# File 'azure_disk_persistent_volume.rb', line 126 def mode() jsii_get_property("mode") end |
#mount_options ⇒ Array<String>?
Mount options of this volume.
157 158 159 |
# File 'azure_disk_persistent_volume.rb', line 157 def () jsii_get_property("mountOptions") end |
#name ⇒ String
The name of this API object.
98 99 100 |
# File 'azure_disk_persistent_volume.rb', line 98 def name() jsii_get_property("name") end |
#node ⇒ Constructs::Node
The tree node.
57 58 59 |
# File 'azure_disk_persistent_volume.rb', line 57 def node() jsii_get_property("node") end |
#permissions ⇒ CDK8sPlus25::ResourcePermissions
103 104 105 |
# File 'azure_disk_persistent_volume.rb', line 103 def () jsii_get_property("permissions") end |
#read_only ⇒ Boolean
Whether or not it is mounted as a read-only volume.
213 214 215 |
# File 'azure_disk_persistent_volume.rb', line 213 def read_only() jsii_get_property("readOnly") end |
#reclaim_policy ⇒ CDK8sPlus25::PersistentVolumeReclaimPolicy
Reclaim policy of this volume.
133 134 135 |
# File 'azure_disk_persistent_volume.rb', line 133 def reclaim_policy() jsii_get_property("reclaimPolicy") end |
#reserve ⇒ CDK8sPlus25::PersistentVolumeClaim
Reserve a PersistentVolume by creating a PersistentVolumeClaim that is wired to claim this volume.
Note that this method will throw in case the volume is already claimed.
279 280 281 |
# File 'azure_disk_persistent_volume.rb', line 279 def reserve() jsii_call_method("reserve", []) end |
#resource_name ⇒ String?
The unique, namespace-global, name of an object inside the Kubernetes cluster.
If this is omitted, the ApiResource should represent all objects of the given type.
119 120 121 |
# File 'azure_disk_persistent_volume.rb', line 119 def resource_name() jsii_get_property("resourceName") end |
#resource_type ⇒ String
The name of a resource type as it appears in the relevant API endpoint.
110 111 112 |
# File 'azure_disk_persistent_volume.rb', line 110 def resource_type() jsii_get_property("resourceType") end |
#storage ⇒ CDK8s::Size?
Storage size of this volume.
164 165 166 |
# File 'azure_disk_persistent_volume.rb', line 164 def storage() jsii_get_property("storage") end |
#storage_class_name ⇒ String?
Storage class this volume belongs to.
171 172 173 |
# File 'azure_disk_persistent_volume.rb', line 171 def storage_class_name() jsii_get_property("storageClassName") end |
#to_string ⇒ String
Returns a string representation of this construct.
220 221 222 |
# File 'azure_disk_persistent_volume.rb', line 220 def to_string() jsii_call_method("toString", []) end |
#with(*mixins) ⇒ Constructs::IConstruct
Applies one or more mixins to this construct.
Mixins are applied in order. The list of constructs is captured at the
start of the call, so constructs added by a mixin will not be visited.
Use multiple with() calls if subsequent mixins should apply to added
constructs.
233 234 235 236 237 238 |
# File 'azure_disk_persistent_volume.rb', line 233 def with(*mixins) mixins.each_with_index do |item, index| Jsii::Type.check_type(item, "eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9", "mixins[#{index}]") end jsii_call_method("with", [*mixins]) end |