@daocloud-proto/kpanda 0.8.14-62 → 0.8.15-2
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.
|
@@ -98,4 +98,15 @@ export type DeleteJobRequest = {
|
|
|
98
98
|
cluster?: string
|
|
99
99
|
namespace?: string
|
|
100
100
|
name?: string
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type RestartJobRequest = {
|
|
104
|
+
cluster?: string
|
|
105
|
+
namespace?: string
|
|
106
|
+
name?: string
|
|
107
|
+
resourceVersion?: string
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type RestartJobResponse = {
|
|
111
|
+
job?: Job
|
|
101
112
|
}
|
|
@@ -226,6 +226,9 @@ export class Batch {
|
|
|
226
226
|
static GetJob(req: KpandaIoApiBatchV1alpha1Job.GetJobRequest, initReq?: fm.InitReq): Promise<KpandaIoApiBatchV1alpha1Job.Job> {
|
|
227
227
|
return fm.fetchReq<KpandaIoApiBatchV1alpha1Job.GetJobRequest, KpandaIoApiBatchV1alpha1Job.Job>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
228
228
|
}
|
|
229
|
+
static RestartJob(req: KpandaIoApiBatchV1alpha1Job.RestartJobRequest, initReq?: fm.InitReq): Promise<KpandaIoApiBatchV1alpha1Job.RestartJobResponse> {
|
|
230
|
+
return fm.fetchReq<KpandaIoApiBatchV1alpha1Job.RestartJobRequest, KpandaIoApiBatchV1alpha1Job.RestartJobResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}:restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
231
|
+
}
|
|
229
232
|
static DeleteJob(req: KpandaIoApiBatchV1alpha1Job.DeleteJobRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
230
233
|
return fm.fetchReq<KpandaIoApiBatchV1alpha1Job.DeleteJobRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/jobs/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
231
234
|
}
|