-
Notifications
You must be signed in to change notification settings - Fork 0
/
quobyte_volume_source.cr
53 lines (44 loc) · 2.55 KB
/
quobyte_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
44
45
46
47
48
49
50
51
52
53
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.
@[::K8S::Properties(
group: {type: String, nilable: true, key: "group", getter: false, setter: false},
read_only: {type: Bool, nilable: true, key: "readOnly", getter: false, setter: false},
registry: {type: String, nilable: false, key: "registry", getter: false, setter: false},
tenant: {type: String, nilable: true, key: "tenant", getter: false, setter: false},
user: {type: String, nilable: true, key: "user", getter: false, setter: false},
volume: {type: String, nilable: false, key: "volume", getter: false, setter: false},
)]
class Api::Core::V1::QuobyteVolumeSource
include ::JSON::Serializable
include ::YAML::Serializable
# Group to map volume access to Default is no group
@[::JSON::Field(key: "group", emit_null: false)]
@[::YAML::Field(key: "group", emit_null: false)]
property group : String | Nil
# ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.
@[::JSON::Field(key: "readOnly", emit_null: false)]
@[::YAML::Field(key: "readOnly", emit_null: false)]
property read_only : Bool | Nil
# Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes
@[::JSON::Field(key: "registry", emit_null: true)]
@[::YAML::Field(key: "registry", emit_null: true)]
property registry : String
# Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin
@[::JSON::Field(key: "tenant", emit_null: false)]
@[::YAML::Field(key: "tenant", emit_null: false)]
property tenant : String | Nil
# User to map volume access to Defaults to serivceaccount user
@[::JSON::Field(key: "user", emit_null: false)]
@[::YAML::Field(key: "user", emit_null: false)]
property user : String | Nil
# Volume is a string that references an already created Quobyte volume by name.
@[::JSON::Field(key: "volume", emit_null: true)]
@[::YAML::Field(key: "volume", emit_null: true)]
property volume : String
def initialize(*, @registry : String, @volume : String, @group : String | Nil = nil, @read_only : Bool | Nil = nil, @tenant : String | Nil = nil, @user : String | Nil = nil)
end
end
end