@daocloud-proto/kpanda 0.22.0-dev-52500418 → 0.22.0-dev-fe9cdbde
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,38 @@
|
|
|
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 KpandaIoApiBatchV1alpha1Job from "../../batch/v1alpha1/job.pb"
|
|
8
|
+
import * as KpandaIoApiCoreV1alpha1Pod from "../../core/v1alpha1/pod.pb"
|
|
9
|
+
import * as KpandaIoApiAppsV1alpha1Daemonset from "./daemonset.pb"
|
|
10
|
+
import * as KpandaIoApiAppsV1alpha1Deployment from "./deployment.pb"
|
|
11
|
+
import * as KpandaIoApiAppsV1alpha1Statefulset from "./statefulset.pb"
|
|
12
|
+
export type ListSecretRelatedWorkloadsResponse = {
|
|
13
|
+
pods?: KpandaIoApiCoreV1alpha1Pod.Pod[]
|
|
14
|
+
daemonsets?: KpandaIoApiAppsV1alpha1Daemonset.DaemonSet[]
|
|
15
|
+
deployments?: KpandaIoApiAppsV1alpha1Deployment.Deployment[]
|
|
16
|
+
statefulsets?: KpandaIoApiAppsV1alpha1Statefulset.StatefulSet[]
|
|
17
|
+
jobs?: KpandaIoApiBatchV1alpha1Job.Job[]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ListSecretRelatedWorkloadsRequest = {
|
|
21
|
+
cluster?: string
|
|
22
|
+
namespace?: string
|
|
23
|
+
secret?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type ListConfigMapRelatedWorkloadsResponse = {
|
|
27
|
+
pods?: KpandaIoApiCoreV1alpha1Pod.Pod[]
|
|
28
|
+
daemonsets?: KpandaIoApiAppsV1alpha1Daemonset.DaemonSet[]
|
|
29
|
+
deployments?: KpandaIoApiAppsV1alpha1Deployment.Deployment[]
|
|
30
|
+
statefulsets?: KpandaIoApiAppsV1alpha1Statefulset.StatefulSet[]
|
|
31
|
+
jobs?: KpandaIoApiBatchV1alpha1Job.Job[]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type ListConfigMapRelatedWorkloadsRequest = {
|
|
35
|
+
cluster?: string
|
|
36
|
+
namespace?: string
|
|
37
|
+
configmap?: string
|
|
38
|
+
}
|
|
@@ -16,6 +16,7 @@ import * as KpandaIoApiAppsV1alpha1Daemonset from "../apps/v1alpha1/daemonset.pb
|
|
|
16
16
|
import * as KpandaIoApiAppsV1alpha1Deployment from "../apps/v1alpha1/deployment.pb"
|
|
17
17
|
import * as KpandaIoApiAppsV1alpha1Replicaset from "../apps/v1alpha1/replicaset.pb"
|
|
18
18
|
import * as KpandaIoApiAppsV1alpha1Request from "../apps/v1alpha1/request.pb"
|
|
19
|
+
import * as KpandaIoApiAppsV1alpha1Resourcerelated from "../apps/v1alpha1/resourcerelated.pb"
|
|
19
20
|
import * as KpandaIoApiAppsV1alpha1Statefulset from "../apps/v1alpha1/statefulset.pb"
|
|
20
21
|
import * as KpandaIoApiAutoscalingV1alpha1Cronhorizontalpodautoscaler from "../autoscaling/v1alpha1/cronhorizontalpodautoscaler.pb"
|
|
21
22
|
import * as KpandaIoApiAutoscalingV1alpha1Custommetric from "../autoscaling/v1alpha1/custommetric.pb"
|
|
@@ -246,6 +247,12 @@ export class Apps {
|
|
|
246
247
|
static UpdateWorkloadByJSON(req: KpandaIoApiAppsV1alpha1Request.UpdateWorkloadByJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Request.WorkloadJSON> {
|
|
247
248
|
return fm.fetchReq<KpandaIoApiAppsV1alpha1Request.UpdateWorkloadByJSONRequest, KpandaIoApiAppsV1alpha1Request.WorkloadJSON>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/${req["kind"]}/${req["name"]}/json`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
248
249
|
}
|
|
250
|
+
static ListSecretsRelatedWorkloads(req: KpandaIoApiAppsV1alpha1Resourcerelated.ListSecretRelatedWorkloadsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Resourcerelated.ListSecretRelatedWorkloadsResponse> {
|
|
251
|
+
return fm.fetchReq<KpandaIoApiAppsV1alpha1Resourcerelated.ListSecretRelatedWorkloadsRequest, KpandaIoApiAppsV1alpha1Resourcerelated.ListSecretRelatedWorkloadsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/secrets/${req["secret"]}/related?${fm.renderURLSearchParams(req, ["cluster", "namespace", "secret"])}`, {...initReq, method: "GET"})
|
|
252
|
+
}
|
|
253
|
+
static ListConfigMapsRelatedWorkloads(req: KpandaIoApiAppsV1alpha1Resourcerelated.ListConfigMapRelatedWorkloadsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Resourcerelated.ListConfigMapRelatedWorkloadsResponse> {
|
|
254
|
+
return fm.fetchReq<KpandaIoApiAppsV1alpha1Resourcerelated.ListConfigMapRelatedWorkloadsRequest, KpandaIoApiAppsV1alpha1Resourcerelated.ListConfigMapRelatedWorkloadsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/configmaps/${req["configmap"]}/related?${fm.renderURLSearchParams(req, ["cluster", "namespace", "configmap"])}`, {...initReq, method: "GET"})
|
|
255
|
+
}
|
|
249
256
|
}
|
|
250
257
|
export class Batch {
|
|
251
258
|
static ListAllCronJobs(req: KpandaIoApiBatchV1alpha1Job.ListAllBatchRequest, initReq?: fm.InitReq): Promise<KpandaIoApiBatchV1alpha1Cronjob.ListClusterCronJobsResponse> {
|