@daocloud-proto/ghippo 0.23.0 → 0.24.0-dev2
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.
- package/package.json +1 -1
- package/v1alpha1/role.pb.ts +0 -69
- package/v1alpha1/workspace.pb.ts +24 -0
package/package.json
CHANGED
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -275,69 +275,6 @@ export type GetRoleMemberCountResponse = {
|
|
|
275
275
|
groupCount?: number
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
export type GlobalRoleInfo = {
|
|
279
|
-
name?: string
|
|
280
|
-
type?: globalRoleType
|
|
281
|
-
description?: string
|
|
282
|
-
composite?: boolean
|
|
283
|
-
createdAt?: string
|
|
284
|
-
updatedAt?: string
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
export type ListGlobalRolesRequest = {
|
|
288
|
-
page?: number
|
|
289
|
-
pageSize?: number
|
|
290
|
-
search?: string
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export type ListGlobalRolesResponse = {
|
|
294
|
-
items?: GlobalRoleInfo[]
|
|
295
|
-
pagination?: Pagination
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
export type WorkspaceRoleInfo = {
|
|
299
|
-
name?: string
|
|
300
|
-
description?: string
|
|
301
|
-
type?: string
|
|
302
|
-
authScope?: string
|
|
303
|
-
gproduct?: string
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
export type ListWorkspaceRolesRequest = {
|
|
307
|
-
page?: number
|
|
308
|
-
pageSize?: number
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export type ListWorkspaceRolesResponse = {
|
|
312
|
-
items?: WorkspaceRoleInfo[]
|
|
313
|
-
pagination?: Pagination
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
export type UpdateGlobalRoleRequest = {
|
|
317
|
-
name?: string
|
|
318
|
-
description?: string
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export type UpdateGlobalRoleResponse = {
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
export type Subject = {
|
|
325
|
-
id?: string
|
|
326
|
-
roleName?: string
|
|
327
|
-
type?: string
|
|
328
|
-
subjectName?: string
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export type ListFolderRolesRequest = {
|
|
332
|
-
page?: number
|
|
333
|
-
pageSize?: number
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
export type ListFolderRolesResponse = {
|
|
337
|
-
items?: WorkspaceRoleInfo[]
|
|
338
|
-
pagination?: Pagination
|
|
339
|
-
}
|
|
340
|
-
|
|
341
278
|
export class Role {
|
|
342
279
|
static ListAllPermissions(req: ListAllPermissionsRequest, initReq?: fm.InitReq): Promise<ListAllPermissionsResponse> {
|
|
343
280
|
return fm.fetchReq<ListAllPermissionsRequest, ListAllPermissionsResponse>(`/apis/ghippo.io/v1alpha1/permissions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -378,10 +315,4 @@ export class Role {
|
|
|
378
315
|
static GetRoleMemberCount(req: GetRoleMemberCountRequest, initReq?: fm.InitReq): Promise<GetRoleMemberCountResponse> {
|
|
379
316
|
return fm.fetchReq<GetRoleMemberCountRequest, GetRoleMemberCountResponse>(`/apis/ghippo.io/v1alpha1/roles/role-member-count/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
380
317
|
}
|
|
381
|
-
static ListFolderRoles(req: ListFolderRolesRequest, initReq?: fm.InitReq): Promise<ListFolderRolesResponse> {
|
|
382
|
-
return fm.fetchReq<ListFolderRolesRequest, ListFolderRolesResponse>(`/apis/ghippo.io/v1alpha1/folderroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
383
|
-
}
|
|
384
|
-
static ListWorkspaceRoles(req: ListWorkspaceRolesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceRolesResponse> {
|
|
385
|
-
return fm.fetchReq<ListWorkspaceRolesRequest, ListWorkspaceRolesResponse>(`/apis/ghippo.io/v1alpha1/workspaceroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
386
|
-
}
|
|
387
318
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -506,6 +506,27 @@ export type MoverWorkspaceFolder = {
|
|
|
506
506
|
parentAlias?: string
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
+
export type ListWorkspaceShareResourceQuotaTypesRequest = {
|
|
510
|
+
workspaceId?: number
|
|
511
|
+
resourceName?: string
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export type ListWorkspaceShareResourceQuotaTypesResponse = {
|
|
515
|
+
gpus?: ResourceQuotaType[]
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export type ResourceQuotaType = {
|
|
519
|
+
type?: string
|
|
520
|
+
alias?: string
|
|
521
|
+
keys?: ResourceQuotaTypeKey[]
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
export type ResourceQuotaTypeKey = {
|
|
525
|
+
key?: string
|
|
526
|
+
alias?: string
|
|
527
|
+
aliasCn?: string
|
|
528
|
+
}
|
|
529
|
+
|
|
509
530
|
export class Workspace {
|
|
510
531
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
511
532
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -612,4 +633,7 @@ export class Workspace {
|
|
|
612
633
|
static MoveWorkspaceFolderList(req: MoveWorkspaceFolderListRequest, initReq?: fm.InitReq): Promise<MoveWorkspaceFolderListResponse> {
|
|
613
634
|
return fm.fetchReq<MoveWorkspaceFolderListRequest, MoveWorkspaceFolderListResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/move-folders?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
614
635
|
}
|
|
636
|
+
static ListWorkspaceShareResourceQuotaTypes(req: ListWorkspaceShareResourceQuotaTypesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceShareResourceQuotaTypesResponse> {
|
|
637
|
+
return fm.fetchReq<ListWorkspaceShareResourceQuotaTypesRequest, ListWorkspaceShareResourceQuotaTypesResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/sharedresource/${req["resourceName"]}/quota-types?${fm.renderURLSearchParams(req, ["workspaceId", "resourceName"])}`, {...initReq, method: "GET"})
|
|
638
|
+
}
|
|
615
639
|
}
|