-
Notifications
You must be signed in to change notification settings - Fork 0
/
ip_block.cr
29 lines (24 loc) · 1.66 KB
/
ip_block.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
# DEPRECATED 1.9 - This group version of IPBlock is deprecated by [networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.](networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. "192.168.1.1/24") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.)
@[::K8S::Properties(
cidr: {type: String, nilable: false, key: "cidr", getter: false, setter: false},
except: {type: Array(String), nilable: true, key: "except", getter: false, setter: false},
)]
class Api::Extensions::V1beta1::IPBlock
include ::JSON::Serializable
include ::YAML::Serializable
# CIDR is a string representing the IP Block Valid examples are ["192.168.1.1/24"]("192.168.1.1/24")
@[::JSON::Field(key: "cidr", emit_null: true)]
@[::YAML::Field(key: "cidr", emit_null: true)]
property cidr : String
# Except is a slice of CIDRs that should not be included within an IP Block Valid examples are ["192.168.1.1/24" Except values will be rejected if they are outside the CIDR range]("192.168.1.1/24" Except values will be rejected if they are outside the CIDR range)
@[::JSON::Field(key: "except", emit_null: false)]
@[::YAML::Field(key: "except", emit_null: false)]
property except : Array(String) | Nil
def initialize(*, @cidr : String, @except : Array | Nil = nil)
end
end
end