-
Notifications
You must be signed in to change notification settings - Fork 0
/
endpoint_port.cr
41 lines (34 loc) · 2.45 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
36
37
38
39
40
41
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# EndpointPort represents a Port used by an EndpointSlice
@[::K8S::Properties(
app_protocol: {type: String, nilable: true, key: "appProtocol", getter: false, setter: false},
name: {type: String, nilable: true, key: "name", getter: false, setter: false},
port: {type: Int32, nilable: true, key: "port", getter: false, setter: false},
protocol: {type: String, nilable: true, key: "protocol", getter: false, setter: false},
)]
class Api::Discovery::V1beta1::EndpointPort
include ::JSON::Serializable
include ::YAML::Serializable
# The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and [http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names. Default is empty string.](http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names. Default is empty string.)
@[::JSON::Field(key: "appProtocol", emit_null: false)]
@[::YAML::Field(key: "appProtocol", emit_null: false)]
property app_protocol : String | Nil
# The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.
@[::JSON::Field(key: "name", emit_null: false)]
@[::YAML::Field(key: "name", emit_null: false)]
property name : String | Nil
# The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.
@[::JSON::Field(key: "port", emit_null: false)]
@[::YAML::Field(key: "port", emit_null: false)]
property port : Int32 | Nil
# 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(*, @app_protocol : String | Nil = nil, @name : String | Nil = nil, @port : Int32 | Nil = nil, @protocol : String | Nil = nil)
end
end
end