@daocloud-proto/kpanda 0.15.0-dev-ef030058 → 0.15.0-dev-e0bca44e

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.
@@ -64,6 +64,26 @@ export type RestartDeploymentResponse = {
64
64
  deployment?: Deployment
65
65
  }
66
66
 
67
+ export type StartDeploymentRequest = {
68
+ cluster?: string
69
+ namespace?: string
70
+ name?: string
71
+ }
72
+
73
+ export type StartDeploymentResponse = {
74
+ deployment?: Deployment
75
+ }
76
+
77
+ export type StopDeploymentRequest = {
78
+ cluster?: string
79
+ namespace?: string
80
+ name?: string
81
+ }
82
+
83
+ export type StopDeploymentResponse = {
84
+ deployment?: Deployment
85
+ }
86
+
67
87
  export type RollbackDeploymentRequest = {
68
88
  cluster?: string
69
89
  namespace?: string
@@ -68,6 +68,26 @@ export type RestartStatefulSetResponse = {
68
68
  statefulSet?: StatefulSet
69
69
  }
70
70
 
71
+ export type StartStatefulSetRequest = {
72
+ cluster?: string
73
+ namespace?: string
74
+ name?: string
75
+ }
76
+
77
+ export type StartStatefulSetResponse = {
78
+ statefulSet?: StatefulSet
79
+ }
80
+
81
+ export type StopStatefulSetRequest = {
82
+ cluster?: string
83
+ namespace?: string
84
+ name?: string
85
+ }
86
+
87
+ export type StopStatefulSetResponse = {
88
+ statefulSet?: StatefulSet
89
+ }
90
+
71
91
  export type RollbackStatefulSetRequest = {
72
92
  cluster?: string
73
93
  namespace?: string
@@ -139,6 +139,12 @@ export class Apps {
139
139
  static RestartDeployment(req: KpandaIoApiAppsV1alpha1Deployment.RestartDeploymentRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.RestartDeploymentResponse> {
140
140
  return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.RestartDeploymentRequest, KpandaIoApiAppsV1alpha1Deployment.RestartDeploymentResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:restart`, {...initReq, method: "POST"})
141
141
  }
142
+ static StartDeployment(req: KpandaIoApiAppsV1alpha1Deployment.StartDeploymentRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.StartDeploymentResponse> {
143
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.StartDeploymentRequest, KpandaIoApiAppsV1alpha1Deployment.StartDeploymentResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:start`, {...initReq, method: "POST"})
144
+ }
145
+ static StopDeployment(req: KpandaIoApiAppsV1alpha1Deployment.StopDeploymentRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.StopDeploymentResponse> {
146
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.StopDeploymentRequest, KpandaIoApiAppsV1alpha1Deployment.StopDeploymentResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:stop`, {...initReq, method: "POST"})
147
+ }
142
148
  static RollbackDeployment(req: KpandaIoApiAppsV1alpha1Deployment.RollbackDeploymentRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.RollbackDeploymentResponse> {
143
149
  return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.RollbackDeploymentRequest, KpandaIoApiAppsV1alpha1Deployment.RollbackDeploymentResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:rollback`, {...initReq, method: "POST", body: JSON.stringify(req)})
144
150
  }
@@ -175,6 +181,12 @@ export class Apps {
175
181
  static RestartStatefulSet(req: KpandaIoApiAppsV1alpha1Statefulset.RestartStatefulSetRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Statefulset.RestartStatefulSetResponse> {
176
182
  return fm.fetchReq<KpandaIoApiAppsV1alpha1Statefulset.RestartStatefulSetRequest, KpandaIoApiAppsV1alpha1Statefulset.RestartStatefulSetResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/statefulsets/${req["name"]}:restart`, {...initReq, method: "POST"})
177
183
  }
184
+ static StartStatefulSet(req: KpandaIoApiAppsV1alpha1Statefulset.StartStatefulSetRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Statefulset.StartStatefulSetResponse> {
185
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Statefulset.StartStatefulSetRequest, KpandaIoApiAppsV1alpha1Statefulset.StartStatefulSetResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/statefulsets/${req["name"]}:start`, {...initReq, method: "POST"})
186
+ }
187
+ static StopStatefulSet(req: KpandaIoApiAppsV1alpha1Statefulset.StopStatefulSetRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Statefulset.StopStatefulSetResponse> {
188
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Statefulset.StopStatefulSetRequest, KpandaIoApiAppsV1alpha1Statefulset.StopStatefulSetResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/statefulsets/${req["name"]}:stop`, {...initReq, method: "POST"})
189
+ }
178
190
  static RollbackStatefulSet(req: KpandaIoApiAppsV1alpha1Statefulset.RollbackStatefulSetRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Statefulset.RollbackStatefulSetResponse> {
179
191
  return fm.fetchReq<KpandaIoApiAppsV1alpha1Statefulset.RollbackStatefulSetRequest, KpandaIoApiAppsV1alpha1Statefulset.RollbackStatefulSetResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/statefulsets/${req["name"]}:rollback`, {...initReq, method: "POST", body: JSON.stringify(req)})
180
192
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.15.0-dev-ef030058",
3
+ "version":"v0.15.0-dev-e0bca44e",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {