@daocloud-proto/ghippo 0.0.1 → 0.1.1
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/fetch.pb.ts +109 -0
- package/package.json +6 -6
- package/v1alpha1/about.pb.ts +63 -0
- package/v1alpha1/audit.pb.ts +103 -0
- package/v1alpha1/batchaudit.pb.ts +19 -0
- package/v1alpha1/client.pb.ts +79 -0
- package/v1alpha1/currentuser.pb.ts +273 -0
- package/v1alpha1/feature_gate.pb.ts +32 -0
- package/v1alpha1/gproduct.pb.ts +28 -0
- package/v1alpha1/gproductlicense.pb.ts +109 -0
- package/v1alpha1/group.pb.ts +187 -0
- package/v1alpha1/idp.pb.ts +131 -0
- package/v1alpha1/keycloakevent.pb.ts +37 -0
- package/v1alpha1/login.pb.ts +82 -0
- package/v1alpha1/loginpage.pb.ts +62 -0
- package/v1alpha1/message.pb.ts +114 -0
- package/v1alpha1/oauth2.pb.ts +76 -0
- package/v1alpha1/oidc.pb.ts +100 -0
- package/v1alpha1/openapi.pb.ts +48 -0
- package/{productnav.pb.ts → v1alpha1/productnav.pb.ts} +9 -4
- package/v1alpha1/publish.pb.ts +23 -0
- package/v1alpha1/recordfiling.pb.ts +58 -0
- package/v1alpha1/role.pb.ts +318 -0
- package/v1alpha1/securitypolicy.pb.ts +201 -0
- package/v1alpha1/sms.pb.ts +33 -0
- package/v1alpha1/smtpsetting.pb.ts +58 -0
- package/v1alpha1/theme.pb.ts +121 -0
- package/v1alpha1/topnav.pb.ts +42 -0
- package/v1alpha1/user.pb.ts +325 -0
- package/v1alpha1/webhook.pb.ts +180 -0
- package/v1alpha1/workspace.pb.ts +629 -0
- package/v1alpha2/audit.pb.ts +7 -0
- package/v1alpha2/auditv2.pb.ts +58 -0
- package/v1alpha2/ldap.pb.ts +253 -0
- package/v1alpha3/audit.pb.ts +225 -0
- package/workspace.pb.ts +0 -21
|
@@ -0,0 +1,253 @@
|
|
|
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
|
+
|
|
9
|
+
export enum LdapVendor {
|
|
10
|
+
other = "other",
|
|
11
|
+
ad = "ad",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type ListLdapsRequest = {
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type ListLdapsResponse = {
|
|
18
|
+
items?: ListLdap[]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type ListLdap = {
|
|
22
|
+
id?: string
|
|
23
|
+
name?: string
|
|
24
|
+
vendor?: string
|
|
25
|
+
enabled?: boolean
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type GetLdapRequest = {
|
|
29
|
+
id?: string
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type GetLdapResponse = {
|
|
33
|
+
id?: string
|
|
34
|
+
name?: string
|
|
35
|
+
vendor?: LdapVendor
|
|
36
|
+
startTls?: string
|
|
37
|
+
connectionUrl?: string
|
|
38
|
+
usersDn?: string
|
|
39
|
+
bindDn?: string
|
|
40
|
+
bindCredential?: string
|
|
41
|
+
userObjectClasses?: string
|
|
42
|
+
usernameLdapAttribute?: string
|
|
43
|
+
fullSyncPeriod?: string
|
|
44
|
+
rdnLdapAttribute?: string
|
|
45
|
+
uuidLdapAttribute?: string
|
|
46
|
+
editMode?: string
|
|
47
|
+
readTimeout?: string
|
|
48
|
+
firstName?: string
|
|
49
|
+
lastName?: string
|
|
50
|
+
email?: string
|
|
51
|
+
enabled?: boolean
|
|
52
|
+
username?: string
|
|
53
|
+
userLdapFilter?: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type CreateLdapRequest = {
|
|
57
|
+
name?: string
|
|
58
|
+
vendor?: LdapVendor
|
|
59
|
+
startTls?: string
|
|
60
|
+
connectionUrl?: string
|
|
61
|
+
usersDn?: string
|
|
62
|
+
bindDn?: string
|
|
63
|
+
bindCredential?: string
|
|
64
|
+
userObjectClasses?: string
|
|
65
|
+
usernameLdapAttribute?: string
|
|
66
|
+
fullSyncPeriod?: string
|
|
67
|
+
rdnLdapAttribute?: string
|
|
68
|
+
uuidLdapAttribute?: string
|
|
69
|
+
editMode?: string
|
|
70
|
+
readTimeout?: string
|
|
71
|
+
firstName?: string
|
|
72
|
+
lastName?: string
|
|
73
|
+
email?: string
|
|
74
|
+
enabled?: boolean
|
|
75
|
+
username?: string
|
|
76
|
+
userLdapFilter?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type CreateLdapResponse = {
|
|
80
|
+
id?: string
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type TestLdapConnectionRequest = {
|
|
84
|
+
connectionUrl?: string
|
|
85
|
+
bindDn?: string
|
|
86
|
+
bindCredential?: string
|
|
87
|
+
connectionTimeout?: string
|
|
88
|
+
action?: string
|
|
89
|
+
startTls?: string
|
|
90
|
+
useTruststoreSpi?: string
|
|
91
|
+
componentId?: string
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type TestLdapConnectionResponse = {
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type TestLdapAuthenticationRequest = {
|
|
98
|
+
bindDn?: string
|
|
99
|
+
bindCredential?: string
|
|
100
|
+
connectionUrl?: string
|
|
101
|
+
connectionTimeout?: string
|
|
102
|
+
action?: string
|
|
103
|
+
startTls?: string
|
|
104
|
+
useTruststoreSpi?: string
|
|
105
|
+
componentId?: string
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type TestLdapAuthenticationResponse = {
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type UpdateLdapRequest = {
|
|
112
|
+
id?: string
|
|
113
|
+
name?: string
|
|
114
|
+
vendor?: LdapVendor
|
|
115
|
+
startTls?: string
|
|
116
|
+
connectionUrl?: string
|
|
117
|
+
usersDn?: string
|
|
118
|
+
bindDn?: string
|
|
119
|
+
bindCredential?: string
|
|
120
|
+
userObjectClasses?: string
|
|
121
|
+
usernameLdapAttribute?: string
|
|
122
|
+
fullSyncPeriod?: string
|
|
123
|
+
rdnLdapAttribute?: string
|
|
124
|
+
uuidLdapAttribute?: string
|
|
125
|
+
editMode?: string
|
|
126
|
+
readTimeout?: string
|
|
127
|
+
firstName?: string
|
|
128
|
+
lastName?: string
|
|
129
|
+
email?: string
|
|
130
|
+
enabled?: boolean
|
|
131
|
+
username?: string
|
|
132
|
+
userLdapFilter?: string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type UpdateLdapResponse = {
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type SyncUsersRequest = {
|
|
139
|
+
id?: string
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type SyncUsersResponse = {
|
|
143
|
+
ignored?: boolean
|
|
144
|
+
added?: number
|
|
145
|
+
updated?: number
|
|
146
|
+
removed?: number
|
|
147
|
+
failed?: number
|
|
148
|
+
status?: string
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type DeleteLdapRequest = {
|
|
152
|
+
id?: string
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export type DeleteLdapResponse = {
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type GetLdapGroupRequest = {
|
|
159
|
+
id?: string
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export type GetLdapGroupResponse = {
|
|
163
|
+
id?: string
|
|
164
|
+
groupDn?: string
|
|
165
|
+
groupObjectClasses?: string
|
|
166
|
+
groupNameLdapAttribute?: string
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type CreateLdapGroupRequest = {
|
|
170
|
+
id?: string
|
|
171
|
+
groupDn?: string
|
|
172
|
+
groupObjectClasses?: string
|
|
173
|
+
groupNameLdapAttribute?: string
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export type CreateLdapGroupResponse = {
|
|
177
|
+
id?: string
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type UpdateLdapGroupRequest = {
|
|
181
|
+
ldapId?: string
|
|
182
|
+
id?: string
|
|
183
|
+
groupDn?: string
|
|
184
|
+
groupObjectClasses?: string
|
|
185
|
+
groupNameLdapAttribute?: string
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export type UpdateLdapGroupResponse = {
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export type DeleteLdapGroupRequest = {
|
|
192
|
+
ldapId?: string
|
|
193
|
+
id?: string
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type DeleteLdapGroupResponse = {
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type SyncLdapGroupsRequest = {
|
|
200
|
+
ldapId?: string
|
|
201
|
+
id?: string
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export type SyncLdapGroupsResponse = {
|
|
205
|
+
ignored?: boolean
|
|
206
|
+
added?: number
|
|
207
|
+
updated?: number
|
|
208
|
+
removed?: number
|
|
209
|
+
failed?: number
|
|
210
|
+
status?: string
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export class Ldap {
|
|
214
|
+
static ListLdaps(req: ListLdapsRequest, initReq?: fm.InitReq): Promise<ListLdapsResponse> {
|
|
215
|
+
return fm.fetchReq<ListLdapsRequest, ListLdapsResponse>(`/apis/ghippo.io/v1alpha2/ldaps?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
216
|
+
}
|
|
217
|
+
static GetLdap(req: GetLdapRequest, initReq?: fm.InitReq): Promise<GetLdapResponse> {
|
|
218
|
+
return fm.fetchReq<GetLdapRequest, GetLdapResponse>(`/apis/ghippo.io/v1alpha2/ldaps/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
219
|
+
}
|
|
220
|
+
static CreateLdap(req: CreateLdapRequest, initReq?: fm.InitReq): Promise<CreateLdapResponse> {
|
|
221
|
+
return fm.fetchReq<CreateLdapRequest, CreateLdapResponse>(`/apis/ghippo.io/v1alpha2/ldap`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
222
|
+
}
|
|
223
|
+
static TestLdapConnection(req: TestLdapConnectionRequest, initReq?: fm.InitReq): Promise<TestLdapConnectionResponse> {
|
|
224
|
+
return fm.fetchReq<TestLdapConnectionRequest, TestLdapConnectionResponse>(`/apis/ghippo.io/v1alpha2/testLdapConnection`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
225
|
+
}
|
|
226
|
+
static TestLdapAuthentication(req: TestLdapAuthenticationRequest, initReq?: fm.InitReq): Promise<TestLdapAuthenticationResponse> {
|
|
227
|
+
return fm.fetchReq<TestLdapAuthenticationRequest, TestLdapAuthenticationResponse>(`/apis/ghippo.io/v1alpha2/testLdapAuthentication`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
228
|
+
}
|
|
229
|
+
static UpdateLdap(req: UpdateLdapRequest, initReq?: fm.InitReq): Promise<UpdateLdapResponse> {
|
|
230
|
+
return fm.fetchReq<UpdateLdapRequest, UpdateLdapResponse>(`/apis/ghippo.io/v1alpha2/ldaps/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
231
|
+
}
|
|
232
|
+
static SyncUsers(req: SyncUsersRequest, initReq?: fm.InitReq): Promise<SyncUsersResponse> {
|
|
233
|
+
return fm.fetchReq<SyncUsersRequest, SyncUsersResponse>(`/apis/ghippo.io/v1alpha2/ldaps/${req["id"]}/sync?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
234
|
+
}
|
|
235
|
+
static DeleteLdap(req: DeleteLdapRequest, initReq?: fm.InitReq): Promise<DeleteLdapResponse> {
|
|
236
|
+
return fm.fetchReq<DeleteLdapRequest, DeleteLdapResponse>(`/apis/ghippo.io/v1alpha2/ldaps/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
237
|
+
}
|
|
238
|
+
static GetLdapGroup(req: GetLdapGroupRequest, initReq?: fm.InitReq): Promise<GetLdapGroupResponse> {
|
|
239
|
+
return fm.fetchReq<GetLdapGroupRequest, GetLdapGroupResponse>(`/apis/ghippo.io/v1alpha2/ldaps/${req["id"]}/group?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
240
|
+
}
|
|
241
|
+
static CreateLdapGroup(req: CreateLdapGroupRequest, initReq?: fm.InitReq): Promise<CreateLdapGroupResponse> {
|
|
242
|
+
return fm.fetchReq<CreateLdapGroupRequest, CreateLdapGroupResponse>(`/apis/ghippo.io/v1alpha2/ldaps/${req["id"]}/group`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
243
|
+
}
|
|
244
|
+
static UpdateLdapGroup(req: UpdateLdapGroupRequest, initReq?: fm.InitReq): Promise<UpdateLdapGroupResponse> {
|
|
245
|
+
return fm.fetchReq<UpdateLdapGroupRequest, UpdateLdapGroupResponse>(`/apis/ghippo.io/v1alpha2/ldaps/${req["ldapId"]}/group/${req["id"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
246
|
+
}
|
|
247
|
+
static DeleteLdapGroup(req: DeleteLdapGroupRequest, initReq?: fm.InitReq): Promise<DeleteLdapGroupResponse> {
|
|
248
|
+
return fm.fetchReq<DeleteLdapGroupRequest, DeleteLdapGroupResponse>(`/apis/ghippo.io/v1alpha2/ldaps/${req["ldapId"]}/group/${req["id"]}`, {...initReq, method: "DELETE"})
|
|
249
|
+
}
|
|
250
|
+
static SyncLdapGroups(req: SyncLdapGroupsRequest, initReq?: fm.InitReq): Promise<SyncLdapGroupsResponse> {
|
|
251
|
+
return fm.fetchReq<SyncLdapGroupsRequest, SyncLdapGroupsResponse>(`/apis/ghippo.io/v1alpha2/ldaps/${req["ldapId"]}/group/${req["id"]}/sync?${fm.renderURLSearchParams(req, ["ldapId", "id"])}`, {...initReq, method: "GET"})
|
|
252
|
+
}
|
|
253
|
+
}
|
|
@@ -0,0 +1,225 @@
|
|
|
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
|
+
import * as GoogleApiHttpbody from "../google/api/httpbody.pb"
|
|
9
|
+
|
|
10
|
+
export enum ExportTypes {
|
|
11
|
+
Csv = "Csv",
|
|
12
|
+
Excel = "Excel",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum RequestMethod {
|
|
16
|
+
GET = "GET",
|
|
17
|
+
POST = "POST",
|
|
18
|
+
PUT = "PUT",
|
|
19
|
+
DELETE = "DELETE",
|
|
20
|
+
PATCH = "PATCH",
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum Modules {
|
|
24
|
+
audit = "audit",
|
|
25
|
+
kube_audit = "kube_audit",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum StatusType {
|
|
29
|
+
all = "all",
|
|
30
|
+
succeeded = "succeeded",
|
|
31
|
+
failed = "failed",
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export enum SearchType {
|
|
35
|
+
fuzzy = "fuzzy",
|
|
36
|
+
exact = "exact",
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type ListKubeAuditsResponse = {
|
|
40
|
+
items?: KubeAuditInfo[]
|
|
41
|
+
pagination?: Pagination
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type KubeAuditInfo = {
|
|
45
|
+
id?: string
|
|
46
|
+
auditName?: string
|
|
47
|
+
resourceType?: string
|
|
48
|
+
resourceName?: string
|
|
49
|
+
clusterName?: string
|
|
50
|
+
status?: StatusType
|
|
51
|
+
user?: string
|
|
52
|
+
client?: string
|
|
53
|
+
ip?: string
|
|
54
|
+
createdAt?: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ListKubeAuditsRequest = {
|
|
58
|
+
auditName?: string
|
|
59
|
+
sourceType?: string
|
|
60
|
+
sourceName?: string
|
|
61
|
+
clusterName?: string
|
|
62
|
+
status?: StatusType
|
|
63
|
+
searchType?: SearchType
|
|
64
|
+
searchUser?: string
|
|
65
|
+
start?: string
|
|
66
|
+
end?: string
|
|
67
|
+
page?: number
|
|
68
|
+
pageSize?: number
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type AuditInfo = {
|
|
72
|
+
id?: string
|
|
73
|
+
auditName?: string
|
|
74
|
+
resourceType?: string
|
|
75
|
+
resourceName?: string
|
|
76
|
+
clusterName?: string
|
|
77
|
+
gproduct?: string
|
|
78
|
+
status?: StatusType
|
|
79
|
+
user?: string
|
|
80
|
+
client?: string
|
|
81
|
+
ip?: string
|
|
82
|
+
createdAt?: string
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type ListAuditsRequest = {
|
|
86
|
+
auditName?: string
|
|
87
|
+
sourceType?: string
|
|
88
|
+
sourceName?: string
|
|
89
|
+
clusterName?: string
|
|
90
|
+
status?: StatusType
|
|
91
|
+
searchType?: SearchType
|
|
92
|
+
searchUser?: string
|
|
93
|
+
gproduct?: string
|
|
94
|
+
start?: string
|
|
95
|
+
end?: string
|
|
96
|
+
page?: number
|
|
97
|
+
pageSize?: number
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type ListAuditsResponse = {
|
|
101
|
+
items?: AuditInfo[]
|
|
102
|
+
pagination?: Pagination
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type GetAuditDetailRequest = {
|
|
106
|
+
id?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type GetAuditDetailResponse = {
|
|
110
|
+
audit?: string
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type Pagination = {
|
|
114
|
+
total?: number
|
|
115
|
+
page?: number
|
|
116
|
+
pageSize?: number
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type GetKubeAuditDetailRequest = {
|
|
120
|
+
id?: string
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type GetKubeAuditDetailResponse = {
|
|
124
|
+
audit?: string
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type ExportKubeAuditsRequest = {
|
|
128
|
+
start?: string
|
|
129
|
+
end?: string
|
|
130
|
+
auditName?: string
|
|
131
|
+
sourceType?: string
|
|
132
|
+
sourceName?: string
|
|
133
|
+
clusterName?: string
|
|
134
|
+
status?: StatusType
|
|
135
|
+
searchType?: SearchType
|
|
136
|
+
searchUser?: string
|
|
137
|
+
exportType?: ExportTypes
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type ExportAuditsRequest = {
|
|
141
|
+
start?: string
|
|
142
|
+
end?: string
|
|
143
|
+
auditName?: string
|
|
144
|
+
sourceType?: string
|
|
145
|
+
sourceName?: string
|
|
146
|
+
clusterName?: string
|
|
147
|
+
gproduct?: string
|
|
148
|
+
status?: StatusType
|
|
149
|
+
searchType?: SearchType
|
|
150
|
+
searchUser?: string
|
|
151
|
+
exportType?: ExportTypes
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type ClearAuditsNowRequest = {
|
|
155
|
+
days?: number
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type ClearAuditsNowResponse = {
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export type SetAutoClearAuditSettingRequest = {
|
|
162
|
+
days?: number
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type SetAutoClearAuditSettingResponse = {
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export type ClearKubeAuditsNowRequest = {
|
|
169
|
+
days?: number
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export type ClearKubeAuditsNowResponse = {
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type SetAutoClearKubeAuditSettingRequest = {
|
|
176
|
+
days?: number
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type SetAutoClearKubeAuditSettingResponse = {
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type GetExportURIRequest = {
|
|
183
|
+
module?: Modules
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type GetExportURIResponse = {
|
|
187
|
+
uri?: string
|
|
188
|
+
method?: RequestMethod
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export class Audit {
|
|
192
|
+
static ListAudits(req: ListAuditsRequest, initReq?: fm.InitReq): Promise<ListAuditsResponse> {
|
|
193
|
+
return fm.fetchReq<ListAuditsRequest, ListAuditsResponse>(`/apis/ghippo.io/v1alpha3/audits?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
194
|
+
}
|
|
195
|
+
static GetAuditDetail(req: GetAuditDetailRequest, initReq?: fm.InitReq): Promise<GetAuditDetailResponse> {
|
|
196
|
+
return fm.fetchReq<GetAuditDetailRequest, GetAuditDetailResponse>(`/apis/ghippo.io/v1alpha3/audits/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
197
|
+
}
|
|
198
|
+
static ListKubeAudits(req: ListKubeAuditsRequest, initReq?: fm.InitReq): Promise<ListKubeAuditsResponse> {
|
|
199
|
+
return fm.fetchReq<ListKubeAuditsRequest, ListKubeAuditsResponse>(`/apis/ghippo.io/v1alpha3/audits/kube?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
200
|
+
}
|
|
201
|
+
static GetKubeAuditDetail(req: GetKubeAuditDetailRequest, initReq?: fm.InitReq): Promise<GetKubeAuditDetailResponse> {
|
|
202
|
+
return fm.fetchReq<GetKubeAuditDetailRequest, GetKubeAuditDetailResponse>(`/apis/ghippo.io/v1alpha3/audits/kube/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
203
|
+
}
|
|
204
|
+
static ExportKubeAudits(req: ExportKubeAuditsRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
205
|
+
return fm.fetchReq<ExportKubeAuditsRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha3/audits/kube/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
206
|
+
}
|
|
207
|
+
static ExportAudits(req: ExportAuditsRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
|
|
208
|
+
return fm.fetchReq<ExportAuditsRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha3/audits/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
209
|
+
}
|
|
210
|
+
static ClearKubeAuditsNow(req: ClearKubeAuditsNowRequest, initReq?: fm.InitReq): Promise<ClearKubeAuditsNowResponse> {
|
|
211
|
+
return fm.fetchReq<ClearKubeAuditsNowRequest, ClearKubeAuditsNowResponse>(`/apis/ghippo.io/v1alpha3/audits/kube/clear`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
212
|
+
}
|
|
213
|
+
static SetAutoClearKubeAuditSetting(req: SetAutoClearKubeAuditSettingRequest, initReq?: fm.InitReq): Promise<SetAutoClearKubeAuditSettingResponse> {
|
|
214
|
+
return fm.fetchReq<SetAutoClearKubeAuditSettingRequest, SetAutoClearKubeAuditSettingResponse>(`/apis/ghippo.io/v1alpha3/audits/set-auto-clear/kube`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
215
|
+
}
|
|
216
|
+
static ClearAuditsNow(req: ClearAuditsNowRequest, initReq?: fm.InitReq): Promise<ClearAuditsNowResponse> {
|
|
217
|
+
return fm.fetchReq<ClearAuditsNowRequest, ClearAuditsNowResponse>(`/apis/ghippo.io/v1alpha3/audits/clear`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
218
|
+
}
|
|
219
|
+
static SetAutoClearAuditSetting(req: SetAutoClearAuditSettingRequest, initReq?: fm.InitReq): Promise<SetAutoClearAuditSettingResponse> {
|
|
220
|
+
return fm.fetchReq<SetAutoClearAuditSettingRequest, SetAutoClearAuditSettingResponse>(`/apis/ghippo.io/v1alpha3/audits/set-auto-clear`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
221
|
+
}
|
|
222
|
+
static GetExportURI(req: GetExportURIRequest, initReq?: fm.InitReq): Promise<GetExportURIResponse> {
|
|
223
|
+
return fm.fetchReq<GetExportURIRequest, GetExportURIResponse>(`/apis/ghippo.io/v1alpha3/audits/export/uri?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
224
|
+
}
|
|
225
|
+
}
|
package/workspace.pb.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
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 GetWorkspaceRequest = {
|
|
9
|
-
id?: string
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type GetWorkspaceResponse = {
|
|
13
|
-
id?: string
|
|
14
|
-
name?: string
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export class Workspace {
|
|
18
|
-
static GetWorkspace(req: GetWorkspaceRequest, initReq?: fm.InitReq): Promise<GetWorkspaceResponse> {
|
|
19
|
-
return fm.fetchReq<GetWorkspaceRequest, GetWorkspaceResponse>(`/workspaces/${req["id"]}?${fm.renderURLSearchParams(req, ["id"])}`, {...initReq, method: "GET"})
|
|
20
|
-
}
|
|
21
|
-
}
|