@daocloud-proto/ghippo 0.6.14 → 0.6.17
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/about.pb.ts +15 -1
- package/v1alpha1/gproductlicense.pb.ts +82 -0
- package/v1alpha1/group.pb.ts +1 -1
- package/v1alpha1/role.pb.ts +2 -1
- package/v1alpha1/user.pb.ts +1 -1
- package/v1alpha1/workspace.pb.ts +132 -35
package/package.json
CHANGED
package/v1alpha1/about.pb.ts
CHANGED
|
@@ -27,7 +27,18 @@ export type ListOpenSourcesResponse = {
|
|
|
27
27
|
export type OpenSource = {
|
|
28
28
|
name?: string
|
|
29
29
|
license?: string
|
|
30
|
-
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type ListGProductVersionsRequest = {
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type ListGProductVersionsResponse = {
|
|
36
|
+
data?: GProductVersion[]
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type GProductVersion = {
|
|
40
|
+
name?: string
|
|
41
|
+
version?: string
|
|
31
42
|
}
|
|
32
43
|
|
|
33
44
|
export class About {
|
|
@@ -37,4 +48,7 @@ export class About {
|
|
|
37
48
|
static ListOpenSources(req: ListOpenSourcesRequest, initReq?: fm.InitReq): Promise<ListOpenSourcesResponse> {
|
|
38
49
|
return fm.fetchReq<ListOpenSourcesRequest, ListOpenSourcesResponse>(`/apis/ghippo.io/v1alpha1/about/opensources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
39
50
|
}
|
|
51
|
+
static ListGProductVersions(req: ListGProductVersionsRequest, initReq?: fm.InitReq): Promise<ListGProductVersionsResponse> {
|
|
52
|
+
return fm.fetchReq<ListGProductVersionsRequest, ListGProductVersionsResponse>(`/apis/ghippo.io/v1alpha1/about/versions?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
53
|
+
}
|
|
40
54
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as fm from "../fetch.pb"
|
|
8
|
+
export type ListGProductLicensesRequest = {
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export type ListGProductLicensesResponse = {
|
|
12
|
+
licenses?: GProductLicense[]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type GetGProductLicensesRequest = {
|
|
16
|
+
name?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type GetGProductLicensesResponse = {
|
|
20
|
+
license?: GProductLicense
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type UpdateGProductLicensesRequest = {
|
|
24
|
+
yaml?: string
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type UpdateGProductLicensesResponse = {
|
|
28
|
+
message?: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type GetGProductLicenseYamlRequest = {
|
|
32
|
+
name?: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type GetGProductLicenseYamlResponse = {
|
|
36
|
+
yaml?: string
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type DeleteProductLicensesRequest = {
|
|
40
|
+
name?: string
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type DeleteProductLicensesResponse = {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type GetGProductLicensesESNRequest = {
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type GetGProductLicensesESNResponse = {
|
|
50
|
+
esn?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type GProductLicense = {
|
|
54
|
+
meta_name?: string
|
|
55
|
+
license_name?: string
|
|
56
|
+
product_name?: string
|
|
57
|
+
tier?: string
|
|
58
|
+
status?: string
|
|
59
|
+
is_expired?: string
|
|
60
|
+
expired_at?: string
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export class GProducts {
|
|
64
|
+
static ListGProductLicenses(req: ListGProductLicensesRequest, initReq?: fm.InitReq): Promise<ListGProductLicensesResponse> {
|
|
65
|
+
return fm.fetchReq<ListGProductLicensesRequest, ListGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
66
|
+
}
|
|
67
|
+
static GetGProductLicenses(req: GetGProductLicensesRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesResponse> {
|
|
68
|
+
return fm.fetchReq<GetGProductLicensesRequest, GetGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/info?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
69
|
+
}
|
|
70
|
+
static UpdateGProductLicenses(req: UpdateGProductLicensesRequest, initReq?: fm.InitReq): Promise<UpdateGProductLicensesResponse> {
|
|
71
|
+
return fm.fetchReq<UpdateGProductLicensesRequest, UpdateGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
72
|
+
}
|
|
73
|
+
static GetGProductLicensesYaml(req: GetGProductLicenseYamlRequest, initReq?: fm.InitReq): Promise<GetGProductLicenseYamlResponse> {
|
|
74
|
+
return fm.fetchReq<GetGProductLicenseYamlRequest, GetGProductLicenseYamlResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/yaml?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
75
|
+
}
|
|
76
|
+
static DeleteGProductLicenses(req: DeleteProductLicensesRequest, initReq?: fm.InitReq): Promise<DeleteProductLicensesResponse> {
|
|
77
|
+
return fm.fetchReq<DeleteProductLicensesRequest, DeleteProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses`, {...initReq, method: "DELETE"})
|
|
78
|
+
}
|
|
79
|
+
static GetGProductLicensesESN(req: GetGProductLicensesESNRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesESNResponse> {
|
|
80
|
+
return fm.fetchReq<GetGProductLicensesESNRequest, GetGProductLicensesESNResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/esn?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
81
|
+
}
|
|
82
|
+
}
|
package/v1alpha1/group.pb.ts
CHANGED
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -91,6 +91,7 @@ export type ListRoleSubjectsRequest = {
|
|
|
91
91
|
id?: string
|
|
92
92
|
offset?: number
|
|
93
93
|
size?: number
|
|
94
|
+
search?: string
|
|
94
95
|
}
|
|
95
96
|
|
|
96
97
|
export type ListRoleSubjectsResponse = {
|
|
@@ -102,7 +103,7 @@ export type Subject = {
|
|
|
102
103
|
id?: string
|
|
103
104
|
role_id?: string
|
|
104
105
|
type?: string
|
|
105
|
-
|
|
106
|
+
subject_name?: string
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
export class Role {
|
package/v1alpha1/user.pb.ts
CHANGED
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -6,22 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../fetch.pb"
|
|
8
8
|
export type WorkspaceInfo = {
|
|
9
|
-
id?:
|
|
9
|
+
id?: number
|
|
10
10
|
name?: string
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type ResourceInfo = {
|
|
15
|
-
resource_name?: string
|
|
16
|
-
workspace_id?: string
|
|
17
|
-
resource_type?: string
|
|
18
|
-
resource_scope?: string
|
|
19
|
-
gproduct?: string
|
|
11
|
+
alias?: string
|
|
20
12
|
}
|
|
21
13
|
|
|
22
14
|
export type ListWorkspacesRequest = {
|
|
23
15
|
size?: number
|
|
24
16
|
offset?: number
|
|
17
|
+
all?: boolean
|
|
25
18
|
}
|
|
26
19
|
|
|
27
20
|
export type ListWorkspacesResponse = {
|
|
@@ -29,34 +22,39 @@ export type ListWorkspacesResponse = {
|
|
|
29
22
|
workspaces?: WorkspaceInfo[]
|
|
30
23
|
}
|
|
31
24
|
|
|
32
|
-
export type
|
|
33
|
-
|
|
25
|
+
export type ResourceInfo = {
|
|
26
|
+
resource_name?: string
|
|
27
|
+
resource_type?: string
|
|
28
|
+
resource_scope?: string
|
|
29
|
+
gproduct?: string
|
|
30
|
+
workspace_id?: number
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type ListResourcesRequest = {
|
|
34
|
+
workspace_id?: number
|
|
34
35
|
gproduct?: string
|
|
35
36
|
size?: number
|
|
36
37
|
offset?: number
|
|
37
38
|
}
|
|
38
39
|
|
|
39
|
-
export type
|
|
40
|
+
export type ListResourcesResponse = {
|
|
40
41
|
total?: number
|
|
41
42
|
resources?: ResourceInfo[]
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
export type BindResourceToWorkspaceRequest = {
|
|
45
|
-
workspace_id?:
|
|
46
|
+
workspace_id?: number
|
|
46
47
|
resource_name?: string
|
|
47
48
|
resource_type?: string
|
|
48
|
-
gproduct?: string
|
|
49
49
|
resource_scope?: string
|
|
50
|
+
gproduct?: string
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
export type BindResourceToWorkspaceResponse = {
|
|
53
54
|
}
|
|
54
55
|
|
|
55
56
|
export type UnbindResourceFromWorkspaceRequest = {
|
|
56
|
-
workspace_id?: string
|
|
57
57
|
resource_name?: string
|
|
58
|
-
resource_type?: string
|
|
59
|
-
gproduct?: string
|
|
60
58
|
resource_scope?: string
|
|
61
59
|
}
|
|
62
60
|
|
|
@@ -65,14 +63,15 @@ export type UnbindResourceFromWorkspaceResponse = {
|
|
|
65
63
|
|
|
66
64
|
export type CreateWorkspaceRequest = {
|
|
67
65
|
name?: string
|
|
68
|
-
|
|
66
|
+
alias?: string
|
|
67
|
+
parent_workspace_id?: number
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
export type CreateWorkspaceResponse = {
|
|
72
71
|
}
|
|
73
72
|
|
|
74
73
|
export type GetWorkspaceRequest = {
|
|
75
|
-
workspace_id?:
|
|
74
|
+
workspace_id?: number
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
export type GetWorkspaceResponse = {
|
|
@@ -80,14 +79,80 @@ export type GetWorkspaceResponse = {
|
|
|
80
79
|
}
|
|
81
80
|
|
|
82
81
|
export type DeleteWorkspaceRequest = {
|
|
83
|
-
workspace_id?:
|
|
82
|
+
workspace_id?: number
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
export type DeleteWorkspaceResponse = {
|
|
87
86
|
}
|
|
88
87
|
|
|
88
|
+
export type MemberRoleWorkspaceInfo = {
|
|
89
|
+
member_name?: string
|
|
90
|
+
member_type?: string
|
|
91
|
+
role_name?: string
|
|
92
|
+
workspace_id?: number
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type ListMembersRolesByWorkspaceRequest = {
|
|
96
|
+
workspace_id?: number
|
|
97
|
+
offset?: number
|
|
98
|
+
size?: number
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type ListMembersRolesByWorkspaceResponse = {
|
|
102
|
+
total?: number
|
|
103
|
+
members_roles_workspaces?: MemberRoleWorkspaceInfo[]
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export type FolderInfo = {
|
|
107
|
+
id?: number
|
|
108
|
+
name?: string
|
|
109
|
+
alias?: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type ListFoldersRequest = {
|
|
113
|
+
size?: number
|
|
114
|
+
offset?: number
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type ListFoldersResponse = {
|
|
118
|
+
total?: number
|
|
119
|
+
folders?: FolderInfo[]
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export type CreateFolderRequest = {
|
|
123
|
+
name?: string
|
|
124
|
+
alias?: string
|
|
125
|
+
parent_folder_id?: number
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type CreateFolderResponse = {
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type GetFolderRequest = {
|
|
132
|
+
folder_id?: number
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type GetFolderResponse = {
|
|
136
|
+
folder?: FolderInfo
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type DeleteFolderRequest = {
|
|
140
|
+
folder_id?: number
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type DeleteFolderResponse = {
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type UpdateFolderRequest = {
|
|
147
|
+
folder_id?: number
|
|
148
|
+
alias?: string
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type UpdateFolderResponse = {
|
|
152
|
+
}
|
|
153
|
+
|
|
89
154
|
export type AuthorizeRequest = {
|
|
90
|
-
|
|
155
|
+
folder_id?: number
|
|
91
156
|
role_name?: string
|
|
92
157
|
member_name?: string
|
|
93
158
|
member_type?: string
|
|
@@ -97,7 +162,7 @@ export type AuthorizeResponse = {
|
|
|
97
162
|
}
|
|
98
163
|
|
|
99
164
|
export type DeauthorizeRequest = {
|
|
100
|
-
|
|
165
|
+
folder_id?: number
|
|
101
166
|
role_name?: string
|
|
102
167
|
member_name?: string
|
|
103
168
|
member_type?: string
|
|
@@ -106,14 +171,15 @@ export type DeauthorizeRequest = {
|
|
|
106
171
|
export type DeauthorizeResponse = {
|
|
107
172
|
}
|
|
108
173
|
|
|
109
|
-
export type
|
|
174
|
+
export type MemberRoleFolderInfo = {
|
|
110
175
|
member_name?: string
|
|
111
176
|
member_type?: string
|
|
112
177
|
role_name?: string
|
|
113
|
-
|
|
178
|
+
folder_id?: number
|
|
114
179
|
}
|
|
115
180
|
|
|
116
|
-
export type
|
|
181
|
+
export type ListMembersRolesRequest = {
|
|
182
|
+
folder_id?: number
|
|
117
183
|
member_name?: string
|
|
118
184
|
member_type?: string
|
|
119
185
|
role_name?: string
|
|
@@ -121,7 +187,17 @@ export type ListMembersRolesWorkspacesRequest = {
|
|
|
121
187
|
size?: number
|
|
122
188
|
}
|
|
123
189
|
|
|
124
|
-
export type
|
|
190
|
+
export type ListMembersRolesResponse = {
|
|
191
|
+
total?: number
|
|
192
|
+
members_roles_folders?: MemberRoleFolderInfo[]
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export type ListMembersRolesResourcesRequest = {
|
|
196
|
+
offset?: number
|
|
197
|
+
size?: number
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type ListMembersRolesResourcesResponse = {
|
|
125
201
|
total?: number
|
|
126
202
|
members_roles_workspaces?: MemberRoleWorkspaceInfo[]
|
|
127
203
|
}
|
|
@@ -130,14 +206,14 @@ export class Workspace {
|
|
|
130
206
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
131
207
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
132
208
|
}
|
|
133
|
-
static
|
|
134
|
-
return fm.fetchReq<
|
|
209
|
+
static ListResources(req: ListResourcesRequest, initReq?: fm.InitReq): Promise<ListResourcesResponse> {
|
|
210
|
+
return fm.fetchReq<ListResourcesRequest, ListResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
135
211
|
}
|
|
136
212
|
static BindResourceToWorkspace(req: BindResourceToWorkspaceRequest, initReq?: fm.InitReq): Promise<BindResourceToWorkspaceResponse> {
|
|
137
|
-
return fm.fetchReq<BindResourceToWorkspaceRequest, BindResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/
|
|
213
|
+
return fm.fetchReq<BindResourceToWorkspaceRequest, BindResourceToWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/resources/bind-workspace`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
138
214
|
}
|
|
139
215
|
static UnbindResourceFromWorkspace(req: UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<UnbindResourceFromWorkspaceResponse> {
|
|
140
|
-
return fm.fetchReq<UnbindResourceFromWorkspaceRequest, UnbindResourceFromWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/
|
|
216
|
+
return fm.fetchReq<UnbindResourceFromWorkspaceRequest, UnbindResourceFromWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/resources/unbind-workspace`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
141
217
|
}
|
|
142
218
|
static CreateWorkspace(req: CreateWorkspaceRequest, initReq?: fm.InitReq): Promise<CreateWorkspaceResponse> {
|
|
143
219
|
return fm.fetchReq<CreateWorkspaceRequest, CreateWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
@@ -148,13 +224,34 @@ export class Workspace {
|
|
|
148
224
|
static DeleteWorkspace(req: DeleteWorkspaceRequest, initReq?: fm.InitReq): Promise<DeleteWorkspaceResponse> {
|
|
149
225
|
return fm.fetchReq<DeleteWorkspaceRequest, DeleteWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspace_id"]}`, {...initReq, method: "DELETE"})
|
|
150
226
|
}
|
|
227
|
+
static ListMembersRolesByWorkspace(req: ListMembersRolesByWorkspaceRequest, initReq?: fm.InitReq): Promise<ListMembersRolesByWorkspaceResponse> {
|
|
228
|
+
return fm.fetchReq<ListMembersRolesByWorkspaceRequest, ListMembersRolesByWorkspaceResponse>(`/apis/ghippo.io/v1alpha1/workspaces/${req["workspace_id"]}/members-roles?${fm.renderURLSearchParams(req, ["workspace_id"])}`, {...initReq, method: "GET"})
|
|
229
|
+
}
|
|
230
|
+
static ListFolders(req: ListFoldersRequest, initReq?: fm.InitReq): Promise<ListFoldersResponse> {
|
|
231
|
+
return fm.fetchReq<ListFoldersRequest, ListFoldersResponse>(`/apis/ghippo.io/v1alpha1/folders?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
232
|
+
}
|
|
233
|
+
static CreateFolder(req: CreateFolderRequest, initReq?: fm.InitReq): Promise<CreateFolderResponse> {
|
|
234
|
+
return fm.fetchReq<CreateFolderRequest, CreateFolderResponse>(`/apis/ghippo.io/v1alpha1/folders`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
235
|
+
}
|
|
236
|
+
static GetFolder(req: GetFolderRequest, initReq?: fm.InitReq): Promise<GetFolderResponse> {
|
|
237
|
+
return fm.fetchReq<GetFolderRequest, GetFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folder_id"]}?${fm.renderURLSearchParams(req, ["folder_id"])}`, {...initReq, method: "GET"})
|
|
238
|
+
}
|
|
239
|
+
static DeleteFolder(req: DeleteFolderRequest, initReq?: fm.InitReq): Promise<DeleteFolderResponse> {
|
|
240
|
+
return fm.fetchReq<DeleteFolderRequest, DeleteFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folder_id"]}`, {...initReq, method: "DELETE"})
|
|
241
|
+
}
|
|
242
|
+
static UpdateFolder(req: UpdateFolderRequest, initReq?: fm.InitReq): Promise<UpdateFolderResponse> {
|
|
243
|
+
return fm.fetchReq<UpdateFolderRequest, UpdateFolderResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folder_id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
244
|
+
}
|
|
151
245
|
static Authorize(req: AuthorizeRequest, initReq?: fm.InitReq): Promise<AuthorizeResponse> {
|
|
152
|
-
return fm.fetchReq<AuthorizeRequest, AuthorizeResponse>(`/apis/ghippo.io/v1alpha1/
|
|
246
|
+
return fm.fetchReq<AuthorizeRequest, AuthorizeResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folder_id"]}/authorize`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
153
247
|
}
|
|
154
248
|
static Deauthorize(req: DeauthorizeRequest, initReq?: fm.InitReq): Promise<DeauthorizeResponse> {
|
|
155
|
-
return fm.fetchReq<DeauthorizeRequest, DeauthorizeResponse>(`/apis/ghippo.io/v1alpha1/
|
|
249
|
+
return fm.fetchReq<DeauthorizeRequest, DeauthorizeResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folder_id"]}/deauthorize`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
250
|
+
}
|
|
251
|
+
static ListMembersRoles(req: ListMembersRolesRequest, initReq?: fm.InitReq): Promise<ListMembersRolesResponse> {
|
|
252
|
+
return fm.fetchReq<ListMembersRolesRequest, ListMembersRolesResponse>(`/apis/ghippo.io/v1alpha1/folders/${req["folder_id"]}/members-roles?${fm.renderURLSearchParams(req, ["folder_id"])}`, {...initReq, method: "GET"})
|
|
156
253
|
}
|
|
157
|
-
static
|
|
158
|
-
return fm.fetchReq<
|
|
254
|
+
static ListMembersRolesResources(req: ListMembersRolesResourcesRequest, initReq?: fm.InitReq): Promise<ListMembersRolesResourcesResponse> {
|
|
255
|
+
return fm.fetchReq<ListMembersRolesResourcesRequest, ListMembersRolesResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources/members-roles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
159
256
|
}
|
|
160
257
|
}
|