-
Notifications
You must be signed in to change notification settings - Fork 0
/
non_resource_attributes.cr
31 lines (26 loc) · 1.06 KB
/
non_resource_attributes.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
# NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface
@[::K8S::Properties(
path: {type: String, nilable: true, key: "path", getter: false, setter: false},
verb: {type: String, nilable: true, key: "verb", getter: false, setter: false},
)]
class Api::Authorization::V1::NonResourceAttributes
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# Path is the URL path of the request
@[::JSON::Field(key: "path", emit_null: false)]
@[::YAML::Field(key: "path", emit_null: false)]
property path : String | Nil
# Verb is the standard HTTP verb
@[::JSON::Field(key: "verb", emit_null: false)]
@[::YAML::Field(key: "verb", emit_null: false)]
property verb : String | Nil
def initialize(*, @path : String | Nil = nil, @verb : String | Nil = nil)
end
end
end