-
Notifications
You must be signed in to change notification settings - Fork 0
/
load_balancer_ingress.cr
29 lines (24 loc) · 1.13 KB
/
load_balancer_ingress.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
# LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.
@[::K8S::Properties(
hostname: {type: String, nilable: true, key: "hostname", getter: false, setter: false},
ip: {type: String, nilable: true, key: "ip", getter: false, setter: false},
)]
class Api::Core::V1::LoadBalancerIngress
include ::JSON::Serializable
include ::YAML::Serializable
# Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)
@[::JSON::Field(key: "hostname", emit_null: false)]
@[::YAML::Field(key: "hostname", emit_null: false)]
property hostname : String | Nil
# IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)
@[::JSON::Field(key: "ip", emit_null: false)]
@[::YAML::Field(key: "ip", emit_null: false)]
property ip : String | Nil
def initialize(*, @hostname : String | Nil = nil, @ip : String | Nil = nil)
end
end
end