@daocloud-proto/ghippo 0.6.25 → 0.6.26
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
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
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 PasswordPolicyInfo = {
|
|
9
|
+
type?: string
|
|
10
|
+
value?: string
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type GetPasswordPolicyRequest = {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type GetPasswordPolicyResponse = {
|
|
17
|
+
items?: PasswordPolicyInfo[]
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type SetPasswordPolicyRequest = {
|
|
21
|
+
items?: PasswordPolicyInfo[]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type SetPasswordPolicyResponse = {
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class SecurityPolicy {
|
|
28
|
+
static GetPasswordPolicy(req: GetPasswordPolicyRequest, initReq?: fm.InitReq): Promise<GetPasswordPolicyResponse> {
|
|
29
|
+
return fm.fetchReq<GetPasswordPolicyRequest, GetPasswordPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/password?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
30
|
+
}
|
|
31
|
+
static SetPasswordPolicy(req: SetPasswordPolicyRequest, initReq?: fm.InitReq): Promise<SetPasswordPolicyResponse> {
|
|
32
|
+
return fm.fetchReq<SetPasswordPolicyRequest, SetPasswordPolicyResponse>(`/apis/ghippo.io/v1alpha1/securitypolicy/password`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
33
|
+
}
|
|
34
|
+
}
|
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -210,6 +210,44 @@ export type ListMembersRolesResourcesResponse = {
|
|
|
210
210
|
pagination?: Pagination
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
+
export type ProductSubResourceInfo = {
|
|
214
|
+
type?: string
|
|
215
|
+
names?: string[]
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export type ProductResourceInfo = {
|
|
219
|
+
name?: string
|
|
220
|
+
type?: string
|
|
221
|
+
gproduct?: string
|
|
222
|
+
subresource?: ProductSubResourceInfo
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
export type ListProductResourcesRequest = {
|
|
226
|
+
page?: number
|
|
227
|
+
page_size?: number
|
|
228
|
+
name?: string
|
|
229
|
+
parent?: boolean
|
|
230
|
+
type?: string
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
export type ListProductResourcesResponse = {
|
|
234
|
+
items?: ProductResourceInfo[]
|
|
235
|
+
pagination?: Pagination
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type ProductResourceType = {
|
|
239
|
+
parent?: boolean
|
|
240
|
+
name?: string
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type ListProductResourceTypesRequest = {
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export type ListProductResourceTypesResponse = {
|
|
247
|
+
items?: ProductResourceType[]
|
|
248
|
+
pagination?: Pagination
|
|
249
|
+
}
|
|
250
|
+
|
|
213
251
|
export class Workspace {
|
|
214
252
|
static ListWorkspaces(req: ListWorkspacesRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
215
253
|
return fm.fetchReq<ListWorkspacesRequest, ListWorkspacesResponse>(`/apis/ghippo.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -262,4 +300,10 @@ export class Workspace {
|
|
|
262
300
|
static ListMembersRolesResources(req: ListMembersRolesResourcesRequest, initReq?: fm.InitReq): Promise<ListMembersRolesResourcesResponse> {
|
|
263
301
|
return fm.fetchReq<ListMembersRolesResourcesRequest, ListMembersRolesResourcesResponse>(`/apis/ghippo.io/v1alpha1/resources/members-roles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
264
302
|
}
|
|
303
|
+
static ListProductResources(req: ListProductResourcesRequest, initReq?: fm.InitReq): Promise<ListProductResourcesResponse> {
|
|
304
|
+
return fm.fetchReq<ListProductResourcesRequest, ListProductResourcesResponse>(`/apis/ghippo.io/v1alpha1/product-resources?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
305
|
+
}
|
|
306
|
+
static ListProductResourceTypes(req: ListProductResourceTypesRequest, initReq?: fm.InitReq): Promise<ListProductResourceTypesResponse> {
|
|
307
|
+
return fm.fetchReq<ListProductResourceTypesRequest, ListProductResourceTypesResponse>(`/apis/ghippo.io/v1alpha1/product-resource-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
308
|
+
}
|
|
265
309
|
}
|