-
Notifications
You must be signed in to change notification settings - Fork 0
/
info.cr
62 lines (50 loc) · 2.63 KB
/
info.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
54
55
56
57
58
59
60
61
62
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# Info contains versioning information. how we'll want to distribute that information.
@[::K8S::Properties(
build_date: {type: String, nilable: false, key: "buildDate", getter: false, setter: false},
compiler: {type: String, nilable: false, key: "compiler", getter: false, setter: false},
git_commit: {type: String, nilable: false, key: "gitCommit", getter: false, setter: false},
git_tree_state: {type: String, nilable: false, key: "gitTreeState", getter: false, setter: false},
git_version: {type: String, nilable: false, key: "gitVersion", getter: false, setter: false},
go_version: {type: String, nilable: false, key: "goVersion", getter: false, setter: false},
major: {type: String, nilable: false, key: "major", getter: false, setter: false},
minor: {type: String, nilable: false, key: "minor", getter: false, setter: false},
platform: {type: String, nilable: false, key: "platform", getter: false, setter: false},
)]
class Apimachinery::Version::Info
include ::JSON::Serializable
include ::YAML::Serializable
@[::JSON::Field(key: "buildDate", emit_null: true)]
@[::YAML::Field(key: "buildDate", emit_null: true)]
property build_date : String
@[::JSON::Field(key: "compiler", emit_null: true)]
@[::YAML::Field(key: "compiler", emit_null: true)]
property compiler : String
@[::JSON::Field(key: "gitCommit", emit_null: true)]
@[::YAML::Field(key: "gitCommit", emit_null: true)]
property git_commit : String
@[::JSON::Field(key: "gitTreeState", emit_null: true)]
@[::YAML::Field(key: "gitTreeState", emit_null: true)]
property git_tree_state : String
@[::JSON::Field(key: "gitVersion", emit_null: true)]
@[::YAML::Field(key: "gitVersion", emit_null: true)]
property git_version : String
@[::JSON::Field(key: "goVersion", emit_null: true)]
@[::YAML::Field(key: "goVersion", emit_null: true)]
property go_version : String
@[::JSON::Field(key: "major", emit_null: true)]
@[::YAML::Field(key: "major", emit_null: true)]
property major : String
@[::JSON::Field(key: "minor", emit_null: true)]
@[::YAML::Field(key: "minor", emit_null: true)]
property minor : String
@[::JSON::Field(key: "platform", emit_null: true)]
@[::YAML::Field(key: "platform", emit_null: true)]
property platform : String
def initialize(*, @build_date : String, @compiler : String, @git_commit : String, @git_tree_state : String, @git_version : String, @go_version : String, @major : String, @minor : String, @platform : String)
end
end
end