-
Notifications
You must be signed in to change notification settings - Fork 0
/
node_system_info.cr
77 lines (64 loc) · 4.28 KB
/
node_system_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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# NodeSystemInfo is a set of [ids/uuids to uniquely identify the node.](ids/uuids to uniquely identify the node.)
@[::K8S::Properties(
architecture: {type: String, nilable: false, key: "architecture", getter: false, setter: false},
boot_id: {type: String, nilable: false, key: "bootID", getter: false, setter: false},
container_runtime_version: {type: String, nilable: false, key: "containerRuntimeVersion", getter: false, setter: false},
kernel_version: {type: String, nilable: false, key: "kernelVersion", getter: false, setter: false},
kube_proxy_version: {type: String, nilable: false, key: "kubeProxyVersion", getter: false, setter: false},
kubelet_version: {type: String, nilable: false, key: "kubeletVersion", getter: false, setter: false},
machine_id: {type: String, nilable: false, key: "machineID", getter: false, setter: false},
operating_system: {type: String, nilable: false, key: "operatingSystem", getter: false, setter: false},
os_image: {type: String, nilable: false, key: "osImage", getter: false, setter: false},
system_uuid: {type: String, nilable: false, key: "systemUUID", getter: false, setter: false},
)]
class Api::Core::V1::NodeSystemInfo
include ::JSON::Serializable
include ::YAML::Serializable
# The Architecture reported by the node
@[::JSON::Field(key: "architecture", emit_null: true)]
@[::YAML::Field(key: "architecture", emit_null: true)]
property architecture : String
# Boot ID reported by the node.
@[::JSON::Field(key: "bootID", emit_null: true)]
@[::YAML::Field(key: "bootID", emit_null: true)]
property boot_id : String
# ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).
@[::JSON::Field(key: "containerRuntimeVersion", emit_null: true)]
@[::YAML::Field(key: "containerRuntimeVersion", emit_null: true)]
property container_runtime_version : String
# Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).
@[::JSON::Field(key: "kernelVersion", emit_null: true)]
@[::YAML::Field(key: "kernelVersion", emit_null: true)]
property kernel_version : String
# KubeProxy Version reported by the node.
@[::JSON::Field(key: "kubeProxyVersion", emit_null: true)]
@[::YAML::Field(key: "kubeProxyVersion", emit_null: true)]
property kube_proxy_version : String
# Kubelet Version reported by the node.
@[::JSON::Field(key: "kubeletVersion", emit_null: true)]
@[::YAML::Field(key: "kubeletVersion", emit_null: true)]
property kubelet_version : String
# MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: [http://man7.org/linux/man-pages/man5/machine-id.5.html](http://man7.org/linux/man-pages/man5/machine-id.5.html)
@[::JSON::Field(key: "machineID", emit_null: true)]
@[::YAML::Field(key: "machineID", emit_null: true)]
property machine_id : String
# The Operating System reported by the node
@[::JSON::Field(key: "operatingSystem", emit_null: true)]
@[::YAML::Field(key: "operatingSystem", emit_null: true)]
property operating_system : String
# OS Image reported by the node from [/etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).](/etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).)
@[::JSON::Field(key: "osImage", emit_null: true)]
@[::YAML::Field(key: "osImage", emit_null: true)]
property os_image : String
# SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts [https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid](https://access.redhat.com/documentation/en-us/red_hat_subscription_management/1/html/rhsm/uuid)
@[::JSON::Field(key: "systemUUID", emit_null: true)]
@[::YAML::Field(key: "systemUUID", emit_null: true)]
property system_uuid : String
def initialize(*, @architecture : String, @boot_id : String, @container_runtime_version : String, @kernel_version : String, @kube_proxy_version : String, @kubelet_version : String, @machine_id : String, @operating_system : String, @os_image : String, @system_uuid : String)
end
end
end