-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_resource_subresources.cr
29 lines (24 loc) · 2.12 KB
/
custom_resource_subresources.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
# CustomResourceSubresources defines the status and scale subresources for CustomResources.
@[::K8S::Properties(
scale: {type: ApiextensionsApiserver::Apis::Apiextensions::V1::CustomResourceSubresourceScale, nilable: true, key: "scale", getter: false, setter: false},
status: {type: ApiextensionsApiserver::Apis::Apiextensions::V1::CustomResourceSubresourceStatus, nilable: true, key: "status", getter: false, setter: false},
)]
class ApiextensionsApiserver::Apis::Apiextensions::V1::CustomResourceSubresources
include ::JSON::Serializable
include ::YAML::Serializable
# scale indicates the custom resource should serve a [`/scale` subresource that returns an `autoscaling/v1` Scale object.](`/scale` subresource that returns an `autoscaling/v1` Scale object.)
@[::JSON::Field(key: "scale", emit_null: false)]
@[::YAML::Field(key: "scale", emit_null: false)]
property scale : ApiextensionsApiserver::Apis::Apiextensions::V1::CustomResourceSubresourceScale | Nil
# status indicates the custom resource should serve a [`/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.](`/status` subresource. When enabled: 1. requests to the custom resource primary endpoint ignore changes to the `status` stanza of the object. 2. requests to the custom resource `/status` subresource ignore changes to anything other than the `status` stanza of the object.)
@[::JSON::Field(key: "status", emit_null: false)]
@[::YAML::Field(key: "status", emit_null: false)]
property status : ApiextensionsApiserver::Apis::Apiextensions::V1::CustomResourceSubresourceStatus | Nil
def initialize(*, @scale : ApiextensionsApiserver::Apis::Apiextensions::V1::CustomResourceSubresourceScale | Nil = nil, @status : ApiextensionsApiserver::Apis::Apiextensions::V1::CustomResourceSubresourceStatus | Nil = nil)
end
end
end