-
Notifications
You must be signed in to change notification settings - Fork 0
/
managed_fields_entry.cr
47 lines (39 loc) · 2.57 KB
/
managed_fields_entry.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.
@[::K8S::Properties(
api_version: {type: String, nilable: true, key: "apiVersion", getter: false, setter: false},
fields: {type: Apimachinery::Apis::Meta::V1::Fields, nilable: true, key: "fields", getter: false, setter: false},
manager: {type: String, nilable: true, key: "manager", getter: false, setter: false},
operation: {type: String, nilable: true, key: "operation", getter: false, setter: false},
time: {type: Time, nilable: true, key: "time", getter: false, setter: false},
)]
class Apimachinery::Apis::Meta::V1::ManagedFieldsEntry
include ::JSON::Serializable
include ::YAML::Serializable
# APIVersion defines the version of this resource that this field set applies to. The format is ["group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.]("group/version" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.)
@[::JSON::Field(key: "apiVersion", emit_null: false)]
@[::YAML::Field(key: "apiVersion", emit_null: false)]
property api_version : String | Nil
# Fields identifies a set of fields.
@[::JSON::Field(key: "fields", emit_null: false)]
@[::YAML::Field(key: "fields", emit_null: false)]
property fields : Apimachinery::Apis::Meta::V1::Fields | Nil
# Manager is an identifier of the workflow managing these fields.
@[::JSON::Field(key: "manager", emit_null: false)]
@[::YAML::Field(key: "manager", emit_null: false)]
property manager : String | Nil
# Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.
@[::JSON::Field(key: "operation", emit_null: false)]
@[::YAML::Field(key: "operation", emit_null: false)]
property operation : String | Nil
# Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'
@[::JSON::Field(key: "time", emit_null: false)]
@[::YAML::Field(key: "time", emit_null: false)]
property time : Time | Nil
def initialize(*, @api_version : String | Nil = nil, @fields : Apimachinery::Apis::Meta::V1::Fields | Nil = nil, @manager : String | Nil = nil, @operation : String | Nil = nil, @time : Time | Nil = nil)
end
end
end