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