@daocloud-proto/ghippo 0.6.16 → 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 +0 -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/package.json
CHANGED
package/v1alpha1/about.pb.ts
CHANGED
|
@@ -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 {
|