-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingress_backend.cr
29 lines (24 loc) · 1.01 KB
/
ingress_backend.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
# IngressBackend describes all endpoints for a given service and port.
@[::K8S::Properties(
service_name: {type: String, nilable: false, key: "serviceName", getter: false, setter: false},
service_port: {type: Int32 | String, nilable: false, key: "servicePort", getter: false, setter: false},
)]
class Api::Extensions::V1beta1::IngressBackend
include ::JSON::Serializable
include ::YAML::Serializable
# Specifies the name of the referenced service.
@[::JSON::Field(key: "serviceName", emit_null: true)]
@[::YAML::Field(key: "serviceName", emit_null: true)]
property service_name : String
# Specifies the port of the referenced service.
@[::JSON::Field(key: "servicePort", emit_null: true)]
@[::YAML::Field(key: "servicePort", emit_null: true)]
property service_port : Int32 | String
def initialize(*, @service_name : String, @service_port : Int32 | String)
end
end
end