-
Notifications
You must be signed in to change notification settings - Fork 0
/
typed_local_object_reference.cr
37 lines (31 loc) · 1.51 KB
/
typed_local_object_reference.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
# TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.
@[::K8S::Properties(
api_group: {type: String, nilable: true, 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::Core::V1::TypedLocalObjectReference
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
@[::JSON::Field(key: "apiGroup", emit_null: false)]
@[::YAML::Field(key: "apiGroup", emit_null: false)]
property api_group : String | Nil
# 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(*, @kind : String, @name : String, @api_group : String | Nil = nil)
end
end
end