@daocloud-proto/ghippo 0.17.0-dev-1 → 0.17.0-dev-2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/ghippo",
3
- "version":"0.17.0-dev-1",
3
+ "version":"0.17.0-dev-2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -7,6 +7,24 @@
7
7
  import * as fm from "../fetch.pb"
8
8
  import * as GoogleApiHttpbody from "../google/api/httpbody.pb"
9
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
+
10
28
  export enum StatusType {
11
29
  all = "all",
12
30
  succeeded = "succeeded",
@@ -113,6 +131,7 @@ export type ExportKubeAuditsRequest = {
113
131
  status?: StatusType
114
132
  searchType?: SearchType
115
133
  searchUser?: string
134
+ exportType?: ExportTypes
116
135
  }
117
136
 
118
137
  export type ExportAuditsRequest = {
@@ -125,6 +144,7 @@ export type ExportAuditsRequest = {
125
144
  status?: StatusType
126
145
  searchType?: SearchType
127
146
  searchUser?: string
147
+ exportType?: ExportTypes
128
148
  }
129
149
 
130
150
  export type ClearAuditsNowRequest = {
@@ -155,6 +175,15 @@ export type SetAutoClearKubeAuditSettingRequest = {
155
175
  export type SetAutoClearKubeAuditSettingResponse = {
156
176
  }
157
177
 
178
+ export type GetExportURIRequest = {
179
+ module?: Modules
180
+ }
181
+
182
+ export type GetExportURIResponse = {
183
+ uri?: string
184
+ method?: RequestMethod
185
+ }
186
+
158
187
  export class AuditV1alpha3 {
159
188
  static ListAudits(req: ListAuditsRequest, initReq?: fm.InitReq): Promise<ListAuditsResponse> {
160
189
  return fm.fetchReq<ListAuditsRequest, ListAuditsResponse>(`/apis/ghippo.io/v1alpha3/audits?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -186,4 +215,7 @@ export class AuditV1alpha3 {
186
215
  static SetAutoClearAuditSetting(req: SetAutoClearAuditSettingRequest, initReq?: fm.InitReq): Promise<SetAutoClearAuditSettingResponse> {
187
216
  return fm.fetchReq<SetAutoClearAuditSettingRequest, SetAutoClearAuditSettingResponse>(`/apis/ghippo.io/v1alpha3/audits/set-auto-clear`, {...initReq, method: "PUT", body: JSON.stringify(req)})
188
217
  }
218
+ static GetExportURI(req: GetExportURIRequest, initReq?: fm.InitReq): Promise<GetExportURIResponse> {
219
+ return fm.fetchReq<GetExportURIRequest, GetExportURIResponse>(`/apis/ghippo.io/v1alpha3/audits/export/uri?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
220
+ }
189
221
  }