@daocloud-proto/kpanda 0.8.15-32 → 0.8.15-38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,6 +28,7 @@ export type CronJob = {
|
|
|
28
28
|
|
|
29
29
|
export type CronJobSpec = {
|
|
30
30
|
schedule?: string
|
|
31
|
+
paused?: boolean
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
export type CronJobStatusCronJobCondition = {
|
|
@@ -86,4 +87,26 @@ export type DeleteCronJobRequest = {
|
|
|
86
87
|
cluster?: string
|
|
87
88
|
namespace?: string
|
|
88
89
|
name?: string
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type PauseCronJobRequest = {
|
|
93
|
+
cluster?: string
|
|
94
|
+
namespace?: string
|
|
95
|
+
name?: string
|
|
96
|
+
paused?: boolean
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type PauseCronJobResponse = {
|
|
100
|
+
cronjob?: CronJob
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type ResumeCronJobRequest = {
|
|
104
|
+
cluster?: string
|
|
105
|
+
namespace?: string
|
|
106
|
+
name?: string
|
|
107
|
+
paused?: boolean
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type ResumeCronJobResponse = {
|
|
111
|
+
cronjob?: CronJob
|
|
89
112
|
}
|
|
@@ -211,6 +211,12 @@ export class Batch {
|
|
|
211
211
|
static GetCronJob(req: KpandaIoApiBatchV1alpha1Cronjob.GetCronJobRequest, initReq?: fm.InitReq): Promise<KpandaIoApiBatchV1alpha1Cronjob.CronJob> {
|
|
212
212
|
return fm.fetchReq<KpandaIoApiBatchV1alpha1Cronjob.GetCronJobRequest, KpandaIoApiBatchV1alpha1Cronjob.CronJob>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/cronjobs/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
213
213
|
}
|
|
214
|
+
static PauseCronJob(req: KpandaIoApiBatchV1alpha1Cronjob.PauseCronJobRequest, initReq?: fm.InitReq): Promise<KpandaIoApiBatchV1alpha1Cronjob.PauseCronJobResponse> {
|
|
215
|
+
return fm.fetchReq<KpandaIoApiBatchV1alpha1Cronjob.PauseCronJobRequest, KpandaIoApiBatchV1alpha1Cronjob.PauseCronJobResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/cronjobs/${req["name"]}:pause`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
216
|
+
}
|
|
217
|
+
static ResumeCronJob(req: KpandaIoApiBatchV1alpha1Cronjob.ResumeCronJobRequest, initReq?: fm.InitReq): Promise<KpandaIoApiBatchV1alpha1Cronjob.ResumeCronJobResponse> {
|
|
218
|
+
return fm.fetchReq<KpandaIoApiBatchV1alpha1Cronjob.ResumeCronJobRequest, KpandaIoApiBatchV1alpha1Cronjob.ResumeCronJobResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/cronjobs/${req["name"]}:resume`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
219
|
+
}
|
|
214
220
|
static DeleteCronJob(req: KpandaIoApiBatchV1alpha1Cronjob.DeleteCronJobRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
215
221
|
return fm.fetchReq<KpandaIoApiBatchV1alpha1Cronjob.DeleteCronJobRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/cronjobs/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
216
222
|
}
|