-
Notifications
You must be signed in to change notification settings - Fork 0
/
token_review_spec.cr
31 lines (26 loc) · 1.34 KB
/
token_review_spec.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
# TokenReviewSpec is a description of the token authentication request.
@[::K8S::Properties(
audiences: {type: Array(String), nilable: true, key: "audiences", getter: false, setter: false},
token: {type: String, nilable: true, key: "token", getter: false, setter: false},
)]
class Api::Authentication::V1::TokenReviewSpec
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.
@[::JSON::Field(key: "audiences", emit_null: false)]
@[::YAML::Field(key: "audiences", emit_null: false)]
property audiences : Array(String) | Nil
# Token is the opaque bearer token.
@[::JSON::Field(key: "token", emit_null: false)]
@[::YAML::Field(key: "token", emit_null: false)]
property token : String | Nil
def initialize(*, @audiences : Array(String) | Nil = nil, @token : String | Nil = nil)
end
end
end