-
Notifications
You must be signed in to change notification settings - Fork 0
/
non_resource_rule.cr
31 lines (26 loc) · 1.31 KB
/
non_resource_rule.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# NonResourceRule holds information that describes a rule for the non-resource
@[::K8S::Properties(
non_resource_urls: {type: Array(String), nilable: true, key: "nonResourceURLs", getter: false, setter: false},
verbs: {type: Array(String), nilable: false, key: "verbs", getter: false, setter: false},
)]
class Api::Authorization::V1::NonResourceRule
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. "*" means all.
@[::JSON::Field(key: "nonResourceURLs", emit_null: false)]
@[::YAML::Field(key: "nonResourceURLs", emit_null: false)]
property non_resource_urls : Array(String) | Nil
# Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. "*" means all.
@[::JSON::Field(key: "verbs", emit_null: true)]
@[::YAML::Field(key: "verbs", emit_null: true)]
property verbs : Array(String)
def initialize(*, @verbs : Array(String), @non_resource_urls : Array(String) | Nil = nil)
end
end
end