@daocloud-proto/kpanda 0.11.3-201 → 0.11.3-203

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.
@@ -295,4 +295,14 @@ export type DeleteCustomResourceRequest = {
295
295
  namespace?: string
296
296
  resource?: string
297
297
  name?: string
298
+ }
299
+
300
+ export type CreateResourceRequest = {
301
+ cluster?: string
302
+ namespace?: string
303
+ data?: string[]
304
+ }
305
+
306
+ export type CreateResourceResponse = {
307
+ data?: string[]
298
308
  }
@@ -110,6 +110,9 @@ export class Apiextensions {
110
110
  static DeleteCustomResource(req: KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.DeleteCustomResourceRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
111
111
  return fm.fetchReq<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.DeleteCustomResourceRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gvr/${req["group"]}/${req["version"]}/namespaces/${req["namespace"]}/${req["resource"]}/${req["name"]}`, {...initReq, method: "DELETE"})
112
112
  }
113
+ static CreateResource(req: KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.CreateResourceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.CreateResourceResponse> {
114
+ return fm.fetchReq<KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.CreateResourceRequest, KpandaIoApiApiextensionsV1alpha1Custom_resource_definition.CreateResourceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/resources`, {...initReq, method: "POST", body: JSON.stringify(req)})
115
+ }
113
116
  }
114
117
  export class Apps {
115
118
  static ListClusterDeployments(req: KpandaIoApiAppsV1alpha1Deployment.ListClusterDeploymentsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.ListDeploymentsResponse> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.11.3-201",
3
+ "version":"0.11.3-203",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {