@daocloud-proto/kairship 0.0.4 → 0.0.5-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.
@@ -0,0 +1,130 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as KairshipIoApiCoreV1alpha1Pod from "../../core/v1alpha1/pod.pb"
8
+ import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
9
+ import * as KairshipIoApiTypesPage from "../../types/page.pb"
10
+ export type Deployment = {
11
+ metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
12
+ spec?: DeploymentSpec
13
+ status?: DeploymentStatus
14
+ revision?: string
15
+ }
16
+
17
+ export type DeploymentSpec = {
18
+ template?: KairshipIoApiCoreV1alpha1Pod.PodTemplateSpec
19
+ strategy?: KairshipIoApiTypesObjectmeta.UpdateStrategy
20
+ paused?: boolean
21
+ }
22
+
23
+ export type DeploymentStatus = {
24
+ availableReplicas?: number
25
+ readyReplicas?: number
26
+ replicas?: number
27
+ state?: KairshipIoApiTypesObjectmeta.WorkloadState
28
+ conditions?: KairshipIoApiTypesObjectmeta.Condition[]
29
+ clusters?: string[]
30
+ }
31
+
32
+ export type CreateDeploymentRequest = {
33
+ instance?: string
34
+ namespace?: string
35
+ data?: string
36
+ }
37
+
38
+ export type CreateDeploymentResponse = {
39
+ data?: string
40
+ }
41
+
42
+ export type GetDeploymentRequest = {
43
+ name?: string
44
+ instance?: string
45
+ namespace?: string
46
+ }
47
+
48
+ export type GetDeploymentJSONRequest = {
49
+ instance?: string
50
+ namespace?: string
51
+ name?: string
52
+ }
53
+
54
+ export type GetDeploymentJSONResponse = {
55
+ data?: string
56
+ }
57
+
58
+ export type DeleteDeploymentRequest = {
59
+ instance?: string
60
+ namespace?: string
61
+ name?: string
62
+ }
63
+
64
+ export type PauseDeploymentRequest = {
65
+ instance?: string
66
+ namespace?: string
67
+ name?: string
68
+ }
69
+
70
+ export type PauseDeploymentResponse = {
71
+ deployment?: Deployment
72
+ }
73
+
74
+ export type ResumeDeploymentRequest = {
75
+ instance?: string
76
+ namespace?: string
77
+ name?: string
78
+ }
79
+
80
+ export type ResumeDeploymentResponse = {
81
+ deployment?: Deployment
82
+ }
83
+
84
+ export type RestartDeploymentRequest = {
85
+ instance?: string
86
+ namespace?: string
87
+ name?: string
88
+ }
89
+
90
+ export type RestartDeploymentResponse = {
91
+ deployment?: Deployment
92
+ }
93
+
94
+ export type ListDeploymentsResponse = {
95
+ items?: Deployment[]
96
+ pagination?: KairshipIoApiTypesPage.Pagination
97
+ }
98
+
99
+ export type ListAllDeploymentsRequest = {
100
+ instance?: string[]
101
+ namespace?: string
102
+ page?: number
103
+ pageSize?: number
104
+ name?: string[]
105
+ phases?: string[]
106
+ sortBy?: KairshipIoApiTypesPage.SortBy
107
+ orderBy?: KairshipIoApiTypesPage.SortDir
108
+ }
109
+
110
+ export type ListDeploymentsRequest = {
111
+ instance?: string
112
+ namespace?: string
113
+ page?: number
114
+ pageSize?: number
115
+ name?: string[]
116
+ phases?: string[]
117
+ sortBy?: KairshipIoApiTypesPage.SortBy
118
+ orderBy?: KairshipIoApiTypesPage.SortDir
119
+ }
120
+
121
+ export type PatchDeploymentRequest = {
122
+ instance?: string
123
+ namespace?: string
124
+ name?: string
125
+ data?: string
126
+ }
127
+
128
+ export type PatchDeploymentResponse = {
129
+ data?: string
130
+ }
@@ -0,0 +1,83 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
+ import * as KairshipIoApiTypesPage from "../../types/page.pb"
9
+ export type ConfigMap = {
10
+ metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
11
+ immutable?: boolean
12
+ data?: {[key: string]: string}
13
+ binaryData?: {[key: string]: Uint8Array}
14
+ }
15
+
16
+ export type ListConfigMapsRequest = {
17
+ instance?: string
18
+ namespace?: string
19
+ page?: number
20
+ pageSize?: number
21
+ sortBy?: KairshipIoApiTypesPage.SortBy
22
+ orderBy?: KairshipIoApiTypesPage.SortDir
23
+ name?: string[]
24
+ }
25
+
26
+ export type ListConfigMapsResponse = {
27
+ items?: ConfigMap[]
28
+ pagination?: KairshipIoApiTypesPage.Pagination
29
+ }
30
+
31
+ export type GetConfigMapRequest = {
32
+ ins?: string
33
+ namespace?: string
34
+ name?: string
35
+ }
36
+
37
+ export type GetConfigMapJSONRequest = {
38
+ instance?: string
39
+ namespace?: string
40
+ name?: string
41
+ }
42
+
43
+ export type GetConfigMapJSONResponse = {
44
+ data?: string
45
+ }
46
+
47
+ export type CreateConfigMapRequest = {
48
+ instance?: string
49
+ namespace?: string
50
+ data?: string
51
+ }
52
+
53
+ export type CreateConfigMapResponse = {
54
+ data?: string
55
+ }
56
+
57
+ export type UpdateConfigMapRequest = {
58
+ instance?: string
59
+ namespace?: string
60
+ name?: string
61
+ data?: string
62
+ }
63
+
64
+ export type UpdateConfigMapResponse = {
65
+ data?: string
66
+ }
67
+
68
+ export type PatchConfigMapRequest = {
69
+ instance?: string
70
+ namespace?: string
71
+ name?: string
72
+ data?: {[key: string]: string}
73
+ }
74
+
75
+ export type PatchConfigMapResponse = {
76
+ data?: string
77
+ }
78
+
79
+ export type DeleteConfigMapRequest = {
80
+ instance?: string
81
+ namespace?: string
82
+ name?: string
83
+ }
@@ -0,0 +1,86 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
+ import * as KairshipIoApiTypesPage from "../../types/page.pb"
9
+ export type Namespace = {
10
+ metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
11
+ spec?: NamespaceSpec
12
+ }
13
+
14
+ export type NamespaceSpec = {
15
+ finalizers?: string[]
16
+ }
17
+
18
+ export type NamespaceStatus = {
19
+ phase?: string
20
+ conditions?: NamespaceCondition[]
21
+ }
22
+
23
+ export type NamespaceCondition = {
24
+ type?: string
25
+ status?: string
26
+ lastTransitionTime?: string
27
+ reason?: string
28
+ message?: string
29
+ }
30
+
31
+ export type ListNamespacesRequest = {
32
+ instance?: string[]
33
+ name?: string[]
34
+ page?: number
35
+ pageSize?: number
36
+ sortBy?: KairshipIoApiTypesPage.SortBy
37
+ orderBy?: KairshipIoApiTypesPage.SortDir
38
+ }
39
+
40
+ export type ListNamespacesResponse = {
41
+ items?: Namespace[]
42
+ pagination?: KairshipIoApiTypesPage.Pagination
43
+ }
44
+
45
+ export type GetNamespaceJSONRequest = {
46
+ instance?: string
47
+ name?: string
48
+ }
49
+
50
+ export type GetNamespaceJSONResponse = {
51
+ data?: string
52
+ }
53
+
54
+ export type CreateNamespaceRequest = {
55
+ instance?: string
56
+ data?: string
57
+ }
58
+
59
+ export type CreateNamespaceResponse = {
60
+ namespace?: Namespace
61
+ }
62
+
63
+ export type UpdateNamespaceRequest = {
64
+ instance?: string
65
+ name?: string
66
+ data?: string
67
+ }
68
+
69
+ export type UpdateNamespaceResponse = {
70
+ data?: string
71
+ }
72
+
73
+ export type PatchNamespaceRequest = {
74
+ instance?: string
75
+ name?: string
76
+ data?: {[key: string]: string}
77
+ }
78
+
79
+ export type PatchNamespaceResponse = {
80
+ data?: string
81
+ }
82
+
83
+ export type DeleteNamespaceRequest = {
84
+ instance?: string
85
+ name?: string
86
+ }
@@ -0,0 +1,191 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
+ import * as KairshipIoApiTypesPage from "../../types/page.pb"
9
+ import * as KairshipIoApiCoreV1alpha1Pod from "./pod.pb"
10
+
11
+ export enum AccessMode {
12
+ ACCESS_MODE_UNSPECIFIED = "ACCESS_MODE_UNSPECIFIED",
13
+ ReadWriteOnce = "ReadWriteOnce",
14
+ ReadOnlyMany = "ReadOnlyMany",
15
+ ReadWriteMany = "ReadWriteMany",
16
+ ReadWriteOncePod = "ReadWriteOncePod",
17
+ }
18
+
19
+ export enum PersistentVolumeClaimSpecVolumeMode {
20
+ VOLUME_MODE_UNSPECIFIED = "VOLUME_MODE_UNSPECIFIED",
21
+ Block = "Block",
22
+ Filesystem = "Filesystem",
23
+ }
24
+
25
+ export enum PersistentVolumeClaimStatusPhase {
26
+ PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
27
+ Pending = "Pending",
28
+ Bound = "Bound",
29
+ Lost = "Lost",
30
+ }
31
+
32
+ export type PersistentVolumeClaim = {
33
+ metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
34
+ spec?: PersistentVolumeClaimSpec
35
+ status?: PersistentVolumeClaimStatus
36
+ }
37
+
38
+ export type PersistentVolumeClaimSpec = {
39
+ accessModes?: AccessMode[]
40
+ selector?: KairshipIoApiTypesObjectmeta.LabelSelector
41
+ resources?: KairshipIoApiCoreV1alpha1Pod.ResourceRequirements
42
+ volumeName?: string
43
+ storageClassName?: string
44
+ volumeMode?: PersistentVolumeClaimSpecVolumeMode
45
+ dataSource?: TypedLocalObjectReference
46
+ dataSourceRef?: TypedLocalObjectReference
47
+ supportExpansion?: boolean
48
+ supportSnapshot?: boolean
49
+ }
50
+
51
+ export type PersistentVolumeClaimStatus = {
52
+ phase?: PersistentVolumeClaimStatusPhase
53
+ accessModes?: AccessMode[]
54
+ capacity?: KairshipIoApiCoreV1alpha1Pod.ResourceList
55
+ conditions?: PersistentVolumeClaimCondition[]
56
+ podName?: string[]
57
+ snapshotCount?: number
58
+ }
59
+
60
+ export type PersistentVolumeClaimCondition = {
61
+ type?: string
62
+ status?: string
63
+ lastProbeTime?: string
64
+ lastTransitionTime?: string
65
+ reason?: string
66
+ message?: string
67
+ }
68
+
69
+ export type TypedLocalObjectReference = {
70
+ apiGroup?: string
71
+ kind?: string
72
+ name?: string
73
+ }
74
+
75
+ export type ListPersistentVolumeClaimsRequest = {
76
+ instance?: string
77
+ namespace?: string
78
+ page?: number
79
+ pageSize?: number
80
+ name?: string[]
81
+ phases?: string[]
82
+ sortBy?: KairshipIoApiTypesPage.SortBy
83
+ orderBy?: KairshipIoApiTypesPage.SortDir
84
+ }
85
+
86
+ export type ListPersistentVolumeClaimsResponse = {
87
+ items?: PersistentVolumeClaim[]
88
+ pagination?: KairshipIoApiTypesPage.Pagination
89
+ }
90
+
91
+ export type GetPersistentVolumeClaimRequest = {
92
+ instance?: string
93
+ namespace?: string
94
+ name?: string
95
+ }
96
+
97
+ export type UpdatePersistentVolumeClaimLabelsRequest = {
98
+ instance?: string
99
+ namespace?: string
100
+ name?: string
101
+ labels?: {[key: string]: string}
102
+ }
103
+
104
+ export type UpdatePersistentVolumeClaimLabelsResponse = {
105
+ labels?: {[key: string]: string}
106
+ }
107
+
108
+ export type UpdatePersistentVolumeClaimAnnotationsRequest = {
109
+ instance?: string
110
+ namespace?: string
111
+ name?: string
112
+ annotations?: {[key: string]: string}
113
+ }
114
+
115
+ export type UpdatePersistentVolumeClaimAnnotationsResponse = {
116
+ annotations?: {[key: string]: string}
117
+ }
118
+
119
+ export type CreatePersistentVolumeClaimRequest = {
120
+ instance?: string
121
+ namespace?: string
122
+ data?: string
123
+ }
124
+
125
+ export type CreatePersistentVolumeClaimResponse = {
126
+ data?: string
127
+ }
128
+
129
+ export type CreatePersistentVolumeClaimSnapshotRequest = {
130
+ instance?: string
131
+ namespace?: string
132
+ data?: string
133
+ }
134
+
135
+ export type CreatePersistentVolumeClaimSnapshotResponse = {
136
+ data?: string
137
+ }
138
+
139
+ export type DeletePersistentVolumeClaimRequest = {
140
+ instance?: string
141
+ namespace?: string
142
+ name?: string
143
+ }
144
+
145
+ export type ScalePersistentVolumeClaimRequest = {
146
+ instance?: string
147
+ namespace?: string
148
+ name?: string
149
+ capacity?: string
150
+ }
151
+
152
+ export type ScalePersistentVolumeClaimResponse = {
153
+ capacity?: string
154
+ }
155
+
156
+ export type GetPersistentVolumeClaimSnapshotJSONRequest = {
157
+ instance?: string
158
+ namespace?: string
159
+ name?: string
160
+ }
161
+
162
+ export type GetPersistentVolumeClaimSnapshotJSONResponse = {
163
+ data?: string
164
+ }
165
+
166
+ export type GetPersistentVolumeClaimJSONRequest = {
167
+ instance?: string
168
+ namespace?: string
169
+ name?: string
170
+ }
171
+
172
+ export type GetPersistentVolumeClaimJSONResponse = {
173
+ data?: string
174
+ }
175
+
176
+ export type DeletePersistentVolumeClaimSnapshotRequest = {
177
+ instance?: string
178
+ namespace?: string
179
+ name?: string
180
+ }
181
+
182
+ export type UpdatePersistentVolumeClaimRequest = {
183
+ instance?: string
184
+ namespace?: string
185
+ name?: string
186
+ data?: string
187
+ }
188
+
189
+ export type UpdatePersistentVolumeClaimResponse = {
190
+ data?: string
191
+ }
@@ -0,0 +1,436 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
+
9
+ export enum PodStatusPhase {
10
+ PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
11
+ Unknown = "Unknown",
12
+ Pending = "Pending",
13
+ Running = "Running",
14
+ Succeeded = "Succeeded",
15
+ Failed = "Failed",
16
+ }
17
+
18
+ export enum PodStatusOwnedByKind {
19
+ KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
20
+ DEPLOYMENT = "DEPLOYMENT",
21
+ STATEFULSET = "STATEFULSET",
22
+ DAEMONSET = "DAEMONSET",
23
+ }
24
+
25
+ export enum ContainerStatusPhase {
26
+ PHASE_UNSPECIFIED = "PHASE_UNSPECIFIED",
27
+ Waiting = "Waiting",
28
+ Running = "Running",
29
+ Terminated = "Terminated",
30
+ }
31
+
32
+ export type PodTemplateSpec = {
33
+ metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
34
+ spec?: PodSpec
35
+ }
36
+
37
+ export type Pod = {
38
+ metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
39
+ spec?: PodSpec
40
+ status?: PodStatus
41
+ }
42
+
43
+ export type PodStatusOwnedBy = {
44
+ kind?: PodStatusOwnedByKind
45
+ name?: string
46
+ }
47
+
48
+ export type PodStatus = {
49
+ phase?: PodStatusPhase
50
+ hostIP?: string
51
+ podIP?: string
52
+ podIPs?: PodIp[]
53
+ startTime?: string
54
+ cpuRequest?: number
55
+ cpuLimit?: number
56
+ memoryRequest?: number
57
+ memoryLimit?: number
58
+ cpuUsageRate?: number
59
+ memoryUsageRate?: number
60
+ restartCount?: number
61
+ ownedBy?: PodStatusOwnedBy
62
+ conditions?: KairshipIoApiTypesObjectmeta.Condition[]
63
+ containerTotalCount?: number
64
+ containerReadyCount?: number
65
+ }
66
+
67
+ export type ContainerStatus = {
68
+ name?: string
69
+ state?: ContainerState
70
+ ready?: boolean
71
+ restartCount?: number
72
+ image?: string
73
+ started?: boolean
74
+ phase?: ContainerStatusPhase
75
+ }
76
+
77
+ export type ContainerState = {
78
+ waiting?: ContainerStateWaiting
79
+ running?: ContainerStateRunning
80
+ terminated?: ContainerStateTerminated
81
+ }
82
+
83
+ export type ContainerStateWaiting = {
84
+ reason?: string
85
+ message?: string
86
+ }
87
+
88
+ export type ContainerStateRunning = {
89
+ startedAt?: string
90
+ }
91
+
92
+ export type ContainerStateTerminated = {
93
+ exitCode?: number
94
+ signal?: number
95
+ reason?: string
96
+ message?: string
97
+ startedAt?: string
98
+ finishedAt?: string
99
+ containerID?: string
100
+ }
101
+
102
+ export type PodIp = {
103
+ ip?: string
104
+ }
105
+
106
+ export type Running = {
107
+ startedAt?: string
108
+ }
109
+
110
+ export type PodSpec = {
111
+ volumes?: Volume[]
112
+ initContainers?: Container[]
113
+ containers?: Container[]
114
+ restartPolicy?: string
115
+ nodeName?: string
116
+ hostNetwork?: boolean
117
+ affinity?: Affinity
118
+ tolerations?: Toleration[]
119
+ }
120
+
121
+ export type TopologySpreadConstraint = {
122
+ maxSkew?: number
123
+ topologyKey?: string
124
+ whenUnsatisfiable?: string
125
+ labelSelector?: KairshipIoApiTypesObjectmeta.LabelSelector
126
+ }
127
+
128
+ export type PodDNSConfig = {
129
+ }
130
+
131
+ export type PodReadinessGate = {
132
+ }
133
+
134
+ export type Toleration = {
135
+ key?: string
136
+ operator?: string
137
+ value?: string
138
+ effect?: string
139
+ tolerationSeconds?: string
140
+ }
141
+
142
+ export type HostAlias = {
143
+ ip?: string
144
+ hostnames?: string[]
145
+ }
146
+
147
+ export type PodSecurityContext = {
148
+ }
149
+
150
+ export type LocalObjectReference = {
151
+ name?: string
152
+ }
153
+
154
+ export type Container = {
155
+ name?: string
156
+ image?: string
157
+ command?: string[]
158
+ args?: string[]
159
+ workingDir?: string
160
+ ports?: Ports[]
161
+ envFrom?: EnvFromSource[]
162
+ env?: EnvVar[]
163
+ resources?: ResourceRequirements
164
+ volumeMounts?: VolumeMount[]
165
+ livenessProbe?: Probe
166
+ readinessProbe?: Probe
167
+ startupProbe?: Probe
168
+ lifecycle?: Lifecycle
169
+ imagePullPolicy?: string
170
+ securityContext?: SecurityContext
171
+ }
172
+
173
+ export type VolumeMount = {
174
+ name?: string
175
+ readOnly?: boolean
176
+ mountPath?: string
177
+ subPath?: string
178
+ mountPropagation?: string
179
+ subPathExpr?: string
180
+ }
181
+
182
+ export type VolumeDevice = {
183
+ }
184
+
185
+ export type EnvFromSource = {
186
+ prefix?: string
187
+ configMapRef?: ConfigMapEnvSource
188
+ secretRef?: SecretEnvSource
189
+ }
190
+
191
+ export type ConfigMapEnvSource = {
192
+ name?: string
193
+ optional?: boolean
194
+ }
195
+
196
+ export type SecretEnvSource = {
197
+ name?: string
198
+ optional?: boolean
199
+ }
200
+
201
+ export type EnvVar = {
202
+ name?: string
203
+ value?: string
204
+ valueFrom?: EnvVarSource
205
+ }
206
+
207
+ export type Probe = {
208
+ failureThreshold?: number
209
+ periodSeconds?: number
210
+ successThreshold?: number
211
+ timeoutSeconds?: number
212
+ initialDelaySeconds?: number
213
+ terminationGracePeriodSeconds?: string
214
+ httpGet?: HTTPGetAction
215
+ exec?: ExecAction
216
+ tcpSocket?: TCPSocketAction
217
+ }
218
+
219
+ export type TCPSocketAction = {
220
+ port?: number
221
+ host?: string
222
+ }
223
+
224
+ export type Ports = {
225
+ containerPort?: number
226
+ hostPort?: number
227
+ name?: string
228
+ protocol?: string
229
+ }
230
+
231
+ export type HTTPGetAction = {
232
+ path?: string
233
+ port?: string
234
+ host?: string
235
+ scheme?: string
236
+ }
237
+
238
+ export type ResourceList = {
239
+ cpu?: string
240
+ memory?: string
241
+ storage?: string
242
+ }
243
+
244
+ export type ResourceRequirements = {
245
+ limits?: ResourceList
246
+ requests?: ResourceList
247
+ }
248
+
249
+ export type VolumeMounts = {
250
+ mountPath?: string
251
+ name?: string
252
+ readOnly?: boolean
253
+ }
254
+
255
+ export type FieldRef = {
256
+ apiVersion?: string
257
+ fieldPath?: string
258
+ }
259
+
260
+ export type EnvVarSource = {
261
+ fieldRef?: ObjectFieldSelector
262
+ resourceFieldRef?: ResourceFieldSelector
263
+ configMapKeyRef?: ConfigMapKeySelector
264
+ secretKeyRef?: SecretKeySelector
265
+ }
266
+
267
+ export type ObjectFieldSelector = {
268
+ apiVersion?: string
269
+ fieldPath?: string
270
+ }
271
+
272
+ export type ResourceFieldSelector = {
273
+ containerName?: string
274
+ resource?: string
275
+ }
276
+
277
+ export type ConfigMapKeySelector = {
278
+ name?: string
279
+ key?: string
280
+ optional?: boolean
281
+ }
282
+
283
+ export type SecretKeySelector = {
284
+ name?: string
285
+ key?: string
286
+ optional?: boolean
287
+ }
288
+
289
+ export type SecurityContext = {
290
+ privileged?: boolean
291
+ runAsUser?: string
292
+ }
293
+
294
+ export type Capabilities = {
295
+ add?: string[]
296
+ drop?: string[]
297
+ }
298
+
299
+ export type SELinuxOptions = {
300
+ }
301
+
302
+ export type SeccompProfile = {
303
+ }
304
+
305
+ export type WindowsSecurityContextOptions = {
306
+ }
307
+
308
+ export type Volume = {
309
+ name?: string
310
+ hostPath?: HostPathVolumeSource
311
+ emptyDir?: EmptyDirVolumeSource
312
+ secret?: SecretVolumeSource
313
+ persistentVolumeClaim?: PersistentVolumeClaimVolumeSource
314
+ downwardAPI?: DownwardAPIVolumeSource
315
+ configMap?: ConfigMapVolumeSource
316
+ }
317
+
318
+ export type HostPathVolumeSource = {
319
+ path?: string
320
+ type?: string
321
+ }
322
+
323
+ export type EmptyDirVolumeSource = {
324
+ medium?: string
325
+ sizeLimit?: string
326
+ }
327
+
328
+ export type SecretVolumeSource = {
329
+ secretName?: string
330
+ items?: KeyToPath[]
331
+ defaultMode?: number
332
+ optional?: boolean
333
+ }
334
+
335
+ export type KeyToPath = {
336
+ key?: string
337
+ path?: string
338
+ mode?: number
339
+ }
340
+
341
+ export type PersistentVolumeClaimVolumeSource = {
342
+ claimName?: string
343
+ readOnly?: boolean
344
+ }
345
+
346
+ export type DownwardAPIVolumeSource = {
347
+ items?: DownwardAPIVolumeFile[]
348
+ defaultMode?: number
349
+ }
350
+
351
+ export type DownwardAPIVolumeFile = {
352
+ path?: string
353
+ fieldRef?: ObjectFieldSelector
354
+ resourceFieldRef?: ResourceFieldSelector
355
+ mode?: number
356
+ }
357
+
358
+ export type ConfigMapVolumeSource = {
359
+ name?: string
360
+ items?: KeyToPath[]
361
+ defaultMode?: number
362
+ optional?: boolean
363
+ }
364
+
365
+ export type Handler = {
366
+ exec?: ExecAction
367
+ httpGet?: HTTPGetAction
368
+ tCPSocket?: TCPSocketAction
369
+ }
370
+
371
+ export type Lifecycle = {
372
+ postStart?: Handler
373
+ preStop?: Handler
374
+ }
375
+
376
+ export type ExecAction = {
377
+ command?: string[]
378
+ }
379
+
380
+ export type RequiredDuringSchedulingIgnoredDuringExecution = {
381
+ labelSelector?: KairshipIoApiTypesObjectmeta.LabelSelector
382
+ topologyKey?: string
383
+ }
384
+
385
+ export type Affinity = {
386
+ nodeAffinity?: NodeAffinity
387
+ podAffinity?: PodAffinity
388
+ podAntiAffinity?: PodAffinity
389
+ }
390
+
391
+ export type NodeAffinity = {
392
+ requiredDuringSchedulingIgnoredDuringExecution?: NodeSelector
393
+ preferredDuringSchedulingIgnoredDuringExecution?: PreferredSchedulingTerm[]
394
+ }
395
+
396
+ export type NodeSelector = {
397
+ nodeSelectorTerms?: NodeSelectorTerm[]
398
+ }
399
+
400
+ export type NodeSelectorTerm = {
401
+ matchExpressions?: NodeSelectorRequirement[]
402
+ matchFields?: NodeSelectorRequirement[]
403
+ }
404
+
405
+ export type NodeSelectorRequirement = {
406
+ key?: string
407
+ operator?: string
408
+ values?: string[]
409
+ }
410
+
411
+ export type PreferredSchedulingTerm = {
412
+ weight?: number
413
+ preference?: NodeSelectorTerm
414
+ }
415
+
416
+ export type PodAffinity = {
417
+ requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]
418
+ preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]
419
+ }
420
+
421
+ export type PodAffinityTerm = {
422
+ labelSelector?: KairshipIoApiTypesObjectmeta.LabelSelector
423
+ namespaces?: string[]
424
+ topologyKey?: string
425
+ namespaceSelector?: KairshipIoApiTypesObjectmeta.LabelSelector
426
+ }
427
+
428
+ export type WeightedPodAffinityTerm = {
429
+ weight?: number
430
+ podAffinityTerm?: PodAffinityTerm
431
+ }
432
+
433
+ export type PodAntiAffinity = {
434
+ requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]
435
+ preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]
436
+ }
@@ -0,0 +1,84 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
+ import * as KairshipIoApiTypesPage from "../../types/page.pb"
9
+ export type Secret = {
10
+ metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
11
+ immutable?: boolean
12
+ data?: {[key: string]: string}
13
+ stringData?: {[key: string]: string}
14
+ type?: string
15
+ }
16
+
17
+ export type ListSecretsRequest = {
18
+ instance?: string
19
+ page?: number
20
+ pageSize?: number
21
+ namespace?: string
22
+ name?: string[]
23
+ sortBy?: KairshipIoApiTypesPage.SortBy
24
+ orderBy?: KairshipIoApiTypesPage.SortDir
25
+ }
26
+
27
+ export type ListSecretsResponse = {
28
+ items?: Secret[]
29
+ pagination?: KairshipIoApiTypesPage.Pagination
30
+ }
31
+
32
+ export type GetSecretRequest = {
33
+ instance?: string
34
+ namespace?: string
35
+ name?: string
36
+ }
37
+
38
+ export type GetSecretJSONRequest = {
39
+ instance?: string
40
+ namespace?: string
41
+ name?: string
42
+ }
43
+
44
+ export type GetSecretJSONResponse = {
45
+ data?: string
46
+ }
47
+
48
+ export type CreateSecretRequest = {
49
+ instance?: string
50
+ namespace?: string
51
+ data?: string
52
+ }
53
+
54
+ export type CreateSecretResponse = {
55
+ data?: string
56
+ }
57
+
58
+ export type UpdateSecretRequest = {
59
+ instance?: string
60
+ namespace?: string
61
+ name?: string
62
+ data?: string
63
+ }
64
+
65
+ export type UpdateSecretResponse = {
66
+ data?: string
67
+ }
68
+
69
+ export type DeleteSecretRequest = {
70
+ instance?: string
71
+ namespace?: string
72
+ name?: string
73
+ }
74
+
75
+ export type PatchSecretRequest = {
76
+ instance?: string
77
+ namespace?: string
78
+ name?: string
79
+ data?: {[key: string]: string}
80
+ }
81
+
82
+ export type PatchSecretResponse = {
83
+ data?: string
84
+ }
@@ -0,0 +1,127 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
+ import * as KairshipIoApiTypesPage from "../../types/page.pb"
9
+
10
+ export enum ServiceType {
11
+ SERVICE_TYPE_UNSPECIFIED = "SERVICE_TYPE_UNSPECIFIED",
12
+ ClusterIP = "ClusterIP",
13
+ NodePort = "NodePort",
14
+ LoadBalancer = "LoadBalancer",
15
+ ExternalName = "ExternalName",
16
+ }
17
+
18
+ export enum ListServicesRequestKind {
19
+ KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
20
+ Deployment = "Deployment",
21
+ StatefulSet = "StatefulSet",
22
+ DaemonSet = "DaemonSet",
23
+ }
24
+
25
+ export type Service = {
26
+ metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
27
+ spec?: ServiceSpec
28
+ }
29
+
30
+ export type ServiceSpec = {
31
+ ports?: ServicePort[]
32
+ selector?: {[key: string]: string}
33
+ clusterIP?: string
34
+ clusterIPs?: string[]
35
+ type?: ServiceType
36
+ externalIPs?: string[]
37
+ sessionAffinity?: string
38
+ loadBalancerIP?: string
39
+ iPFamilies?: string[]
40
+ }
41
+
42
+ export type ServicePort = {
43
+ name?: string
44
+ protocol?: string
45
+ appProtocol?: string
46
+ port?: number
47
+ targetPort?: number
48
+ nodePort?: number
49
+ }
50
+
51
+ export type SessionAffinityConfig = {
52
+ }
53
+
54
+ export type LoadBalancerStatus = {
55
+ }
56
+
57
+ export type ListServicesRequest = {
58
+ instance?: string
59
+ namespace?: string
60
+ kind?: ListServicesRequestKind
61
+ kindName?: string
62
+ name?: string
63
+ page?: number
64
+ pageSize?: number
65
+ sortBy?: KairshipIoApiTypesPage.SortBy
66
+ orderBy?: KairshipIoApiTypesPage.SortDir
67
+ type?: ServiceType[]
68
+ }
69
+
70
+ export type ListServicesResponse = {
71
+ items?: Service[]
72
+ pagination?: KairshipIoApiTypesPage.Pagination
73
+ }
74
+
75
+ export type GetServiceRequest = {
76
+ instance?: string
77
+ namespace?: string
78
+ name?: string
79
+ }
80
+
81
+ export type GetServiceJSONRequest = {
82
+ instance?: string
83
+ namespace?: string
84
+ name?: string
85
+ }
86
+
87
+ export type GetServiceJSONResponse = {
88
+ data?: string
89
+ }
90
+
91
+ export type CreateServiceRequest = {
92
+ instance?: string
93
+ namespace?: string
94
+ data?: string
95
+ }
96
+
97
+ export type CreateServiceResponse = {
98
+ data?: string
99
+ }
100
+
101
+ export type UpdateServiceRequest = {
102
+ instance?: string
103
+ namespace?: string
104
+ name?: string
105
+ data?: string
106
+ }
107
+
108
+ export type UpdateServiceResponse = {
109
+ data?: string
110
+ }
111
+
112
+ export type PatchServiceRequest = {
113
+ instance?: string
114
+ namespace?: string
115
+ name?: string
116
+ data?: {[key: string]: string}
117
+ }
118
+
119
+ export type PatchServiceResponse = {
120
+ data?: string
121
+ }
122
+
123
+ export type DeleteServiceRequest = {
124
+ instance?: string
125
+ namespace?: string
126
+ name?: string
127
+ }
@@ -50,4 +50,41 @@ export type ListAllOverridePoliciesRequest = {
50
50
  export type ListOverridePoliciesResponse = {
51
51
  items?: OverridePolicy[]
52
52
  pagination?: KairshipIoApiTypesPage.Pagination
53
+ }
54
+
55
+ export type GetOverridePolicyJSONRequest = {
56
+ instance?: string
57
+ namespace?: string
58
+ name?: string
59
+ }
60
+
61
+ export type GetOverridePolicyJSONResponse = {
62
+ data?: string
63
+ }
64
+
65
+ export type CreateOverridePolicyRequest = {
66
+ instance?: string
67
+ namespace?: string
68
+ data?: string
69
+ }
70
+
71
+ export type CreateOverridePolicyResponse = {
72
+ data?: string
73
+ }
74
+
75
+ export type UpdateOverridePolicyRequest = {
76
+ instance?: string
77
+ namespace?: string
78
+ name?: string
79
+ data?: string
80
+ }
81
+
82
+ export type UpdateOverridePolicyResponse = {
83
+ data?: string
84
+ }
85
+
86
+ export type DeleteOverridePolicyRequest = {
87
+ instance?: string
88
+ namespace?: string
89
+ name?: string
53
90
  }
@@ -100,4 +100,41 @@ export type ListAllPropagationPoliciesRequest = {
100
100
  export type ListPropagationPoliciesResponse = {
101
101
  items?: PropagationPolicy[]
102
102
  pagination?: KairshipIoApiTypesPage.Pagination
103
+ }
104
+
105
+ export type GetPropagationPolicyJSONRequest = {
106
+ instance?: string
107
+ namespace?: string
108
+ name?: string
109
+ }
110
+
111
+ export type GetPropagationPolicyJSONResponse = {
112
+ data?: string
113
+ }
114
+
115
+ export type CreatePropagationPolicyRequest = {
116
+ instance?: string
117
+ namespace?: string
118
+ data?: string
119
+ }
120
+
121
+ export type CreatePropagationPolicyResponse = {
122
+ data?: string
123
+ }
124
+
125
+ export type UpdatePropagationPolicyRequest = {
126
+ instance?: string
127
+ namespace?: string
128
+ name?: string
129
+ data?: string
130
+ }
131
+
132
+ export type UpdatePropagationPolicyResponse = {
133
+ data?: string
134
+ }
135
+
136
+ export type DeletePropagationPolicyRequest = {
137
+ instance?: string
138
+ namespace?: string
139
+ name?: string
103
140
  }
@@ -6,6 +6,7 @@
6
6
 
7
7
  import * as fm from "../../../fetch.pb"
8
8
  import * as GoogleProtobufEmpty from "../../../google/api/empty.pb"
9
+ import * as KairshipIoApiAppsV1alpha1Deployment from "../apps/v1alpha1/deployment.pb"
9
10
  import * as KairshipIoApiClusterV1alpha1Cluster from "../cluster/v1alpha1/cluster.pb"
10
11
  import * as KairshipIoApiGuestbookV1alpha1Guestbook from "../guestbook/v1alpha1/guestbook.pb"
11
12
  import * as KairshipIoApiPolicyV1alpha1Overridepolicy from "../policy/v1alpha1/overridepolicy.pb"
@@ -19,9 +20,33 @@ export class Policy {
19
20
  static ListPropagationPolicies(req: KairshipIoApiPolicyV1alpha1Pp.ListAllPropagationPoliciesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiPolicyV1alpha1Pp.ListPropagationPoliciesResponse> {
20
21
  return fm.fetchReq<KairshipIoApiPolicyV1alpha1Pp.ListAllPropagationPoliciesRequest, KairshipIoApiPolicyV1alpha1Pp.ListPropagationPoliciesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/propagationpolicies?${fm.renderURLSearchParams(req, ["instance", "namespace"])}`, {...initReq, method: "GET"})
21
22
  }
23
+ static GetPropagationPolicyJSON(req: KairshipIoApiPolicyV1alpha1Pp.GetPropagationPolicyJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiPolicyV1alpha1Pp.GetPropagationPolicyJSONResponse> {
24
+ return fm.fetchReq<KairshipIoApiPolicyV1alpha1Pp.GetPropagationPolicyJSONRequest, KairshipIoApiPolicyV1alpha1Pp.GetPropagationPolicyJSONResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/propagationpolicies/${req["name"]}/json?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
25
+ }
26
+ static CreatePropagationPolicy(req: KairshipIoApiPolicyV1alpha1Pp.CreatePropagationPolicyRequest, initReq?: fm.InitReq): Promise<KairshipIoApiPolicyV1alpha1Pp.CreatePropagationPolicyResponse> {
27
+ return fm.fetchReq<KairshipIoApiPolicyV1alpha1Pp.CreatePropagationPolicyRequest, KairshipIoApiPolicyV1alpha1Pp.CreatePropagationPolicyResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/propagationpolicies`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
28
+ }
29
+ static DeletePropagationPolicy(req: KairshipIoApiPolicyV1alpha1Pp.DeletePropagationPolicyRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
30
+ return fm.fetchReq<KairshipIoApiPolicyV1alpha1Pp.DeletePropagationPolicyRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/propagationpolicies/${req["name"]}`, {...initReq, method: "DELETE"})
31
+ }
32
+ static UpdatePropagationPolicy(req: KairshipIoApiPolicyV1alpha1Pp.UpdatePropagationPolicyRequest, initReq?: fm.InitReq): Promise<KairshipIoApiPolicyV1alpha1Pp.UpdatePropagationPolicyResponse> {
33
+ return fm.fetchReq<KairshipIoApiPolicyV1alpha1Pp.UpdatePropagationPolicyRequest, KairshipIoApiPolicyV1alpha1Pp.UpdatePropagationPolicyResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/propagationpolicies/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
34
+ }
22
35
  static ListOverridePolicies(req: KairshipIoApiPolicyV1alpha1Overridepolicy.ListAllOverridePoliciesRequest, initReq?: fm.InitReq): Promise<KairshipIoApiPolicyV1alpha1Overridepolicy.ListOverridePoliciesResponse> {
23
36
  return fm.fetchReq<KairshipIoApiPolicyV1alpha1Overridepolicy.ListAllOverridePoliciesRequest, KairshipIoApiPolicyV1alpha1Overridepolicy.ListOverridePoliciesResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/overridepolicies?${fm.renderURLSearchParams(req, ["instance", "namespace"])}`, {...initReq, method: "GET"})
24
37
  }
38
+ static GetOverridePolicyJSON(req: KairshipIoApiPolicyV1alpha1Overridepolicy.GetOverridePolicyJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiPolicyV1alpha1Overridepolicy.GetOverridePolicyJSONResponse> {
39
+ return fm.fetchReq<KairshipIoApiPolicyV1alpha1Overridepolicy.GetOverridePolicyJSONRequest, KairshipIoApiPolicyV1alpha1Overridepolicy.GetOverridePolicyJSONResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/overridepolicies/${req["name"]}/json?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
40
+ }
41
+ static CreateOverridePolicy(req: KairshipIoApiPolicyV1alpha1Overridepolicy.CreateOverridePolicyRequest, initReq?: fm.InitReq): Promise<KairshipIoApiPolicyV1alpha1Overridepolicy.CreateOverridePolicyResponse> {
42
+ return fm.fetchReq<KairshipIoApiPolicyV1alpha1Overridepolicy.CreateOverridePolicyRequest, KairshipIoApiPolicyV1alpha1Overridepolicy.CreateOverridePolicyResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/overridepolicies`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
43
+ }
44
+ static DeleteOverridePolicy(req: KairshipIoApiPolicyV1alpha1Overridepolicy.DeleteOverridePolicyRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
45
+ return fm.fetchReq<KairshipIoApiPolicyV1alpha1Overridepolicy.DeleteOverridePolicyRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/overridepolicies/${req["name"]}`, {...initReq, method: "DELETE"})
46
+ }
47
+ static UpdateOverridePolicy(req: KairshipIoApiPolicyV1alpha1Overridepolicy.UpdateOverridePolicyRequest, initReq?: fm.InitReq): Promise<KairshipIoApiPolicyV1alpha1Overridepolicy.UpdateOverridePolicyResponse> {
48
+ return fm.fetchReq<KairshipIoApiPolicyV1alpha1Overridepolicy.UpdateOverridePolicyRequest, KairshipIoApiPolicyV1alpha1Overridepolicy.UpdateOverridePolicyResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/overridepolicies/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
49
+ }
25
50
  }
26
51
  export class Cluster {
27
52
  static ListClusters(req: KairshipIoApiClusterV1alpha1Cluster.ListClustersRequest, initReq?: fm.InitReq): Promise<KairshipIoApiClusterV1alpha1Cluster.ListClustersResponse> {
@@ -36,4 +61,33 @@ export class Cluster {
36
61
  static RemoveJoinedCluster(req: KairshipIoApiClusterV1alpha1Cluster.ClusterRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
37
62
  return fm.fetchReq<KairshipIoApiClusterV1alpha1Cluster.ClusterRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/clusters/${req["name"]}`, {...initReq, method: "DELETE"})
38
63
  }
64
+ }
65
+ export class Apps {
66
+ static ListDeployments(req: KairshipIoApiAppsV1alpha1Deployment.ListDeploymentsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.ListDeploymentsResponse> {
67
+ return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.ListDeploymentsRequest, KairshipIoApiAppsV1alpha1Deployment.ListDeploymentsResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments?${fm.renderURLSearchParams(req, ["instance", "namespace"])}`, {...initReq, method: "GET"})
68
+ }
69
+ static GetDeployment(req: KairshipIoApiAppsV1alpha1Deployment.GetDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.Deployment> {
70
+ return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.GetDeploymentRequest, KairshipIoApiAppsV1alpha1Deployment.Deployment>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
71
+ }
72
+ static GetDeploymentJSON(req: KairshipIoApiAppsV1alpha1Deployment.GetDeploymentJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.GetDeploymentJSONResponse> {
73
+ return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.GetDeploymentJSONRequest, KairshipIoApiAppsV1alpha1Deployment.GetDeploymentJSONResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}/json?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
74
+ }
75
+ static CreateDeployment(req: KairshipIoApiAppsV1alpha1Deployment.CreateDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.CreateDeploymentResponse> {
76
+ 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)})
77
+ }
78
+ static PatchDeployment(req: KairshipIoApiAppsV1alpha1Deployment.PatchDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.PatchDeploymentResponse> {
79
+ 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)})
80
+ }
81
+ static DeleteDeployment(req: KairshipIoApiAppsV1alpha1Deployment.DeleteDeploymentRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
82
+ return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.DeleteDeploymentRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}`, {...initReq, method: "DELETE"})
83
+ }
84
+ static PauseDeployment(req: KairshipIoApiAppsV1alpha1Deployment.PauseDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.PauseDeploymentResponse> {
85
+ return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.PauseDeploymentRequest, KairshipIoApiAppsV1alpha1Deployment.PauseDeploymentResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:pause`, {...initReq, method: "POST"})
86
+ }
87
+ static ResumeDeployment(req: KairshipIoApiAppsV1alpha1Deployment.ResumeDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.ResumeDeploymentResponse> {
88
+ return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.ResumeDeploymentRequest, KairshipIoApiAppsV1alpha1Deployment.ResumeDeploymentResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:resume`, {...initReq, method: "POST"})
89
+ }
90
+ static RestartDeployment(req: KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentResponse> {
91
+ return fm.fetchReq<KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentRequest, KairshipIoApiAppsV1alpha1Deployment.RestartDeploymentResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:restart`, {...initReq, method: "POST"})
92
+ }
39
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kairship",
3
- "version":"0.0.4",
3
+ "version":"0.0.5-2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {