-
Notifications
You must be signed in to change notification settings - Fork 0
/
host_alias.cr
29 lines (24 loc) · 998 Bytes
/
host_alias.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
# HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.
@[::K8S::Properties(
hostnames: {type: Array(String), nilable: true, key: "hostnames", getter: false, setter: false},
ip: {type: String, nilable: true, key: "ip", getter: false, setter: false},
)]
class Api::Core::V1::HostAlias
include ::JSON::Serializable
include ::YAML::Serializable
# Hostnames for the above IP address.
@[::JSON::Field(key: "hostnames", emit_null: false)]
@[::YAML::Field(key: "hostnames", emit_null: false)]
property hostnames : Array(String) | Nil
# IP address of the host file entry.
@[::JSON::Field(key: "ip", emit_null: false)]
@[::YAML::Field(key: "ip", emit_null: false)]
property ip : String | Nil
def initialize(*, @hostnames : Array | Nil = nil, @ip : String | Nil = nil)
end
end
end