-
Notifications
You must be signed in to change notification settings - Fork 0
/
tcp_socket_action.cr
29 lines (24 loc) · 1.02 KB
/
tcp_socket_action.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
# TCPSocketAction describes an action based on opening a socket
@[::K8S::Properties(
host: {type: String, nilable: true, key: "host", getter: false, setter: false},
port: {type: Int32 | String, nilable: false, key: "port", getter: false, setter: false},
)]
class Api::Core::V1::TCPSocketAction
include ::JSON::Serializable
include ::YAML::Serializable
# Optional: Host name to connect to, defaults to the pod IP.
@[::JSON::Field(key: "host", emit_null: false)]
@[::YAML::Field(key: "host", emit_null: false)]
property host : String | Nil
# Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
@[::JSON::Field(key: "port", emit_null: true)]
@[::YAML::Field(key: "port", emit_null: true)]
property port : Int32 | String
def initialize(*, @port : Int32 | String, @host : String | Nil = nil)
end
end
end