-
Notifications
You must be signed in to change notification settings - Fork 0
/
se_linux_options.cr
41 lines (34 loc) · 1.57 KB
/
se_linux_options.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# SELinuxOptions are the labels to be applied to the container
@[::K8S::Properties(
level: {type: String, nilable: true, key: "level", getter: false, setter: false},
role: {type: String, nilable: true, key: "role", getter: false, setter: false},
type: {type: String, nilable: true, key: "type", getter: false, setter: false},
user: {type: String, nilable: true, key: "user", getter: false, setter: false},
)]
class Api::Core::V1::SELinuxOptions
include ::JSON::Serializable
include ::YAML::Serializable
# Level is SELinux level label that applies to the container.
@[::JSON::Field(key: "level", emit_null: false)]
@[::YAML::Field(key: "level", emit_null: false)]
property level : String | Nil
# Role is a SELinux role label that applies to the container.
@[::JSON::Field(key: "role", emit_null: false)]
@[::YAML::Field(key: "role", emit_null: false)]
property role : String | Nil
# Type is a SELinux type label that applies to the container.
@[::JSON::Field(key: "type", emit_null: false)]
@[::YAML::Field(key: "type", emit_null: false)]
property type : String | Nil
# User is a SELinux user label that applies to the container.
@[::JSON::Field(key: "user", emit_null: false)]
@[::YAML::Field(key: "user", emit_null: false)]
property user : String | Nil
def initialize(*, @level : String | Nil = nil, @role : String | Nil = nil, @type : String | Nil = nil, @user : String | Nil = nil)
end
end
end