@daocloud-proto/kairship 0.1.5-2 → 0.1.5-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.
|
@@ -19,8 +19,10 @@ export type ListConfigMapsRequest = {
|
|
|
19
19
|
page?: number
|
|
20
20
|
pageSize?: number
|
|
21
21
|
sortBy?: KairshipIoApiTypesPage.SortBy
|
|
22
|
-
|
|
22
|
+
sortDir?: KairshipIoApiTypesPage.SortDir
|
|
23
23
|
name?: string[]
|
|
24
|
+
labelSelector?: string
|
|
25
|
+
fieldSelector?: string
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
export type ListConfigMapsResponse = {
|
|
@@ -29,7 +31,7 @@ export type ListConfigMapsResponse = {
|
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export type GetConfigMapRequest = {
|
|
32
|
-
|
|
34
|
+
instance?: string
|
|
33
35
|
namespace?: string
|
|
34
36
|
name?: string
|
|
35
37
|
}
|
|
@@ -9,6 +9,7 @@ import * as GoogleProtobufEmpty from "../../../google/api/empty.pb"
|
|
|
9
9
|
import * as KairshipIoApiAppsV1alpha1Deployment from "../apps/v1alpha1/deployment.pb"
|
|
10
10
|
import * as KairshipIoApiCloudshellV1alpha1Cloudshell from "../cloudshell/v1alpha1/cloudshell.pb"
|
|
11
11
|
import * as KairshipIoApiClusterV1alpha1Cluster from "../cluster/v1alpha1/cluster.pb"
|
|
12
|
+
import * as KairshipIoApiCoreV1alpha1Configmap from "../core/v1alpha1/configmap.pb"
|
|
12
13
|
import * as KairshipIoApiCoreV1alpha1Namespace from "../core/v1alpha1/namespace.pb"
|
|
13
14
|
import * as KairshipIoApiCoreV1alpha1Pod from "../core/v1alpha1/pod.pb"
|
|
14
15
|
import * as KairshipIoApiCoreV1alpha1Secret from "../core/v1alpha1/secret.pb"
|
|
@@ -129,6 +130,27 @@ export class Core {
|
|
|
129
130
|
static ListServicesForMemberCluster(req: KairshipIoApiCoreV1alpha1Service.ListServicesForMemberClusterRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Service.ListServicesForMemberClusterResponse> {
|
|
130
131
|
return fm.fetchReq<KairshipIoApiCoreV1alpha1Service.ListServicesForMemberClusterRequest, KairshipIoApiCoreV1alpha1Service.ListServicesForMemberClusterResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/services?${fm.renderURLSearchParams(req, ["instance", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
131
132
|
}
|
|
133
|
+
static ListConfigMaps(req: KairshipIoApiCoreV1alpha1Configmap.ListConfigMapsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.ListConfigMapsResponse> {
|
|
134
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.ListConfigMapsRequest, KairshipIoApiCoreV1alpha1Configmap.ListConfigMapsResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps?${fm.renderURLSearchParams(req, ["instance", "namespace"])}`, {...initReq, method: "GET"})
|
|
135
|
+
}
|
|
136
|
+
static GetConfigMap(req: KairshipIoApiCoreV1alpha1Configmap.GetConfigMapRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.ConfigMap> {
|
|
137
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.GetConfigMapRequest, KairshipIoApiCoreV1alpha1Configmap.ConfigMap>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
138
|
+
}
|
|
139
|
+
static GetConfigMapJSON(req: KairshipIoApiCoreV1alpha1Configmap.GetConfigMapJSONRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.GetConfigMapJSONResponse> {
|
|
140
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.GetConfigMapJSONRequest, KairshipIoApiCoreV1alpha1Configmap.GetConfigMapJSONResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}/json?${fm.renderURLSearchParams(req, ["instance", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
141
|
+
}
|
|
142
|
+
static CreateConfigMap(req: KairshipIoApiCoreV1alpha1Configmap.CreateConfigMapRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.CreateConfigMapResponse> {
|
|
143
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.CreateConfigMapRequest, KairshipIoApiCoreV1alpha1Configmap.CreateConfigMapResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
144
|
+
}
|
|
145
|
+
static UpdateConfigMap(req: KairshipIoApiCoreV1alpha1Configmap.UpdateConfigMapRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.UpdateConfigMapResponse> {
|
|
146
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.UpdateConfigMapRequest, KairshipIoApiCoreV1alpha1Configmap.UpdateConfigMapResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
147
|
+
}
|
|
148
|
+
static PatchConfigMap(req: KairshipIoApiCoreV1alpha1Configmap.PatchConfigMapRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Configmap.PatchConfigMapResponse> {
|
|
149
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.PatchConfigMapRequest, KairshipIoApiCoreV1alpha1Configmap.PatchConfigMapResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}/json`, {...initReq, method: "PATCH", body: JSON.stringify(req, fm.replacer)})
|
|
150
|
+
}
|
|
151
|
+
static DeleteConfigMap(req: KairshipIoApiCoreV1alpha1Configmap.DeleteConfigMapRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
152
|
+
return fm.fetchReq<KairshipIoApiCoreV1alpha1Configmap.DeleteConfigMapRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/configmaps/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
153
|
+
}
|
|
132
154
|
static ListSecrets(req: KairshipIoApiCoreV1alpha1Secret.ListSecretsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCoreV1alpha1Secret.ListSecretsResponse> {
|
|
133
155
|
return fm.fetchReq<KairshipIoApiCoreV1alpha1Secret.ListSecretsRequest, KairshipIoApiCoreV1alpha1Secret.ListSecretsResponse>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/secrets?${fm.renderURLSearchParams(req, ["instance", "namespace"])}`, {...initReq, method: "GET"})
|
|
134
156
|
}
|