@daocloud-proto/kpanda 0.9.9-30 → 0.9.9-34

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,101 @@
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 KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
+ import * as KpandaIoApiTypesPage from "../../types/page.pb"
9
+ export type LimitRange = {
10
+ metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
11
+ spec?: LimitRangeSpec
12
+ }
13
+
14
+ export type LimitRangeSpec = {
15
+ limits?: LimitRangeItem[]
16
+ }
17
+
18
+ export type LimitRangeItem = {
19
+ type?: string
20
+ max?: {[key: string]: string}
21
+ min?: {[key: string]: string}
22
+ default?: {[key: string]: string}
23
+ defaultRequest?: {[key: string]: string}
24
+ maxLimitRequestRatio?: {[key: string]: string}
25
+ }
26
+
27
+ export type ListClusterLimitRangesRequest = {
28
+ cluster?: string
29
+ page?: number
30
+ pageSize?: number
31
+ sortBy?: KpandaIoApiTypesPage.SortBy
32
+ sortDir?: KpandaIoApiTypesPage.SortDir
33
+ name?: string
34
+ labelSelector?: string
35
+ fieldSelector?: string
36
+ }
37
+
38
+ export type ListClusterLimitRangesResponse = {
39
+ items?: LimitRange[]
40
+ pagination?: KpandaIoApiTypesPage.Pagination
41
+ }
42
+
43
+ export type ListLimitRangesRequest = {
44
+ cluster?: string
45
+ namespace?: string
46
+ name?: string
47
+ page?: number
48
+ pageSize?: number
49
+ sortBy?: KpandaIoApiTypesPage.SortBy
50
+ sortDir?: KpandaIoApiTypesPage.SortDir
51
+ labelSelector?: string
52
+ fieldSelector?: string
53
+ }
54
+
55
+ export type ListLimitRangesResponse = {
56
+ items?: LimitRange[]
57
+ pagination?: KpandaIoApiTypesPage.Pagination
58
+ }
59
+
60
+ export type GetLimitRangeRequest = {
61
+ cluster?: string
62
+ namespace?: string
63
+ name?: string
64
+ }
65
+
66
+ export type GetLimitRangeJSONRequest = {
67
+ cluster?: string
68
+ namespace?: string
69
+ name?: string
70
+ }
71
+
72
+ export type GetLimitRangeJSONResponse = {
73
+ data?: string
74
+ }
75
+
76
+ export type CreateLimitRangeRequest = {
77
+ cluster?: string
78
+ namespace?: string
79
+ data?: string
80
+ }
81
+
82
+ export type CreateLimitRangeResponse = {
83
+ data?: string
84
+ }
85
+
86
+ export type UpdateLimitRangeRequest = {
87
+ cluster?: string
88
+ namespace?: string
89
+ name?: string
90
+ data?: string
91
+ }
92
+
93
+ export type UpdateLimitRangeResponse = {
94
+ data?: string
95
+ }
96
+
97
+ export type DeleteLimitRangeRequest = {
98
+ cluster?: string
99
+ namespace?: string
100
+ name?: string
101
+ }
@@ -26,6 +26,7 @@ import * as KpandaIoApiClustersV1alpha1Cluster from "../clusters/v1alpha1/cluste
26
26
  import * as KpandaIoApiClustersettingV1alpha1Clustersetting from "../clustersetting/v1alpha1/clustersetting.pb"
27
27
  import * as KpandaIoApiCoreV1alpha1Configmap from "../core/v1alpha1/configmap.pb"
28
28
  import * as KpandaIoApiCoreV1alpha1Event from "../core/v1alpha1/event.pb"
29
+ import * as KpandaIoApiCoreV1alpha1Limitrange from "../core/v1alpha1/limitrange.pb"
29
30
  import * as KpandaIoApiCoreV1alpha1Namespace from "../core/v1alpha1/namespace.pb"
30
31
  import * as KpandaIoApiCoreV1alpha1Node from "../core/v1alpha1/node.pb"
31
32
  import * as KpandaIoApiCoreV1alpha1PersistentVolume from "../core/v1alpha1/persistentVolume.pb"
@@ -386,6 +387,27 @@ export class Core {
386
387
  static UpdateResourceQuota(req: KpandaIoApiCoreV1alpha1Resourcequota.UpdateResourceQuotaRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Resourcequota.UpdateResourceQuotaResponse> {
387
388
  return fm.fetchReq<KpandaIoApiCoreV1alpha1Resourcequota.UpdateResourceQuotaRequest, KpandaIoApiCoreV1alpha1Resourcequota.UpdateResourceQuotaResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/resourcequotas/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
388
389
  }
390
+ static ListClusterLimitRanges(req: KpandaIoApiCoreV1alpha1Limitrange.ListClusterLimitRangesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.ListClusterLimitRangesResponse> {
391
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.ListClusterLimitRangesRequest, KpandaIoApiCoreV1alpha1Limitrange.ListClusterLimitRangesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/limitranges?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
392
+ }
393
+ static ListLimitRanges(req: KpandaIoApiCoreV1alpha1Limitrange.ListLimitRangesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.ListLimitRangesResponse> {
394
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.ListLimitRangesRequest, KpandaIoApiCoreV1alpha1Limitrange.ListLimitRangesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
395
+ }
396
+ static GetLimitRange(req: KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.LimitRange> {
397
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeRequest, KpandaIoApiCoreV1alpha1Limitrange.LimitRange>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
398
+ }
399
+ static GetLimitRangeJSON(req: KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeJSONResponse> {
400
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeJSONRequest, KpandaIoApiCoreV1alpha1Limitrange.GetLimitRangeJSONResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
401
+ }
402
+ static CreateLimitRange(req: KpandaIoApiCoreV1alpha1Limitrange.CreateLimitRangeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.CreateLimitRangeResponse> {
403
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.CreateLimitRangeRequest, KpandaIoApiCoreV1alpha1Limitrange.CreateLimitRangeResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges`, {...initReq, method: "POST", body: JSON.stringify(req)})
404
+ }
405
+ static UpdateLimitRange(req: KpandaIoApiCoreV1alpha1Limitrange.UpdateLimitRangeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Limitrange.UpdateLimitRangeResponse> {
406
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.UpdateLimitRangeRequest, KpandaIoApiCoreV1alpha1Limitrange.UpdateLimitRangeResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
407
+ }
408
+ static DeleteLimitRange(req: KpandaIoApiCoreV1alpha1Limitrange.DeleteLimitRangeRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
409
+ return fm.fetchReq<KpandaIoApiCoreV1alpha1Limitrange.DeleteLimitRangeRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/limitranges/${req["name"]}`, {...initReq, method: "DELETE"})
410
+ }
389
411
  static ListPersistentVolumeClaims(req: KpandaIoApiCoreV1alpha1Persistentvolumeclaim.ListPersistentVolumeClaimsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCoreV1alpha1Persistentvolumeclaim.ListPersistentVolumeClaimsResponse> {
390
412
  return fm.fetchReq<KpandaIoApiCoreV1alpha1Persistentvolumeclaim.ListPersistentVolumeClaimsRequest, KpandaIoApiCoreV1alpha1Persistentvolumeclaim.ListPersistentVolumeClaimsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/persistentvolumeclaims?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
391
413
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.9.9-30",
3
+ "version":"0.9.9-34",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {