-
Notifications
You must be signed in to change notification settings - Fork 0
/
endpoint_port.cr
35 lines (29 loc) · 1.29 KB
/
endpoint_port.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
# EndpointPort is a tuple that describes a single port.
@[::K8S::Properties(
name: {type: String, nilable: true, key: "name", getter: false, setter: false},
port: {type: Int32, nilable: false, key: "port", getter: false, setter: false},
protocol: {type: String, nilable: true, key: "protocol", getter: false, setter: false},
)]
class Api::Core::V1::EndpointPort
include ::JSON::Serializable
include ::YAML::Serializable
# The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.
@[::JSON::Field(key: "name", emit_null: false)]
@[::YAML::Field(key: "name", emit_null: false)]
property name : String | Nil
# The port number of the endpoint.
@[::JSON::Field(key: "port", emit_null: true)]
@[::YAML::Field(key: "port", emit_null: true)]
property port : Int32
# The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.
@[::JSON::Field(key: "protocol", emit_null: false)]
@[::YAML::Field(key: "protocol", emit_null: false)]
property protocol : String | Nil
def initialize(*, @port : Int32, @name : String | Nil = nil, @protocol : String | Nil = nil)
end
end
end