@daocloud-proto/ghippo 0.11.2-dev-2 → 0.11.2-dev-3

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.11.2-dev-2",
3
+ "version":"0.11.2-dev-3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"
@@ -11,8 +11,30 @@ export type ExportAuditRequest = {
11
11
  end?: string
12
12
  }
13
13
 
14
+ export type ClearAuditsRequest = {
15
+ isKube?: boolean
16
+ days?: number
17
+ }
18
+
19
+ export type ClearAuditsResponse = {
20
+ }
21
+
22
+ export type SetAutoClearAuditsRequest = {
23
+ isKube?: boolean
24
+ days?: number
25
+ }
26
+
27
+ export type SetAutoClearAuditsResponse = {
28
+ }
29
+
14
30
  export class AuditV1alpha2 {
15
31
  static ExportAudit(req: ExportAuditRequest, initReq?: fm.InitReq): Promise<GoogleApiHttpbody.HttpBody> {
16
32
  return fm.fetchReq<ExportAuditRequest, GoogleApiHttpbody.HttpBody>(`/apis/ghippo.io/v1alpha2/audits/export?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
17
33
  }
34
+ static ClearAudits(req: ClearAuditsRequest, initReq?: fm.InitReq): Promise<ClearAuditsResponse> {
35
+ return fm.fetchReq<ClearAuditsRequest, ClearAuditsResponse>(`/apis/ghippo.io/v1alpha2/audits/clear`, {...initReq, method: "POST", body: JSON.stringify(req)})
36
+ }
37
+ static SetAutoClearAudits(req: SetAutoClearAuditsRequest, initReq?: fm.InitReq): Promise<SetAutoClearAuditsResponse> {
38
+ return fm.fetchReq<SetAutoClearAuditsRequest, SetAutoClearAuditsResponse>(`/apis/ghippo.io/v1alpha2/audits/clear`, {...initReq, method: "PUT", body: JSON.stringify(req)})
39
+ }
18
40
  }