-
Notifications
You must be signed in to change notification settings - Fork 0
/
node_address.cr
31 lines (26 loc) · 989 Bytes
/
node_address.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# NodeAddress contains information for the node's address.
@[::K8S::Properties(
address: {type: String, nilable: false, key: "address", getter: false, setter: false},
type: {type: String, nilable: false, key: "type", getter: false, setter: false},
)]
class Api::Core::V1::NodeAddress
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# The node address.
@[::JSON::Field(key: "address", emit_null: true)]
@[::YAML::Field(key: "address", emit_null: true)]
property address : String
# Node address type, one of Hostname, ExternalIP or InternalIP.
@[::JSON::Field(key: "type", emit_null: true)]
@[::YAML::Field(key: "type", emit_null: true)]
property type : String
def initialize(*, @address : String, @type : String)
end
end
end