@daocloud-proto/ghippo 0.7.10 → 0.7.13
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/gproductlicense.pb.ts +6 -5
- package/v1alpha1/ldap.pb.ts +76 -6
- package/v1alpha1/workspace.pb.ts +124 -6
package/package.json
CHANGED
|
@@ -13,7 +13,7 @@ export type ListGProductLicensesResponse = {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export type GetGProductLicensesRequest = {
|
|
16
|
-
|
|
16
|
+
id?: string
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export type GetGProductLicensesResponse = {
|
|
@@ -29,7 +29,6 @@ export type UpdateGProductLicensesResponse = {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export type GetGProductLicenseYamlRequest = {
|
|
32
|
-
name?: string
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
export type GetGProductLicenseYamlResponse = {
|
|
@@ -37,7 +36,7 @@ export type GetGProductLicenseYamlResponse = {
|
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
export type DeleteProductLicensesRequest = {
|
|
40
|
-
|
|
39
|
+
id?: string
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
export type DeleteProductLicensesResponse = {
|
|
@@ -58,6 +57,7 @@ export type GetGProductLicensesOverQuotaResponse = {
|
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
export type GProductLicense = {
|
|
60
|
+
id?: string
|
|
61
61
|
name?: string
|
|
62
62
|
module?: string
|
|
63
63
|
level?: string
|
|
@@ -66,6 +66,7 @@ export type GProductLicense = {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export type GProductLicenseInfo = {
|
|
69
|
+
id?: string
|
|
69
70
|
name?: string
|
|
70
71
|
module?: string
|
|
71
72
|
licenseKey?: string
|
|
@@ -82,7 +83,7 @@ export class GProducts {
|
|
|
82
83
|
return fm.fetchReq<ListGProductLicensesRequest, ListGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
83
84
|
}
|
|
84
85
|
static GetGProductLicenses(req: GetGProductLicensesRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesResponse> {
|
|
85
|
-
return fm.fetchReq<GetGProductLicensesRequest, GetGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["
|
|
86
|
+
return fm.fetchReq<GetGProductLicensesRequest, GetGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
86
87
|
}
|
|
87
88
|
static UpdateGProductLicenses(req: UpdateGProductLicensesRequest, initReq?: fm.InitReq): Promise<UpdateGProductLicensesResponse> {
|
|
88
89
|
return fm.fetchReq<UpdateGProductLicensesRequest, UpdateGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
@@ -91,7 +92,7 @@ export class GProducts {
|
|
|
91
92
|
return fm.fetchReq<GetGProductLicenseYamlRequest, GetGProductLicenseYamlResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/yaml?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
92
93
|
}
|
|
93
94
|
static DeleteGProductLicenses(req: DeleteProductLicensesRequest, initReq?: fm.InitReq): Promise<DeleteProductLicensesResponse> {
|
|
94
|
-
return fm.fetchReq<DeleteProductLicensesRequest, DeleteProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["
|
|
95
|
+
return fm.fetchReq<DeleteProductLicensesRequest, DeleteProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
95
96
|
}
|
|
96
97
|
static GetGProductLicensesESN(req: GetGProductLicensesESNRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesESNResponse> {
|
|
97
98
|
return fm.fetchReq<GetGProductLicensesESNRequest, GetGProductLicensesESNResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/esn?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
package/v1alpha1/ldap.pb.ts
CHANGED
|
@@ -11,7 +11,7 @@ export type GetLdapRequest = {
|
|
|
11
11
|
export type GetLdapResponse = {
|
|
12
12
|
id?: string
|
|
13
13
|
name?: string
|
|
14
|
-
|
|
14
|
+
vendor?: string
|
|
15
15
|
startTls?: string
|
|
16
16
|
ldapProtocol?: string
|
|
17
17
|
ldapHost?: string
|
|
@@ -24,7 +24,7 @@ export type GetLdapResponse = {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export type CreateLdapRequest = {
|
|
27
|
-
|
|
27
|
+
vendor?: string
|
|
28
28
|
startTls?: string
|
|
29
29
|
ldapProtocol?: string
|
|
30
30
|
ldapHost?: string
|
|
@@ -56,7 +56,7 @@ export type TestLdapConnectionResponse = {
|
|
|
56
56
|
|
|
57
57
|
export type UpdateLdapRequest = {
|
|
58
58
|
id?: string
|
|
59
|
-
|
|
59
|
+
vendor?: string
|
|
60
60
|
startTls?: string
|
|
61
61
|
ldapProtocol?: string
|
|
62
62
|
ldapHost?: string
|
|
@@ -75,7 +75,7 @@ export type SyncUsersRequest = {
|
|
|
75
75
|
id?: string
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
export type
|
|
78
|
+
export type SyncUsersResponse = {
|
|
79
79
|
ignored?: boolean
|
|
80
80
|
added?: number
|
|
81
81
|
updated?: number
|
|
@@ -91,6 +91,61 @@ export type DeleteLdapRequest = {
|
|
|
91
91
|
export type DeleteLdapResponse = {
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
export type GetLdapGroupRequest = {
|
|
95
|
+
id?: string
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type GetLdapGroupResponse = {
|
|
99
|
+
id?: string
|
|
100
|
+
groupDn?: string
|
|
101
|
+
groupObjectClasses?: string
|
|
102
|
+
groupNameLdapAttribute?: string
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type CreateLdapGroupRequest = {
|
|
106
|
+
id?: string
|
|
107
|
+
groupDn?: string
|
|
108
|
+
groupObjectClasses?: string
|
|
109
|
+
groupNameLdapAttribute?: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type CreateLdapGroupResponse = {
|
|
113
|
+
id?: string
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type UpdateLdapGroupRequest = {
|
|
117
|
+
ldapId?: string
|
|
118
|
+
id?: string
|
|
119
|
+
groupDn?: string
|
|
120
|
+
groupObjectClasses?: string
|
|
121
|
+
groupNameLdapAttribute?: string
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export type UpdateLdapGroupResponse = {
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type DeleteLdapGroupRequest = {
|
|
128
|
+
ldapId?: string
|
|
129
|
+
id?: string
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export type DeleteLdapGroupResponse = {
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type SyncLdapGroupsRequest = {
|
|
136
|
+
ldapId?: string
|
|
137
|
+
id?: string
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type SyncLdapGroupsResponse = {
|
|
141
|
+
ignored?: boolean
|
|
142
|
+
added?: number
|
|
143
|
+
updated?: number
|
|
144
|
+
removed?: number
|
|
145
|
+
failed?: number
|
|
146
|
+
status?: string
|
|
147
|
+
}
|
|
148
|
+
|
|
94
149
|
export class Ldap {
|
|
95
150
|
static GetLdap(req: GetLdapRequest, initReq?: fm.InitReq): Promise<GetLdapResponse> {
|
|
96
151
|
return fm.fetchReq<GetLdapRequest, GetLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -104,10 +159,25 @@ export class Ldap {
|
|
|
104
159
|
static UpdateLdap(req: UpdateLdapRequest, initReq?: fm.InitReq): Promise<UpdateLdapResponse> {
|
|
105
160
|
return fm.fetchReq<UpdateLdapRequest, UpdateLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
106
161
|
}
|
|
107
|
-
static SyncUsers(req: SyncUsersRequest, initReq?: fm.InitReq): Promise<
|
|
108
|
-
return fm.fetchReq<SyncUsersRequest,
|
|
162
|
+
static SyncUsers(req: SyncUsersRequest, initReq?: fm.InitReq): Promise<SyncUsersResponse> {
|
|
163
|
+
return fm.fetchReq<SyncUsersRequest, SyncUsersResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/sync?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
109
164
|
}
|
|
110
165
|
static DeleteLdap(req: DeleteLdapRequest, initReq?: fm.InitReq): Promise<DeleteLdapResponse> {
|
|
111
166
|
return fm.fetchReq<DeleteLdapRequest, DeleteLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
112
167
|
}
|
|
168
|
+
static GetLdapGroup(req: GetLdapGroupRequest, initReq?: fm.InitReq): Promise<GetLdapGroupResponse> {
|
|
169
|
+
return fm.fetchReq<GetLdapGroupRequest, GetLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/group?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
170
|
+
}
|
|
171
|
+
static CreateLdapGroup(req: CreateLdapGroupRequest, initReq?: fm.InitReq): Promise<CreateLdapGroupResponse> {
|
|
172
|
+
return fm.fetchReq<CreateLdapGroupRequest, CreateLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}/group`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
173
|
+
}
|
|
174
|
+
static UpdateLdapGroup(req: UpdateLdapGroupRequest, initReq?: fm.InitReq): Promise<UpdateLdapGroupResponse> {
|
|
175
|
+
return fm.fetchReq<UpdateLdapGroupRequest, UpdateLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["ldapId"]}/group/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
176
|
+
}
|
|
177
|
+
static DeleteLdapGroup(req: DeleteLdapGroupRequest, initReq?: fm.InitReq): Promise<DeleteLdapGroupResponse> {
|
|
178
|
+
return fm.fetchReq<DeleteLdapGroupRequest, DeleteLdapGroupResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["ldapId"]}/group/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
179
|
+
}
|
|
180
|
+
static SyncLdapGroups(req: SyncLdapGroupsRequest, initReq?: fm.InitReq): Promise<SyncLdapGroupsResponse> {
|
|
181
|
+
return fm.fetchReq<SyncLdapGroupsRequest, SyncLdapGroupsResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["ldapId"]}/group/${req["id"]}/sync?${fm.renderURLSearchParams(req, ["ldapId", "id"])}`, {...initReq, method: "GET"})
|
|
182
|
+
}
|
|
113
183
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -47,6 +47,28 @@ export type ListResourcesResponse = {
|
|
|
47
47
|
pagination?: Pagination
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
export type ListExclusiveResourcesByWorkspaceRequest = {
|
|
51
|
+
page?: number
|
|
52
|
+
pageSize?: number
|
|
53
|
+
workspaceId?: number
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type ListExclusiveResourcesByWorkspaceResponse = {
|
|
57
|
+
items?: ResourceInfo[]
|
|
58
|
+
pagination?: Pagination
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type ListSharedResourcesByWorkspaceRequest = {
|
|
62
|
+
page?: number
|
|
63
|
+
pageSize?: number
|
|
64
|
+
workspaceId?: number
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type ListSharedResourcesByWorkspaceResponse = {
|
|
68
|
+
items?: ResourceInfo[]
|
|
69
|
+
pagination?: Pagination
|
|
70
|
+
}
|
|
71
|
+
|
|
50
72
|
export type BindResourceToWorkspaceRequest = {
|
|
51
73
|
workspaceId?: number
|
|
52
74
|
resourceName?: string
|
|
@@ -261,14 +283,83 @@ export type ProductResourceType = {
|
|
|
261
283
|
name?: string
|
|
262
284
|
}
|
|
263
285
|
|
|
264
|
-
export type
|
|
286
|
+
export type ListResourceTypesRequest = {
|
|
265
287
|
}
|
|
266
288
|
|
|
267
|
-
export type
|
|
289
|
+
export type ListResourceTypesResponse = {
|
|
268
290
|
items?: ProductResourceType[]
|
|
269
291
|
pagination?: Pagination
|
|
270
292
|
}
|
|
271
293
|
|
|
294
|
+
export type ListExclusiveResourceTypesRequest = {
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export type ListExclusiveResourceTypesResponse = {
|
|
298
|
+
items?: ProductResourceType[]
|
|
299
|
+
pagination?: Pagination
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export type ListSharedResourceTypesRequest = {
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export type ListSharedResourceTypesResponse = {
|
|
306
|
+
items?: ProductResourceType[]
|
|
307
|
+
pagination?: Pagination
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export type Resource = {
|
|
311
|
+
resourceName?: string
|
|
312
|
+
resourceType?: string
|
|
313
|
+
resourceScope?: string
|
|
314
|
+
gproduct?: string
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export type QuotaHard = {
|
|
318
|
+
limits?: QuotaHardResource
|
|
319
|
+
requests?: QuotaHardResource
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export type QuotaHardResource = {
|
|
323
|
+
cpu?: string
|
|
324
|
+
memory?: string
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export type BindResourceAndSetQuotaHardToWorkspaceRequest = {
|
|
328
|
+
workspaceId?: number
|
|
329
|
+
quotaHard?: QuotaHard
|
|
330
|
+
resource?: Resource
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export type BindResourceAndSetQuotaHardToWorkspaceResponse = {
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export type SetQuotaHardForWorkspaceResourceRequest = {
|
|
337
|
+
workspaceResourceId?: number
|
|
338
|
+
limits?: QuotaHardResource
|
|
339
|
+
requests?: QuotaHardResource
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export type SetQuotaHardForWorkspaceResourceResponse = {
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export type GetWorkspaceResourceQuotaUsedRequest = {
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export type GetWorkspaceResourceQuotaUsedResponse = {
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export type GetWorkspaceResourceQuotaAllocatableRequest = {
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
export type GetWorkspaceResourceQuotaAllocatableResponse = {
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export type ListResourceQuotaTypesRequest = {
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export type ListResourceQuotaTypesResponse = {
|
|
361
|
+
}
|
|
362
|
+
|
|
272
363
|
export class Workspace {
|
|
273
364
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
274
365
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -276,11 +367,17 @@ export class Workspace {
|
|
|
276
367
|
static ListResources(req: ListResourcesRequest, initReq?: fm.InitReq): Promise<ListResourcesResponse> {
|
|
277
368
|
return fm.fetchReq<ListResourcesRequest, ListResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
278
369
|
}
|
|
370
|
+
static ListExclusiveResourcesByWorkspace(req: ListExclusiveResourcesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListExclusiveResourcesByWorkspaceResponse> {
|
|
371
|
+
return fm.fetchReq<ListExclusiveResourcesByWorkspaceRequest, ListExclusiveResourcesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/exclusiveresources?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
372
|
+
}
|
|
373
|
+
static ListSharedResourcesByWorkspace(req: ListSharedResourcesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListSharedResourcesByWorkspaceResponse> {
|
|
374
|
+
return fm.fetchReq<ListSharedResourcesByWorkspaceRequest, ListSharedResourcesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/sharedresources?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
375
|
+
}
|
|
279
376
|
static BindResourceToWorkspace(req: BindResourceToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindResourceToWorkspaceResponse> {
|
|
280
|
-
return fm.fetchReq<BindResourceToWorkspaceRequest, BindResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/
|
|
377
|
+
return fm.fetchReq<BindResourceToWorkspaceRequest, BindResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-workspace`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
281
378
|
}
|
|
282
379
|
static UnbindResourceFromWorkspace(req: UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<UnbindResourceFromWorkspaceResponse> {
|
|
283
|
-
return fm.fetchReq<UnbindResourceFromWorkspaceRequest, UnbindResourceFromWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/
|
|
380
|
+
return fm.fetchReq<UnbindResourceFromWorkspaceRequest, UnbindResourceFromWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/unbind-workspace`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
284
381
|
}
|
|
285
382
|
static CreateWorkspace(req: CreateWorkspaceRequest, initReq?: fm.InitReq): Promise<CreateWorkspaceResponse> {
|
|
286
383
|
return fm.fetchReq<CreateWorkspaceRequest, CreateWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
@@ -327,7 +424,28 @@ export class Workspace {
|
|
|
327
424
|
static ListProductResources(req: ListProductResourcesRequest, initReq?: fm.InitReq): Promise<ListProductResourcesResponse> {
|
|
328
425
|
return fm.fetchReq<ListProductResourcesRequest, ListProductResourcesResponse>(`/apis/ghippo.io/v1alpha1/product-resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
329
426
|
}
|
|
330
|
-
static
|
|
331
|
-
return fm.fetchReq<
|
|
427
|
+
static ListResourceTypes(req: ListResourceTypesRequest, initReq?: fm.InitReq): Promise<ListResourceTypesResponse> {
|
|
428
|
+
return fm.fetchReq<ListResourceTypesRequest, ListResourceTypesResponse>(`/apis/ghippo.io/v1alpha1/resource-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
429
|
+
}
|
|
430
|
+
static ListExclusiveResourceTypes(req: ListExclusiveResourceTypesRequest, initReq?: fm.InitReq): Promise<ListExclusiveResourceTypesResponse> {
|
|
431
|
+
return fm.fetchReq<ListExclusiveResourceTypesRequest, ListExclusiveResourceTypesResponse>(`/apis/ghippo.io/v1alpha1/exclusiveresource-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
432
|
+
}
|
|
433
|
+
static ListSharedResourceTypes(req: ListSharedResourceTypesRequest, initReq?: fm.InitReq): Promise<ListSharedResourceTypesResponse> {
|
|
434
|
+
return fm.fetchReq<ListSharedResourceTypesRequest, ListSharedResourceTypesResponse>(`/apis/ghippo.io/v1alpha1/sharedresource-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
435
|
+
}
|
|
436
|
+
static BindResourceAndSetQuotaHardToWorkspace(req: BindResourceAndSetQuotaHardToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindResourceAndSetQuotaHardToWorkspaceResponse> {
|
|
437
|
+
return fm.fetchReq<BindResourceAndSetQuotaHardToWorkspaceRequest, BindResourceAndSetQuotaHardToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-resource-setquota`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
438
|
+
}
|
|
439
|
+
static SetQuotaHardForWorkspaceResource(req: SetQuotaHardForWorkspaceResourceRequest, initReq?: fm.InitReq): Promise<SetQuotaHardForWorkspaceResourceResponse> {
|
|
440
|
+
return fm.fetchReq<SetQuotaHardForWorkspaceResourceRequest, SetQuotaHardForWorkspaceResourceResponse>(`/apis/ghippo.io/v1alpha1/workspaceresource-quota-hard`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
441
|
+
}
|
|
442
|
+
static GetWorkspaceResourceQuotaUsed(req: GetWorkspaceResourceQuotaUsedRequest, initReq?: fm.InitReq): Promise<GetWorkspaceResourceQuotaUsedResponse> {
|
|
443
|
+
return fm.fetchReq<GetWorkspaceResourceQuotaUsedRequest, GetWorkspaceResourceQuotaUsedResponse>(`/apis/ghippo.io/v1alpha1/workspaceresource-quota-used?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
444
|
+
}
|
|
445
|
+
static GetWorkspaceResourceQuotaAllocatable(req: GetWorkspaceResourceQuotaAllocatableRequest, initReq?: fm.InitReq): Promise<GetWorkspaceResourceQuotaAllocatableResponse> {
|
|
446
|
+
return fm.fetchReq<GetWorkspaceResourceQuotaAllocatableRequest, GetWorkspaceResourceQuotaAllocatableResponse>(`/apis/ghippo.io/v1alpha1/workspaceresource-quota-allocatable?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
447
|
+
}
|
|
448
|
+
static ListResourceQuotaTypes(req: ListResourceQuotaTypesRequest, initReq?: fm.InitReq): Promise<ListResourceQuotaTypesResponse> {
|
|
449
|
+
return fm.fetchReq<ListResourceQuotaTypesRequest, ListResourceQuotaTypesResponse>(`/apis/ghippo.io/v1alpha1/resourcequota-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
332
450
|
}
|
|
333
451
|
}
|