-
Notifications
You must be signed in to change notification settings - Fork 0
/
server_address_by_client_cidr.cr
29 lines (24 loc) · 1.22 KB
/
server_address_by_client_cidr.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
# ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.
@[::K8S::Properties(
client_cidr: {type: String, nilable: false, key: "clientCIDR", getter: false, setter: false},
server_address: {type: String, nilable: false, key: "serverAddress", getter: false, setter: false},
)]
class Apimachinery::Apis::Meta::V1::ServerAddressByClientCIDR
include ::JSON::Serializable
include ::YAML::Serializable
# The CIDR with which clients can match their IP to figure out the server address that they should use.
@[::JSON::Field(key: "clientCIDR", emit_null: true)]
@[::YAML::Field(key: "clientCIDR", emit_null: true)]
property client_cidr : String
# Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.
@[::JSON::Field(key: "serverAddress", emit_null: true)]
@[::YAML::Field(key: "serverAddress", emit_null: true)]
property server_address : String
def initialize(*, @client_cidr : String, @server_address : String)
end
end
end