-
Notifications
You must be signed in to change notification settings - Fork 0
/
gce_persistent_disk_volume_source.cr
43 lines (36 loc) · 3.13 KB
/
gce_persistent_disk_volume_source.cr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# Represents a Persistent Disk resource in Google Compute Engine.
#
# A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as [read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.](read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.)
@[::K8S::Properties(
fs_type: {type: String, nilable: true, key: "fsType", getter: false, setter: false},
partition: {type: Int32, nilable: true, key: "partition", getter: false, setter: false},
pd_name: {type: String, nilable: false, key: "pdName", getter: false, setter: false},
read_only: {type: Bool, nilable: true, key: "readOnly", getter: false, setter: false},
)]
class Api::Core::V1::GCEPersistentDiskVolumeSource
include ::JSON::Serializable
include ::YAML::Serializable
# Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: [https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk](https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk)
@[::JSON::Field(key: "fsType", emit_null: false)]
@[::YAML::Field(key: "fsType", emit_null: false)]
property fs_type : String | Nil
# The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume [/dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk](/dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk)
@[::JSON::Field(key: "partition", emit_null: false)]
@[::YAML::Field(key: "partition", emit_null: false)]
property partition : Int32 | Nil
# Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: [https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk](https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk)
@[::JSON::Field(key: "pdName", emit_null: true)]
@[::YAML::Field(key: "pdName", emit_null: true)]
property pd_name : String
# ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: [https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk](https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk)
@[::JSON::Field(key: "readOnly", emit_null: false)]
@[::YAML::Field(key: "readOnly", emit_null: false)]
property read_only : Bool | Nil
def initialize(*, @pd_name : String, @fs_type : String | Nil = nil, @partition : Int32 | Nil = nil, @read_only : Bool | Nil = nil)
end
end
end