-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingress_backend.cr
35 lines (29 loc) · 1.59 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
30
31
32
33
34
35
# 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(
resource: {type: Api::Core::V1::TypedLocalObjectReference, nilable: true, key: "resource", getter: false, setter: false},
service_name: {type: String, nilable: true, key: "serviceName", getter: false, setter: false},
service_port: {type: Int32 | String, nilable: true, key: "servicePort", getter: false, setter: false},
)]
class Api::Extensions::V1beta1::IngressBackend
include ::JSON::Serializable
include ::YAML::Serializable
# Resource is an ObjectRef to another Kubernetes resource in the namespace of the Ingress object. If resource is specified, serviceName and servicePort must not be specified.
@[::JSON::Field(key: "resource", emit_null: false)]
@[::YAML::Field(key: "resource", emit_null: false)]
property resource : Api::Core::V1::TypedLocalObjectReference | Nil
# Specifies the name of the referenced service.
@[::JSON::Field(key: "serviceName", emit_null: false)]
@[::YAML::Field(key: "serviceName", emit_null: false)]
property service_name : String | Nil
# Specifies the port of the referenced service.
@[::JSON::Field(key: "servicePort", emit_null: false)]
@[::YAML::Field(key: "servicePort", emit_null: false)]
property service_port : Int32 | String | Nil
def initialize(*, @resource : Api::Core::V1::TypedLocalObjectReference | Nil = nil, @service_name : String | Nil = nil, @service_port : Int32 | String | Nil = nil)
end
end
end