@daocloud-proto/ghippo 0.6.16 → 0.6.19
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 +0 -1
- package/v1alpha1/gproductlicense.pb.ts +81 -0
- package/v1alpha1/group.pb.ts +1 -1
- package/v1alpha1/role.pb.ts +25 -1
- package/v1alpha1/user.pb.ts +1 -1
- package/v1alpha1/workspace.pb.ts +1 -1
package/package.json
CHANGED
package/v1alpha1/about.pb.ts
CHANGED
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
name?: string
|
|
55
|
+
alias?: string
|
|
56
|
+
product_name?: string
|
|
57
|
+
tier?: string
|
|
58
|
+
status?: string
|
|
59
|
+
expired_at?: string
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export class GProducts {
|
|
63
|
+
static ListGProductLicenses(req: ListGProductLicensesRequest, initReq?: fm.InitReq): Promise<ListGProductLicensesResponse> {
|
|
64
|
+
return fm.fetchReq<ListGProductLicensesRequest, ListGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
65
|
+
}
|
|
66
|
+
static GetGProductLicenses(req: GetGProductLicensesRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesResponse> {
|
|
67
|
+
return fm.fetchReq<GetGProductLicensesRequest, GetGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
68
|
+
}
|
|
69
|
+
static UpdateGProductLicenses(req: UpdateGProductLicensesRequest, initReq?: fm.InitReq): Promise<UpdateGProductLicensesResponse> {
|
|
70
|
+
return fm.fetchReq<UpdateGProductLicensesRequest, UpdateGProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
71
|
+
}
|
|
72
|
+
static GetGProductLicensesYaml(req: GetGProductLicenseYamlRequest, initReq?: fm.InitReq): Promise<GetGProductLicenseYamlResponse> {
|
|
73
|
+
return fm.fetchReq<GetGProductLicenseYamlRequest, GetGProductLicenseYamlResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/yaml?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
74
|
+
}
|
|
75
|
+
static DeleteGProductLicenses(req: DeleteProductLicensesRequest, initReq?: fm.InitReq): Promise<DeleteProductLicensesResponse> {
|
|
76
|
+
return fm.fetchReq<DeleteProductLicensesRequest, DeleteProductLicensesResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
77
|
+
}
|
|
78
|
+
static GetGProductLicensesESN(req: GetGProductLicensesESNRequest, initReq?: fm.InitReq): Promise<GetGProductLicensesESNResponse> {
|
|
79
|
+
return fm.fetchReq<GetGProductLicensesESNRequest, GetGProductLicensesESNResponse>(`/apis/ghippo.io/v1alpha1/gproduct-licenses/esn?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
80
|
+
}
|
|
81
|
+
}
|
package/v1alpha1/group.pb.ts
CHANGED
package/v1alpha1/role.pb.ts
CHANGED
|
@@ -31,6 +31,26 @@ export type ListRolesResponse = {
|
|
|
31
31
|
roles?: RoleInfo[]
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
export type WorkspaceRoleInfo = {
|
|
35
|
+
id?: number
|
|
36
|
+
name?: string
|
|
37
|
+
description?: string
|
|
38
|
+
type?: string
|
|
39
|
+
auth_scope?: string
|
|
40
|
+
gproduct?: string
|
|
41
|
+
permissions?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type ListWorkspaceRolesRequest = {
|
|
45
|
+
offset?: number
|
|
46
|
+
size?: number
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type ListWorkspaceRolesResponse = {
|
|
50
|
+
total?: number
|
|
51
|
+
workspaceroles?: WorkspaceRoleInfo[]
|
|
52
|
+
}
|
|
53
|
+
|
|
34
54
|
export type GetRoleRequest = {
|
|
35
55
|
id?: string
|
|
36
56
|
}
|
|
@@ -91,6 +111,7 @@ export type ListRoleSubjectsRequest = {
|
|
|
91
111
|
id?: string
|
|
92
112
|
offset?: number
|
|
93
113
|
size?: number
|
|
114
|
+
search?: string
|
|
94
115
|
}
|
|
95
116
|
|
|
96
117
|
export type ListRoleSubjectsResponse = {
|
|
@@ -102,13 +123,16 @@ export type Subject = {
|
|
|
102
123
|
id?: string
|
|
103
124
|
role_id?: string
|
|
104
125
|
type?: string
|
|
105
|
-
|
|
126
|
+
subject_name?: string
|
|
106
127
|
}
|
|
107
128
|
|
|
108
129
|
export class Role {
|
|
109
130
|
static ListRoles(req: ListRolesRequest, initReq?: fm.InitReq): Promise<ListRolesResponse> {
|
|
110
131
|
return fm.fetchReq<ListRolesRequest, ListRolesResponse>(`/apis/ghippo.io/v1alpha1/roles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
111
132
|
}
|
|
133
|
+
static ListWorkspaceRoles(req: ListWorkspaceRolesRequest, initReq?: fm.InitReq): Promise<ListWorkspaceRolesResponse> {
|
|
134
|
+
return fm.fetchReq<ListWorkspaceRolesRequest, ListWorkspaceRolesResponse>(`/apis/ghippo.io/v1alpha1/workspaceroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
135
|
+
}
|
|
112
136
|
static GetRole(req: GetRoleRequest, initReq?: fm.InitReq): Promise<GetRoleResponse> {
|
|
113
137
|
return fm.fetchReq<GetRoleRequest, GetRoleResponse>(`/apis/ghippo.io/v1alpha1/roles/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
114
138
|
}
|
package/v1alpha1/user.pb.ts
CHANGED
package/v1alpha1/workspace.pb.ts
CHANGED