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

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,26 +64,6 @@ 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
-
87
67
  export type RollbackDeploymentRequest = {
88
68
  cluster?: string
89
69
  namespace?: string
@@ -68,26 +68,6 @@ 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
-
91
71
  export type RollbackStatefulSetRequest = {
92
72
  cluster?: string
93
73
  namespace?: string
@@ -139,12 +139,6 @@ 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
- }
148
142
  static RollbackDeployment(req: KpandaIoApiAppsV1alpha1Deployment.RollbackDeploymentRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.RollbackDeploymentResponse> {
149
143
  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)})
150
144
  }
@@ -181,12 +175,6 @@ export class Apps {
181
175
  static RestartStatefulSet(req: KpandaIoApiAppsV1alpha1Statefulset.RestartStatefulSetRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Statefulset.RestartStatefulSetResponse> {
182
176
  return fm.fetchReq<KpandaIoApiAppsV1alpha1Statefulset.RestartStatefulSetRequest, KpandaIoApiAppsV1alpha1Statefulset.RestartStatefulSetResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/statefulsets/${req["name"]}:restart`, {...initReq, method: "POST"})
183
177
  }
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
- }
190
178
  static RollbackStatefulSet(req: KpandaIoApiAppsV1alpha1Statefulset.RollbackStatefulSetRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Statefulset.RollbackStatefulSetResponse> {
191
179
  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)})
192
180
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.15.0-dev-e0bca44e",
3
+ "version":"v0.15.0-dev-c3d405bc",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {