@daocloud-proto/ghippo 0.9.21 → 0.9.22
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/workspace.pb.ts +30 -50
package/package.json
CHANGED
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -46,6 +46,19 @@ export type WorkspacesResourceInfo = {
|
|
|
46
46
|
workspaceResourceId?: number
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
export type ListResourcesRequest = {
|
|
50
|
+
page?: number
|
|
51
|
+
pageSize?: number
|
|
52
|
+
workspaceId?: number
|
|
53
|
+
resourceName?: string
|
|
54
|
+
resourceType?: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ListResourcesResponse = {
|
|
58
|
+
items?: ResourceInfo[]
|
|
59
|
+
pagination?: Pagination
|
|
60
|
+
}
|
|
61
|
+
|
|
49
62
|
export type ListExclusiveResourcesByWorkspaceRequest = {
|
|
50
63
|
page?: number
|
|
51
64
|
pageSize?: number
|
|
@@ -71,7 +84,7 @@ export type ListSharedResourcesByWorkspaceResponse = {
|
|
|
71
84
|
pagination?: Pagination
|
|
72
85
|
}
|
|
73
86
|
|
|
74
|
-
export type
|
|
87
|
+
export type BindExclusiveResourceToWorkspaceRequest = {
|
|
75
88
|
workspaceId?: number
|
|
76
89
|
resourceName?: string
|
|
77
90
|
resourceType?: string
|
|
@@ -79,7 +92,7 @@ export type BindResourceToWorkspaceRequest = {
|
|
|
79
92
|
gproduct?: string
|
|
80
93
|
}
|
|
81
94
|
|
|
82
|
-
export type
|
|
95
|
+
export type BindExclusiveResourceToWorkspaceResponse = {
|
|
83
96
|
}
|
|
84
97
|
|
|
85
98
|
export type UnbindResourceFromWorkspaceRequest = {
|
|
@@ -265,18 +278,6 @@ export type ResourceInfo = {
|
|
|
265
278
|
resourceScope?: string
|
|
266
279
|
}
|
|
267
280
|
|
|
268
|
-
export type ListResourcesRequest = {
|
|
269
|
-
page?: number
|
|
270
|
-
pageSize?: number
|
|
271
|
-
name?: string
|
|
272
|
-
type?: string
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
export type ListResourcesResponse = {
|
|
276
|
-
items?: ResourceInfo[]
|
|
277
|
-
pagination?: Pagination
|
|
278
|
-
}
|
|
279
|
-
|
|
280
281
|
export type ListExclusiveResourceTypesRequest = {
|
|
281
282
|
}
|
|
282
283
|
|
|
@@ -291,40 +292,22 @@ export type ListSharedResourceTypesResponse = {
|
|
|
291
292
|
items?: string[]
|
|
292
293
|
}
|
|
293
294
|
|
|
294
|
-
export type
|
|
295
|
-
resourceName?: string
|
|
296
|
-
resourceType?: string
|
|
297
|
-
resourceScope?: string
|
|
298
|
-
gproduct?: string
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
export type BindResourceAndSetQuotaHardToWorkspaceRequest = {
|
|
302
|
-
resourceName?: string
|
|
303
|
-
resourceType?: string
|
|
304
|
-
gproduct?: string
|
|
305
|
-
workspaceId?: number
|
|
306
|
-
quotaHard?: {[key: string]: string}
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
export type BindResourceAndSetQuotaHardToWorkspaceResponse = {
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export type SetQuotaHardForWorkspaceResourceRequest = {
|
|
295
|
+
export type SetQuotaHardForWorkspaceSharedResourceRequest = {
|
|
313
296
|
workspaceResourceId?: number
|
|
314
297
|
quotaHard?: {[key: string]: string}
|
|
315
298
|
}
|
|
316
299
|
|
|
317
|
-
export type
|
|
300
|
+
export type SetQuotaHardForWorkspaceSharedResourceResponse = {
|
|
318
301
|
}
|
|
319
302
|
|
|
320
|
-
export type
|
|
303
|
+
export type GetWorkspaceSharedResourceQuotaRequest = {
|
|
321
304
|
workspaceId?: number
|
|
322
305
|
resourceName?: string
|
|
323
306
|
resourceType?: string
|
|
324
307
|
notFormatted?: boolean
|
|
325
308
|
}
|
|
326
309
|
|
|
327
|
-
export type
|
|
310
|
+
export type GetWorkspaceSharedResourceQuotaResponse = {
|
|
328
311
|
setting?: {[key: string]: string}
|
|
329
312
|
allocatable?: {[key: string]: string}
|
|
330
313
|
used?: {[key: string]: string}
|
|
@@ -420,17 +403,20 @@ export class Workspace {
|
|
|
420
403
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
421
404
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
422
405
|
}
|
|
406
|
+
static ListResources(req: ListResourcesRequest, initReq?: fm.InitReq): Promise<ListResourcesResponse> {
|
|
407
|
+
return fm.fetchReq<ListResourcesRequest, ListResourcesResponse>(`/apis/ghippo.io/v1alpha1/workspaces/resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
408
|
+
}
|
|
423
409
|
static ListExclusiveResourcesByWorkspace(req: ListExclusiveResourcesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListExclusiveResourcesByWorkspaceResponse> {
|
|
424
410
|
return fm.fetchReq<ListExclusiveResourcesByWorkspaceRequest, ListExclusiveResourcesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/exclusiveresources?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
425
411
|
}
|
|
426
412
|
static ListSharedResourcesByWorkspace(req: ListSharedResourcesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListSharedResourcesByWorkspaceResponse> {
|
|
427
413
|
return fm.fetchReq<ListSharedResourcesByWorkspaceRequest, ListSharedResourcesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/sharedresources?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
428
414
|
}
|
|
429
|
-
static
|
|
430
|
-
return fm.fetchReq<
|
|
415
|
+
static BindExclusiveResourceToWorkspace(req: BindExclusiveResourceToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindExclusiveResourceToWorkspaceResponse> {
|
|
416
|
+
return fm.fetchReq<BindExclusiveResourceToWorkspaceRequest, BindExclusiveResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-exclusiveresource`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
431
417
|
}
|
|
432
418
|
static BindSharedResourceToWorkspace(req: BindSharedResourceToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindSharedResourceToWorkspaceResponse> {
|
|
433
|
-
return fm.fetchReq<BindSharedResourceToWorkspaceRequest, BindSharedResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-
|
|
419
|
+
return fm.fetchReq<BindSharedResourceToWorkspaceRequest, BindSharedResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-sharedresource`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
434
420
|
}
|
|
435
421
|
static UnbindResourceFromWorkspace(req: UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<UnbindResourceFromWorkspaceResponse> {
|
|
436
422
|
return fm.fetchReq<UnbindResourceFromWorkspaceRequest, UnbindResourceFromWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/unbind-resource`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
@@ -477,26 +463,20 @@ export class Workspace {
|
|
|
477
463
|
static ListMembersRolesByFolder(req: ListMembersRolesByFolderRequest, initReq?: fm.InitReq): Promise<ListMembersRolesByFolderResponse> {
|
|
478
464
|
return fm.fetchReq<ListMembersRolesByFolderRequest, ListMembersRolesByFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/members-roles?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
479
465
|
}
|
|
480
|
-
static ListResources(req: ListResourcesRequest, initReq?: fm.InitReq): Promise<ListResourcesResponse> {
|
|
481
|
-
return fm.fetchReq<ListResourcesRequest, ListResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
482
|
-
}
|
|
483
466
|
static ListExclusiveResourceTypes(req: ListExclusiveResourceTypesRequest, initReq?: fm.InitReq): Promise<ListExclusiveResourceTypesResponse> {
|
|
484
467
|
return fm.fetchReq<ListExclusiveResourceTypesRequest, ListExclusiveResourceTypesResponse>(`/apis/ghippo.io/v1alpha1/exclusiveresource-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
485
468
|
}
|
|
486
469
|
static ListSharedResourceTypes(req: ListSharedResourceTypesRequest, initReq?: fm.InitReq): Promise<ListSharedResourceTypesResponse> {
|
|
487
470
|
return fm.fetchReq<ListSharedResourceTypesRequest, ListSharedResourceTypesResponse>(`/apis/ghippo.io/v1alpha1/sharedresource-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
488
471
|
}
|
|
489
|
-
static BindResourceAndSetQuotaHardToWorkspace(req: BindResourceAndSetQuotaHardToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindResourceAndSetQuotaHardToWorkspaceResponse> {
|
|
490
|
-
return fm.fetchReq<BindResourceAndSetQuotaHardToWorkspaceRequest, BindResourceAndSetQuotaHardToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-resource-setquota`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
491
|
-
}
|
|
492
472
|
static BindSharedResourceAndSetQuotaHardToWorkspace(req: BindSharedResourceAndSetQuotaHardToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindSharedResourceAndSetQuotaHardToWorkspaceResponse> {
|
|
493
|
-
return fm.fetchReq<BindSharedResourceAndSetQuotaHardToWorkspaceRequest, BindSharedResourceAndSetQuotaHardToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-
|
|
473
|
+
return fm.fetchReq<BindSharedResourceAndSetQuotaHardToWorkspaceRequest, BindSharedResourceAndSetQuotaHardToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-sharedresource-setquota`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
494
474
|
}
|
|
495
|
-
static
|
|
496
|
-
return fm.fetchReq<
|
|
475
|
+
static SetQuotaHardForWorkspaceSharedResource(req: SetQuotaHardForWorkspaceSharedResourceRequest, initReq?: fm.InitReq): Promise<SetQuotaHardForWorkspaceSharedResourceResponse> {
|
|
476
|
+
return fm.fetchReq<SetQuotaHardForWorkspaceSharedResourceRequest, SetQuotaHardForWorkspaceSharedResourceResponse>(`/apis/ghippo.io/v1alpha1/workspace-sharedresource-quota-hard`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
497
477
|
}
|
|
498
|
-
static
|
|
499
|
-
return fm.fetchReq<
|
|
478
|
+
static GetWorkspaceSharedResourceQuota(req: GetWorkspaceSharedResourceQuotaRequest, initReq?: fm.InitReq): Promise<GetWorkspaceSharedResourceQuotaResponse> {
|
|
479
|
+
return fm.fetchReq<GetWorkspaceSharedResourceQuotaRequest, GetWorkspaceSharedResourceQuotaResponse>(`/apis/ghippo.io/v1alpha1/workspace-sharedresource-quota?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
500
480
|
}
|
|
501
481
|
static ListResourceQuotaTypes(req: ListResourceQuotaTypesRequest, initReq?: fm.InitReq): Promise<ListResourceQuotaTypesResponse> {
|
|
502
482
|
return fm.fetchReq<ListResourceQuotaTypesRequest, ListResourceQuotaTypesResponse>(`/apis/ghippo.io/v1alpha1/resourcequota-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|