-
Notifications
You must be signed in to change notification settings - Fork 0
/
nfs_volume_source.cr
37 lines (31 loc) · 1.79 KB
/
nfs_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.
@[::K8S::Properties(
path: {type: String, nilable: false, key: "path", getter: false, setter: false},
read_only: {type: Bool, nilable: true, key: "readOnly", getter: false, setter: false},
server: {type: String, nilable: false, key: "server", getter: false, setter: false},
)]
class Api::Core::V1::NFSVolumeSource
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# Path that is exported by the NFS server. More info: [https://kubernetes.io/docs/concepts/storage/volumes#nfs](https://kubernetes.io/docs/concepts/storage/volumes#nfs)
@[::JSON::Field(key: "path", emit_null: true)]
@[::YAML::Field(key: "path", emit_null: true)]
property path : String
# ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: [https://kubernetes.io/docs/concepts/storage/volumes#nfs](https://kubernetes.io/docs/concepts/storage/volumes#nfs)
@[::JSON::Field(key: "readOnly", emit_null: false)]
@[::YAML::Field(key: "readOnly", emit_null: false)]
property read_only : Bool | Nil
# Server is the hostname or IP address of the NFS server. More info: [https://kubernetes.io/docs/concepts/storage/volumes#nfs](https://kubernetes.io/docs/concepts/storage/volumes#nfs)
@[::JSON::Field(key: "server", emit_null: true)]
@[::YAML::Field(key: "server", emit_null: true)]
property server : String
def initialize(*, @path : String, @server : String, @read_only : Bool | Nil = nil)
end
end
end