-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_resource_column_definition.cr
53 lines (44 loc) · 2.94 KB
/
custom_resource_column_definition.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
# CustomResourceColumnDefinition specifies a column for server side printing.
@[::K8S::Properties(
json_path: {type: String, nilable: false, key: "JSONPath", getter: false, setter: false},
description: {type: String, nilable: true, key: "description", getter: false, setter: false},
format: {type: String, nilable: true, key: "format", getter: false, setter: false},
name: {type: String, nilable: false, key: "name", getter: false, setter: false},
priority: {type: Int32, nilable: true, key: "priority", getter: false, setter: false},
type: {type: String, nilable: false, key: "type", getter: false, setter: false},
)]
class ApiextensionsApiserver::Apis::Apiextensions::V1beta1::CustomResourceColumnDefinition
include ::JSON::Serializable
include ::YAML::Serializable
# JSONPath is a simple JSON path, i.e. with array notation.
@[::JSON::Field(key: "JSONPath", emit_null: true)]
@[::YAML::Field(key: "JSONPath", emit_null: true)]
property json_path : String
# description is a human readable description of this column.
@[::JSON::Field(key: "description", emit_null: false)]
@[::YAML::Field(key: "description", emit_null: false)]
property description : String | Nil
# format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See [https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.)
@[::JSON::Field(key: "format", emit_null: false)]
@[::YAML::Field(key: "format", emit_null: false)]
property format : String | Nil
# name is a human readable name for the column.
@[::JSON::Field(key: "name", emit_null: true)]
@[::YAML::Field(key: "name", emit_null: true)]
property name : String
# priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority.
@[::JSON::Field(key: "priority", emit_null: false)]
@[::YAML::Field(key: "priority", emit_null: false)]
property priority : Int32 | Nil
# type is an OpenAPI type definition for this column. See [https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.)
@[::JSON::Field(key: "type", emit_null: true)]
@[::YAML::Field(key: "type", emit_null: true)]
property type : String
def initialize(*, @json_path : String, @name : String, @type : String, @description : String | Nil = nil, @format : String | Nil = nil, @priority : Int32 | Nil = nil)
end
end
end