-
Notifications
You must be signed in to change notification settings - Fork 0
/
object_field_selector.cr
29 lines (24 loc) · 1.02 KB
/
object_field_selector.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
# ObjectFieldSelector selects an APIVersioned field of an object.
@[::K8S::Properties(
api_version: {type: String, nilable: true, key: "apiVersion", getter: false, setter: false},
field_path: {type: String, nilable: false, key: "fieldPath", getter: false, setter: false},
)]
class Api::Core::V1::ObjectFieldSelector
include ::JSON::Serializable
include ::YAML::Serializable
# Version of the schema the FieldPath is written in terms of, defaults to "v1".
@[::JSON::Field(key: "apiVersion", emit_null: false)]
@[::YAML::Field(key: "apiVersion", emit_null: false)]
property api_version : String | Nil
# Path of the field to select in the specified API version.
@[::JSON::Field(key: "fieldPath", emit_null: true)]
@[::YAML::Field(key: "fieldPath", emit_null: true)]
property field_path : String
def initialize(*, @field_path : String, @api_version : String | Nil = nil)
end
end
end