@daocloud-proto/ghippo 0.8.7 → 0.8.10
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/audit.pb.ts +0 -6
- package/v1alpha1/topnav.pb.ts +9 -0
- package/v1alpha1/workspace.pb.ts +35 -5
package/package.json
CHANGED
package/v1alpha1/audit.pb.ts
CHANGED
package/v1alpha1/topnav.pb.ts
CHANGED
|
@@ -27,6 +27,12 @@ export type UpdateTopNavRequest = {
|
|
|
27
27
|
export type UpdateTopNavResponse = {
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
export type ResetTopNavRequest = {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type ResetTopNavResponse = {
|
|
34
|
+
}
|
|
35
|
+
|
|
30
36
|
export class TopNavigator {
|
|
31
37
|
static Info(req: TopNavRequest, initReq?: fm.InitReq): Promise<TopNavResponse> {
|
|
32
38
|
return fm.fetchReq<TopNavRequest, TopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -34,4 +40,7 @@ export class TopNavigator {
|
|
|
34
40
|
static UpdateTopNav(req: UpdateTopNavRequest, initReq?: fm.InitReq): Promise<UpdateTopNavResponse> {
|
|
35
41
|
return fm.fetchReq<UpdateTopNavRequest, UpdateTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
36
42
|
}
|
|
43
|
+
static ResetTopNav(req: ResetTopNavRequest, initReq?: fm.InitReq): Promise<ResetTopNavResponse> {
|
|
44
|
+
return fm.fetchReq<ResetTopNavRequest, ResetTopNavResponse>(`/apis/ghippo.io/v1alpha1/top-nav/reset`, {...initReq, method: "POST"})
|
|
45
|
+
}
|
|
37
46
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -7,11 +7,12 @@
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
|
|
9
9
|
export enum QuotaType {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
requestsCpu = "requestsCpu",
|
|
11
|
+
limitsCpu = "limitsCpu",
|
|
12
|
+
requestsMemory = "requestsMemory",
|
|
13
|
+
limitsMemory = "limitsMemory",
|
|
14
|
+
persistentvolumeclaims = "persistentvolumeclaims",
|
|
15
|
+
requestsStorage = "requestsStorage",
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export type Pagination = {
|
|
@@ -284,6 +285,7 @@ export type QuotaHard = {
|
|
|
284
285
|
requestsMemory?: string
|
|
285
286
|
limitsMemory?: string
|
|
286
287
|
persistentvolumeclaims?: string
|
|
288
|
+
requestStorage?: string
|
|
287
289
|
}
|
|
288
290
|
|
|
289
291
|
export type BindResourceAndSetQuotaHardToWorkspaceRequest = {
|
|
@@ -338,6 +340,28 @@ export type UpdateQuotaCheckResponse = {
|
|
|
338
340
|
reason?: string
|
|
339
341
|
}
|
|
340
342
|
|
|
343
|
+
export type BindSharedResourceToWorkspaceRequest = {
|
|
344
|
+
workspaceId?: number
|
|
345
|
+
resourceName?: string
|
|
346
|
+
resourceType?: string
|
|
347
|
+
resourceScope?: string
|
|
348
|
+
gproduct?: string
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export type BindSharedResourceToWorkspaceResponse = {
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export type BindSharedResourceAndSetQuotaHardToWorkspaceRequest = {
|
|
355
|
+
resourceName?: string
|
|
356
|
+
resourceType?: string
|
|
357
|
+
gproduct?: string
|
|
358
|
+
workspaceId?: number
|
|
359
|
+
quotaHard?: QuotaHard
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
export type BindSharedResourceAndSetQuotaHardToWorkspaceResponse = {
|
|
363
|
+
}
|
|
364
|
+
|
|
341
365
|
export class Workspace {
|
|
342
366
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
343
367
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -351,6 +375,9 @@ export class Workspace {
|
|
|
351
375
|
static BindResourceToWorkspace(req: BindResourceToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindResourceToWorkspaceResponse> {
|
|
352
376
|
return fm.fetchReq<BindResourceToWorkspaceRequest, BindResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-resource`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
353
377
|
}
|
|
378
|
+
static BindSharedResourceToWorkspace(req: BindSharedResourceToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindSharedResourceToWorkspaceResponse> {
|
|
379
|
+
return fm.fetchReq<BindSharedResourceToWorkspaceRequest, BindSharedResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-shared-resource`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
380
|
+
}
|
|
354
381
|
static UnbindResourceFromWorkspace(req: UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<UnbindResourceFromWorkspaceResponse> {
|
|
355
382
|
return fm.fetchReq<UnbindResourceFromWorkspaceRequest, UnbindResourceFromWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/unbind-resource`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
356
383
|
}
|
|
@@ -405,6 +432,9 @@ export class Workspace {
|
|
|
405
432
|
static BindResourceAndSetQuotaHardToWorkspace(req: BindResourceAndSetQuotaHardToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindResourceAndSetQuotaHardToWorkspaceResponse> {
|
|
406
433
|
return fm.fetchReq<BindResourceAndSetQuotaHardToWorkspaceRequest, BindResourceAndSetQuotaHardToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-resource-setquota`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
407
434
|
}
|
|
435
|
+
static BindSharedResourceAndSetQuotaHardToWorkspace(req: BindSharedResourceAndSetQuotaHardToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindSharedResourceAndSetQuotaHardToWorkspaceResponse> {
|
|
436
|
+
return fm.fetchReq<BindSharedResourceAndSetQuotaHardToWorkspaceRequest, BindSharedResourceAndSetQuotaHardToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-shared-resource-setquota`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
437
|
+
}
|
|
408
438
|
static SetQuotaHardForWorkspaceResource(req: SetQuotaHardForWorkspaceResourceRequest, initReq?: fm.InitReq): Promise<SetQuotaHardForWorkspaceResourceResponse> {
|
|
409
439
|
return fm.fetchReq<SetQuotaHardForWorkspaceResourceRequest, SetQuotaHardForWorkspaceResourceResponse>(`/apis/ghippo.io/v1alpha1/workspaceresource-quota-hard`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
410
440
|
}
|