@daocloud-proto/ghippo 0.7.30 → 0.7.34
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/ldap.pb.ts +17 -0
- package/v1alpha1/workspace.pb.ts +6 -44
package/package.json
CHANGED
package/v1alpha1/ldap.pb.ts
CHANGED
|
@@ -54,6 +54,20 @@ export type TestLdapConnectionRequest = {
|
|
|
54
54
|
export type TestLdapConnectionResponse = {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
export type TestLdaptestAuthenticationRequest = {
|
|
58
|
+
bindDn?: string
|
|
59
|
+
bindCredential?: string
|
|
60
|
+
connectionUrl?: string
|
|
61
|
+
connectionTimeout?: string
|
|
62
|
+
action?: string
|
|
63
|
+
startTls?: string
|
|
64
|
+
useTruststoreSpi?: string
|
|
65
|
+
componentId?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type TestLdaptestAuthenticationResponse = {
|
|
69
|
+
}
|
|
70
|
+
|
|
57
71
|
export type UpdateLdapRequest = {
|
|
58
72
|
id?: string
|
|
59
73
|
vendor?: string
|
|
@@ -156,6 +170,9 @@ export class Ldap {
|
|
|
156
170
|
static TestLdapConnection(req: TestLdapConnectionRequest, initReq?: fm.InitReq): Promise<TestLdapConnectionResponse> {
|
|
157
171
|
return fm.fetchReq<TestLdapConnectionRequest, TestLdapConnectionResponse>(`/apis/ghippo.io/v1alpha1/testLdapConnection`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
158
172
|
}
|
|
173
|
+
static TestLdapAuthentication(req: TestLdaptestAuthenticationRequest, initReq?: fm.InitReq): Promise<TestLdaptestAuthenticationResponse> {
|
|
174
|
+
return fm.fetchReq<TestLdaptestAuthenticationRequest, TestLdaptestAuthenticationResponse>(`/apis/ghippo.io/v1alpha1/testLdapAuthentication`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
175
|
+
}
|
|
159
176
|
static UpdateLdap(req: UpdateLdapRequest, initReq?: fm.InitReq): Promise<UpdateLdapResponse> {
|
|
160
177
|
return fm.fetchReq<UpdateLdapRequest, UpdateLdapResponse>(`/apis/ghippo.io/v1alpha1/ldap/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
161
178
|
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -36,18 +36,6 @@ export type WorkspacesResourceInfo = {
|
|
|
36
36
|
workspaceResourceId?: number
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
export type ListWorkspacesResourcesRequest = {
|
|
40
|
-
page?: number
|
|
41
|
-
pageSize?: number
|
|
42
|
-
workspaceId?: number
|
|
43
|
-
gproduct?: string
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export type ListWorkspacesResourcesResponse = {
|
|
47
|
-
items?: WorkspacesResourceInfo[]
|
|
48
|
-
pagination?: Pagination
|
|
49
|
-
}
|
|
50
|
-
|
|
51
39
|
export type ListExclusiveResourcesByWorkspaceRequest = {
|
|
52
40
|
page?: number
|
|
53
41
|
pageSize?: number
|
|
@@ -227,7 +215,7 @@ export type MemberRoleFolderInfo = {
|
|
|
227
215
|
folderId?: number
|
|
228
216
|
}
|
|
229
217
|
|
|
230
|
-
export type
|
|
218
|
+
export type ListMembersRolesByFolderRequest = {
|
|
231
219
|
page?: number
|
|
232
220
|
pageSize?: number
|
|
233
221
|
folderId?: number
|
|
@@ -236,21 +224,11 @@ export type ListMembersRolesRequest = {
|
|
|
236
224
|
roleName?: string
|
|
237
225
|
}
|
|
238
226
|
|
|
239
|
-
export type
|
|
227
|
+
export type ListMembersRolesByFolderResponse = {
|
|
240
228
|
items?: MemberRoleFolderInfo[]
|
|
241
229
|
pagination?: Pagination
|
|
242
230
|
}
|
|
243
231
|
|
|
244
|
-
export type ListMembersRolesResourcesRequest = {
|
|
245
|
-
page?: number
|
|
246
|
-
pageSize?: number
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
export type ListMembersRolesResourcesResponse = {
|
|
250
|
-
items?: MemberRoleWorkspaceInfo[]
|
|
251
|
-
pagination?: Pagination
|
|
252
|
-
}
|
|
253
|
-
|
|
254
232
|
export type ResourceInfo = {
|
|
255
233
|
name?: string
|
|
256
234
|
type?: string
|
|
@@ -270,13 +248,6 @@ export type ListResourcesResponse = {
|
|
|
270
248
|
pagination?: Pagination
|
|
271
249
|
}
|
|
272
250
|
|
|
273
|
-
export type ListResourceTypesRequest = {
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
export type ListResourceTypesResponse = {
|
|
277
|
-
items?: string[]
|
|
278
|
-
}
|
|
279
|
-
|
|
280
251
|
export type ListExclusiveResourceTypesRequest = {
|
|
281
252
|
}
|
|
282
253
|
|
|
@@ -347,9 +318,6 @@ export class Workspace {
|
|
|
347
318
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
348
319
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
349
320
|
}
|
|
350
|
-
static ListWorkspacesResources(req: ListWorkspacesResourcesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResourcesResponse> {
|
|
351
|
-
return fm.fetchReq<ListWorkspacesResourcesRequest, ListWorkspacesResourcesResponse>(`/apis/ghippo.io/v1alpha1/workspacesresources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
352
|
-
}
|
|
353
321
|
static ListExclusiveResourcesByWorkspace(req: ListExclusiveResourcesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListExclusiveResourcesByWorkspaceResponse> {
|
|
354
322
|
return fm.fetchReq<ListExclusiveResourcesByWorkspaceRequest, ListExclusiveResourcesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/exclusiveresources?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
355
323
|
}
|
|
@@ -357,10 +325,10 @@ export class Workspace {
|
|
|
357
325
|
return fm.fetchReq<ListSharedResourcesByWorkspaceRequest, ListSharedResourcesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/sharedresources?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
358
326
|
}
|
|
359
327
|
static BindResourceToWorkspace(req: BindResourceToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindResourceToWorkspaceResponse> {
|
|
360
|
-
return fm.fetchReq<BindResourceToWorkspaceRequest, BindResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-
|
|
328
|
+
return fm.fetchReq<BindResourceToWorkspaceRequest, BindResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/bind-resource`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
361
329
|
}
|
|
362
330
|
static UnbindResourceFromWorkspace(req: UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<UnbindResourceFromWorkspaceResponse> {
|
|
363
|
-
return fm.fetchReq<UnbindResourceFromWorkspaceRequest, UnbindResourceFromWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/unbind-
|
|
331
|
+
return fm.fetchReq<UnbindResourceFromWorkspaceRequest, UnbindResourceFromWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspaceId"]}/unbind-resource`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
364
332
|
}
|
|
365
333
|
static CreateWorkspace(req: CreateWorkspaceRequest, initReq?: fm.InitReq): Promise<CreateWorkspaceResponse> {
|
|
366
334
|
return fm.fetchReq<CreateWorkspaceRequest, CreateWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
@@ -398,18 +366,12 @@ export class Workspace {
|
|
|
398
366
|
static Deauthorize(req: DeauthorizeRequest, initReq?: fm.InitReq): Promise<DeauthorizeResponse> {
|
|
399
367
|
return fm.fetchReq<DeauthorizeRequest, DeauthorizeResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/deauthorize`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
400
368
|
}
|
|
401
|
-
static
|
|
402
|
-
return fm.fetchReq<
|
|
403
|
-
}
|
|
404
|
-
static ListMembersRolesResources(req: ListMembersRolesResourcesRequest, initReq?: fm.InitReq): Promise<ListMembersRolesResourcesResponse> {
|
|
405
|
-
return fm.fetchReq<ListMembersRolesResourcesRequest, ListMembersRolesResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources/members-roles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
369
|
+
static ListMembersRolesByFolder(req: ListMembersRolesByFolderRequest, initReq?: fm.InitReq): Promise<ListMembersRolesByFolderResponse> {
|
|
370
|
+
return fm.fetchReq<ListMembersRolesByFolderRequest, ListMembersRolesByFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folderId"]}/members-roles?${fm.renderURLSearchParams(req, ["folderId"])}`, {...initReq, method: "GET"})
|
|
406
371
|
}
|
|
407
372
|
static ListResources(req: ListResourcesRequest, initReq?: fm.InitReq): Promise<ListResourcesResponse> {
|
|
408
373
|
return fm.fetchReq<ListResourcesRequest, ListResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
409
374
|
}
|
|
410
|
-
static ListResourceTypes(req: ListResourceTypesRequest, initReq?: fm.InitReq): Promise<ListResourceTypesResponse> {
|
|
411
|
-
return fm.fetchReq<ListResourceTypesRequest, ListResourceTypesResponse>(`/apis/ghippo.io/v1alpha1/resource-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
412
|
-
}
|
|
413
375
|
static ListExclusiveResourceTypes(req: ListExclusiveResourceTypesRequest, initReq?: fm.InitReq): Promise<ListExclusiveResourceTypesResponse> {
|
|
414
376
|
return fm.fetchReq<ListExclusiveResourceTypesRequest, ListExclusiveResourceTypesResponse>(`/apis/ghippo.io/v1alpha1/exclusiveresource-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
415
377
|
}
|