-
Notifications
You must be signed in to change notification settings - Fork 0
/
load_balancer_ingress.cr
35 lines (29 loc) · 1.54 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
30
31
32
33
34
35
# 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},
ports: {type: Array(Api::Core::V1::PortStatus), nilable: true, key: "ports", 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
# Ports is a list of records of service ports If used, every port defined in the service should have an entry in it
@[::JSON::Field(key: "ports", emit_null: false)]
@[::YAML::Field(key: "ports", emit_null: false)]
property ports : Array(Api::Core::V1::PortStatus) | Nil
def initialize(*, @hostname : String | Nil = nil, @ip : String | Nil = nil, @ports : Array | Nil = nil)
end
end
end