-
Notifications
You must be signed in to change notification settings - Fork 0
/
owner_reference.cr
55 lines (46 loc) · 2.98 KB
/
owner_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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.
@[::K8S::Properties(
api_version: {type: String, nilable: false, key: "apiVersion", getter: false, setter: false},
block_owner_deletion: {type: Bool, nilable: true, key: "blockOwnerDeletion", getter: false, setter: false},
controller: {type: Bool, nilable: true, key: "controller", 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},
uid: {type: String, nilable: false, key: "uid", getter: false, setter: false},
)]
class Apimachinery::Apis::Meta::V1::OwnerReference
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# API version of the referent.
@[::JSON::Field(key: "apiVersion", emit_null: true)]
@[::YAML::Field(key: "apiVersion", emit_null: true)]
property api_version : String
# If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
@[::JSON::Field(key: "blockOwnerDeletion", emit_null: false)]
@[::YAML::Field(key: "blockOwnerDeletion", emit_null: false)]
property block_owner_deletion : Bool | Nil
# If true, this reference points to the managing controller.
@[::JSON::Field(key: "controller", emit_null: false)]
@[::YAML::Field(key: "controller", emit_null: false)]
property controller : Bool | Nil
# Kind of the referent. More info: [https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds](https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds)
@[::JSON::Field(key: "kind", emit_null: true)]
@[::YAML::Field(key: "kind", emit_null: true)]
property kind : String
# Name of the referent. More info: [http://kubernetes.io/docs/user-guide/identifiers#names](http://kubernetes.io/docs/user-guide/identifiers#names)
@[::JSON::Field(key: "name", emit_null: true)]
@[::YAML::Field(key: "name", emit_null: true)]
property name : String
# UID of the referent. More info: [http://kubernetes.io/docs/user-guide/identifiers#uids](http://kubernetes.io/docs/user-guide/identifiers#uids)
@[::JSON::Field(key: "uid", emit_null: true)]
@[::YAML::Field(key: "uid", emit_null: true)]
property uid : String
def initialize(*, @api_version : String, @kind : String, @name : String, @uid : String, @block_owner_deletion : Bool | Nil = nil, @controller : Bool | Nil = nil)
end
end
end