@daocloud-proto/mcamel-minio 0.0.2-8 → 0.0.3-1

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.
Files changed (2) hide show
  1. package/minio.pb.ts +18 -0
  2. package/package.json +1 -1
package/minio.pb.ts CHANGED
@@ -66,6 +66,21 @@ export enum GetMinioConfRespItemsParamType {
66
66
  conf = "conf",
67
67
  }
68
68
 
69
+ export type GetMinioUsersReq = {
70
+ cluster?: string
71
+ namespace?: string
72
+ name?: string
73
+ }
74
+
75
+ export type GetMinioUsersRespUserItem = {
76
+ username?: string
77
+ password?: string
78
+ }
79
+
80
+ export type GetMinioUsersResp = {
81
+ users?: GetMinioUsersRespUserItem[]
82
+ }
83
+
69
84
  export type GetMinioListReq = {
70
85
  page?: number
71
86
  pageSize?: number
@@ -338,4 +353,7 @@ export class Minio {
338
353
  static DeleteMinios(req: DeleteMiniosReq, initReq?: fm.InitReq): Promise<DeleteMiniosResp> {
339
354
  return fm.fetchReq<DeleteMiniosReq, DeleteMiniosResp>(`/apis/mcamel.io/minio/v1alpha1/minios`, {...initReq, method: "POST", body: JSON.stringify(req)})
340
355
  }
356
+ static GetMinioUsers(req: GetMinioUsersReq, initReq?: fm.InitReq): Promise<GetMinioUsersResp> {
357
+ return fm.fetchReq<GetMinioUsersReq, GetMinioUsersResp>(`/apis/mcamel.io/minio/v1alpha1/minio/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
358
+ }
341
359
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-minio",
3
- "version":"0.0.2-8",
3
+ "version":"0.0.3-1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {