-
Notifications
You must be signed in to change notification settings - Fork 0
/
token_review_status.cr
37 lines (31 loc) · 1.49 KB
/
token_review_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
# TokenReviewStatus is the result of the token authentication request.
@[::K8S::Properties(
authenticated: {type: Bool, nilable: true, key: "authenticated", getter: false, setter: false},
error: {type: String, nilable: true, key: "error", getter: false, setter: false},
user: {type: Api::Authentication::V1::UserInfo, nilable: true, key: "user", getter: false, setter: false},
)]
class Api::Authentication::V1::TokenReviewStatus
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# Authenticated indicates that the token was associated with a known user.
@[::JSON::Field(key: "authenticated", emit_null: false)]
@[::YAML::Field(key: "authenticated", emit_null: false)]
property authenticated : Bool | Nil
# Error indicates that the token couldn't be checked
@[::JSON::Field(key: "error", emit_null: false)]
@[::YAML::Field(key: "error", emit_null: false)]
property error : String | Nil
# User is the UserInfo associated with the provided token.
@[::JSON::Field(key: "user", emit_null: false)]
@[::YAML::Field(key: "user", emit_null: false)]
property user : Api::Authentication::V1::UserInfo | Nil
def initialize(*, @authenticated : Bool | Nil = nil, @error : String | Nil = nil, @user : Api::Authentication::V1::UserInfo | Nil = nil)
end
end
end