-
Notifications
You must be signed in to change notification settings - Fork 0
/
port_status.cr
37 lines (31 loc) · 1.56 KB
/
port_status.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
@[::K8S::Properties(
error: {type: String, nilable: true, key: "error", getter: false, setter: false},
port: {type: Int32, nilable: false, key: "port", getter: false, setter: false},
protocol: {type: String, nilable: false, key: "protocol", getter: false, setter: false},
)]
class Api::Core::V1::PortStatus
include ::JSON::Serializable
include ::YAML::Serializable
# Error is to record the problem with the service port The format of the error shall comply with the following rules: - built-in error values shall be specified in this file and those shall use
# CamelCase names
# - cloud provider specific error values must have names that comply with the
# format [foo.example.com/CamelCase.](foo.example.com/CamelCase.)
@[::JSON::Field(key: "error", emit_null: false)]
@[::YAML::Field(key: "error", emit_null: false)]
property error : String | Nil
# Port is the port number of the service port of which status is recorded here
@[::JSON::Field(key: "port", emit_null: true)]
@[::YAML::Field(key: "port", emit_null: true)]
property port : Int32
# Protocol is the protocol of the service port of which status is recorded here The supported values are: "TCP", "UDP", "SCTP"
@[::JSON::Field(key: "protocol", emit_null: true)]
@[::YAML::Field(key: "protocol", emit_null: true)]
property protocol : String
def initialize(*, @port : Int32, @protocol : String, @error : String | Nil = nil)
end
end
end