-
Notifications
You must be signed in to change notification settings - Fork 0
/
group_version_for_discovery.cr
29 lines (24 loc) · 1.25 KB
/
group_version_for_discovery.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# GroupVersion contains the ["group/version" and "version" string of a version. It is made a struct to keep extensibility.]("group/version" and "version" string of a version. It is made a struct to keep extensibility.)
@[::K8S::Properties(
group_version: {type: String, nilable: false, key: "groupVersion", getter: false, setter: false},
version: {type: String, nilable: false, key: "version", getter: false, setter: false},
)]
class Apimachinery::Apis::Meta::V1::GroupVersionForDiscovery
include ::JSON::Serializable
include ::YAML::Serializable
# groupVersion specifies the API group and version in the form ["group/version"]("group/version")
@[::JSON::Field(key: "groupVersion", emit_null: true)]
@[::YAML::Field(key: "groupVersion", emit_null: true)]
property group_version : String
# version specifies the version in the form of "version". This is to save the clients the trouble of splitting the GroupVersion.
@[::JSON::Field(key: "version", emit_null: true)]
@[::YAML::Field(key: "version", emit_null: true)]
property version : String
def initialize(*, @group_version : String, @version : String)
end
end
end