-
Notifications
You must be signed in to change notification settings - Fork 0
/
role_ref.cr
35 lines (29 loc) · 1.19 KB
/
role_ref.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# RoleRef contains information that points to the role being used
@[::K8S::Properties(
api_group: {type: String, nilable: false, key: "apiGroup", getter: false, setter: false},
kind: {type: String, nilable: false, key: "kind", getter: false, setter: false},
name: {type: String, nilable: false, key: "name", getter: false, setter: false},
)]
class Api::Rbac::V1::RoleRef
include ::JSON::Serializable
include ::YAML::Serializable
# APIGroup is the group for the resource being referenced
@[::JSON::Field(key: "apiGroup", emit_null: true)]
@[::YAML::Field(key: "apiGroup", emit_null: true)]
property api_group : String
# Kind is the type of resource being referenced
@[::JSON::Field(key: "kind", emit_null: true)]
@[::YAML::Field(key: "kind", emit_null: true)]
property kind : String
# Name is the name of resource being referenced
@[::JSON::Field(key: "name", emit_null: true)]
@[::YAML::Field(key: "name", emit_null: true)]
property name : String
def initialize(*, @api_group : String, @kind : String, @name : String)
end
end
end