@daocloud-proto/kairship 0.7.0-349 → 0.7.0-355
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.
|
@@ -156,4 +156,15 @@ export type PatchDeploymentRequest = {
|
|
|
156
156
|
|
|
157
157
|
export type PatchDeploymentResponse = {
|
|
158
158
|
data?: string
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export type UpdateDeploymentRequest = {
|
|
162
|
+
instance?: string
|
|
163
|
+
namespace?: string
|
|
164
|
+
data?: string
|
|
165
|
+
name?: string
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export type UpdateDeploymentResponse = {
|
|
169
|
+
data?: string
|
|
159
170
|
}
|
|
@@ -108,6 +108,9 @@ export class Apps {
|
|
|
108
108
|
static CreateDeployment(req: KairshipIoApiAppsV1alpha1Deployment.CreateDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.CreateDeploymentResponse> {
|
|
109
109
|
return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.CreateDeploymentRequest, KairshipIoApiAppsV1alpha1Deployment.CreateDeploymentResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
110
110
|
}
|
|
111
|
+
static UpdateDeployment(req: KairshipIoApiAppsV1alpha1Deployment.UpdateDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.UpdateDeploymentResponse> {
|
|
112
|
+
return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.UpdateDeploymentRequest, KairshipIoApiAppsV1alpha1Deployment.UpdateDeploymentResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
113
|
+
}
|
|
111
114
|
static PatchDeployment(req: KairshipIoApiAppsV1alpha1Deployment.PatchDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.PatchDeploymentResponse> {
|
|
112
115
|
return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.PatchDeploymentRequest, KairshipIoApiAppsV1alpha1Deployment.PatchDeploymentResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}`, {...initReq, method: "PATCH", body: JSON.stringify(req, fm.replacer)})
|
|
113
116
|
}
|