-
Notifications
You must be signed in to change notification settings - Fork 0
/
event_source.cr
29 lines (24 loc) · 951 Bytes
/
event_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# EventSource contains information for an event.
@[::K8S::Properties(
component: {type: String, nilable: true, key: "component", getter: false, setter: false},
host: {type: String, nilable: true, key: "host", getter: false, setter: false},
)]
class Api::Core::V1::EventSource
include ::JSON::Serializable
include ::YAML::Serializable
# Component from which the event is generated.
@[::JSON::Field(key: "component", emit_null: false)]
@[::YAML::Field(key: "component", emit_null: false)]
property component : String | Nil
# Node name on which the event is generated.
@[::JSON::Field(key: "host", emit_null: false)]
@[::YAML::Field(key: "host", emit_null: false)]
property host : String | Nil
def initialize(*, @component : String | Nil = nil, @host : String | Nil = nil)
end
end
end