-
Notifications
You must be signed in to change notification settings - Fork 0
/
cron_job_status.cr
31 lines (26 loc) · 1.27 KB
/
cron_job_status.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
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# CronJobStatus represents the current state of a cron job.
@[::K8S::Properties(
active: {type: Array(Api::Core::V1::ObjectReference), nilable: true, key: "active", getter: false, setter: false},
last_schedule_time: {type: Time, nilable: true, key: "lastScheduleTime", getter: false, setter: false},
)]
class Api::Batch::V1beta1::CronJobStatus
include ::JSON::Serializable
include ::JSON::Serializable::Unmapped
include ::YAML::Serializable
include ::YAML::Serializable::Unmapped
# A list of pointers to currently running jobs.
@[::JSON::Field(key: "active", emit_null: false)]
@[::YAML::Field(key: "active", emit_null: false)]
property active : Array(Api::Core::V1::ObjectReference) | Nil
# Information when was the last time the job was successfully scheduled.
@[::JSON::Field(key: "lastScheduleTime", emit_null: false, converter: K8S::TimeFormat.new)]
@[::YAML::Field(key: "lastScheduleTime", emit_null: false, converter: K8S::TimeFormat.new)]
property last_schedule_time : Time | Nil
def initialize(*, @active : Array(Api::Core::V1::ObjectReference) | Nil = nil, @last_schedule_time : Time | Nil = nil)
end
end
end