@daocloud-proto/zestu 0.8.0-dev-bb509205 → 0.8.0-dev-2a8b4751
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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
export type ObjectRef = {
|
|
7
|
+
name?: string
|
|
8
|
+
resource?: string
|
|
9
|
+
namespace?: string
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type ResponseStatus = {
|
|
13
|
+
status?: string
|
|
14
|
+
reason?: string
|
|
15
|
+
code?: number
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type WritAuditLogRequest = {
|
|
19
|
+
requestURI?: string
|
|
20
|
+
verb?: string
|
|
21
|
+
objectRef?: ObjectRef
|
|
22
|
+
clusterName?: string
|
|
23
|
+
responseStatus?: ResponseStatus
|
|
24
|
+
extraExplain?: {[key: string]: string}
|
|
25
|
+
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../../../fetch.pb"
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../google/api/empty.pb"
|
|
9
|
+
import * as ZestuIoApiAuditV1alpha1Audit from "../audit/v1alpha1/audit.pb"
|
|
9
10
|
import * as ZestuIoApiContainerinstanceV1alpha1Containerinstance from "../containerinstance/v1alpha1/containerinstance.pb"
|
|
10
11
|
import * as ZestuIoApiFile_storageV1alpha1Storage from "../file_storage/v1alpha1/storage.pb"
|
|
11
12
|
import * as ZestuIoApiImageV1alpha1Image from "../image/v1alpha1/image.pb"
|
|
@@ -142,6 +143,9 @@ export class Agent {
|
|
|
142
143
|
static SendShortMessage(req: ZestuIoApiSmsV1alpha1Sms.SendShortMessageRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
143
144
|
return fm.fetchReq<ZestuIoApiSmsV1alpha1Sms.SendShortMessageRequest, GoogleProtobufEmpty.Empty>(`/zestu.io.api.v1alpha1.Agent/SendShortMessage`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
144
145
|
}
|
|
146
|
+
static WritAuditLog(req: ZestuIoApiAuditV1alpha1Audit.WritAuditLogRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
147
|
+
return fm.fetchReq<ZestuIoApiAuditV1alpha1Audit.WritAuditLogRequest, GoogleProtobufEmpty.Empty>(`/zestu.io.api.v1alpha1.Agent/WritAuditLog`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
148
|
+
}
|
|
145
149
|
}
|
|
146
150
|
export class Metrics {
|
|
147
151
|
static QueryMetricsRange(req: ZestuIoApiMetricsV1alpha1Metrics.MetricsRangeRequest, initReq?: fm.InitReq): Promise<ZestuIoApiMetricsV1alpha1Metrics.MetricsRangeResponse> {
|