-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_resource_definition_names.cr
53 lines (44 loc) · 3.15 KB
/
custom_resource_definition_names.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition
@[::K8S::Properties(
categories: {type: Array(String), nilable: true, key: "categories", getter: false, setter: false},
kind: {type: String, nilable: false, key: "kind", getter: false, setter: false},
list_kind: {type: String, nilable: true, key: "listKind", getter: false, setter: false},
plural: {type: String, nilable: false, key: "plural", getter: false, setter: false},
short_names: {type: Array(String), nilable: true, key: "shortNames", getter: false, setter: false},
singular: {type: String, nilable: true, key: "singular", getter: false, setter: false},
)]
class ApiextensionsApiserver::Apis::Apiextensions::V1::CustomResourceDefinitionNames
include ::JSON::Serializable
include ::YAML::Serializable
# categories is a list of grouped resources this custom resource belongs to (e.g. 'all'). This is published in API discovery documents, and used by clients to support invocations like `kubectl get all`.
@[::JSON::Field(key: "categories", emit_null: false)]
@[::YAML::Field(key: "categories", emit_null: false)]
property categories : Array(String) | Nil
# kind is the serialized kind of the resource. It is normally CamelCase and singular. Custom resource instances will use this value as the `kind` attribute in API calls.
@[::JSON::Field(key: "kind", emit_null: true)]
@[::YAML::Field(key: "kind", emit_null: true)]
property kind : String
# listKind is the serialized kind of the list for this resource. Defaults to "`kind`List".
@[::JSON::Field(key: "listKind", emit_null: false)]
@[::YAML::Field(key: "listKind", emit_null: false)]
property list_kind : String | Nil
# plural is the plural name of the resource to serve. The custom resources are served under [`/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.](`/apis/<group>/<version>/.../<plural>`. Must match the name of the CustomResourceDefinition (in the form `<names.plural>.<group>`). Must be all lowercase.)
@[::JSON::Field(key: "plural", emit_null: true)]
@[::YAML::Field(key: "plural", emit_null: true)]
property plural : String
# shortNames are short names for the resource, exposed in API discovery documents, and used by clients to support invocations like `kubectl get <shortname>`. It must be all lowercase.
@[::JSON::Field(key: "shortNames", emit_null: false)]
@[::YAML::Field(key: "shortNames", emit_null: false)]
property short_names : Array(String) | Nil
# singular is the singular name of the resource. It must be all lowercase. Defaults to lowercased `kind`.
@[::JSON::Field(key: "singular", emit_null: false)]
@[::YAML::Field(key: "singular", emit_null: false)]
property singular : String | Nil
def initialize(*, @kind : String, @plural : String, @categories : Array | Nil = nil, @list_kind : String | Nil = nil, @short_names : Array | Nil = nil, @singular : String | Nil = nil)
end
end
end