@daocloud-proto/kpanda 0.11.3-65 → 0.11.3-67

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.
@@ -43,6 +43,23 @@ export type ReplicaSetCondition = {
43
43
  message?: string
44
44
  }
45
45
 
46
+ export type ListClusterReplicaSetsRequest = {
47
+ cluster?: string
48
+ page?: number
49
+ pageSize?: number
50
+ sortBy?: KpandaIoApiTypesPage.SortBy
51
+ sortDir?: KpandaIoApiTypesPage.SortDir
52
+ name?: string
53
+ fuzzyName?: string
54
+ labelSelector?: string
55
+ fieldSelector?: string
56
+ }
57
+
58
+ export type ListClusterReplicaSetsResponse = {
59
+ items?: ReplicaSet[]
60
+ pagination?: KpandaIoApiTypesPage.Pagination
61
+ }
62
+
46
63
  export type ListReplicaSetsRequest = {
47
64
  cluster?: string
48
65
  namespace?: string
@@ -55,9 +72,43 @@ export type ListReplicaSetsRequest = {
55
72
  pageSize?: number
56
73
  labelSelector?: string
57
74
  fieldSelector?: string
75
+ fuzzyName?: string
58
76
  }
59
77
 
60
78
  export type ListReplicaSetsResponse = {
61
79
  items?: ReplicaSet[]
62
80
  pagination?: KpandaIoApiTypesPage.Pagination
81
+ }
82
+
83
+ export type GetReplicaSetRequest = {
84
+ cluster?: string
85
+ namespace?: string
86
+ name?: string
87
+ }
88
+
89
+ export type GetReplicaSetJSONRequest = {
90
+ cluster?: string
91
+ namespace?: string
92
+ name?: string
93
+ }
94
+
95
+ export type GetReplicaSetJSONResponse = {
96
+ data?: string
97
+ }
98
+
99
+ export type UpdateReplicaSetRequest = {
100
+ cluster?: string
101
+ namespace?: string
102
+ name?: string
103
+ data?: string
104
+ }
105
+
106
+ export type UpdateReplicaSetResponse = {
107
+ data?: string
108
+ }
109
+
110
+ export type DeleteReplicaSetRequest = {
111
+ cluster?: string
112
+ namespace?: string
113
+ name?: string
63
114
  }
@@ -23,6 +23,7 @@ export enum ListEventsRequestKind {
23
23
  Job = "Job",
24
24
  CronJob = "CronJob",
25
25
  HorizontalPodAutoscaler = "HorizontalPodAutoscaler",
26
+ ReplicaSet = "ReplicaSet",
26
27
  }
27
28
 
28
29
  export type Event = {
@@ -135,9 +135,24 @@ export class Apps {
135
135
  static RollbackDeployment(req: KpandaIoApiAppsV1alpha1Deployment.RollbackDeploymentRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Deployment.RollbackDeploymentResponse> {
136
136
  return fm.fetchReq<KpandaIoApiAppsV1alpha1Deployment.RollbackDeploymentRequest, KpandaIoApiAppsV1alpha1Deployment.RollbackDeploymentResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/deployments/${req["name"]}:rollback`, {...initReq, method: "POST", body: JSON.stringify(req)})
137
137
  }
138
+ static ListClusterReplicaSets(req: KpandaIoApiAppsV1alpha1Replicaset.ListClusterReplicaSetsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Replicaset.ListClusterReplicaSetsResponse> {
139
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Replicaset.ListClusterReplicaSetsRequest, KpandaIoApiAppsV1alpha1Replicaset.ListClusterReplicaSetsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/replicasets?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
140
+ }
138
141
  static ListReplicaSets(req: KpandaIoApiAppsV1alpha1Replicaset.ListReplicaSetsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Replicaset.ListReplicaSetsResponse> {
139
142
  return fm.fetchReq<KpandaIoApiAppsV1alpha1Replicaset.ListReplicaSetsRequest, KpandaIoApiAppsV1alpha1Replicaset.ListReplicaSetsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/replicasets?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
140
143
  }
144
+ static GetReplicaSet(req: KpandaIoApiAppsV1alpha1Replicaset.GetReplicaSetRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Replicaset.ReplicaSet> {
145
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Replicaset.GetReplicaSetRequest, KpandaIoApiAppsV1alpha1Replicaset.ReplicaSet>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/replicasets/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
146
+ }
147
+ static GetReplicaSetJSON(req: KpandaIoApiAppsV1alpha1Replicaset.GetReplicaSetJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Replicaset.GetReplicaSetJSONResponse> {
148
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Replicaset.GetReplicaSetJSONRequest, KpandaIoApiAppsV1alpha1Replicaset.GetReplicaSetJSONResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/replicasets/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
149
+ }
150
+ static UpdateReplicaSet(req: KpandaIoApiAppsV1alpha1Replicaset.UpdateReplicaSetRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Replicaset.UpdateReplicaSetResponse> {
151
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Replicaset.UpdateReplicaSetRequest, KpandaIoApiAppsV1alpha1Replicaset.UpdateReplicaSetResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/replicasets/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
152
+ }
153
+ static DeleteReplicaSet(req: KpandaIoApiAppsV1alpha1Replicaset.DeleteReplicaSetRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
154
+ return fm.fetchReq<KpandaIoApiAppsV1alpha1Replicaset.DeleteReplicaSetRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/replicasets/${req["name"]}`, {...initReq, method: "DELETE"})
155
+ }
141
156
  static ListClusterStatefulSets(req: KpandaIoApiAppsV1alpha1Statefulset.ListClusterStatefulSetsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiAppsV1alpha1Statefulset.ListStatefulSetsResponse> {
142
157
  return fm.fetchReq<KpandaIoApiAppsV1alpha1Statefulset.ListClusterStatefulSetsRequest, KpandaIoApiAppsV1alpha1Statefulset.ListStatefulSetsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/statefulsets?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
143
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.11.3-65",
3
+ "version":"0.11.3-67",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {