-
Notifications
You must be signed in to change notification settings - Fork 0
/
cross_version_object_reference.cr
35 lines (29 loc) · 1.53 KB
/
cross_version_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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# CrossVersionObjectReference contains enough information to let you identify the referred resource.
@[::K8S::Properties(
api_version: {type: String, nilable: true, key: "apiVersion", 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::Autoscaling::V1::CrossVersionObjectReference
include ::JSON::Serializable
include ::YAML::Serializable
# API version of the referent
@[::JSON::Field(key: "apiVersion", emit_null: false)]
@[::YAML::Field(key: "apiVersion", emit_null: false)]
property api_version : String | Nil
# Kind of the referent; More info: [https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"](https://git.k8s.io/community/contributors/devel/sig-architecture/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
def initialize(*, @kind : String, @name : String, @api_version : String | Nil = nil)
end
end
end