@daocloud-proto/kairship 0.2.2-2 → 0.2.2-6
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.
|
@@ -92,6 +92,13 @@ export type RestartDeploymentResponse = {
|
|
|
92
92
|
deployment?: Deployment
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
export type PromoteMemberClusterDeploymentRequest = {
|
|
96
|
+
instance?: string
|
|
97
|
+
cluster?: string
|
|
98
|
+
namespace?: string
|
|
99
|
+
name?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
95
102
|
export type ListDeploymentsRequest = {
|
|
96
103
|
instance?: string
|
|
97
104
|
namespace?: string
|
|
@@ -103,6 +110,22 @@ export type ListDeploymentsRequest = {
|
|
|
103
110
|
sortDir?: KairshipIoApiTypesPage.SortDir
|
|
104
111
|
}
|
|
105
112
|
|
|
113
|
+
export type ListMemberClusterDeploymentsRequest = {
|
|
114
|
+
instance?: string
|
|
115
|
+
cluster?: string
|
|
116
|
+
namespace?: string
|
|
117
|
+
page?: number
|
|
118
|
+
pageSize?: number
|
|
119
|
+
name?: string[]
|
|
120
|
+
sortBy?: KairshipIoApiTypesPage.SortBy
|
|
121
|
+
sortDir?: KairshipIoApiTypesPage.SortDir
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type ListMemberClusterDeploymentsResponse = {
|
|
125
|
+
items?: Deployment[]
|
|
126
|
+
pagination?: KairshipIoApiTypesPage.Pagination
|
|
127
|
+
}
|
|
128
|
+
|
|
106
129
|
export type ListDeploymentsResponse = {
|
|
107
130
|
items?: Deployment[]
|
|
108
131
|
pagination?: KairshipIoApiTypesPage.Pagination
|
|
@@ -229,6 +229,12 @@ export class Apps {
|
|
|
229
229
|
static RestartDeployment(req: KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentResponse> {
|
|
230
230
|
return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentRequest, KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:restart`, {...initReq, method: "POST"})
|
|
231
231
|
}
|
|
232
|
+
static ListMemberClusterDeployments(req: KairshipIoApiAppsV1alpha1Deployment.ListMemberClusterDeploymentsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.ListMemberClusterDeploymentsResponse> {
|
|
233
|
+
return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.ListMemberClusterDeploymentsRequest, KairshipIoApiAppsV1alpha1Deployment.ListMemberClusterDeploymentsResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/member-clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments?${fm.renderURLSearchParams(req, ["instance", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
234
|
+
}
|
|
235
|
+
static PromoteMemberClusterDeployment(req: KairshipIoApiAppsV1alpha1Deployment.PromoteMemberClusterDeploymentRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
236
|
+
return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.PromoteMemberClusterDeploymentRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/member-clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:promote`, {...initReq, method: "POST"})
|
|
237
|
+
}
|
|
232
238
|
}
|
|
233
239
|
export class Instance {
|
|
234
240
|
static CreateInstance(req: KairshipIoApiInstanceV1alpha1Instance.CreateInstanceRequest, initReq?: fm.InitReq): Promise<KairshipIoApiInstanceV1alpha1Instance.Instance> {
|